util_tdb: add the tdb_pack_append() prototype to util_tdb.h
authorMichael Adam <obnox@samba.org>
Tue, 25 Mar 2008 12:53:31 +0000 (13:53 +0100)
committerMichael Adam <obnox@samba.org>
Tue, 25 Mar 2008 14:55:34 +0000 (15:55 +0100)
This function is currently not used but seems useful.

Michael
(This used to be commit 48149a954c1e737c9863cfa0991ab9bfc246c6da)

source3/include/util_tdb.h

index c0cb237468edafb4aa65c69fa5baf0c952608ccc..4ed791b69bb9fa034f5c446371128505773aa5c5 100644 (file)
@@ -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);