Lines Matching refs:TDB_CONTEXT
134 typedef struct tdb_context TDB_CONTEXT;
136 typedef int (*tdb_traverse_func)(struct tdb_context *, TDB_DATA, TDB_DATA, void *);
137 typedef void (*tdb_log_func)(struct tdb_context *, enum tdb_debug_level, const char *, ...) PRINTF_ATTRIBUTE(3, 4);
145 struct tdb_context *tdb_open(const char *name, int hash_size, int tdb_flags,
147 struct tdb_context *tdb_open_ex(const char *name, int hash_size, int tdb_flags,
151 void tdb_set_max_dead(struct tdb_context *tdb, int max_dead);
153 int tdb_reopen(struct tdb_context *tdb);
155 void tdb_set_logging_function(struct tdb_context *tdb, const struct tdb_logging_context *log_ctx);
156 enum TDB_ERROR tdb_error(struct tdb_context *tdb);
157 const char *tdb_errorstr(struct tdb_context *tdb);
158 TDB_DATA tdb_fetch(struct tdb_context *tdb, TDB_DATA key);
159 int tdb_parse_record(struct tdb_context *tdb, TDB_DATA key,
163 int tdb_delete(struct tdb_context *tdb, TDB_DATA key);
164 int tdb_store(struct tdb_context *tdb, TDB_DATA key, TDB_DATA dbuf, int flag);
165 int tdb_append(struct tdb_context *tdb, TDB_DATA key, TDB_DATA new_dbuf);
166 int tdb_close(struct tdb_context *tdb);
167 TDB_DATA tdb_firstkey(struct tdb_context *tdb);
168 TDB_DATA tdb_nextkey(struct tdb_context *tdb, TDB_DATA key);
169 int tdb_traverse(struct tdb_context *tdb, tdb_traverse_func fn, void *);
170 int tdb_traverse_read(struct tdb_context *tdb, tdb_traverse_func fn, void *);
171 int tdb_exists(struct tdb_context *tdb, TDB_DATA key);
172 int tdb_lockall(struct tdb_context *tdb);
173 int tdb_lockall_nonblock(struct tdb_context *tdb);
174 int tdb_unlockall(struct tdb_context *tdb);
175 int tdb_lockall_read(struct tdb_context *tdb);
176 int tdb_lockall_read_nonblock(struct tdb_context *tdb);
177 int tdb_unlockall_read(struct tdb_context *tdb);
178 int tdb_lockall_mark(struct tdb_context *tdb);
179 int tdb_lockall_unmark(struct tdb_context *tdb);
180 const char *tdb_name(struct tdb_context *tdb);
181 int tdb_fd(struct tdb_context *tdb);
182 tdb_log_func tdb_log_fn(struct tdb_context *tdb);
183 void *tdb_get_logging_private(struct tdb_context *tdb);
184 int tdb_transaction_start(struct tdb_context *tdb);
185 int tdb_transaction_commit(struct tdb_context *tdb);
186 int tdb_transaction_cancel(struct tdb_context *tdb);
187 int tdb_transaction_recover(struct tdb_context *tdb);
188 int tdb_get_seqnum(struct tdb_context *tdb);
189 int tdb_hash_size(struct tdb_context *tdb);
190 size_t tdb_map_size(struct tdb_context *tdb);
191 int tdb_get_flags(struct tdb_context *tdb);
192 void tdb_enable_seqnum(struct tdb_context *tdb);
193 void tdb_increment_seqnum_nonblock(struct tdb_context *tdb);
196 int tdb_chainlock(struct tdb_context *tdb, TDB_DATA key);
197 int tdb_chainlock_nonblock(struct tdb_context *tdb, TDB_DATA key);
198 int tdb_chainunlock(struct tdb_context *tdb, TDB_DATA key);
199 int tdb_chainlock_read(struct tdb_context *tdb, TDB_DATA key);
200 int tdb_chainunlock_read(struct tdb_context *tdb, TDB_DATA key);
201 int tdb_chainlock_mark(struct tdb_context *tdb, TDB_DATA key);
202 int tdb_chainlock_unmark(struct tdb_context *tdb, TDB_DATA key);
205 void tdb_dump_all(struct tdb_context *tdb);
206 int tdb_printfreelist(struct tdb_context *tdb);
207 int tdb_validate_freelist(struct tdb_context *tdb, int *pnum_entries);