summaryrefslogtreecommitdiffstats
path: root/polyp/subscribe.h
blob: a88677d2d68a09d43ee46f903045fc128e9d9ac9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef foosubscribehfoo
#define foosubscribehfoo

#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);

void pa_subscription_post(struct pa_core *c, enum pa_subscription_event_type t, uint32_t index);

#endif