add types: string_array_t and key_value_array_t

pull/37/head
YuQing 2018-10-04 20:22:43 +08:00
parent d74e3f3b13
commit 0a442615ae
1 changed files with 12 additions and 0 deletions

View File

@ -182,12 +182,24 @@ typedef struct
int len;
} string_t;
typedef struct
{
string_t *strings;
int count;
} string_array_t;
typedef struct
{
string_t key;
string_t value;
} key_value_pair_t;
typedef struct
{
key_value_pair_t *kv_pairs;
int count;
} key_value_array_t;
typedef void (*FreeDataFunc)(void *ptr);
typedef int (*CompareFunc)(void *p1, void *p2);
typedef void* (*MallocFunc)(size_t size);