mirror of
https://github.com/ntop/n2n.git
synced 2024-09-19 00:21:11 +02:00
Factor out strbuf abstraction into its own header
This commit is contained in:
parent
f3e305b254
commit
7590ed51d5
|
@ -19,15 +19,7 @@
|
|||
#include "n2n.h"
|
||||
#include "edge_utils_win32.h"
|
||||
|
||||
typedef struct strbuf {
|
||||
size_t size;
|
||||
char str[];
|
||||
} strbuf_t;
|
||||
|
||||
#define STRBUF_INIT(buf,p) do { \
|
||||
buf = (void *)p; \
|
||||
buf->size = sizeof(*p) - sizeof(size_t); \
|
||||
} while(0)
|
||||
#include "strbuf.h"
|
||||
|
||||
enum n2n_mgmt_type {
|
||||
N2N_MGMT_UNKNOWN = 0,
|
||||
|
|
Loading…
Reference in New Issue
Block a user