1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

s3:rpcclient: Use C99 initializer for cmd_set in cmd_witness

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
Andreas Schneider 2019-01-11 14:47:02 +01:00 committed by Andreas Schneider
parent 05afe9624f
commit f70dbe9f86

View File

@ -550,13 +550,62 @@ done:
}
struct cmd_set witness_commands[] = {
{"WITNESS"},
{"GetInterfaceList", RPC_RTYPE_WERROR, NULL, &cmd_witness_GetInterfaceList, &ndr_table_witness, NULL, "", ""},
{"Register", RPC_RTYPE_WERROR, NULL, &cmd_witness_Register, &ndr_table_witness, NULL, "", ""},
{"UnRegister", RPC_RTYPE_WERROR, NULL, &cmd_witness_UnRegister, &ndr_table_witness, NULL, "", ""},
{"AsyncNotify", RPC_RTYPE_WERROR, NULL, &cmd_witness_AsyncNotify, &ndr_table_witness, NULL, "", ""},
{"RegisterEx", RPC_RTYPE_WERROR, NULL, &cmd_witness_RegisterEx, &ndr_table_witness, NULL, "", ""},
{NULL}
{
.name = "WITNESS",
},
{
.name = "GetInterfaceList",
.returntype = RPC_RTYPE_WERROR,
.ntfn = NULL,
.wfn = &cmd_witness_GetInterfaceList,
.table = &ndr_table_witness,
.rpc_pipe = NULL,
.description = "",
.usage = "",
},
{
.name = "Register",
.returntype = RPC_RTYPE_WERROR,
.ntfn = NULL,
.wfn = &cmd_witness_Register,
.table = &ndr_table_witness,
.rpc_pipe = NULL,
.description = "",
.usage = "",
},
{
.name = "UnRegister",
.returntype = RPC_RTYPE_WERROR,
.ntfn = NULL,
.wfn = &cmd_witness_UnRegister,
.table = &ndr_table_witness,
.rpc_pipe = NULL,
.description = "",
.usage = "",
},
{
.name = "AsyncNotify",
.returntype = RPC_RTYPE_WERROR,
.ntfn = NULL,
.wfn = &cmd_witness_AsyncNotify,
.table = &ndr_table_witness,
.rpc_pipe = NULL,
.description = "",
.usage = "",
},
{
.name = "RegisterEx",
.returntype = RPC_RTYPE_WERROR,
.ntfn = NULL,
.wfn = &cmd_witness_RegisterEx,
.table = &ndr_table_witness,
.rpc_pipe = NULL,
.description = "",
.usage = "",
},
{
.name = NULL,
}
};
/*