summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-03-25 13:53:31 +0100
committerMichael Adam <obnox@samba.org>2008-03-25 15:55:34 +0100
commit48149a954c1e737c9863cfa0991ab9bfc246c6da (patch)
tree10b1a0c44c3ad1ba6bd1cefb739630c10aeda2ad
parentb42cf3fc69414270be9d0f430f2e95a72894f00e (diff)
downloadsamba-48149a954c1e737c9863cfa0991ab9bfc246c6da.tar.gz
samba-48149a954c1e737c9863cfa0991ab9bfc246c6da.tar.xz
samba-48149a954c1e737c9863cfa0991ab9bfc246c6da.zip
util_tdb: add the tdb_pack_append() prototype to util_tdb.h
This function is currently not used but seems useful. Michael
-rw-r--r--source/include/util_tdb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/include/util_tdb.h b/source/include/util_tdb.h
index c0cb237468e..4ed791b69bb 100644
--- a/source/include/util_tdb.h
+++ b/source/include/util_tdb.h
@@ -87,6 +87,8 @@ int tdb_trans_delete(struct tdb_context *tdb, TDB_DATA key);
int tdb_unpack(const uint8 *buf, int bufsize, const char *fmt, ...);
size_t tdb_pack(uint8 *buf, int bufsize, const char *fmt, ...);
+bool tdb_pack_append(TALLOC_CTX *mem_ctx, uint8 **buf, size_t *len,
+ const char *fmt, ...);
struct tdb_context *tdb_open_log(const char *name, int hash_size,
int tdb_flags, int open_flags, mode_t mode);