ctdb-server: Remove duplicate logic
[samba4-gss.git] / source3 / rpc_server / rpc_worker.h
blob54cc53fc89423406745a6cd3163ed366a48eed6e
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 #ifndef __RPC_WORKER_H__
19 #define __RPC_WORKER_H__
21 #include "replace.h"
22 #include "librpc/rpc/dcesrv_core.h"
24 int rpc_worker_main(
25 int argc,
26 const char *argv[],
27 const char *daemon_config_name,
28 int num_workers,
29 int idle_seconds,
30 size_t (*get_interfaces)(
31 const struct ndr_interface_table ***ifaces,
32 void *private_data),
33 NTSTATUS (*get_servers)(
34 struct dcesrv_context *dce_ctx,
35 const struct dcesrv_endpoint_server ***ep_servers,
36 size_t *num_ep_servers,
37 void *private_data),
38 void *private_data);
40 #endif /* __RPC_WORKER_H__ */