Defines | Functions
hash.c File Reference
#include "curl_setup.h"
#include <curl/curl.h>
#include "hash.h"
#include "llist.h"
#include "curl_memory.h"
#include "memdebug.h"
Include dependency graph for hash.c:

Go to the source code of this file.

Defines

#define FETCH_LIST(x, y, z)   x->table[x->hash_func(y, z, x->slots)]

Functions

void * Curl_hash_add (struct curl_hash *h, void *key, size_t key_len, void *p)
void Curl_hash_clean (struct curl_hash *h)
void Curl_hash_clean_with_criterium (struct curl_hash *h, void *user, int(*comp)(void *, void *))
int Curl_hash_delete (struct curl_hash *h, void *key, size_t key_len)
void Curl_hash_destroy (struct curl_hash *h)
int Curl_hash_init (struct curl_hash *h, int slots, hash_function hfunc, comp_function comparator, curl_hash_dtor dtor)
struct curl_hash_elementCurl_hash_next_element (struct curl_hash_iterator *iter)
void * Curl_hash_pick (struct curl_hash *h, void *key, size_t key_len)
void Curl_hash_start_iterate (struct curl_hash *hash, struct curl_hash_iterator *iter)
size_t Curl_hash_str (void *key, size_t key_length, size_t slots_num)
size_t Curl_str_key_compare (void *k1, size_t key1_len, void *k2, size_t key2_len)
static void hash_element_dtor (void *user, void *element)
static struct curl_hash_elementmk_hash_element (const void *key, size_t key_len, const void *p)

Define Documentation

#define FETCH_LIST (   x,
  y,
  z 
)    x->table[x->hash_func(y, z, x->slots)]

Definition at line 124 of file hash.c.


Function Documentation

void* Curl_hash_add ( struct curl_hash h,
void *  key,
size_t  key_len,
void *  p 
)

Definition at line 134 of file hash.c.

void Curl_hash_clean ( struct curl_hash h)

Definition at line 260 of file hash.c.

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

Definition at line 267 of file hash.c.

int Curl_hash_delete ( struct curl_hash h,
void *  key,
size_t  key_len 
)

Definition at line 173 of file hash.c.

void Curl_hash_destroy ( struct curl_hash h)

Definition at line 241 of file hash.c.

int Curl_hash_init ( struct curl_hash h,
int  slots,
hash_function  hfunc,
comp_function  comparator,
curl_hash_dtor  dtor 
)

Definition at line 59 of file hash.c.

struct curl_hash_element* Curl_hash_next_element ( struct curl_hash_iterator iter) [read]

Definition at line 326 of file hash.c.

void* Curl_hash_pick ( struct curl_hash h,
void *  key,
size_t  key_len 
)

Definition at line 195 of file hash.c.

void Curl_hash_start_iterate ( struct curl_hash hash,
struct curl_hash_iterator iter 
)

Definition at line 317 of file hash.c.

size_t Curl_hash_str ( void *  key,
size_t  key_length,
size_t  slots_num 
)

Definition at line 294 of file hash.c.

size_t Curl_str_key_compare ( void *  k1,
size_t  key1_len,
void *  k2,
size_t  key2_len 
)

Definition at line 308 of file hash.c.

static void hash_element_dtor ( void *  user,
void *  element 
) [static]

Definition at line 35 of file hash.c.

static struct curl_hash_element* mk_hash_element ( const void *  key,
size_t  key_len,
const void *  p 
) [static, read]

Definition at line 101 of file hash.c.



rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:08