mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-29 11:08:35 -05:00
modify memory block reference counting to use the new reference counting API
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1342 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
9948cb09a3
commit
327e0cd8e1
3 changed files with 18 additions and 15 deletions
|
|
@ -26,6 +26,7 @@
|
|||
#include <inttypes.h>
|
||||
|
||||
#include <pulsecore/llist.h>
|
||||
#include <pulsecore/refcnt.h>
|
||||
|
||||
/* A pa_memblock is a reference counted memory block. PulseAudio
|
||||
* passed references to pa_memblocks around instead of copying
|
||||
|
|
@ -56,7 +57,7 @@ typedef void (*pa_memexport_revoke_cb_t)(pa_memexport *e, uint32_t block_id, voi
|
|||
struct pa_memblock {
|
||||
pa_memblock_type_t type;
|
||||
int read_only; /* boolean */
|
||||
unsigned ref; /* the reference counter */
|
||||
PA_REFCNT_DECLARE; /* the reference counter */
|
||||
size_t length;
|
||||
void *data;
|
||||
pa_mempool *pool;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue