diff options
author | Lennart Poettering <lennart@poettering.net> | 2006-04-24 19:29:15 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2006-04-24 19:29:15 +0000 |
commit | 820c118f9c57c7a7767765efc802502632ad8da2 (patch) | |
tree | dd695cb6183b20ac997907d9c556d98457d827e4 /src/polypcore/pdispatch.h | |
parent | d26621371e6bf5040fe833f046ff81a1c7cac94b (diff) |
* rework reference counting in the client libraries: now refcounting goes
strictly "one-way" - the "bigger" object refcounts the "smaller" one, never the
other way round.
* when registering for a reply packet in pdispatch, specify a function that is
called when the pdispatch object is destroyed but the reply hasn't yet been
recieved.
* move prototype of pa_free_cb from stream.h to def.h
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@794 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/polypcore/pdispatch.h')
-rw-r--r-- | src/polypcore/pdispatch.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/polypcore/pdispatch.h b/src/polypcore/pdispatch.h index aa898abf..0074e8b3 100644 --- a/src/polypcore/pdispatch.h +++ b/src/polypcore/pdispatch.h @@ -24,6 +24,7 @@ #include <inttypes.h> #include <polyp/mainloop-api.h> +#include <polyp/def.h> #include <polypcore/tagstruct.h> #include <polypcore/packet.h> @@ -38,7 +39,7 @@ pa_pdispatch* pa_pdispatch_ref(pa_pdispatch *pd); int pa_pdispatch_run(pa_pdispatch *pd, pa_packet*p, const void*creds, void *userdata); -void pa_pdispatch_register_reply(pa_pdispatch *pd, uint32_t tag, int timeout, pa_pdispatch_cb_t callback, void *userdata); +void pa_pdispatch_register_reply(pa_pdispatch *pd, uint32_t tag, int timeout, pa_pdispatch_cb_t callback, void *userdata, pa_free_cb_t free_cb); int pa_pdispatch_is_pending(pa_pdispatch *pd); |