57#ifndef CNID_DBD_DBIF_H
58#define CNID_DBD_DBIF_H 1
69#define DBIF_IDX_DEVINO 1
70#define DBIF_IDX_DIDNAME 2
71#define DBIF_IDX_NAME 3
73#define LOCKFILENAME "lock"
105int dbif_get(
DBD *,
const int, DBT *, DBT *, uint32_t);
107int dbif_put(
DBD *,
const int, DBT *, DBT *, uint32_t);
Part of Netatalk's AppleDouble implementatation.
uint32_t cnid_t
Definition adouble.h:156
int dbif_dump(DBD *dbd, int dumpindexes)
Definition dbif.c:1196
int dbif_env_open(DBD *dbd, struct db_param *dbp, uint32_t dbenv_oflags)
Definition dbif.c:415
int dbif_txn_commit(DBD *)
Definition dbif.c:1056
int dbif_txn_close(DBD *dbd, int ret)
Close a transaction based on ret code.
Definition dbif.c:1114
int dbif_idwalk(DBD *dbd, cnid_t *cnid, int close)
Iterates over dbd, returning cnids.
Definition dbif.c:1382
int dbif_env_remove(const char *path)
Definition dbif.c:800
int dbif_del(DBD *, const int, DBT *, uint32_t)
Definition dbif.c:934
int dbif_count(DBD *, const int, uint32_t *)
Definition dbif.c:1150
int dbif_copy_rootinfokey(DBD *srcdbd, DBD *destdbd)
Definition dbif.c:1168
int dbif_close(DBD *dbd)
Definition dbif.c:765
int dbif_search(DBD *dbd, DBT *key, char *resbuf)
Search the database by name.
Definition dbif.c:980
int dbif_pget(DBD *, const int, DBT *, DBT *, DBT *, uint32_t)
int dbif_put(DBD *, const int, DBT *, DBT *, uint32_t)
Definition dbif.c:905
int dbif_txn_abort(DBD *)
Definition dbif.c:1081
DBD * dbif_init(const char *envhome, const char *dbname)
Definition dbif.c:362
int dbif_txn_begin(DBD *)
Definition dbif.c:1031
int dbif_get(DBD *, const int, DBT *, DBT *, uint32_t)
Definition dbif.c:883
int dbif_open(DBD *dbd, struct db_param *dbp, int reindex)
Definition dbif.c:549
#define DBIF_DB_CNT
Definition dbif.h:66
int dbif_txn_checkpoint(DBD *, uint32_t, uint32_t, uint32_t)
Definition dbif.c:1135
static DBD * dbd
Definition etc/cnid_dbd/main.c:45
static struct db_param * dbp
Definition etc/cnid_dbd/main.c:49
#define key
Definition hash.c:36
DB_TXN * db_txn
Definition dbif.h:91
FILE * db_errlog
Definition dbif.h:95
DB_ENV * db_env
Definition dbif.h:89
struct db_param db_param
Definition dbif.h:90
DBC * db_cur
Definition dbif.h:92
char * db_envhome
Definition dbif.h:93
db_table db_table[DBIF_DB_CNT]
Definition dbif.h:96
char * db_filename
Definition dbif.h:94
uint32_t openflags
Definition dbif.h:84
DBTYPE type
Definition dbif.h:85
uint32_t flags
Definition dbif.h:83
char * name
Definition dbif.h:81
DB * db
Definition dbif.h:82
Definition include/atalk/directory.h:81