ctdbd_conn: Make ctdbd_init_connection public
authorVolker Lendecke <vl@samba.org>
Tue, 5 Apr 2016 08:09:35 +0000 (10:09 +0200)
committerRalph Boehme <slow@samba.org>
Mon, 25 Apr 2016 16:29:20 +0000 (18:29 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/include/ctdbd_conn.h
source3/lib/ctdbd_conn.c

index 27993c744f037fc0ebb434126dbc2d0e414addc4..a4eab74fe7372061fae8f1866877cf11b8d0ebd1 100644 (file)
@@ -26,6 +26,10 @@ struct ctdbd_connection;
 struct messaging_context;
 struct messaging_rec;
 
+int ctdbd_init_connection(TALLOC_CTX *mem_ctx,
+                         const char *sockname, int timeout,
+                         struct ctdbd_connection **pconn);
+
 int ctdbd_messaging_connection(TALLOC_CTX *mem_ctx,
                               const char *sockname, int timeout,
                               struct ctdbd_connection **pconn);
index 3cec2535f7267586c67a128d6a010f41257f7773..2751850452459305839917db0daf3a4df9137248 100644 (file)
@@ -420,9 +420,9 @@ static int ctdbd_connection_destructor(struct ctdbd_connection *c)
  * Get us a ctdbd connection
  */
 
-static int ctdbd_init_connection(TALLOC_CTX *mem_ctx,
-                                const char *sockname, int timeout,
-                                struct ctdbd_connection **pconn)
+int ctdbd_init_connection(TALLOC_CTX *mem_ctx,
+                         const char *sockname, int timeout,
+                         struct ctdbd_connection **pconn)
 {
        struct ctdbd_connection *conn;
        int ret;