doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Typedefs | Functions
hash.h File Reference
#include "setup.h"
#include <stddef.h>
#include "llist.h"

Go to the source code of this file.

Classes

struct  _curl_hash
 
struct  _curl_hash_element
 

Typedefs

typedef void(* curl_hash_dtor )(void *)
 
typedef struct _curl_hash curl_hash
 
typedef struct _curl_hash_element curl_hash_element
 

Functions

int Curl_hash_init (curl_hash *, int, curl_hash_dtor)
 
curl_hashCurl_hash_alloc (int, curl_hash_dtor)
 
voidCurl_hash_add (curl_hash *, char *, size_t, void *)
 
int Curl_hash_delete (curl_hash *h, char *key, size_t key_len)
 
voidCurl_hash_pick (curl_hash *, char *, size_t)
 
void Curl_hash_apply (curl_hash *h, void *user, void(*cb)(void *user, void *ptr))
 
int Curl_hash_count (curl_hash *h)
 
void Curl_hash_clean (curl_hash *h)
 
void Curl_hash_clean_with_criterium (curl_hash *h, void *user, int(*comp)(void *, void *))
 
void Curl_hash_destroy (curl_hash *h)
 

Typedef Documentation

typedef struct _curl_hash curl_hash
typedef void(* curl_hash_dtor)(void *)

Definition at line 32 of file hash.h.

Function Documentation

void* Curl_hash_add ( curl_hash ,
char *  ,
size_t  ,
void  
)

Definition at line 144 of file hash.c.

curl_hash* Curl_hash_alloc ( int  ,
curl_hash_dtor   
)

Definition at line 95 of file hash.c.

void Curl_hash_apply ( curl_hash h,
void user,
void(*)(void *user, void *ptr)  cb 
)
void Curl_hash_clean ( curl_hash h)

Definition at line 233 of file hash.c.

void Curl_hash_clean_with_criterium ( curl_hash h,
void user,
int(*)(void *, void *)  comp 
)

Definition at line 245 of file hash.c.

int Curl_hash_count ( curl_hash h)
int Curl_hash_delete ( curl_hash h,
char *  key,
size_t  key_len 
)
void Curl_hash_destroy ( curl_hash h)

Definition at line 278 of file hash.c.

int Curl_hash_init ( curl_hash ,
int  ,
curl_hash_dtor   
)

Definition at line 69 of file hash.c.

void* Curl_hash_pick ( curl_hash ,
char *  ,
size_t   
)

Definition at line 195 of file hash.c.