diff options
author | Andreas Schneider <asn@samba.org> | 2021-03-18 10:06:53 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2021-03-24 00:55:32 +0000 |
commit | e79b067e2396bd950f444518bbaad5a2fd7e2da4 (patch) | |
tree | d04ec005c01dcd4c1a9e63458e9a433161f048ec /source3/lib/netapi | |
parent | bcc3945e5384e6f39dc03eaeeee2382a6a7d52be (diff) | |
download | samba-e79b067e2396bd950f444518bbaad5a2fd7e2da4.tar.gz |
s3:netapi: Make 'struct libnetapi_ctx' opaque
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Diffstat (limited to 'source3/lib/netapi')
-rw-r--r-- | source3/lib/netapi/netapi.h | 14 | ||||
-rw-r--r-- | source3/lib/netapi/netapi_private.h | 15 |
2 files changed, 16 insertions, 13 deletions
diff --git a/source3/lib/netapi/netapi.h b/source3/lib/netapi/netapi.h index b7fdb752a79..b0560e1af1d 100644 --- a/source3/lib/netapi/netapi.h +++ b/source3/lib/netapi/netapi.h @@ -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; /**************************************************************** ****************************************************************/ diff --git a/source3/lib/netapi/netapi_private.h b/source3/lib/netapi/netapi_private.h index 998d2b2b634..2403178fa3b 100644 --- a/source3/lib/netapi/netapi_private.h +++ b/source3/lib/netapi/netapi_private.h @@ -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); |