]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:netapi: Make 'struct libnetapi_ctx' opaque
authorAndreas Schneider <asn@samba.org>
Thu, 18 Mar 2021 09:06:53 +0000 (10:06 +0100)
committerGünther Deschner <gd@samba.org>
Wed, 24 Mar 2021 00:55:32 +0000 (00:55 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
source3/lib/netapi/netapi.h
source3/lib/netapi/netapi_private.h
source3/wscript_build

index b7fdb752a79199c5fa3a44ac5deffd2ade37a74b..b0560e1af1d5c4b76a4c153f90dee931f28f1451 100644 (file)
@@ -1362,19 +1362,7 @@ struct NETLOGON_INFO_4 {
 /****************************************************************
 ****************************************************************/
 
-struct libnetapi_ctx {
-       char *debuglevel;
-       char *error_string;
-       char *username;
-       char *workgroup;
-       char *password;
-       char *krb5_cc_env;
-       int use_kerberos;
-       int use_ccache;
-       int disable_policy_handle_cache;
-
-       void *private_data;
-};
+struct libnetapi_ctx;
 
 /****************************************************************
 ****************************************************************/
index 998d2b2b634524419f69a446936c49fed3eceeb4..2403178fa3bd9b73d3846530452786cc607f9430 100644 (file)
@@ -53,6 +53,21 @@ struct libnetapi_private_ctx {
        struct messaging_context *msg_ctx;
 };
 
+struct libnetapi_ctx {
+       char *debuglevel;
+       char *error_string;
+       char *username;
+       char *workgroup;
+       char *password;
+       char *krb5_cc_env;
+       int use_kerberos;
+       int use_ccache;
+       int disable_policy_handle_cache;
+
+       void *private_data;
+};
+
+
 NET_API_STATUS libnetapi_set_error_string(struct libnetapi_ctx *ctx,
                                          const char *format, ...)
                                          PRINTF_ATTRIBUTE(2,3);
index f34ebe1467638c4c8335e9de0228d1109b3788b3..fcf5c1e164ee1854392fe3c4b323ee21d0f1c3c9 100644 (file)
@@ -42,7 +42,7 @@ bld.SAMBA3_LIBRARY('netapi',
                     ''',
                     public_headers='../source3/lib/netapi/netapi.h',
                     pc_files='libnet/netapi.pc',
-                    vnum='0.1.0')
+                    vnum='1.0.0')
 
 bld.SAMBA3_LIBRARY('gse',
                    source='librpc/crypto/gse_krb5.c librpc/crypto/gse.c',