Files

13 lines
293 B
C
Raw Permalink Normal View History

2016-02-23 15:19:56 -08:00
#pragma once
#include <stdbool.h>
struct buf;
struct packet;
2016-02-27 16:23:26 -08:00
void proto_init(void);
void proto_cleanup(void);
2016-02-26 14:09:37 -08:00
bool __attribute__ ((warn_unused_result)) proto_parse(struct buf *, struct packet *, void *);
2016-02-23 15:19:56 -08:00
void proto_serialize(struct packet *, struct buf *);
2016-02-27 16:23:26 -08:00
void proto_hello(struct buf **);