From: Volker Lendecke Date: Tue, 19 Nov 2019 14:31:57 +0000 (+0100) Subject: lib: Make struct g_lock_rec private to g_lock.c X-Git-Tag: ldb-2.1.0~618 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=97ba1ee2f94e5529839a1c0852f50544dbbb83cf;p=thirdparty%2Fsamba.git lib: Make struct g_lock_rec private to g_lock.c This is no longer exposed in the API Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/include/g_lock.h b/source3/include/g_lock.h index 7fb424c13fc..5280a324f92 100644 --- a/source3/include/g_lock.h +++ b/source3/include/g_lock.h @@ -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); diff --git a/source3/lib/g_lock.c b/source3/lib/g_lock.c index bfa659cde71..d2ff6796628 100644 --- a/source3/lib/g_lock.c +++ b/source3/lib/g_lock.c @@ -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"