#include "setup.h"
#include <string.h>
#include <stdlib.h>
#include "hash.h"
#include "llist.h"
Go to the source code of this file.
|
int | Curl_hash_init (curl_hash *h, int slots, curl_hash_dtor dtor) |
|
curl_hash * | Curl_hash_alloc (int slots, curl_hash_dtor dtor) |
|
void * | Curl_hash_add (curl_hash *h, char *key, size_t key_len, void *p) |
|
void * | Curl_hash_pick (curl_hash *h, char *key, size_t key_len) |
|
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) |
|
#define find_slot |
( |
|
__h, |
|
|
|
__k, |
|
|
|
__k_len |
|
) |
| (hash_str(__k, __k_len) % (__h)->slots) |
void* Curl_hash_pick |
( |
curl_hash * |
h, |
|
|
char * |
key, |
|
|
size_t |
key_len |
|
) |
| |