s3:rpcclient: Use C99 initializer for cmd_set in cmd_ntsvcvs
authorAndreas Schneider <asn@samba.org>
Wed, 9 Jan 2019 15:29:06 +0000 (16:29 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 28 Jan 2019 09:29:19 +0000 (10:29 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
source3/rpcclient/cmd_ntsvcs.c

index 21714ebbbbec8535080c466189c03f28e614bf95..15a2357b42959e8b26b4f231366d2c480f3f8943 100644 (file)
@@ -282,13 +282,80 @@ static WERROR cmd_ntsvcs_get_dev_list(struct rpc_pipe_client *cli,
 
 struct cmd_set ntsvcs_commands[] = {
 
-       { "NTSVCS" },
-       { "ntsvcs_getversion", RPC_RTYPE_WERROR, NULL, cmd_ntsvcs_get_version, &ndr_table_ntsvcs, NULL, "Query NTSVCS version", "" },
-       { "ntsvcs_validatedevinst", RPC_RTYPE_WERROR, NULL, cmd_ntsvcs_validate_dev_inst, &ndr_table_ntsvcs, NULL, "Query NTSVCS device instance", "" },
-       { "ntsvcs_hwprofflags", RPC_RTYPE_WERROR, NULL, cmd_ntsvcs_hw_prof_flags, &ndr_table_ntsvcs, NULL, "Query NTSVCS HW prof flags", "" },
-       { "ntsvcs_hwprofinfo", RPC_RTYPE_WERROR, NULL, cmd_ntsvcs_get_hw_prof_info, &ndr_table_ntsvcs, NULL, "Query NTSVCS HW prof info", "" },
-       { "ntsvcs_getdevregprop", RPC_RTYPE_WERROR, NULL, cmd_ntsvcs_get_dev_reg_prop, &ndr_table_ntsvcs, NULL, "Query NTSVCS device registry property", "" },
-       { "ntsvcs_getdevlistsize", RPC_RTYPE_WERROR, NULL, cmd_ntsvcs_get_dev_list_size, &ndr_table_ntsvcs, NULL, "Query NTSVCS device list size", "" },
-       { "ntsvcs_getdevlist", RPC_RTYPE_WERROR, NULL, cmd_ntsvcs_get_dev_list, &ndr_table_ntsvcs, NULL, "Query NTSVCS device list", "" },
-       { NULL }
+       {
+               .name = "NTSVCS",
+       },
+       {
+               .name               = "ntsvcs_getversion",
+               .returntype         = RPC_RTYPE_WERROR,
+               .ntfn               = NULL,
+               .wfn                = cmd_ntsvcs_get_version,
+               .table              = &ndr_table_ntsvcs,
+               .rpc_pipe           = NULL,
+               .description        = "Query NTSVCS version",
+               .usage              = "",
+       },
+       {
+               .name               = "ntsvcs_validatedevinst",
+               .returntype         = RPC_RTYPE_WERROR,
+               .ntfn               = NULL,
+               .wfn                = cmd_ntsvcs_validate_dev_inst,
+               .table              = &ndr_table_ntsvcs,
+               .rpc_pipe           = NULL,
+               .description        = "Query NTSVCS device instance",
+               .usage              = "",
+       },
+       {
+               .name               = "ntsvcs_hwprofflags",
+               .returntype         = RPC_RTYPE_WERROR,
+               .ntfn               = NULL,
+               .wfn                = cmd_ntsvcs_hw_prof_flags,
+               .table              = &ndr_table_ntsvcs,
+               .rpc_pipe           = NULL,
+               .description        = "Query NTSVCS HW prof flags",
+               .usage              = "",
+       },
+       {
+               .name               = "ntsvcs_hwprofinfo",
+               .returntype         = RPC_RTYPE_WERROR,
+               .ntfn               = NULL,
+               .wfn                = cmd_ntsvcs_get_hw_prof_info,
+               .table              = &ndr_table_ntsvcs,
+               .rpc_pipe           = NULL,
+               .description        = "Query NTSVCS HW prof info",
+               .usage              = "",
+       },
+       {
+               .name               = "ntsvcs_getdevregprop",
+               .returntype         = RPC_RTYPE_WERROR,
+               .ntfn               = NULL,
+               .wfn                = cmd_ntsvcs_get_dev_reg_prop,
+               .table              = &ndr_table_ntsvcs,
+               .rpc_pipe           = NULL,
+               .description        = "Query NTSVCS device registry property",
+               .usage              = "",
+       },
+       {
+               .name               = "ntsvcs_getdevlistsize",
+               .returntype         = RPC_RTYPE_WERROR,
+               .ntfn               = NULL,
+               .wfn                = cmd_ntsvcs_get_dev_list_size,
+               .table              = &ndr_table_ntsvcs,
+               .rpc_pipe           = NULL,
+               .description        = "Query NTSVCS device list size",
+               .usage              = "",
+       },
+       {
+               .name               = "ntsvcs_getdevlist",
+               .returntype         = RPC_RTYPE_WERROR,
+               .ntfn               = NULL,
+               .wfn                = cmd_ntsvcs_get_dev_list,
+               .table              = &ndr_table_ntsvcs,
+               .rpc_pipe           = NULL,
+               .description        = "Query NTSVCS device list",
+               .usage              = "",
+       },
+       {
+               .name = NULL,
+       },
 };