txt_db.h File Reference

API published in:
API deprecated in:


#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 txt_db_st  TXT_DB

Functions

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

Define Documentation

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

Typedef Documentation

typedef struct txt_db_st TXT_DB
 

Function Documentation

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

Copyright © Nokia Corporation 2001-2008
Back to top