summaryrefslogtreecommitdiff
path: root/polyp/pdispatch.h
diff options
context:
space:
mode:
Diffstat (limited to 'polyp/pdispatch.h')
-rw-r--r--polyp/pdispatch.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/polyp/pdispatch.h b/polyp/pdispatch.h
index 796c1e031..ff99b1844 100644
--- a/polyp/pdispatch.h
+++ b/polyp/pdispatch.h
@@ -29,14 +29,13 @@
struct pa_pdispatch;
-/* It is safe to destroy the calling pdispatch object from all callbacks */
-
struct pa_pdispatch_command {
void (*proc)(struct pa_pdispatch *pd, uint32_t command, uint32_t tag, struct pa_tagstruct *t, void *userdata);
};
struct pa_pdispatch* pa_pdispatch_new(struct pa_mainloop_api *m, const struct pa_pdispatch_command*table, unsigned entries);
-void pa_pdispatch_free(struct pa_pdispatch *pd);
+void pa_pdispatch_unref(struct pa_pdispatch *pd);
+struct pa_pdispatch* pa_pdispatch_ref(struct pa_pdispatch *pd);
int pa_pdispatch_run(struct pa_pdispatch *pd, struct pa_packet*p, void *userdata);