partial implementation of native protocol

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@30 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2004-06-20 01:12:13 +00:00
parent a84f38e611
commit eecf602476
16 changed files with 683 additions and 113 deletions

View file

@ -5,12 +5,14 @@
#include <stdint.h>
struct packet {
enum { PACKET_APPENDED, PACKET_DYNAMIC } type;
unsigned ref;
size_t length;
uint8_t data[];
uint8_t *data;
};
struct packet* packet_new(uint32_t length);
struct packet* packet_new(size_t length);
struct packet* packet_new_dynamic(uint8_t* data, size_t length);
struct packet* packet_ref(struct packet *p);
void packet_unref(struct packet *p);