1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

r5296: - only include the tdb headers where they are needed

- removed the u32 hack in events.c as I think this was only needed as
  tdb.h defines u32. Metze, can you check that this hack is indeed no
  longer needed on your suse system?
(This used to be commit 6f79432fe6)
This commit is contained in:
Andrew Tridgell 2005-02-10 03:48:43 +00:00 committed by Gerald (Jerry) Carter
parent b9bb7f596d
commit fedf0b0d91
23 changed files with 29 additions and 14 deletions

View File

@ -29,7 +29,7 @@ struct ldb_wrap {
struct tdb_wrap {
TDB_CONTEXT *tdb;
struct tdb_context *tdb;
const char *name;
struct tdb_wrap *next, *prev;

View File

@ -113,9 +113,6 @@ extern int errno;
#include "lib/talloc/talloc.h"
#include "nt_status.h"
#include "structs.h"
#include "lib/tdb/include/tdb.h"
#include "lib/tdb/include/spinlock.h"
#include "lib/tdb/include/tdbutil.h"
#include "db_wrap.h"
#include "trans2.h"
#include "nterr.h"

View File

@ -19,6 +19,7 @@
*/
#include "includes.h"
#include "lib/tdb/include/tdbutil.h"
#include "system/time.h"
static TDB_CONTEXT *tdb;

View File

@ -29,6 +29,7 @@
#include "includes.h"
#include "dlinklist.h"
#include "lib/tdb/include/tdb.h"
#include "lib/ldb/include/ldb.h"
static struct ldb_wrap *ldb_list;

View File

@ -66,8 +66,6 @@
#endif
#if WITH_EPOLL
/* this #undef is needed on my SuSE 9.2 Box with glibc-devel-2.3.3-118 */
#undef u32
#include <sys/epoll.h>
#endif

View File

@ -22,6 +22,7 @@
*/
#include "includes.h"
#include "lib/tdb/include/tdbutil.h"
#include "system/time.h"
#undef DBGC_CLASS

View File

@ -1,5 +1,7 @@
#ifndef _SAMBA_BUILD_
#ifdef _SAMBA_BUILD_
#include "lib/tdb/include/tdb.h"
#else
#include "tdb.h"
#endif

View File

@ -38,11 +38,11 @@
#include <time.h>
#include <signal.h>
#include "tdb.h"
#include "spinlock.h"
#define DEBUG
#else
#include "includes.h"
#include "lib/tdb/include/tdb.h"
#endif
#ifdef USE_SPINLOCKS

View File

@ -63,9 +63,9 @@
#include <sys/stat.h>
#include <signal.h>
#include "tdb.h"
#include "spinlock.h"
#else
#include "includes.h"
#include "lib/tdb/include/tdb.h"
#include "system/time.h"
#include "system/shmem.h"
#include "system/filesys.h"

View File

@ -19,6 +19,7 @@
*/
#include "includes.h"
#include "lib/tdb/include/tdbutil.h"
#include "system/glob.h"
#include "system/wait.h"
#include "dlinklist.h"

View File

@ -154,4 +154,6 @@ extern TDB_DATA tdb_null;
}
#endif
#include "spinlock.h"
#endif /* tdb.h */

View File

@ -21,6 +21,8 @@
#ifndef __TDBUTIL_H__
#define __TDBUTIL_H__
#include "tdb.h"
/* single node of a list returned by tdb_search_keys */
typedef struct keys_node

View File

@ -37,6 +37,7 @@
#else
#include "includes.h"
#include "lib/tdb/include/tdb.h"
#include "system/iconv.h"
#endif

View File

@ -16,6 +16,7 @@
#else
#include "includes.h"
#include "lib/tdb/include/tdb.h"
#endif

View File

@ -21,6 +21,7 @@
#else
#include "includes.h"
#include "lib/tdb/include/tdb.h"
#include "system/time.h"
#include "system/wait.h"

View File

@ -26,6 +26,7 @@
used. This allows us to provide the same semantics as NT */
#include "includes.h"
#include "lib/tdb/include/tdb.h"
#include "messages.h"
/*

View File

@ -39,6 +39,7 @@
*/
#include "includes.h"
#include "lib/tdb/include/tdb.h"
#include "messages.h"
#include "librpc/gen_ndr/ndr_security.h"

View File

@ -28,6 +28,7 @@
#include "vfs_posix.h"
#include "librpc/gen_ndr/ndr_security.h"
#include "smbd/service_stream.h"
#include "lib/tdb/include/tdb.h"
/*

View File

@ -22,6 +22,7 @@
#include "includes.h"
#include "vfs_posix.h"
#include "lib/tdb/include/tdb.h"
#define XATTR_LIST_ATTR ".xattr_list"

View File

@ -133,7 +133,7 @@ struct parm_struct
int ivalue;
char *svalue;
char cvalue;
char **lvalue;
const char **lvalue;
} def;
};
@ -1431,8 +1431,8 @@ const char *lp_parm_string(int lookup_service, const char *type, const char *opt
/* Parametric option has following syntax: 'Type: option = value' */
/* Returned value is allocated in 'lp_talloc' context */
char **lp_parm_string_list(int lookup_service, const char *type, const char *option,
const char *separator)
const char **lp_parm_string_list(int lookup_service, const char *type, const char *option,
const char *separator)
{
const char *value = get_parametrics(lookup_service, type, option);
@ -1855,7 +1855,7 @@ static void copy_service(service * pserviceDest, service * pserviceSource, BOOL
strupper(*(char **)dest_ptr);
break;
case P_LIST:
*(char ***)dest_ptr = str_list_copy(NULL, *(const char ***)src_ptr);
*(const char ***)dest_ptr = str_list_copy(NULL, *(const char ***)src_ptr);
break;
default:
break;
@ -2367,7 +2367,7 @@ BOOL lp_do_parameter(int snum, const char *pszParmName, const char *pszParmValue
break;
case P_LIST:
*(char ***)parm_ptr = str_list_make(NULL, pszParmValue, NULL);
*(const char ***)parm_ptr = str_list_make(NULL, pszParmValue, NULL);
break;
case P_STRING:

View File

@ -23,6 +23,7 @@
such as the local SID and machine trust password */
#include "includes.h"
#include "lib/tdb/include/tdbutil.h"
#include "secrets.h"
#undef DBGC_CLASS

View File

@ -24,6 +24,7 @@
#include "includes.h"
#include "lib/events/events.h"
#include "lib/tdb/include/tdb.h"
#include "dlinklist.h"
#include "smb_server/smb_server.h"

View File

@ -19,6 +19,7 @@
*/
#include "includes.h"
#include "lib/tdb/include/tdbutil.h"
static TDB_CONTEXT *tdb;