| 1 | // SPDX-FileCopyrightText: 2022-2025 Geoffrey D. Bennett <[email protected]> |
| 2 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include <gtk/gtk.h> |
| 7 | |
| 8 | #include "alsa.h" |
| 9 | |
| 10 | // load/save configuration in native format (used by file dialogs and presets) |
| 11 | int load_native(struct alsa_card *card, const char *path); |
| 12 | int save_native(struct alsa_card *card, const char *path); |
| 13 | |
| 14 | // load/save configuration (supports both alsactl .state and native .conf) |
| 15 | void activate_load(GSimpleAction *action, GVariant *parameter, gpointer data); |
| 16 | void activate_save(GSimpleAction *action, GVariant *parameter, gpointer data); |
| 17 | |
| 18 | // simulation from .state file |
| 19 | void activate_sim(GSimpleAction *action, GVariant *parameter, gpointer data); |