version 1.2, 2013/06/30 22:10:27
|
version 1.3, 2013/07/09 00:18:19
|
Line 8 typedef struct tagRawPacket {
|
Line 8 typedef struct tagRawPacket {
|
uint8_t *r_next; |
uint8_t *r_next; |
} rpack_t; |
} rpack_t; |
|
|
|
#define RPACK_INITIALIZER { .r_len = 0, .r_buf = NULL, .r_next = NULL } |
#define RPACK_FREE(x) (assert((x)), memset((x), 0, sizeof(rpack_t))) |
#define RPACK_FREE(x) (assert((x)), memset((x), 0, sizeof(rpack_t))) |
#define RPACK_INIT(x, b, l) do { assert((x)); RPACK_FREE(x); \ |
#define RPACK_INIT(x, b, l) do { assert((x)); RPACK_FREE(x); \ |
(x)->r_buf = (b); \ |
(x)->r_buf = (b); \ |