include the capn_segment as a header when allocating

This commit is contained in:
James McKaskill 2013-05-11 22:44:38 -04:00
parent 65c23b9218
commit 85b7a99429
2 changed files with 26 additions and 25 deletions

1
capn.h
View file

@ -218,6 +218,7 @@ int capn_init_fp(struct capn *c, FILE *f, int packed);
int capn_init_mem(struct capn *c, const uint8_t *p, size_t sz, int packed);
void capn_free(struct capn *c);
void capn_reset_copy(struct capn *c);
/* capn_stream encapsulates the needed fields for capn_(deflate|inflate) in a
* similar manner to z_stream from zlib