2 Unix SMB/CIFS implementation.
4 Copyright (C) Andrew Tridgell 1999
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27 /* single node of a list returned by tdb_search_keys */
28 typedef struct keys_node
30 struct keys_node *prev, *next;
35 TDB_LIST_NODE *tdb_search_keys(TDB_CONTEXT*, const char*);
36 void tdb_search_list_free(TDB_LIST_NODE*);
37 int32_t tdb_change_int32_atomic(TDB_CONTEXT *tdb, const char *keystr, int32_t *oldval, int32_t change_val);
38 int tdb_lock_bystring(TDB_CONTEXT *tdb, const char *keyval);
39 void tdb_unlock_bystring(TDB_CONTEXT *tdb, const char *keyval);
40 int32_t tdb_fetch_int32(TDB_CONTEXT *tdb, const char *keystr);
41 int tdb_store_int32(TDB_CONTEXT *tdb, const char *keystr, int32_t v);
42 int tdb_traverse_delete_fn(TDB_CONTEXT *the_tdb, TDB_DATA key, TDB_DATA dbuf,
44 int tdb_store_bystring(TDB_CONTEXT *tdb, const char *keystr, TDB_DATA data, int flags);
45 TDB_DATA tdb_fetch_bystring(TDB_CONTEXT *tdb, const char *keystr);
46 int tdb_unpack(TDB_CONTEXT *tdb, char *buf, int bufsize, const char *fmt, ...);
47 size_t tdb_pack(TDB_CONTEXT *tdb, char *buf, int bufsize, const char *fmt, ...);
49 #endif /* __TDBUTIL_H__ */