summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/card.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-01-17 02:03:35 +0100
committerLennart Poettering <lennart@poettering.net>2009-01-17 02:03:35 +0100
commitc06e43d7ff5eff33af416a35ef4ca962a0cc0a2e (patch)
tree2d8d2efe4313c1c94252fbe65ab3ce54ba554cf2 /src/pulsecore/card.h
parentc560aea4c9668c751a96460a52f7a981eef60572 (diff)
actually create pa_card object in module-alsa-card
Diffstat (limited to 'src/pulsecore/card.h')
-rw-r--r--src/pulsecore/card.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/pulsecore/card.h b/src/pulsecore/card.h
index e32e8809..b4e68b04 100644
--- a/src/pulsecore/card.h
+++ b/src/pulsecore/card.h
@@ -31,17 +31,20 @@ typedef struct pa_card pa_card;
typedef struct pa_card_profile {
char *name;
+ char *description;
- pa_bool_t optical_sink:1;
- pa_bool_t optical_source:1;
-
+ /* We probably want to have different properties later on here */
unsigned n_sinks;
unsigned n_sources;
unsigned max_sink_channels;
unsigned max_source_channels;
+
+ /* .. followed by some implementation specific data */
} pa_card_profile;
+#define PA_CARD_PROFILE_DATA(d) ((void*) ((uint8_t*) d + PA_ALIGN(sizeof(pa_card_profile))))
+
struct pa_card {
uint32_t index;
pa_core *core;
@@ -65,6 +68,7 @@ struct pa_card {
typedef struct pa_card_new_data {
char *name;
+ char *description;
pa_proplist *proplist;
const char *driver;
@@ -76,7 +80,7 @@ typedef struct pa_card_new_data {
pa_bool_t namereg_fail:1;
} pa_card_new_data;
-pa_card_profile *pa_card_profile_new(const char *name);
+pa_card_profile *pa_card_profile_new(const char *name, const char *description, size_t extra);
void pa_card_profile_free(pa_card_profile *c);
pa_card_new_data *pa_card_new_data_init(pa_card_new_data *data);