]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib: Make struct g_lock_rec private to g_lock.c
authorVolker Lendecke <vl@samba.org>
Tue, 19 Nov 2019 14:31:57 +0000 (15:31 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 22 Nov 2019 23:57:48 +0000 (23:57 +0000)
This is no longer exposed in the API

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/include/g_lock.h
source3/lib/g_lock.c

index 7fb424c13fc1c9d670aa0c223fa64bda849c9c30..5280a324f928a0fd806c00acea74a9a9d9989636 100644 (file)
@@ -30,11 +30,6 @@ enum g_lock_type {
        G_LOCK_WRITE = 1,
 };
 
-struct g_lock_rec {
-       enum g_lock_type lock_type;
-       struct server_id pid;
-};
-
 struct g_lock_ctx *g_lock_ctx_init(TALLOC_CTX *mem_ctx,
                                   struct messaging_context *msg);
 
index bfa659cde719ee739bf6ad7f191c28201144b46b..d2ff6796628529890a1afd3f30c55e67b861f724 100644 (file)
@@ -38,6 +38,11 @@ struct g_lock_ctx {
        struct messaging_context *msg;
 };
 
+struct g_lock_rec {
+       enum g_lock_type lock_type;
+       struct server_id pid;
+};
+
 /*
  * The "g_lock.tdb" file contains records, indexed by the 0-terminated
  * lockname. The record contains an array of "struct g_lock_rec"