diff options
Diffstat (limited to 'source3/tdb/tdbutil.c')
-rw-r--r-- | source3/tdb/tdbutil.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/tdb/tdbutil.c b/source3/tdb/tdbutil.c index f1809229f8..fc45fa9360 100644 --- a/source3/tdb/tdbutil.c +++ b/source3/tdb/tdbutil.c @@ -805,6 +805,14 @@ TDB_CONTEXT *tdb_open_log(const char *name, int hash_size, int tdb_flags, return tdb; } +/**************************************************************************** + return the name of the current tdb file useful for external logging + functions +****************************************************************************/ +const char *tdb_name(struct tdb_context *tdb) +{ + return tdb->name; +} /**************************************************************************** Allow tdb_delete to be used as a tdb_traversal_fn. |