db.h File Reference

#include <sys/types.h>
#include <sys/cdefs.h>
#include <limits.h>

Include dependency graph for db.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  __db
struct  BTREEINFO
struct  DBT
struct  HASHINFO
struct  RECNOINFO

Defines

#define __R_UNUSED   2
#define _DB_H   1
#define BTREEMAGIC   0x053162
#define BTREEVERSION   3
#define DB_LOCK   0x2000
#define DB_SHMEM   0x4000
#define DB_TXN   0x8000
#define HASHMAGIC   0x061561
#define HASHVERSION   2
#define MAX_PAGE_NUMBER   0xffffffff
#define MAX_PAGE_OFFSET   65535
#define MAX_REC_NUMBER   0xffffffff
#define R_CURSOR   1
#define R_DUP   0x01
#define R_FIRST   3
#define R_FIXEDLEN   0x01
#define R_IAFTER   4
#define R_IBEFORE   5
#define R_LAST   6
#define R_NEXT   7
#define R_NOKEY   0x02
#define R_NOOVERWRITE   8
#define R_PREV   9
#define R_RECNOSYNC   11
#define R_SETCURSOR   10
#define R_SNAPSHOT   0x04
#define RET_ERROR   -1
#define RET_SPECIAL   1
#define RET_SUCCESS   0

Typedefs

typedef struct __db DB
typedef u_int16_t indx_t
typedef short int16_t
typedef int int32_t
typedef __signed char int8_t
typedef u_int32_t pgno_t
typedef u_int32_t recno_t
typedef unsigned short u_int16_t
typedef unsigned int u_int32_t
typedef unsigned char u_int8_t

Enumerations

enum  DBTYPE { DB_BTREE, DB_HASH, DB_RECNO }

Functions

__BEGIN_DECLS DB *__dbopen __P ((const char *, int, int, DBTYPE, const void *))


Define Documentation

#define __R_UNUSED   2

Definition at line 93 of file db.h.

#define _DB_H   1

Definition at line 37 of file db.h.

#define BTREEMAGIC   0x053162

Definition at line 142 of file db.h.

Referenced by __bt_open(), and bt_meta().

#define BTREEVERSION   3

Definition at line 143 of file db.h.

Referenced by __bt_open(), and bt_meta().

#define DB_LOCK   0x2000

Definition at line 124 of file db.h.

Referenced by __bt_open().

#define DB_SHMEM   0x4000

Definition at line 125 of file db.h.

Referenced by __bt_open().

#define DB_TXN   0x8000

Definition at line 126 of file db.h.

Referenced by __bt_open().

#define HASHMAGIC   0x061561

Definition at line 160 of file db.h.

Referenced by __hash_open(), and flush_meta().

#define HASHVERSION   2

Definition at line 161 of file db.h.

Referenced by __hash_open(), and flush_meta().

#define MAX_PAGE_NUMBER   0xffffffff

Definition at line 78 of file db.h.

Referenced by mpool_new().

#define MAX_PAGE_OFFSET   65535

Definition at line 80 of file db.h.

Referenced by __bt_open().

#define MAX_REC_NUMBER   0xffffffff

Definition at line 82 of file db.h.

Referenced by __rec_open(), __rec_seq(), and __rec_sync().

#define R_CURSOR   1

#define R_DUP   0x01

Definition at line 147 of file db.h.

Referenced by __bt_open().

#define R_FIRST   3

#define R_FIXEDLEN   0x01

Definition at line 176 of file db.h.

Referenced by __rec_open().

#define R_IAFTER   4

Definition at line 95 of file db.h.

Referenced by __rec_iput(), and __rec_put().

#define R_IBEFORE   5

Definition at line 96 of file db.h.

Referenced by __rec_iput(), and __rec_put().

#define R_LAST   6

Definition at line 97 of file db.h.

Referenced by __bt_seq(), __bt_seqset(), __rec_seq(), and convert_bdb_to_sqlite3().

#define R_NEXT   7

#define R_NOKEY   0x02

Definition at line 177 of file db.h.

Referenced by __rec_open().

#define R_NOOVERWRITE   8

Definition at line 99 of file db.h.

Referenced by __bt_put(), __rec_put(), dbm_store(), hash_put(), and hsearch().

#define R_PREV   9

Definition at line 100 of file db.h.

Referenced by __bt_seq(), __bt_seqadv(), __bt_seqset(), and __rec_seq().

#define R_RECNOSYNC   11

Definition at line 102 of file db.h.

Referenced by __rec_sync().

#define R_SETCURSOR   10

Definition at line 101 of file db.h.

Referenced by __bt_put(), and __rec_put().

#define R_SNAPSHOT   0x04

Definition at line 178 of file db.h.

Referenced by __rec_open().

#define RET_ERROR   -1

#define RET_SPECIAL   1

#define RET_SUCCESS   0


Typedef Documentation

typedef struct __db DB

typedef u_int16_t indx_t

Definition at line 81 of file db.h.

typedef short int16_t

Definition at line 60 of file db.h.

typedef int int32_t

Definition at line 61 of file db.h.

typedef __signed char int8_t

Definition at line 59 of file db.h.

typedef u_int32_t pgno_t

Definition at line 79 of file db.h.

typedef u_int32_t recno_t

Definition at line 83 of file db.h.

typedef unsigned short u_int16_t

Definition at line 63 of file db.h.

typedef unsigned int u_int32_t

Definition at line 64 of file db.h.

typedef unsigned char u_int8_t

Definition at line 62 of file db.h.


Enumeration Type Documentation

enum DBTYPE

Enumerator:
DB_BTREE 
DB_HASH 
DB_RECNO 

Definition at line 104 of file db.h.


Function Documentation

DB *dbopen __P ( (const char *, int, int, DBTYPE, const void *)   ) 


Generated on Thu Apr 16 06:30:36 2015 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6