ELinks 0.16.1.1
hash.h File Reference
#include "util/lists.h"
Include dependency graph for hash.h:
This graph shows which files directly or indirectly include this file:

Data Structures

struct  hash_item
struct  hash

Typedefs

typedef unsigned long hash_value_T
 This should be hopefully always 32bit at least.
typedef hash_value_T(* hash_func_T) (const char *key, unsigned int keylen, hash_value_T magic)

Typedef Documentation

◆ hash_func_T

typedef hash_value_T(* hash_func_T) (const char *key, unsigned int keylen, hash_value_T magic)

◆ hash_value_T

typedef unsigned long hash_value_T

This should be hopefully always 32bit at least.

I'm not sure what will happen when this will be of other length, but it should still work ok. –pasky

Function Documentation

◆ add_hash_item()

struct hash_item * add_hash_item ( struct hash * hash,
const char * key,
unsigned int keylen,
void * value )
related

◆ del_hash_item()

void del_hash_item ( struct hash * hash,
struct hash_item * item )
related

◆ free_hash()

void free_hash ( struct hash ** hashp)
related

◆ get_hash_item()

struct hash_item * get_hash_item ( struct hash * hash,
const char * key,
unsigned int keylen )
related

◆ init_hash8()

struct hash * init_hash8 ( void )
related