summaryrefslogtreecommitdiffstats
path: root/polyp/subscribe.h
diff options
context:
space:
mode:
Diffstat (limited to 'polyp/subscribe.h')
-rw-r--r--polyp/subscribe.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/polyp/subscribe.h b/polyp/subscribe.h
index 38323faf..6980328f 100644
--- a/polyp/subscribe.h
+++ b/polyp/subscribe.h
@@ -22,16 +22,16 @@
USA.
***/
+typedef struct pa_subscription pa_subscription;
+typedef struct pa_subscription_event pa_subscription_event;
+
#include "core.h"
#include "native-common.h"
-struct pa_subscription;
-struct pa_subscription_event;
-
-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);
-void pa_subscription_free(struct pa_subscription*s);
-void pa_subscription_free_all(struct pa_core *c);
+pa_subscription* pa_subscription_new(pa_core *c, pa_subscription_mask m, void (*callback)(pa_core *c, pa_subscription_event_type t, uint32_t index, void *userdata), void *userdata);
+void pa_subscription_free(pa_subscription*s);
+void pa_subscription_free_all(pa_core *c);
-void pa_subscription_post(struct pa_core *c, enum pa_subscription_event_type t, uint32_t index);
+void pa_subscription_post(pa_core *c, pa_subscription_event_type t, uint32_t idx);
#endif