r21400: fix version to 3.0.24 (Thanks Karolin)
[Samba.git] / source / tdb / tdbutil.h
blob1a181a962f2ff24847eb3679b1c3a5c72032aa08
1 /*
2 Unix SMB/CIFS implementation.
3 tdb utility functions
4 Copyright (C) Andrew Tridgell 1999
5 Copyright (C) Rafal Szczesniak 2002
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 #ifndef __TDBUTIL_H__
23 #define __TDBUTIL_H__
26 /* single node of a list returned by tdb_search_keys */
27 typedef struct keys_node
29 struct keys_node *prev, *next;
30 TDB_DATA node_key;
31 } TDB_LIST_NODE;
34 TDB_LIST_NODE *tdb_search_keys(TDB_CONTEXT*, const char*);
35 void tdb_search_list_free(TDB_LIST_NODE*);
38 #endif /* __TDBUTIL_H__ */