OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions | Variables
lhash.c File Reference
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <openssl/crypto.h>
#include <openssl/lhash.h>

Go to the source code of this file.

Macros

#define MIN_NODES   16
 
#define UP_LOAD   (2*LH_LOAD_MULT) /* load times 256 (default 2) */
 
#define DOWN_LOAD   (LH_LOAD_MULT) /* load times 256 (default 1) */
 

Functions

_LHASHlh_new (LHASH_HASH_FN_TYPE h, LHASH_COMP_FN_TYPE c)
 
void lh_free (_LHASH *lh)
 
voidlh_insert (_LHASH *lh, void *data)
 
voidlh_delete (_LHASH *lh, const void *data)
 
voidlh_retrieve (_LHASH *lh, const void *data)
 
void lh_doall (_LHASH *lh, LHASH_DOALL_FN_TYPE func)
 
void lh_doall_arg (_LHASH *lh, LHASH_DOALL_ARG_FN_TYPE func, void *arg)
 
unsigned long lh_strhash (const char *c)
 
unsigned long lh_num_items (const _LHASH *lh)
 

Variables

const char lh_version [] ="lhash" OPENSSL_VERSION_PTEXT
 

Macro Definition Documentation

#define DOWN_LOAD   (LH_LOAD_MULT) /* load times 256 (default 1) */

Definition at line 108 of file lhash.c.

#define MIN_NODES   16

Definition at line 106 of file lhash.c.

#define UP_LOAD   (2*LH_LOAD_MULT) /* load times 256 (default 2) */

Definition at line 107 of file lhash.c.

Function Documentation

void* lh_delete ( _LHASH lh,
const void data 
)

Definition at line 217 of file lhash.c.

void lh_doall ( _LHASH lh,
LHASH_DOALL_FN_TYPE  func 
)

Definition at line 300 of file lhash.c.

void lh_doall_arg ( _LHASH lh,
LHASH_DOALL_ARG_FN_TYPE  func,
void arg 
)

Definition at line 305 of file lhash.c.

void lh_free ( _LHASH lh)

Definition at line 157 of file lhash.c.

void* lh_insert ( _LHASH lh,
void data 
)

Definition at line 179 of file lhash.c.

Definition at line 114 of file lhash.c.

unsigned long lh_num_items ( const _LHASH lh)

Definition at line 472 of file lhash.c.

void* lh_retrieve ( _LHASH lh,
const void data 
)

Definition at line 248 of file lhash.c.

unsigned long lh_strhash ( const char *  c)

Definition at line 443 of file lhash.c.

Variable Documentation

const char lh_version[] ="lhash" OPENSSL_VERSION_PTEXT

Definition at line 103 of file lhash.c.