summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-04-10 18:12:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:19:17 -0500
commit512542c90a78006bda3470eed7fb6d3f6e708eed (patch)
treeb25ddbd8a0bae1dbcdc83489dd3261e14ea36bc6 /source
parent34a5badbded0b2537ee854287931e2a7dc3aeb37 (diff)
downloadsamba-512542c90a78006bda3470eed7fb6d3f6e708eed.tar.gz
samba-512542c90a78006bda3470eed7fb6d3f6e708eed.tar.xz
samba-512542c90a78006bda3470eed7fb6d3f6e708eed.zip
r22154: Make struct smbdb_ctx an opaque pointer so users of the API
don't need to have tdb.h. Jeremy.
Diffstat (limited to 'source')
-rw-r--r--source/include/smb_share_modes.h8
-rw-r--r--source/libsmb/smb_share_modes.c5
2 files changed, 7 insertions, 6 deletions
diff --git a/source/include/smb_share_modes.h b/source/include/smb_share_modes.h
index 1e04ea496de..5ed43bda336 100644
--- a/source/include/smb_share_modes.h
+++ b/source/include/smb_share_modes.h
@@ -33,12 +33,8 @@ extern "C" {
# endif
#endif
-#include "tdb.h"
-
-/* Database context handle. */
-struct smbdb_ctx {
- TDB_CONTEXT *smb_tdb;
-};
+/* Opaque database context handle. */
+struct smbdb_ctx;
/* Share mode entry. */
/*
diff --git a/source/libsmb/smb_share_modes.c b/source/libsmb/smb_share_modes.c
index f78eaf8ca53..53f99d0f50e 100644
--- a/source/libsmb/smb_share_modes.c
+++ b/source/libsmb/smb_share_modes.c
@@ -28,6 +28,11 @@
#include "includes.h"
#include "smb_share_modes.h"
+/* Database context handle. */
+struct smbdb_ctx {
+ TDB_CONTEXT *smb_tdb;
+};
+
/* Remove the paranoid malloc checker. */
#ifdef malloc
#undef malloc