diff options
author | Lennart Poettering <lennart@poettering.net> | 2007-09-11 12:42:17 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2007-09-11 12:42:17 +0000 |
commit | 597a1c4e82f2bb84e983d0cbb9be7e79c5607c00 (patch) | |
tree | aa7d83a0d389a65a4ac2eca17ecf9d2d39893e80 /src/pulse/internal.h | |
parent | 55d9fcb126247041a8934a060e1a441a26b2be8d (diff) |
port client libs to refcnt.h
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1802 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/pulse/internal.h')
-rw-r--r-- | src/pulse/internal.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/pulse/internal.h b/src/pulse/internal.h index e5c9ef12..95593adb 100644 --- a/src/pulse/internal.h +++ b/src/pulse/internal.h @@ -41,13 +41,14 @@ #include <pulsecore/mcalign.h> #include <pulsecore/memblockq.h> #include <pulsecore/hashmap.h> +#include <pulsecore/refcnt.h> #include "client-conf.h" #define DEFAULT_TIMEOUT (30) struct pa_context { - int ref; + PA_REFCNT_DECLARE; char *name; pa_mainloop_api* mainloop; @@ -96,7 +97,7 @@ typedef struct pa_index_correction { } pa_index_correction; struct pa_stream { - int ref; + PA_REFCNT_DECLARE; pa_context *context; pa_mainloop_api *mainloop; PA_LLIST_FIELDS(pa_stream); @@ -161,7 +162,8 @@ struct pa_stream { typedef void (*pa_operation_cb_t)(void); struct pa_operation { - int ref; + PA_REFCNT_DECLARE; + pa_context *context; pa_stream *stream; |