summaryrefslogtreecommitdiff
path: root/lib/util/util.h
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-10-24 15:42:45 +0200
committerVolker Lendecke <vlendec@samba.org>2010-10-24 20:46:28 +0000
commit0831807782e01d8fb6e4e5ebcd46c014dc3ab599 (patch)
treedcd3b33096fc59400da00dc6e138ad66cd91a11d /lib/util/util.h
parent611bcfcb49f3a17ac7a1b866b2ea04806c7c1b40 (diff)
downloadsamba-0831807782e01d8fb6e4e5ebcd46c014dc3ab599.tar.gz
samba-0831807782e01d8fb6e4e5ebcd46c014dc3ab599.tar.bz2
samba-0831807782e01d8fb6e4e5ebcd46c014dc3ab599.zip
Add dump_data_cb()
Diffstat (limited to 'lib/util/util.h')
-rw-r--r--lib/util/util.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/util/util.h b/lib/util/util.h
index 261acea88c..c407d606a9 100644
--- a/lib/util/util.h
+++ b/lib/util/util.h
@@ -674,6 +674,14 @@ _PUBLIC_ bool process_exists_by_pid(pid_t pid);
_PUBLIC_ bool fcntl_lock(int fd, int op, off_t offset, off_t count, int type);
/**
+ * Write dump of binary data to a callback
+ */
+void dump_data_cb(const uint8_t *buf, int len,
+ bool omit_zero_bytes,
+ void (*cb)(const char *buf, void *private_data),
+ void *private_data);
+
+/**
* Write dump of binary data to the log file.
*
* The data is only written if the log level is at least level.