From 7a72c84ee74cb91fd9e98b1edc74e6b3c2ba1c36 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 16 Aug 2011 16:20:14 +0200 Subject: s3:dbwrap: move the db_open_rbt() prototype to a new header dbwrap_rbt.h --- source3/lib/dbwrap/dbwrap.h | 2 -- source3/lib/dbwrap/dbwrap_rbt.c | 1 + source3/lib/dbwrap/dbwrap_rbt.h | 29 +++++++++++++++++++++++++++++ source3/lib/talloc_dict.c | 1 + 4 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 source3/lib/dbwrap/dbwrap_rbt.h (limited to 'source3/lib') 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 . +*/ + +#ifndef __DBWRAP_RBT_H__ +#define __DBWRAP_RBT_H__ + +#include + +struct db_context; + +struct db_context *db_open_rbt(TALLOC_CTX *mem_ctx); + +#endif /* __DBWRAP_RBT_H__ */ diff --git a/source3/lib/talloc_dict.c b/source3/lib/talloc_dict.c index 3c5108d388..b7d4fe0dab 100644 --- a/source3/lib/talloc_dict.c +++ b/source3/lib/talloc_dict.c @@ -19,6 +19,7 @@ #include "includes.h" #include "dbwrap/dbwrap.h" +#include "dbwrap/dbwrap_rbt.h" #include "talloc_dict.h" #include "util_tdb.h" -- cgit