3bdae2a6c52a35b3ded32c5edde51aca151894bd
[ddiss/samba.git] / source3 / rpc_server / rpc_config.h
1 /*
2  *  Unix SMB/CIFS implementation.
3  *
4  *  SMBD RPC service config
5  *
6  *  Copyright (c) 2011      Andreas Schneider <asn@samba.org>
7  *  Copyright (C) 2011      Simo Sorce <idra@samba.org>
8  *
9  *  This program is free software; you can redistribute it and/or modify
10  *  it under the terms of the GNU General Public License as published by
11  *  the Free Software Foundation; either version 3 of the License, or
12  *  (at your option) any later version.
13  *
14  *  This program is distributed in the hope that it will be useful,
15  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  *  GNU General Public License for more details.
18  *
19  *  You should have received a copy of the GNU General Public License
20  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
21  */
22
23 #ifndef _RPC_CONFIG_H
24 #define _RPC_CONFIG_H
25
26 enum rpc_service_mode_e {
27         RPC_SERVICE_MODE_DISABLED = 0,
28         RPC_SERVICE_MODE_EMBEDDED,
29         RPC_SERVICE_MODE_EXTERNAL
30 };
31
32 /**
33  * @brief Get the mode in which service pipes are configured.
34  *
35  * @param name          Name of the service
36  *
37  * @return The actual configured mode.
38  */
39 enum rpc_service_mode_e rpc_service_mode(const char *name);
40
41 #define rpc_epmapper_mode() rpc_service_mode("epmapper")
42 #define rpc_spoolss_mode() rpc_service_mode("spoolss")
43 #define rpc_lsarpc_mode() rpc_service_mode("lsarpc")
44 #define rpc_samr_mode() rpc_service_mode("samr")
45 #define rpc_netlogon_mode() rpc_service_mode("netlogon")
46 #define rpc_fss_mode() rpc_service_mode("fss")
47
48
49
50 enum rpc_daemon_type_e {
51         RPC_DAEMON_DISABLED = 0,
52         RPC_DAEMON_EMBEDDED,
53         RPC_DAEMON_FORK
54 };
55
56 /**
57  * @brief Get the mode in which a server is started.
58  *
59  * @param name          Name of the rpc server
60  *
61  * @return The actual configured type.
62  */
63 enum rpc_daemon_type_e rpc_daemon_type(const char *name);
64
65 #define rpc_epmapper_daemon() rpc_daemon_type("epmd")
66 #define rpc_spoolss_daemon() rpc_daemon_type("spoolssd")
67 #define rpc_lsasd_daemon() rpc_daemon_type("lsasd")
68 #define rpc_fss_daemon() rpc_daemon_type("fssd")
69
70 #endif /* _RPC_CONFIG_H */