From 2a33ef2344145e12f1eea96214cdb317857321c1 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Tue, 31 Aug 2021 22:20:15 +0200 Subject: directory service added --- ecp/src/dir.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 ecp/src/dir.h (limited to 'ecp/src/dir.h') diff --git a/ecp/src/dir.h b/ecp/src/dir.h new file mode 100644 index 0000000..ae8daa9 --- /dev/null +++ b/ecp/src/dir.h @@ -0,0 +1,15 @@ +#define ECP_MAX_DIR_ITEM 30 +#define ECP_SIZE_DIR_ITEM 40 + +typedef struct ECPDirItem { + ECPNode node; + uint16_t capabilities; +} ECPDirItem; + +typedef struct ECPDirList { + ECPDirItem item[ECP_MAX_DIR_ITEM]; + uint16_t count; +} ECPDirList; + +void ecp_dir_parse_item(unsigned char *buf, ECPDirItem *item); +void ecp_dir_serialize_item(unsigned char *buf, ECPDirItem *item); -- cgit v1.2.3