s3:rpcclient: Use C99 initializer for cmd_set in cmd_clusapi
authorAndreas Schneider <asn@samba.org>
Wed, 9 Jan 2019 15:31:51 +0000 (16:31 +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_clusapi.c

index ab1b1f41c302bea439b9fbd8398840a916e04280..33d3a1c016ee94e89eea7fd8518c116d8597a6e5 100644 (file)
@@ -504,17 +504,120 @@ static WERROR cmd_clusapi_get_cluster_version2(struct rpc_pipe_client *cli,
 
 struct cmd_set clusapi_commands[] = {
 
-       { "CLUSAPI" },
-       { "clusapi_open_cluster", RPC_RTYPE_WERROR, NULL, cmd_clusapi_open_cluster, &ndr_table_clusapi, NULL, "bla", "" },
-       { "clusapi_get_cluster_name", RPC_RTYPE_WERROR, NULL, cmd_clusapi_get_cluster_name, &ndr_table_clusapi, NULL, "bla", "" },
-       { "clusapi_get_cluster_version", RPC_RTYPE_WERROR, NULL, cmd_clusapi_get_cluster_version, &ndr_table_clusapi, NULL, "bla", "" },
-       { "clusapi_get_quorum_resource", RPC_RTYPE_WERROR, NULL, cmd_clusapi_get_quorum_resource, &ndr_table_clusapi, NULL, "bla", "" },
-       { "clusapi_create_enum", RPC_RTYPE_WERROR, NULL, cmd_clusapi_create_enum, &ndr_table_clusapi, NULL, "bla", "" },
-       { "clusapi_create_enumex", RPC_RTYPE_WERROR, NULL, cmd_clusapi_create_enumex, &ndr_table_clusapi, NULL, "bla", "" },
-       { "clusapi_open_resource", RPC_RTYPE_WERROR, NULL, cmd_clusapi_open_resource, &ndr_table_clusapi, NULL, "bla", "" },
-       { "clusapi_online_resource", RPC_RTYPE_WERROR, NULL, cmd_clusapi_online_resource, &ndr_table_clusapi, NULL, "bla", "" },
-       { "clusapi_offline_resource", RPC_RTYPE_WERROR, NULL, cmd_clusapi_offline_resource, &ndr_table_clusapi, NULL, "bla", "" },
-       { "clusapi_get_resource_state", RPC_RTYPE_WERROR, NULL, cmd_clusapi_get_resource_state, &ndr_table_clusapi, NULL, "bla", "" },
-       { "clusapi_get_cluster_version2", RPC_RTYPE_WERROR, NULL, cmd_clusapi_get_cluster_version2, &ndr_table_clusapi, NULL, "bla", "" },
-       { NULL }
+       {
+               .name = "CLUSAPI",
+       },
+       {
+               .name               = "clusapi_open_cluster",
+               .returntype         = RPC_RTYPE_WERROR,
+               .ntfn               = NULL,
+               .wfn                = cmd_clusapi_open_cluster,
+               .table              = &ndr_table_clusapi,
+               .rpc_pipe           = NULL,
+               .description        = "bla",
+               .usage              = "",
+       },
+       {
+               .name               = "clusapi_get_cluster_name",
+               .returntype         = RPC_RTYPE_WERROR,
+               .ntfn               = NULL,
+               .wfn                = cmd_clusapi_get_cluster_name,
+               .table              = &ndr_table_clusapi,
+               .rpc_pipe           = NULL,
+               .description        = "bla",
+               .usage              = "",
+       },
+       {
+               .name               = "clusapi_get_cluster_version",
+               .returntype         = RPC_RTYPE_WERROR,
+               .ntfn               = NULL,
+               .wfn                = cmd_clusapi_get_cluster_version,
+               .table              = &ndr_table_clusapi,
+               .rpc_pipe           = NULL,
+               .description        = "bla",
+               .usage              = "",
+       },
+       {
+               .name               = "clusapi_get_quorum_resource",
+               .returntype         = RPC_RTYPE_WERROR,
+               .ntfn               = NULL,
+               .wfn                = cmd_clusapi_get_quorum_resource,
+               .table              = &ndr_table_clusapi,
+               .rpc_pipe           = NULL,
+               .description        = "bla",
+               .usage              = "",
+       },
+       {
+               .name               = "clusapi_create_enum",
+               .returntype         = RPC_RTYPE_WERROR,
+               .ntfn               = NULL,
+               .wfn                = cmd_clusapi_create_enum,
+               .table              = &ndr_table_clusapi,
+               .rpc_pipe           = NULL,
+               .description        = "bla",
+               .usage              = "",
+       },
+       {
+               .name               = "clusapi_create_enumex",
+               .returntype         = RPC_RTYPE_WERROR,
+               .ntfn               = NULL,
+               .wfn                = cmd_clusapi_create_enumex,
+               .table              = &ndr_table_clusapi,
+               .rpc_pipe           = NULL,
+               .description        = "bla",
+               .usage              = "",
+       },
+       {
+               .name               = "clusapi_open_resource",
+               .returntype         = RPC_RTYPE_WERROR,
+               .ntfn               = NULL,
+               .wfn                = cmd_clusapi_open_resource,
+               .table              = &ndr_table_clusapi,
+               .rpc_pipe           = NULL,
+               .description        = "bla",
+               .usage              = "",
+       },
+       {
+               .name               = "clusapi_online_resource",
+               .returntype         = RPC_RTYPE_WERROR,
+               .ntfn               = NULL,
+               .wfn                = cmd_clusapi_online_resource,
+               .table              = &ndr_table_clusapi,
+               .rpc_pipe           = NULL,
+               .description        = "bla",
+               .usage              = "",
+       },
+       {
+               .name               = "clusapi_offline_resource",
+               .returntype         = RPC_RTYPE_WERROR,
+               .ntfn               = NULL,
+               .wfn                = cmd_clusapi_offline_resource,
+               .table              = &ndr_table_clusapi,
+               .rpc_pipe           = NULL,
+               .description        = "bla",
+               .usage              = "",
+       },
+       {
+               .name               = "clusapi_get_resource_state",
+               .returntype         = RPC_RTYPE_WERROR,
+               .ntfn               = NULL,
+               .wfn                = cmd_clusapi_get_resource_state,
+               .table              = &ndr_table_clusapi,
+               .rpc_pipe           = NULL,
+               .description        = "bla",
+               .usage              = "",
+       },
+       {
+               .name               = "clusapi_get_cluster_version2",
+               .returntype         = RPC_RTYPE_WERROR,
+               .ntfn               = NULL,
+               .wfn                = cmd_clusapi_get_cluster_version2,
+               .table              = &ndr_table_clusapi,
+               .rpc_pipe           = NULL,
+               .description        = "bla",
+               .usage              = "",
+       },
+       {
+               .name = NULL,
+       },
 };