]> code.delx.au - pulseaudio/blob - polyp/subscribe.h
info and subscription work
[pulseaudio] / polyp / subscribe.h
1 #ifndef foosubscribehfoo
2 #define foosubscribehfoo
3
4 #include "core.h"
5 #include "native-common.h"
6
7 struct pa_subscription;
8 struct pa_subscription_event;
9
10 struct pa_subscription* pa_subscription_new(struct pa_core *c, enum pa_subscription_mask m, void (*callback)(struct pa_core *c, enum pa_subscription_event_type t, uint32_t index, void *userdata), void *userdata);
11 void pa_subscription_free(struct pa_subscription*s);
12 void pa_subscription_free_all(struct pa_core *c);
13
14 void pa_subscription_post(struct pa_core *c, enum pa_subscription_event_type t, uint32_t index);
15
16 #endif