mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
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:
parent
a84f38e611
commit
eecf602476
16 changed files with 683 additions and 113 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue