summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/packet.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pulsecore/packet.h')
-rw-r--r--src/pulsecore/packet.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pulsecore/packet.h b/src/pulsecore/packet.h
index 842582c8..bcac4a7f 100644
--- a/src/pulsecore/packet.h
+++ b/src/pulsecore/packet.h
@@ -27,9 +27,11 @@
#include <sys/types.h>
#include <inttypes.h>
+#include <pulsecore/refcnt.h>
+
typedef struct pa_packet {
+ PA_REFCNT_DECLARE;
enum { PA_PACKET_APPENDED, PA_PACKET_DYNAMIC } type;
- unsigned ref;
size_t length;
uint8_t *data;
} pa_packet;