1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

lib: Add g_lock_seqnum()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2019-11-05 16:36:59 +01:00 committed by Jeremy Allison
parent c38f37147d
commit 3d0cfb82ec
2 changed files with 6 additions and 0 deletions

View File

@ -64,6 +64,7 @@ NTSTATUS g_lock_dump(struct g_lock_ctx *ctx,
size_t datalen,
void *private_data),
void *private_data);
int g_lock_seqnum(struct g_lock_ctx *ctx);
struct tevent_req *g_lock_watch_data_send(
TALLOC_CTX *mem_ctx,

View File

@ -1064,6 +1064,11 @@ NTSTATUS g_lock_dump(struct g_lock_ctx *ctx, TDB_DATA key,
return NT_STATUS_OK;
}
int g_lock_seqnum(struct g_lock_ctx *ctx)
{
return dbwrap_get_seqnum(ctx->db);
}
struct g_lock_watch_data_state {
struct tevent_context *ev;
struct g_lock_ctx *ctx;