Rename libnet_smbconf_set_global_param() to libnet_conf_set_global_parameter().
authorMichael Adam <obnox@samba.org>
Thu, 3 Jan 2008 13:15:05 +0000 (14:15 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 3 Jan 2008 13:17:49 +0000 (14:17 +0100)
Now all functions are converted to the consistent naming scheme.

Michael
(This used to be commit a559533c0c8a80f3f4078bbc2675de395359485f)

source3/lib/netapi/serverinfo.c
source3/libnet/libnet_conf.c
source3/libnet/libnet_join.c

index 27c7c4b2fce3a80ac205677ec8db51047ac24ca2..0e356e0ee7c07cfb2083aacc79f4e5dbb2fd4151 100644 (file)
@@ -167,8 +167,8 @@ static WERROR NetServerSetInfoLocal_1005(struct libnetapi_ctx *ctx,
                return WERR_NOT_SUPPORTED;
        }
 
-       return libnet_smbconf_set_global_param("server string",
-                                              info1005->comment);
+       return libnet_conf_set_global_parameter("server string",
+                                               info1005->comment);
 }
 
 static WERROR NetServerSetInfoLocal(struct libnetapi_ctx *ctx,
index fbe47b212b01606c7264f147ae69aeb11f65969f..ea3f708883fae1b71bdec3674f0e91de155fab31 100644 (file)
@@ -792,8 +792,8 @@ done:
  *
  **********************************************************************/
 
-WERROR libnet_smbconf_set_global_param(const char *param,
-                                      const char *val)
+WERROR libnet_conf_set_global_parameter(const char *param,
+                                       const char *val)
 {
        return libnet_conf_set_parameter(GLOBAL_NAME, param, val);
 }
index 00ab608274cad774446c3d96300f22d25e86b49d..478cccf7257ff365fa6380122af0b8cfd77ccb8a 100644 (file)
@@ -338,11 +338,11 @@ static WERROR do_join_modify_vals_config(struct libnet_JoinCtx *r)
 
        if (!(r->in.join_flags & WKSSVC_JOIN_FLAGS_JOIN_TYPE)) {
 
-               werr = libnet_smbconf_set_global_param("security", "user");
+               werr = libnet_conf_set_global_parameter("security", "user");
                W_ERROR_NOT_OK_RETURN(werr);
 
-               werr = libnet_smbconf_set_global_param("workgroup",
-                                                      r->in.domain_name);
+               werr = libnet_conf_set_global_parameter("workgroup",
+                                                       r->in.domain_name);
                return werr;
        }
 
@@ -350,18 +350,18 @@ static WERROR do_join_modify_vals_config(struct libnet_JoinCtx *r)
                is_ad = true;
        }
 
-       werr = libnet_smbconf_set_global_param("security", "domain");
+       werr = libnet_conf_set_global_parameter("security", "domain");
        W_ERROR_NOT_OK_RETURN(werr);
 
-       werr = libnet_smbconf_set_global_param("workgroup",
-                                              r->out.netbios_domain_name);
+       werr = libnet_conf_set_global_parameter("workgroup",
+                                               r->out.netbios_domain_name);
        W_ERROR_NOT_OK_RETURN(werr);
 
        if (is_ad) {
-               werr = libnet_smbconf_set_global_param("security", "ads");
+               werr = libnet_conf_set_global_parameter("security", "ads");
                W_ERROR_NOT_OK_RETURN(werr);
 
-               werr = libnet_smbconf_set_global_param("realm",
+               werr = libnet_conf_set_global_parameter("realm",
                                                       r->out.dns_domain_name);
                W_ERROR_NOT_OK_RETURN(werr);
        }
@@ -375,7 +375,7 @@ static WERROR do_unjoin_modify_vals_config(struct libnet_UnjoinCtx *r)
 
        if (r->in.unjoin_flags & WKSSVC_JOIN_FLAGS_JOIN_TYPE) {
 
-               werr = libnet_smbconf_set_global_param("security", "user");
+               werr = libnet_conf_set_global_parameter("security", "user");
                W_ERROR_NOT_OK_RETURN(werr);
        }