diff options
author | Michael Adam <obnox@samba.org> | 2011-08-16 16:20:14 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2011-10-11 14:17:55 +0200 |
commit | 7a72c84ee74cb91fd9e98b1edc74e6b3c2ba1c36 (patch) | |
tree | 7e8c044a7fdcaba69d11ed1c58ed15eed13c8ae5 /source3/lib/dbwrap | |
parent | c768121661cf5e845ceca3b04181937c36106484 (diff) | |
download | samba-7a72c84ee74cb91fd9e98b1edc74e6b3c2ba1c36.tar.gz samba-7a72c84ee74cb91fd9e98b1edc74e6b3c2ba1c36.tar.bz2 samba-7a72c84ee74cb91fd9e98b1edc74e6b3c2ba1c36.zip |
s3:dbwrap: move the db_open_rbt() prototype to a new header dbwrap_rbt.h
Diffstat (limited to 'source3/lib/dbwrap')
-rw-r--r-- | source3/lib/dbwrap/dbwrap.h | 2 | ||||
-rw-r--r-- | source3/lib/dbwrap/dbwrap_rbt.c | 1 | ||||
-rw-r--r-- | source3/lib/dbwrap/dbwrap_rbt.h | 29 |
3 files changed, 30 insertions, 2 deletions
diff --git a/source3/lib/dbwrap/dbwrap.h b/source3/lib/dbwrap/dbwrap.h index ab52783388..dbefe7bfd6 100644 --- a/source3/lib/dbwrap/dbwrap.h +++ b/source3/lib/dbwrap/dbwrap.h @@ -56,8 +56,6 @@ struct db_context { bool persistent; }; -struct db_context *db_open_rbt(TALLOC_CTX *mem_ctx); - NTSTATUS dbwrap_delete(struct db_context *db, TDB_DATA key); NTSTATUS dbwrap_store(struct db_context *db, TDB_DATA key, diff --git a/source3/lib/dbwrap/dbwrap_rbt.c b/source3/lib/dbwrap/dbwrap_rbt.c index fa91d8cb95..699f922fa5 100644 --- a/source3/lib/dbwrap/dbwrap_rbt.c +++ b/source3/lib/dbwrap/dbwrap_rbt.c @@ -19,6 +19,7 @@ #include "includes.h" #include "dbwrap/dbwrap.h" +#include "dbwrap/dbwrap_rbt.h" #include "../lib/util/rbtree.h" #define DBWRAP_RBT_ALIGN(_size_) (((_size_)+15)&~15) diff --git a/source3/lib/dbwrap/dbwrap_rbt.h b/source3/lib/dbwrap/dbwrap_rbt.h new file mode 100644 index 0000000000..1716879de6 --- /dev/null +++ b/source3/lib/dbwrap/dbwrap_rbt.h @@ -0,0 +1,29 @@ +/* + Unix SMB/CIFS implementation. + Database interface wrapper around red-black trees + Copyright (C) Volker Lendecke 2007, 2008 + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. +*/ + +#ifndef __DBWRAP_RBT_H__ +#define __DBWRAP_RBT_H__ + +#include <talloc.h> + +struct db_context; + +struct db_context *db_open_rbt(TALLOC_CTX *mem_ctx); + +#endif /* __DBWRAP_RBT_H__ */ |