diff options
author | Günther Deschner <gd@samba.org> | 2011-05-05 11:25:29 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2011-05-06 10:48:10 +0200 |
commit | d8cfca3a9bd2b6b6c562fd202377d95a98eb5472 (patch) | |
tree | 96fc9d454a01cbb2c26a8db22f41b8bf0dc40879 /source3/lib | |
parent | 8aae59a277fe4bf5a1a84cb4730e5772c9ffca8c (diff) | |
download | samba-d8cfca3a9bd2b6b6c562fd202377d95a98eb5472.tar.gz samba-d8cfca3a9bd2b6b6c562fd202377d95a98eb5472.tar.bz2 samba-d8cfca3a9bd2b6b6c562fd202377d95a98eb5472.zip |
s3: only include tdb headers where needed.
Guenther
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/ctdbd_conn.c | 1 | ||||
-rw-r--r-- | source3/lib/dbwrap.c | 1 | ||||
-rw-r--r-- | source3/lib/dbwrap_ctdb.c | 2 | ||||
-rw-r--r-- | source3/lib/dbwrap_util.c | 1 | ||||
-rw-r--r-- | source3/lib/eventlog/eventlog.c | 1 | ||||
-rw-r--r-- | source3/lib/eventlog/eventlog.h | 2 | ||||
-rw-r--r-- | source3/lib/g_lock.c | 1 | ||||
-rw-r--r-- | source3/lib/gencache.c | 1 | ||||
-rw-r--r-- | source3/lib/messages_ctdbd.c | 1 | ||||
-rw-r--r-- | source3/lib/server_mutex.c | 1 | ||||
-rw-r--r-- | source3/lib/serverid.c | 1 | ||||
-rw-r--r-- | source3/lib/sessionid_tdb.c | 1 | ||||
-rw-r--r-- | source3/lib/sharesec.c | 1 | ||||
-rw-r--r-- | source3/lib/talloc_dict.c | 1 | ||||
-rw-r--r-- | source3/lib/tdb_validate.c | 1 | ||||
-rw-r--r-- | source3/lib/util.c | 1 | ||||
-rw-r--r-- | source3/lib/util_tdb.c | 2 |
17 files changed, 20 insertions, 0 deletions
diff --git a/source3/lib/ctdbd_conn.c b/source3/lib/ctdbd_conn.c index 9c353baba4..d27186996e 100644 --- a/source3/lib/ctdbd_conn.c +++ b/source3/lib/ctdbd_conn.c @@ -19,6 +19,7 @@ */ #include "includes.h" +#include "util_tdb.h" #ifdef CLUSTER_SUPPORT diff --git a/source3/lib/dbwrap.c b/source3/lib/dbwrap.c index 4e7346c2c4..9b3197f402 100644 --- a/source3/lib/dbwrap.c +++ b/source3/lib/dbwrap.c @@ -21,6 +21,7 @@ #include "includes.h" #include "dbwrap.h" +#include "util_tdb.h" #ifdef CLUSTER_SUPPORT #include "ctdb_private.h" #endif diff --git a/source3/lib/dbwrap_ctdb.c b/source3/lib/dbwrap_ctdb.c index f9a7dd6a6f..298f4c16a5 100644 --- a/source3/lib/dbwrap_ctdb.c +++ b/source3/lib/dbwrap_ctdb.c @@ -20,6 +20,8 @@ #include "includes.h" #include "system/filesys.h" +#include "lib/util/tdb_wrap.h" +#include "util_tdb.h" #ifdef CLUSTER_SUPPORT #include "ctdb.h" #include "ctdb_private.h" diff --git a/source3/lib/dbwrap_util.c b/source3/lib/dbwrap_util.c index 35f8a14d0d..365f0a0666 100644 --- a/source3/lib/dbwrap_util.c +++ b/source3/lib/dbwrap_util.c @@ -21,6 +21,7 @@ #include "includes.h" #include "dbwrap.h" +#include "util_tdb.h" int32_t dbwrap_fetch_int32(struct db_context *db, const char *keystr) { diff --git a/source3/lib/eventlog/eventlog.c b/source3/lib/eventlog/eventlog.c index 4941199c5e..0ff0cb1fa8 100644 --- a/source3/lib/eventlog/eventlog.c +++ b/source3/lib/eventlog/eventlog.c @@ -24,6 +24,7 @@ #include "system/filesys.h" #include "lib/eventlog/eventlog.h" #include "../libcli/security/security.h" +#include "util_tdb.h" /* maintain a list of open eventlog tdbs with reference counts */ diff --git a/source3/lib/eventlog/eventlog.h b/source3/lib/eventlog/eventlog.h index 29c25c3122..b485bfe08e 100644 --- a/source3/lib/eventlog/eventlog.h +++ b/source3/lib/eventlog/eventlog.h @@ -17,6 +17,8 @@ * along with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include <tdb.h> + /* Defines for TDB keys */ #define EVT_OLDEST_ENTRY "INFO/oldest_entry" #define EVT_NEXT_RECORD "INFO/next_record" diff --git a/source3/lib/g_lock.c b/source3/lib/g_lock.c index 184da9b4fd..c3d863f9a4 100644 --- a/source3/lib/g_lock.c +++ b/source3/lib/g_lock.c @@ -20,6 +20,7 @@ #include "includes.h" #include "system/filesys.h" #include "g_lock.h" +#include "util_tdb.h" #include "ctdbd_conn.h" #include "../lib/util/select.h" #include "system/select.h" diff --git a/source3/lib/gencache.c b/source3/lib/gencache.c index 19cc7c947c..7a86063de5 100644 --- a/source3/lib/gencache.c +++ b/source3/lib/gencache.c @@ -24,6 +24,7 @@ #include "includes.h" #include "system/filesys.h" #include "system/glob.h" +#include "util_tdb.h" #undef DBGC_CLASS #define DBGC_CLASS DBGC_TDB diff --git a/source3/lib/messages_ctdbd.c b/source3/lib/messages_ctdbd.c index 3e2fde0b8f..70f29b795e 100644 --- a/source3/lib/messages_ctdbd.c +++ b/source3/lib/messages_ctdbd.c @@ -19,6 +19,7 @@ #include "includes.h" #include "messages.h" +#include "util_tdb.h" #ifdef CLUSTER_SUPPORT diff --git a/source3/lib/server_mutex.c b/source3/lib/server_mutex.c index 9d38907a20..6eac3182be 100644 --- a/source3/lib/server_mutex.c +++ b/source3/lib/server_mutex.c @@ -21,6 +21,7 @@ #include "includes.h" #include "system/filesys.h" #include "lib/util/tdb_wrap.h" +#include "util_tdb.h" /* For reasons known only to MS, many of their NT/Win2k versions need serialised access only. Two connections at the same time diff --git a/source3/lib/serverid.c b/source3/lib/serverid.c index 7105e179d7..b1f6a5711e 100644 --- a/source3/lib/serverid.c +++ b/source3/lib/serverid.c @@ -20,6 +20,7 @@ #include "includes.h" #include "system/filesys.h" #include "serverid.h" +#include "util_tdb.h" #include "dbwrap.h" #include "lib/util/tdb_wrap.h" diff --git a/source3/lib/sessionid_tdb.c b/source3/lib/sessionid_tdb.c index ab54ec9ca5..de3ccab26a 100644 --- a/source3/lib/sessionid_tdb.c +++ b/source3/lib/sessionid_tdb.c @@ -21,6 +21,7 @@ #include "system/filesys.h" #include "dbwrap.h" #include "session.h" +#include "util_tdb.h" static struct db_context *session_db_ctx(void) { diff --git a/source3/lib/sharesec.c b/source3/lib/sharesec.c index c84e8fa00b..c2494e2293 100644 --- a/source3/lib/sharesec.c +++ b/source3/lib/sharesec.c @@ -22,6 +22,7 @@ #include "../libcli/security/security.h" #include "../librpc/gen_ndr/ndr_security.h" #include "dbwrap.h" +#include "util_tdb.h" /******************************************************************* Create the share security tdb. diff --git a/source3/lib/talloc_dict.c b/source3/lib/talloc_dict.c index cbe5c7b5c2..95ae0a3260 100644 --- a/source3/lib/talloc_dict.c +++ b/source3/lib/talloc_dict.c @@ -20,6 +20,7 @@ #include "includes.h" #include "dbwrap.h" #include "talloc_dict.h" +#include "util_tdb.h" struct talloc_dict { struct db_context *db; diff --git a/source3/lib/tdb_validate.c b/source3/lib/tdb_validate.c index b91ea7af83..7dd7dae5ac 100644 --- a/source3/lib/tdb_validate.c +++ b/source3/lib/tdb_validate.c @@ -21,6 +21,7 @@ #include "includes.h" #include "system/filesys.h" +#include "util_tdb.h" #include "tdb_validate.h" /* diff --git a/source3/lib/util.c b/source3/lib/util.c index db92f3c0d7..8d90569863 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -24,6 +24,7 @@ #include "includes.h" #include "system/passwd.h" #include "system/filesys.h" +#include "util_tdb.h" #include "ctdbd_conn.h" #include "../lib/util/util_pw.h" #include "messages.h" diff --git a/source3/lib/util_tdb.c b/source3/lib/util_tdb.c index 2aff935bdf..654a538a88 100644 --- a/source3/lib/util_tdb.c +++ b/source3/lib/util_tdb.c @@ -21,6 +21,8 @@ #include "includes.h" #include "system/filesys.h" +#include "util_tdb.h" + #undef malloc #undef realloc #undef calloc |