2004-06-24 21:10:31 +00:00
|
|
|
|
2006-06-20 22:05:45 +00:00
|
|
|
/**
|
|
|
|
This file defines pbl's hashtable interface. It is only included
|
|
|
|
in order to ease the transition away from PBL, and to remove all
|
|
|
|
of PBL from the source tree.
|
2004-06-24 21:10:31 +00:00
|
|
|
|
2006-06-20 22:05:45 +00:00
|
|
|
@see lhtable.h which replaces this interface.
|
2004-06-24 21:10:31 +00:00
|
|
|
*/
|
|
|
|
|
2006-06-20 22:05:45 +00:00
|
|
|
#ifndef PBL_H
|
|
|
|
#define PBL_H
|
|
|
|
#ifdef PBL_COMPAT
|
2004-06-24 21:10:31 +00:00
|
|
|
|
2006-06-20 22:05:45 +00:00
|
|
|
#include <stdio.h>
|
2004-06-24 21:10:31 +00:00
|
|
|
|
2006-06-20 22:05:45 +00:00
|
|
|
struct pblHashTable_t;
|
|
|
|
typedef struct pblHashTable_t pblHashTable_t;
|
2004-06-24 21:10:31 +00:00
|
|
|
|
2006-06-20 22:05:45 +00:00
|
|
|
pblHashTable_t * pblHtCreate( );
|
2004-06-24 21:10:31 +00:00
|
|
|
|
2006-06-20 22:05:45 +00:00
|
|
|
int pblHtDelete ( pblHashTable_t * h );
|
|
|
|
int pblHtInsert ( pblHashTable_t * h, const void * key, size_t keylen,
|
|
|
|
void * dataptr);
|
|
|
|
int pblHtRemove ( pblHashTable_t * h, const void * key, size_t keylen );
|
|
|
|
void * pblHtLookup ( pblHashTable_t * h, const void * key, size_t keylen );
|
|
|
|
void * pblHtFirst ( pblHashTable_t * h );
|
|
|
|
void * pblHtNext ( pblHashTable_t * h );
|
|
|
|
void * pblHtCurrent ( pblHashTable_t * h );
|
|
|
|
void * pblHtCurrentKey ( pblHashTable_t * h );
|
2004-06-24 21:10:31 +00:00
|
|
|
|
|
|
|
#else
|
2006-06-20 22:05:45 +00:00
|
|
|
#error pbl.h was included, but PBL_COMPAT is not defined!
|
2004-06-24 21:10:31 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|