Add support for volatile buttons to widget-boolean.c

Will be used by Gen 1 support.
This commit is contained in:
Geoffrey D. Bennett
2024-03-31 03:22:38 +10:30
parent db0929bd08
commit 111ec1154d
4 changed files with 35 additions and 3 deletions

View File

@@ -141,7 +141,8 @@ struct alsa_elem {
GList *callbacks;
// for simulated elements, the current state
int writable;
int is_writable;
int is_volatile;
long value;
// for simulated enumerated elements, the items
@@ -219,6 +220,7 @@ long alsa_get_elem_value(struct alsa_elem *elem);
int *alsa_get_elem_int_values(struct alsa_elem *elem);
void alsa_set_elem_value(struct alsa_elem *elem, long value);
int alsa_get_elem_writable(struct alsa_elem *elem);
int alsa_get_elem_volatile(struct alsa_elem *elem);
int alsa_get_elem_count(struct alsa_elem *elem);
int alsa_get_item_count(struct alsa_elem *elem);
char *alsa_get_item_name(struct alsa_elem *elem, int i);