taskrambler  v0.1.8
Web server and task management solution.
hash/hash.c File Reference
#include <search.h>
#include <stdarg.h>
#include "hash/hash.h"
#include "class.h"
+ Include dependency graph for hash/hash.c:

Go to the source code of this file.

Macros

#define _GNU_SOURCE
 

Functions

static int hashCtor (void *_this, va_list *params)
 
static void tDelete (const void *node, const int depth)
 
static void hashDtor (void *_this)
 
 INIT_IFACE (Class, hashCtor, hashDtor, NULL)
 
 CREATE_CLASS (Hash, NULL, IFACE(Class))
 

Detailed Description

Author
Georg Hopp

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file hash/hash.c.

Macro Definition Documentation

#define _GNU_SOURCE

Definition at line 23 of file hash/hash.c.

Function Documentation

CREATE_CLASS ( Hash  ,
NULL  ,
IFACE(Class)   
)
static int hashCtor ( void *  _this,
va_list *  params 
)
static

Definition at line 33 of file hash/hash.c.

34 {
35  return 0;
36 }
static void hashDtor ( void *  _this)
static

Definition at line 48 of file hash/hash.c.

References hashCleanup().

49 {
50  Hash this = _this;
51 
52  hashCleanup(this);
53 }
void hashCleanup(Hash)
Definition: cleanup.c:35

+ Here is the call graph for this function:

INIT_IFACE ( Class  ,
hashCtor  ,
hashDtor  ,
NULL   
)
static void tDelete ( const void *  node,
const int  depth 
)
inlinestatic

Definition at line 41 of file hash/hash.c.

42 {
43  delete(node);
44 }