| 1 | // SPDX-FileCopyrightText: 2026 Geoffrey D. Bennett <[email protected]> |
| 2 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | // Initialise debug system from ALSA_SCARLETT_GUI_DEBUG environment variable. |
| 7 | // Call once at startup. The env var is a comma-separated list of categories. |
| 8 | // |
| 9 | // Example: ALSA_SCARLETT_GUI_DEBUG=stereo-link,routing |
| 10 | void debug_init(void); |
| 11 | |
| 12 | // Check if a debug category is enabled. |
| 13 | int debug_enabled(const char *category); |