s4: torture: Add an async SMB2_OP_FLUSH + SMB2_OP_CLOSE test to smb2.compound_async.
[Samba.git] / source3 / rpc_server / rpcd_rpcecho.c
blob9176039819f87b2699c019455dc08d689a5f1444
1 /*
2 * Unix SMB/CIFS implementation.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, see <http://www.gnu.org/licenses/>.
18 #include "replace.h"
19 #include "rpc_worker.h"
20 #include "librpc/gen_ndr/ndr_echo.h"
21 #include "librpc/gen_ndr/ndr_echo_scompat.h"
23 static size_t rpcecho_interfaces(
24 const struct ndr_interface_table ***pifaces,
25 void *private_data)
27 static const struct ndr_interface_table *ifaces[] = {
28 &ndr_table_rpcecho,
30 *pifaces = ifaces;
31 return ARRAY_SIZE(ifaces);
34 static size_t rpcecho_servers(
35 struct dcesrv_context *dce_ctx,
36 const struct dcesrv_endpoint_server ***_ep_servers,
37 void *private_data)
39 static const struct dcesrv_endpoint_server *ep_servers[1] = { NULL };
41 ep_servers[0] = rpcecho_get_ep_server();
43 *_ep_servers = ep_servers;
44 return ARRAY_SIZE(ep_servers);
47 int main(int argc, const char *argv[])
49 return rpc_worker_main(
50 argc,
51 argv,
52 "rpcd_rpcecho",
55 rpcecho_interfaces,
56 rpcecho_servers,
57 NULL);