]>
code.delx.au - pulseaudio/blob - src/pdispatch.h
1 #ifndef foopdispatchhfoo
2 #define foopdispatchhfoo
7 #include "mainloop-api.h"
11 struct pdispatch_command
{
12 int (*proc
)(struct pdispatch
*pd
, uint32_t command
, uint32_t tag
, struct tagstruct
*t
, void *userdata
);
15 struct pdispatch
* pdispatch_new(struct pa_mainloop_api
*m
, const struct pdispatch_command
*table
, unsigned entries
);
16 void pdispatch_free(struct pdispatch
*pd
);
18 int pdispatch_run(struct pdispatch
*pd
, struct packet
*p
, void *userdata
);
20 void pdispatch_register_reply(struct pdispatch
*pd
, uint32_t tag
, int timeout
, int (*cb
)(struct pdispatch
*pd
, uint32_t command
, uint32_t tag
, struct tagstruct
*t
, void *userdata
), void *userdata
);