mirror of
https://github.com/samba-team/samba.git
synced 2025-11-23 20:23:50 +03:00
s3:rpcclient: Use C99 initializer for cmd_set in cmd_clusapi
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
committed by
Andreas Schneider
parent
b7b7813422
commit
d69fbf4150
@@ -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,
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user