diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-03-23 19:31:36 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-03-23 19:31:36 +0100 |
commit | 08154554b0cdce6d16816536211718bf14ff33ff (patch) | |
tree | ee23e50fcd8efa03cae2d402af0a7b071ec79a3c /src/pulsecore/card.h | |
parent | 124de50ef8e4074302c0c205e61ccd78744dd549 (diff) |
only store card profile if flagged for that
Diffstat (limited to 'src/pulsecore/card.h')
-rw-r--r-- | src/pulsecore/card.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/pulsecore/card.h b/src/pulsecore/card.h index c80d4e2e..3b7608f6 100644 --- a/src/pulsecore/card.h +++ b/src/pulsecore/card.h @@ -63,6 +63,8 @@ struct pa_card { pa_hashmap *profiles; pa_card_profile *active_profile; + pa_bool_t save_profile; + void *userdata; int (*set_profile)(pa_card *c, pa_card_profile *profile); @@ -80,6 +82,8 @@ typedef struct pa_card_new_data { char *active_profile; pa_bool_t namereg_fail:1; + + pa_bool_t save_profile:1; } pa_card_new_data; pa_card_profile *pa_card_profile_new(const char *name, const char *description, size_t extra); @@ -93,7 +97,7 @@ void pa_card_new_data_done(pa_card_new_data *data); pa_card *pa_card_new(pa_core *c, pa_card_new_data *data); void pa_card_free(pa_card *c); -int pa_card_set_profile(pa_card *c, const char *name); +int pa_card_set_profile(pa_card *c, const char *name, pa_bool_t save); int pa_card_suspend(pa_card *c, pa_bool_t suspend); |