Skip to content

Commit

Permalink
lib: Remove tdb_compat
Browse files Browse the repository at this point in the history
Signed-off-by: Volker Lendecke <[email protected]>
Reviewed-by: Michael Adam <[email protected]>
  • Loading branch information
vlendec authored and obnoxxx committed Mar 17, 2015
1 parent cf368cb commit de811f1
Show file tree
Hide file tree
Showing 29 changed files with 27 additions and 134 deletions.
1 change: 0 additions & 1 deletion .ycm_extra_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
'-Ilib/talloc',
'-Ilib/tdb',
'-Ilib/tdb/include',
'-Ilib/tdb_compat',
'-Ilib/tevent',
'-Ilib/tsocket',
'-Ilib/util/charset',
Expand Down
2 changes: 1 addition & 1 deletion buildtools/wafsamba/samba3.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def s3_fix_kwargs(bld, kwargs):
s3reldir = os_path_relpath(s3dir, bld.curdir)

# the extra_includes list is relative to the source3 directory
extra_includes = [ '.', 'include', 'lib', '../lib/tdb_compat' ]
extra_includes = [ '.', 'include', 'lib' ]
# local heimdal paths only included when USING_SYSTEM_KRB5 is not set
if not bld.CONFIG_SET("USING_SYSTEM_KRB5"):
extra_includes += [ '../source4/heimdal/lib/com_err',
Expand Down
2 changes: 0 additions & 2 deletions lib/tdb_compat/tdb_compat.c

This file was deleted.

32 changes: 0 additions & 32 deletions lib/tdb_compat/tdb_compat.h

This file was deleted.

16 changes: 0 additions & 16 deletions lib/tdb_compat/wscript

This file was deleted.

1 change: 0 additions & 1 deletion source3/.clang_complete
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
-I./../lib/tevent
-I./../lib/popt
-I./../lib/tdb/include
-I./../lib/tdb_compat
-I./include/autoconf
-I./include
-I./librpc
Expand Down
2 changes: 1 addition & 1 deletion source3/groupdb/mapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "groupdb/mapping.h"
#include "../libcli/security/security.h"
#include "lib/winbind_util.h"
#include "tdb_compat.h"
#include <tdb.h>
#include "groupdb/mapping_tdb.h"

static const struct mapping_backend *backend;
Expand Down
2 changes: 1 addition & 1 deletion source3/include/ctdbd_conn.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#ifndef _CTDBD_CONN_H
#define _CTDBD_CONN_H

#include "tdb_compat.h"
#include <tdb.h>

struct ctdbd_connection;
struct messaging_context;
Expand Down
2 changes: 1 addition & 1 deletion source3/include/printing.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
This file defines the low-level printing system interfaces used by the
SAMBA printing subsystem.
*/
#include "tdb_compat.h"
#include <tdb.h>
#include "lib/param/loadparm.h"

/* Extra fields above "LPQ_PRINTING" are used to map extra NT status codes. */
Expand Down
2 changes: 1 addition & 1 deletion source3/include/util_tdb.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#ifndef __TDBUTIL_H__
#define __TDBUTIL_H__

#include "tdb_compat.h"
#include <tdb.h>

#include <talloc.h> /* for tdb_wrap_open() */
#include "../libcli/util/ntstatus.h" /* for map_nt_error_from_tdb() */
Expand Down
18 changes: 0 additions & 18 deletions source3/lib/ctdbd_conn.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,6 @@

#include "messages.h"

/*
* It is not possible to include ctdb.h and tdb_compat.h (included via
* some other include above) without warnings. This fixes those
* warnings.
*/

#ifdef typesafe_cb
#undef typesafe_cb
#endif

#ifdef typesafe_cb_preargs
#undef typesafe_cb_preargs
#endif

#ifdef typesafe_cb_postargs
#undef typesafe_cb_postargs
#endif

/* paths to these include files come from --with-ctdb= in configure */

#include "ctdb.h"
Expand Down
18 changes: 0 additions & 18 deletions source3/lib/dbwrap/dbwrap_ctdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,6 @@
#include "dbwrap/dbwrap_rbt.h"
#include "lib/param/param.h"

/*
* It is not possible to include ctdb.h and tdb_compat.h (included via
* some other include above) without warnings. This fixes those
* warnings.
*/

#ifdef typesafe_cb
#undef typesafe_cb
#endif

#ifdef typesafe_cb_preargs
#undef typesafe_cb_preargs
#endif

#ifdef typesafe_cb_postargs
#undef typesafe_cb_postargs
#endif

#include "ctdb.h"
#include "ctdb_private.h"
#include "ctdbd_conn.h"
Expand Down
2 changes: 1 addition & 1 deletion source3/lib/eventlog/eventlog.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/

#include "tdb_compat.h"
#include <tdb.h>

/* Defines for TDB keys */
#define EVT_OLDEST_ENTRY "INFO/oldest_entry"
Expand Down
18 changes: 0 additions & 18 deletions source3/lib/messages_ctdbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,6 @@
#include "util_tdb.h"
#include "lib/util/iov_buf.h"

/*
* It is not possible to include ctdb.h and tdb_compat.h (included via
* some other include above) without warnings. This fixes those
* warnings.
*/

#ifdef typesafe_cb
#undef typesafe_cb
#endif

#ifdef typesafe_cb_preargs
#undef typesafe_cb_preargs
#endif

#ifdef typesafe_cb_postargs
#undef typesafe_cb_postargs
#endif

#include "ctdb.h"
#include "ctdb_private.h"
#include "ctdbd_conn.h"
Expand Down
2 changes: 1 addition & 1 deletion source3/lib/tdb_validate.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#define __TDB_VALIDATE_H__

#include "lib/replace/replace.h"
#include "tdb_compat.h"
#include <tdb.h>

/**
* Flag field for keeping track of the status of a validation.
Expand Down
2 changes: 1 addition & 1 deletion source3/libsmb/smb_share_modes.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include "includes.h"
#include "system/filesys.h"
#include "smb_share_modes.h"
#include "tdb_compat.h"
#include <tdb.h>
#include "librpc/gen_ndr/open_files.h"
#include <ccan/hash/hash.h>

Expand Down
2 changes: 1 addition & 1 deletion source3/modules/vfs_posix_eadb.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "librpc/gen_ndr/xattr.h"
#include "librpc/gen_ndr/ndr_xattr.h"
#include "../librpc/gen_ndr/ndr_netlogon.h"
#include "tdb_compat.h"
#include <tdb.h>
#include "lib/tdb_wrap/tdb_wrap.h"
#include "ntvfs/posix/posix_eadb.h"
#include "param/param.h"
Expand Down
4 changes: 2 additions & 2 deletions source3/passdb/wscript_build
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
bld.SAMBA3_MODULE('pdb_tdbsam',
subsystem='pdb',
source='pdb_tdb.c',
deps='samba-util tdb_compat dbwrap tdb-wrap3',
deps='samba-util dbwrap tdb-wrap3',
init_function='',
internal_module=bld.SAMBA3_IS_STATIC_MODULE('pdb_tdbsam'),
enabled=bld.SAMBA3_IS_ENABLED_MODULE('pdb_tdbsam'))
Expand Down Expand Up @@ -43,6 +43,6 @@ bld.SAMBA3_MODULE('pdb_samba_dsdb',
bld.SAMBA3_PYTHON('pypassdb',
source='py_passdb.c',
deps='pdb',
public_deps='samba-util tdb_compat talloc pyrpc_util',
public_deps='samba-util tdb talloc pyrpc_util',
realname='samba/samba3/passdb.so'
)
2 changes: 1 addition & 1 deletion source3/smbd/globals.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "smbd/globals.h"
#include "../lib/util/memcache.h"
#include "messages.h"
#include "tdb_compat.h"
#include <tdb.h>

int aio_pending_size = 100; /* tevent supports 100 signals SA_SIGINFO */
int outstanding_aio_calls = 0;
Expand Down
2 changes: 1 addition & 1 deletion source3/smbd/statcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "smbd/smbd.h"
#include "messages.h"
#include "smbprofile.h"
#include "tdb_compat.h"
#include <tdb.h>

/****************************************************************************
Stat cache code used in unix_convert.
Expand Down
14 changes: 7 additions & 7 deletions source3/wscript_build
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ bld.SAMBA3_SUBSYSTEM('AVAHI',

bld.SAMBA3_SUBSYSTEM('GROUPDB',
source='groupdb/mapping.c groupdb/mapping_tdb.c',
deps='tdb_compat')
deps='tdb')

bld.SAMBA3_SUBSYSTEM('TLDAP',
source='''lib/tldap.c
Expand Down Expand Up @@ -642,7 +642,7 @@ bld.SAMBA3_SUBSYSTEM('LOCKING',
locking/posix.c
locking/share_mode_lock.c''',
deps='''
tdb_compat
tdb
talloc
LEASES_DB
NDR_OPEN_FILES
Expand All @@ -663,7 +663,7 @@ else:

bld.SAMBA3_SUBSYSTEM('PRINTBASE',
source='''printing/notify.c printing/printing_db.c''',
deps='samba-util tdb_compat')
deps='samba-util tdb')

bld.SAMBA3_SUBSYSTEM('PRINTBACKEND',
source='''printing/printing.c
Expand All @@ -672,7 +672,7 @@ bld.SAMBA3_SUBSYSTEM('PRINTBACKEND',
printing/nt_printing_migrate_internal.c
printing/nt_printing_ads.c
printing/queue_process.c''',
deps='PRINTBASE LIBADS_PRINTER tdb_compat printing_migrate')
deps='PRINTBASE LIBADS_PRINTER tdb printing_migrate')

bld.SAMBA3_LIBRARY('printing_migrate',
source='printing/nt_printing_migrate.c rpc_client/cli_winreg_spoolss.c printing/nt_printing_os2.c',
Expand All @@ -690,7 +690,7 @@ bld.SAMBA3_SUBSYSTEM('PRINTING',
printing/print_standard.c
printing/print_iprint.c
printing/printer_list.c''',
deps='NDR_PRINTCAP tdb_compat cups')
deps='NDR_PRINTCAP tdb cups')

bld.SAMBA3_SUBSYSTEM('PASSWD_UTIL',
source='utils/passwd_util.c',
Expand Down Expand Up @@ -727,7 +727,7 @@ bld.SAMBA3_SUBSYSTEM('LIBNET_SAMSYNC',

bld.SAMBA3_SUBSYSTEM('LIBEVENTLOG',
source='lib/eventlog/eventlog.c',
deps='NDR_EVENTLOG tdb_compat')
deps='NDR_EVENTLOG tdb')

bld.SAMBA3_SUBSYSTEM('LIBNMB',
source='''libsmb/unexpected.c
Expand Down Expand Up @@ -764,7 +764,7 @@ bld.SAMBA3_SUBSYSTEM('SAMBA_VERSION',

bld.SAMBA3_SUBSYSTEM('SLCACHE',
source='libsmb/samlogon_cache.c',
deps='samba-util tdb_compat')
deps='samba-util tdb')

bld.SAMBA3_SUBSYSTEM('DCUTIL',
source='''libsmb/namequery_dc.c
Expand Down
2 changes: 1 addition & 1 deletion source4/dsdb/samdb/ldb_modules/schema_load.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
#include "librpc/gen_ndr/ndr_drsuapi.h"
#include "librpc/gen_ndr/ndr_drsblobs.h"
#include "param/param.h"
#include <tdb.h>
#include "lib/tdb_wrap/tdb_wrap.h"
#include "lib/tdb_compat/tdb_compat.h"
#include "dsdb/samdb/ldb_modules/util.h"

#include "system/filesys.h"
Expand Down
2 changes: 1 addition & 1 deletion source4/ntvfs/posix/python/pyposix_eadb.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <Python.h>
#include "includes.h"
#include "system/filesys.h"
#include "tdb_compat.h"
#include <tdb.h>
#include "lib/tdb_wrap/tdb_wrap.h"
#include "librpc/ndr/libndr.h"
#include "ntvfs/posix/posix_eadb.h"
Expand Down
2 changes: 1 addition & 1 deletion source4/ntvfs/posix/python/pyxattr_tdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <Python.h>
#include "includes.h"
#include "system/filesys.h"
#include "tdb_compat.h"
#include <tdb.h>
#include "lib/tdb_wrap/tdb_wrap.h"
#include "librpc/ndr/libndr.h"
#include "ntvfs/posix/posix_eadb.h"
Expand Down
2 changes: 1 addition & 1 deletion source4/ntvfs/posix/vfs_posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "includes.h"
#include "vfs_posix.h"
#include "librpc/gen_ndr/security.h"
#include "tdb_compat.h"
#include <tdb.h>
#include "lib/tdb_wrap/tdb_wrap.h"
#include "libcli/security/security.h"
#include "lib/events/events.h"
Expand Down
2 changes: 1 addition & 1 deletion source4/ntvfs/posix/wscript_build
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ bld.SAMBA_LIBRARY('posix_eadb',

bld.SAMBA_PYTHON('python_posix_eadb',
source='python/pyposix_eadb.c',
deps='pyparam_util posix_eadb tdb_compat',
deps='pyparam_util posix_eadb tdb',
realname='samba/posix_eadb.so'
)

Expand Down
2 changes: 1 addition & 1 deletion source4/torture/basic/mangle_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "includes.h"
#include "system/filesys.h"
#include "system/dir.h"
#include "../lib/tdb_compat/tdb_compat.h"
#include <tdb.h>
#include "../lib/util/util_tdb.h"
#include "libcli/libcli.h"
#include "torture/util.h"
Expand Down
2 changes: 1 addition & 1 deletion source4/torture/local/dbspeed.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#include "includes.h"
#include "system/filesys.h"
#include "tdb_compat.h"
#include <tdb.h>
#include <ldb.h>
#include <ldb_errors.h>
#include "ldb_wrap.h"
Expand Down
1 change: 0 additions & 1 deletion wscript_build
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ bld.RECURSE('lib/tevent')
bld.RECURSE('lib/texpect')
bld.RECURSE('lib/addns')
bld.RECURSE('lib/ccan')
bld.RECURSE('lib/tdb_compat')
bld.RECURSE('lib/ldb')
bld.RECURSE('lib/param')
bld.RECURSE('dynconfig')
Expand Down

0 comments on commit de811f1

Please sign in to comment.