Home | History | Annotate | Download | only in pppd

Lines Matching defs:tdb_context

100 typedef struct tdb_context {
111 struct tdb_context *next; /* all tdbs to avoid multiple opens */
114 void (*log_fn)(struct tdb_context *tdb, int level, const char *, ...) PRINTF_ATTRIBUTE(3,4); /* logging function */
117 } TDB_CONTEXT;
119 typedef int (*tdb_traverse_func)(TDB_CONTEXT *, TDB_DATA, TDB_DATA, void *);
120 typedef void (*tdb_log_func)(TDB_CONTEXT *, int , const char *, ...);
123 TDB_CONTEXT *tdb_open(const char *name, int hash_size, int tdb_flags,
125 TDB_CONTEXT *tdb_open_ex(const char *name, int hash_size, int tdb_flags,
130 int tdb_reopen(TDB_CONTEXT *tdb);
132 void tdb_logging_function(TDB_CONTEXT *tdb, tdb_log_func);
133 enum TDB_ERROR tdb_error(TDB_CONTEXT *tdb);
134 const char *tdb_errorstr(TDB_CONTEXT *tdb);
135 TDB_DATA tdb_fetch(TDB_CONTEXT *tdb, TDB_DATA key);
136 int tdb_delete(TDB_CONTEXT *tdb, TDB_DATA key);
137 int tdb_store(TDB_CONTEXT *tdb, TDB_DATA key, TDB_DATA dbuf, int flag);
138 int tdb_append(TDB_CONTEXT *tdb, TDB_DATA key, TDB_DATA new_dbuf);
139 int tdb_close(TDB_CONTEXT *tdb);
140 TDB_DATA tdb_firstkey(TDB_CONTEXT *tdb);
141 TDB_DATA tdb_nextkey(TDB_CONTEXT *tdb, TDB_DATA key);
142 int tdb_traverse(TDB_CONTEXT *tdb, tdb_traverse_func fn, void *);
143 int tdb_exists(TDB_CONTEXT *tdb, TDB_DATA key);
144 int tdb_lockkeys(TDB_CONTEXT *tdb, u32 number, TDB_DATA keys[]);
145 void tdb_unlockkeys(TDB_CONTEXT *tdb);
146 int tdb_lockall(TDB_CONTEXT *tdb);
147 void tdb_unlockall(TDB_CONTEXT *tdb);
151 int tdb_chainlock(TDB_CONTEXT *tdb, TDB_DATA key);
152 int tdb_chainunlock(TDB_CONTEXT *tdb, TDB_DATA key);
155 void tdb_dump_all(TDB_CONTEXT *tdb);
156 int tdb_printfreelist(TDB_CONTEXT *tdb);