add types: string_array_t and key_value_array_t
parent
d74e3f3b13
commit
0a442615ae
|
|
@ -182,12 +182,24 @@ typedef struct
|
||||||
int len;
|
int len;
|
||||||
} string_t;
|
} string_t;
|
||||||
|
|
||||||
|
typedef struct
|
||||||
|
{
|
||||||
|
string_t *strings;
|
||||||
|
int count;
|
||||||
|
} string_array_t;
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
string_t key;
|
string_t key;
|
||||||
string_t value;
|
string_t value;
|
||||||
} key_value_pair_t;
|
} key_value_pair_t;
|
||||||
|
|
||||||
|
typedef struct
|
||||||
|
{
|
||||||
|
key_value_pair_t *kv_pairs;
|
||||||
|
int count;
|
||||||
|
} key_value_array_t;
|
||||||
|
|
||||||
typedef void (*FreeDataFunc)(void *ptr);
|
typedef void (*FreeDataFunc)(void *ptr);
|
||||||
typedef int (*CompareFunc)(void *p1, void *p2);
|
typedef int (*CompareFunc)(void *p1, void *p2);
|
||||||
typedef void* (*MallocFunc)(size_t size);
|
typedef void* (*MallocFunc)(size_t size);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue