mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3:dbwrap: move the db_open_rbt() prototype to a new header dbwrap_rbt.h
This commit is contained in:
parent
c768121661
commit
7a72c84ee7
@ -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,
|
||||
|
@ -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)
|
||||
|
29
source3/lib/dbwrap/dbwrap_rbt.h
Normal file
29
source3/lib/dbwrap/dbwrap_rbt.h
Normal file
@ -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__ */
|
@ -19,6 +19,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "dbwrap/dbwrap.h"
|
||||
#include "dbwrap/dbwrap_rbt.h"
|
||||
#include "talloc_dict.h"
|
||||
#include "util_tdb.h"
|
||||
|
||||
|
@ -25,6 +25,7 @@
|
||||
#include "../librpc/gen_ndr/ndr_drsuapi.h"
|
||||
#include "util_tdb.h"
|
||||
#include "dbwrap/dbwrap.h"
|
||||
#include "dbwrap/dbwrap_rbt.h"
|
||||
#include "../libds/common/flag_mapping.h"
|
||||
#include "passdb.h"
|
||||
|
||||
|
@ -25,6 +25,7 @@
|
||||
#include "system/filesys.h"
|
||||
#include "locking/proto.h"
|
||||
#include "dbwrap/dbwrap.h"
|
||||
#include "dbwrap/dbwrap_rbt.h"
|
||||
#include "util_tdb.h"
|
||||
|
||||
#undef DBGC_CLASS
|
||||
|
@ -66,6 +66,7 @@
|
||||
#include "intl.h"
|
||||
#include "smb_signing.h"
|
||||
#include "dbwrap/dbwrap.h"
|
||||
#include "dbwrap/dbwrap_rbt.h"
|
||||
#include "smbldap.h"
|
||||
#include "../lib/util/bitmap.h"
|
||||
|
||||
|
@ -25,6 +25,7 @@
|
||||
#include "reg_objects.h"
|
||||
#include "util_tdb.h"
|
||||
#include "dbwrap/dbwrap.h"
|
||||
#include "dbwrap/dbwrap_rbt.h"
|
||||
#include "../libcli/registry/util_reg.h"
|
||||
|
||||
#undef DBGC_CLASS
|
||||
|
@ -30,6 +30,7 @@
|
||||
#include "nsswitch/winbind_client.h"
|
||||
#include "dbwrap/dbwrap.h"
|
||||
#include "dbwrap/dbwrap_open.h"
|
||||
#include "dbwrap/dbwrap_rbt.h"
|
||||
#include "talloc_dict.h"
|
||||
#include "async_smb.h"
|
||||
#include "libsmb/libsmb.h"
|
||||
|
@ -28,6 +28,7 @@
|
||||
#include "system/filesys.h"
|
||||
#include "dbwrap/dbwrap.h"
|
||||
#include "dbwrap/dbwrap_open.h"
|
||||
#include "dbwrap/dbwrap_rbt.h"
|
||||
#include "net.h"
|
||||
#include "../libcli/security/dom_sid.h"
|
||||
#include "cbuf.h"
|
||||
|
Loading…
Reference in New Issue
Block a user