diff options
Diffstat (limited to 'ecp/src/dir.h')
-rw-r--r-- | ecp/src/dir.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ecp/src/dir.h b/ecp/src/dir.h index ae8daa9..2fcc50f 100644 --- a/ecp/src/dir.h +++ b/ecp/src/dir.h @@ -11,5 +11,8 @@ typedef struct ECPDirList { uint16_t count; } ECPDirList; -void ecp_dir_parse_item(unsigned char *buf, ECPDirItem *item); -void ecp_dir_serialize_item(unsigned char *buf, ECPDirItem *item); +ssize_t ecp_dir_parse(ECPDirList *list, unsigned char *buf, size_t buf_size); +int ecp_dir_serialize(ECPDirList *list, unsigned char *buf, size_t buf_size); + +void ecp_dir_item_parse(ECPDirItem *item, unsigned char *buf); +void ecp_dir_item_serialize(ECPDirItem *item, unsigned char *buf); |