Server 0.0.1
HTTP/REST server implementation

src/hash/hash.c

Go to the documentation of this file.
00001 
00023 #define _GNU_SOURCE
00024 
00025 #include <search.h>
00026 #include <stdarg.h>
00027 
00028 #include "hash/hash.h"
00029 #include "class.h"
00030 
00031 static
00032 int
00033 hashCtor(void * _this, va_list * params)
00034 {
00035         return 0;
00036 }
00037 
00038 static
00039 inline
00040 void
00041 tDelete(void * node)
00042 {
00043         delete(node);
00044 }
00045 
00046 static
00047 void
00048 hashDtor(void * _this)
00049 {
00050         Hash this = _this;
00051 
00057         tdestroy(this->root, tDelete);
00058 }
00059 
00060 INIT_IFACE(Class, hashCtor, hashDtor, NULL);
00061 CREATE_CLASS(Hash, NULL, IFACE(Class));
00062 
00063 // vim: set ts=4 sw=4:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines