r22154: Make struct smbdb_ctx an opaque pointer so users of the API
authorJeremy Allison <jra@samba.org>
Tue, 10 Apr 2007 18:12:25 +0000 (18:12 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:19:17 +0000 (12:19 -0500)
don't need to have tdb.h.
Jeremy.

source/include/smb_share_modes.h
source/libsmb/smb_share_modes.c

index 1e04ea496de2ca5ef4f4fd62c2746844e792c752..5ed43bda336049e437d65a17ed92e75e3e3eef3c 100644 (file)
@@ -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. */
 /*
index f78eaf8ca537cff25d9510f336abdaf797d22bff..53f99d0f50ec89571cc6d971710ebcba5572e3fc 100644 (file)
 #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