summaryrefslogtreecommitdiffstats
path: root/lib/util/samba_util.h
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2014-05-30 15:24:34 +0000
committerJeremy Allison <jra@samba.org>2014-06-17 07:00:14 +0200
commit7a3bda54b01991ca45ba2157636f4e01dc425bcb (patch)
tree5c7105cd8f1e353fcdb22023ae8d9219a110a845 /lib/util/samba_util.h
parent0e9d4f68f94be4d187eb80429194267244861832 (diff)
downloadsamba-7a3bda54b01991ca45ba2157636f4e01dc425bcb.tar.gz
samba-7a3bda54b01991ca45ba2157636f4e01dc425bcb.tar.xz
samba-7a3bda54b01991ca45ba2157636f4e01dc425bcb.zip
lib: Add server_id_str_buf
This is usable in a DEBUG statement without talloc_tos() Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'lib/util/samba_util.h')
-rw-r--r--lib/util/samba_util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/util/samba_util.h b/lib/util/samba_util.h
index 73cab66c351..251ddc26ced 100644
--- a/lib/util/samba_util.h
+++ b/lib/util/samba_util.h
@@ -984,6 +984,10 @@ char *data_path(TALLOC_CTX *mem_ctx, const char *name);
const char *shlib_ext(void);
struct server_id;
+
+struct server_id_buf { char buf[48]; }; /* probably a bit too large ... */
+char *server_id_str_buf(struct server_id id, struct server_id_buf *dst);
+
bool server_id_equal(const struct server_id *p1, const struct server_id *p2);
char *server_id_str(TALLOC_CTX *mem_ctx, const struct server_id *id);
struct server_id server_id_from_string(uint32_t local_vnn,