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