diff options
author | Volker Lendecke <vl@samba.org> | 2017-05-23 12:32:24 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2017-06-15 13:19:14 +0200 |
commit | 4478cd59ad1689f8719c031766b981ae37c24212 (patch) | |
tree | 19fbf429a1d8f4321cd2a2b2bd82c6d1f199025b /source3/include | |
parent | c400e2b54ed763d7d294368320aa339530da5852 (diff) | |
download | samba-4478cd59ad1689f8719c031766b981ae37c24212.tar.gz |
g_lock: Add g_lock_write_data
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/g_lock.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/include/g_lock.h b/source3/include/g_lock.h index 998a9da8544..f79e0ceef99 100644 --- a/source3/include/g_lock.h +++ b/source3/include/g_lock.h @@ -43,6 +43,9 @@ NTSTATUS g_lock_lock(struct g_lock_ctx *ctx, const char *name, enum g_lock_type lock_type, struct timeval timeout); NTSTATUS g_lock_unlock(struct g_lock_ctx *ctx, const char *name); +NTSTATUS g_lock_write_data(struct g_lock_ctx *ctx, const char *name, + const uint8_t *buf, size_t buflen); + NTSTATUS g_lock_do(const char *name, enum g_lock_type lock_type, struct timeval timeout, void (*fn)(void *private_data), void *private_data); |