diff options
Diffstat (limited to 'src/httpd_Map.h')
-rw-r--r-- | src/httpd_Map.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/httpd_Map.h b/src/httpd_Map.h new file mode 100644 index 0000000..0cbac57 --- /dev/null +++ b/src/httpd_Map.h @@ -0,0 +1,24 @@ +#ifndef HTTPD_MAP_H_ +#define HTTPD_MAP_H_ 1 + +#include <stddef.h> + +#if __cplusplus +extern "C" { +#define VOID +#else +#define VOID void +#endif + +typedef void * uMap; + +uMap Httpd_MapCreate(VOID); +void * Httpd_MapData(uMap map, size_t keylen, const char * key); +int Httpd_MapStore(uMap map, size_t keylen, const char * key, void * data); +void Httpd_MapDestroy(uMap map, void (*destroy)(void *)); + +#if __cplusplus +} +#endif + +#endif |