lib: fix API

capn_new_string is exported as symbol but not in the header
capn_write_mem_packed is internal but the symbol is visible
This commit is contained in:
David Lamparter 2016-03-19 00:12:50 +01:00
parent b18dc3de8c
commit 00eaeeb936
2 changed files with 2 additions and 1 deletions

View file

@ -215,7 +215,7 @@ static int header_render(struct capn *c, struct capn_segment *seg, uint32_t *hea
return 0; return 0;
} }
int capn_write_mem_packed(struct capn *c, uint8_t *p, size_t sz) static int capn_write_mem_packed(struct capn *c, uint8_t *p, size_t sz)
{ {
struct capn_segment *seg; struct capn_segment *seg;
struct capn_ptr root; struct capn_ptr root;

View file

@ -209,6 +209,7 @@ int capn_setv64(capn_list64 p, int off, const uint64_t *data, int sz);
* datasz is in bytes, ptrs is # of pointers, sz is # of elements in the list * datasz is in bytes, ptrs is # of pointers, sz is # of elements in the list
* On an error a CAPN_NULL pointer is returned * On an error a CAPN_NULL pointer is returned
*/ */
capn_ptr capn_new_string(struct capn_segment *seg, const char *str, ssize_t sz);
capn_ptr capn_new_struct(struct capn_segment *seg, int datasz, int ptrs); capn_ptr capn_new_struct(struct capn_segment *seg, int datasz, int ptrs);
capn_ptr capn_new_interface(struct capn_segment *seg, int datasz, int ptrs); capn_ptr capn_new_interface(struct capn_segment *seg, int datasz, int ptrs);
capn_ptr capn_new_ptr_list(struct capn_segment *seg, int sz); capn_ptr capn_new_ptr_list(struct capn_segment *seg, int sz);