]> code.delx.au - pulseaudio/blob - src/packet.h
781c0e66ad89b3024096dc64fef75bc36072dc41
[pulseaudio] / src / packet.h
1 #ifndef foopackethfoo
2 #define foopackethfoo
3
4 #include <sys/types.h>
5 #include <stdint.h>
6
7 struct packet {
8 unsigned ref;
9 size_t length;
10 uint8_t data[];
11 };
12
13 struct packet* packet_new(uint32_t length);
14
15 struct packet* packet_ref(struct packet *p);
16 void packet_unref(struct packet *p);
17
18 #endif