txt_db.h File Reference

#include <openssl/opensslconf.h>
#include <openssl/bio.h>
#include <openssl/stack.h>
#include <openssl/lhash.h>

Go to the source code of this file.

Data Structures

struct  txt_db_st

Defines

#define DB_ERROR_OK   0
#define DB_ERROR_MALLOC   1
#define DB_ERROR_INDEX_CLASH   2
#define DB_ERROR_INDEX_OUT_OF_RANGE   3
#define DB_ERROR_NO_INDEX   4
#define DB_ERROR_INSERT_INDEX_CLASH   5

Typedefs

typedef struct txt_db_st TXT_DB

Functions

TXT_DBTXT_DB_read (BIO *in, int num)
long TXT_DB_write (BIO *out, TXT_DB *db)
int TXT_DB_create_index (TXT_DB *db, int field, int(*qual)(char **), LHASH_HASH_FN_TYPE hash, LHASH_COMP_FN_TYPE cmp)
void TXT_DB_free (TXT_DB *db)
char ** TXT_DB_get_by_index (TXT_DB *db, int idx, char **value)
int TXT_DB_insert (TXT_DB *db, char **value)


Define Documentation

#define DB_ERROR_INDEX_CLASH   2

Definition at line 71 of file txt_db.h.

#define DB_ERROR_INDEX_OUT_OF_RANGE   3

Definition at line 72 of file txt_db.h.

#define DB_ERROR_INSERT_INDEX_CLASH   5

Definition at line 74 of file txt_db.h.

#define DB_ERROR_MALLOC   1

Definition at line 70 of file txt_db.h.

#define DB_ERROR_NO_INDEX   4

Definition at line 73 of file txt_db.h.

#define DB_ERROR_OK   0

Definition at line 69 of file txt_db.h.


Typedef Documentation

typedef struct txt_db_st TXT_DB


Function Documentation

int TXT_DB_create_index ( TXT_DB db,
int  field,
int(*)(char **)  qual,
LHASH_HASH_FN_TYPE  hash,
LHASH_COMP_FN_TYPE  cmp 
)

void TXT_DB_free ( TXT_DB db  ) 

char** TXT_DB_get_by_index ( TXT_DB db,
int  idx,
char **  value 
)

int TXT_DB_insert ( TXT_DB db,
char **  value 
)

TXT_DB* TXT_DB_read ( BIO in,
int  num 
)

long TXT_DB_write ( BIO out,
TXT_DB db 
)


Generated on Thu Aug 20 22:33:07 2009 for OpenXDAS by  doxygen 1.5.6