From: Michael Adam Date: Tue, 25 Mar 2008 12:53:31 +0000 (+0100) Subject: util_tdb: add the tdb_pack_append() prototype to util_tdb.h X-Git-Tag: samba-3.3.0pre1~3126 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=48149a954c1e737c9863cfa0991ab9bfc246c6da;p=thirdparty%2Fsamba.git util_tdb: add the tdb_pack_append() prototype to util_tdb.h This function is currently not used but seems useful. Michael --- 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);