stasis-aries-wal/pbl/pbl.h

41 lines
1,018 B
C
Raw Normal View History

2004-06-24 21:10:31 +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
@see lhtable.h which replaces this interface.
2004-06-24 21:10:31 +00:00
*/
#ifndef PBL_H
#define PBL_H
#ifdef PBL_COMPAT
2004-06-24 21:10:31 +00:00
#include <stasis/common.h>
#include <stdio.h>
2004-06-24 21:10:31 +00:00
BEGIN_C_DECLS
struct pblHashTable_t;
typedef struct pblHashTable_t pblHashTable_t;
2004-06-24 21:10:31 +00:00
pblHashTable_t * pblHtCreate( );
2004-06-24 21:10:31 +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
END_C_DECLS
2004-06-24 21:10:31 +00:00
#else
#error pbl.h was included, but PBL_COMPAT is not defined!
2004-06-24 21:10:31 +00:00
#endif
#endif