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

r22154: Make struct smbdb_ctx an opaque pointer so users of the API

don't need to have tdb.h.
Jeremy.
(This used to be commit 512542c90a)
This commit is contained in:
Jeremy Allison 2007-04-10 18:12:25 +00:00 committed by Gerald (Jerry) Carter
parent 78c57f59ac
commit 4e0a6bd9a7
2 changed files with 7 additions and 6 deletions

View 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. */
/*

View File

@ -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