Coda Distributed File System
Macros | Functions | Variables
ds_hash.c File Reference
#include <stdlib.h>
#include <odytypes.h>
#include "ds_list.h"
#include "ds_hash.h"
#include "ds_hash.private.h"
Include dependency graph for ds_hash.c:

Macros

#define DS_HASH_DEBUG   0
 

Functions

bool ds_hash_valid (ds_hash_t *t)
 
int ds_hash_count (ds_hash_t *t)
 
void * ds_hash_first (ds_hash_t *t, void *e)
 
void * ds_hash_last (ds_hash_t *t, void *e)
 
void * ds_hash_member (ds_hash_t *t, void *e)
 
ds_hash_tds_hash_create (COMPFN c, HFN h, int nbuckets, bool safe_destroy, bool dups_ok)
 
void ds_hash_destroy (ds_hash_t *t)
 
void * ds_hash_insert (ds_hash_t *t, void *e)
 
void * ds_hash_append (ds_hash_t *t, void *e)
 
void * ds_hash_get_first (ds_hash_t *t, void *e)
 
void * ds_hash_get_last (ds_hash_t *t, void *e)
 
void * ds_hash_remove (ds_hash_t *t, void *e)
 
void ds_hash_print (ds_hash_t *t, void(*printer)(void *))
 
ds_hash_iter_tds_hash_iter_create (ds_hash_t *t)
 
void ds_hash_iter_destroy (ds_hash_iter_t *i)
 
void * ds_hash_iter_next (ds_hash_iter_t *i)
 

Variables

const magic_t ds_hash_magic = 214795600
 
const magic_t ds_hash_iter_magic = 1144657940
 

Macro Definition Documentation

◆ DS_HASH_DEBUG

#define DS_HASH_DEBUG   0

Function Documentation

◆ ds_hash_append()

void * ds_hash_append ( ds_hash_t t,
void *  e 
)

◆ ds_hash_count()

int ds_hash_count ( ds_hash_t t)

◆ ds_hash_create()

ds_hash_t * ds_hash_create ( COMPFN  c,
HFN  h,
int  nbuckets,
bool  safe_destroy,
bool  dups_ok 
)

◆ ds_hash_destroy()

void ds_hash_destroy ( ds_hash_t t)

◆ ds_hash_first()

void * ds_hash_first ( ds_hash_t t,
void *  e 
)

◆ ds_hash_get_first()

void * ds_hash_get_first ( ds_hash_t t,
void *  e 
)

◆ ds_hash_get_last()

void * ds_hash_get_last ( ds_hash_t t,
void *  e 
)

◆ ds_hash_insert()

void * ds_hash_insert ( ds_hash_t t,
void *  e 
)

◆ ds_hash_iter_create()

ds_hash_iter_t * ds_hash_iter_create ( ds_hash_t t)

◆ ds_hash_iter_destroy()

void ds_hash_iter_destroy ( ds_hash_iter_t i)

◆ ds_hash_iter_next()

void * ds_hash_iter_next ( ds_hash_iter_t i)

◆ ds_hash_last()

void * ds_hash_last ( ds_hash_t t,
void *  e 
)

◆ ds_hash_member()

void * ds_hash_member ( ds_hash_t t,
void *  e 
)

◆ ds_hash_print()

void ds_hash_print ( ds_hash_t t,
void(*)(void *)  printer 
)

◆ ds_hash_remove()

void * ds_hash_remove ( ds_hash_t t,
void *  e 
)

◆ ds_hash_valid()

bool ds_hash_valid ( ds_hash_t t)

Variable Documentation

◆ ds_hash_iter_magic

const magic_t ds_hash_iter_magic = 1144657940

◆ ds_hash_magic

const magic_t ds_hash_magic = 214795600