12 #define E_OUT_OF_RANGE 2
14 #define E_DATABSE_ERROR 4
15 #define E_ALREADY_EXISTS 5
17 #define E_NOT_POSSIBLE 7
18 #define E_NON_EXISTENT 8
20 #define E_WRONG_FORMAT 10
24 struct am_domainreg_data {
25 dbus_uint16_t domain_id;
26 const char *name; /**< domain name in audio manager */
27 const char *bus_name; /**< audio manager's internal bus name
28 (not to confuse this with D-Bus name) */
29 const char *node_name; /**< node name on audio manager's internal bus*/
35 struct am_nodereg_data {
36 const char *key; /* for node lookup's */
41 dbus_uint16_t state; /* 1=on, 2=off */
45 dbus_int16_t status; /* 1=available, 2=unavailable */
46 dbus_int16_t reason; /* 1=newmedia, 2=same media, 3=nomedia */
49 dbus_uint16_t mainvol;
50 dbus_uint16_t interrupt; /* 1=off, 2=interrupted */
53 struct am_nodeunreg_data {
59 struct am_connect_data {
61 dbus_uint16_t connection;
75 pa_audiomgr *pa_audiomgr_init(struct userdata *);
76 void pa_audiomgr_done(struct userdata *);
78 void pa_audiomgr_register_domain(struct userdata *);
79 void pa_audiomgr_domain_registered(struct userdata *, uint16_t, uint16_t,
82 void pa_audiomgr_unregister_domain(struct userdata *, pa_bool_t);
85 void pa_audiomgr_register_node(struct userdata *, mir_node *);
86 void pa_audiomgr_node_registered(struct userdata *, uint16_t, uint16_t,
89 void pa_audiomgr_unregister_node(struct userdata *, mir_node *);
90 void pa_audiomgr_node_unregistered(struct userdata *, am_nodeunreg_data *);
92 void pa_audiomgr_connect(struct userdata *, am_connect_data *);
93 void pa_audiomgr_disconnect(struct userdata *, am_connect_data *);
101 * indent-tabs-mode: nil