pacemaker  3.0.0-d8340737c4
Scalable High-Availability cluster resource manager
servers_internal.h
Go to the documentation of this file.
1 /*
2  * Copyright 2024 the Pacemaker project contributors
3  *
4  * The version control history for this file may have further details.
5  *
6  * This source code is licensed under the GNU Lesser General Public License
7  * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
8  */
9 
10 #ifndef PCMK__CRM_COMMON_SERVERS_INTERNAL__H
11 #define PCMK__CRM_COMMON_SERVERS_INTERNAL__H
12 
13 #include <crm/common/ipc.h> // enum pcmk_ipc_server
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 // Pacemaker server names
20 #define PCMK__SERVER_ATTRD "pacemaker-attrd"
21 #define PCMK__SERVER_BASED "pacemaker-based"
22 #define PCMK__SERVER_CONTROLD "pacemaker-controld"
23 #define PCMK__SERVER_EXECD "pacemaker-execd"
24 #define PCMK__SERVER_FENCED "pacemaker-fenced"
25 #define PCMK__SERVER_PACEMAKERD "pacemakerd"
26 #define PCMK__SERVER_REMOTED "pacemaker-remoted"
27 #define PCMK__SERVER_SCHEDULERD "pacemaker-schedulerd"
28 
29 const char *pcmk__server_name(enum pcmk_ipc_server server);
30 const char *pcmk__server_log_name(enum pcmk_ipc_server server);
31 const char *pcmk__server_ipc_name(enum pcmk_ipc_server server);
32 const char *pcmk__server_message_type(enum pcmk_ipc_server server);
33 enum pcmk_ipc_server pcmk__parse_server(const char *text);
34 
35 #ifdef __cplusplus
36 }
37 #endif
38 
39 #endif // PCMK__CRM_COMMON_SERVERS_INTERNAL__H
const char * pcmk__server_log_name(enum pcmk_ipc_server server)
Definition: servers.c:126
const char * pcmk__server_ipc_name(enum pcmk_ipc_server server)
Definition: servers.c:144
const char * pcmk__server_message_type(enum pcmk_ipc_server server)
Definition: servers.c:162
pcmk_ipc_server
Available IPC interfaces.
Definition: ipc.h:48
enum pcmk_ipc_server pcmk__parse_server(const char *text)
Definition: servers.c:178
const char * pcmk__server_name(enum pcmk_ipc_server server)
Definition: servers.c:108
IPC interface to Pacemaker daemons.