summaryrefslogtreecommitdiffstats
path: root/src/packet.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/packet.h')
-rw-r--r--src/packet.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/packet.h b/src/packet.h
new file mode 100644
index 00000000..781c0e66
--- /dev/null
+++ b/src/packet.h
@@ -0,0 +1,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