pacemaker  2.0.5-ba59be712
Scalable High-Availability cluster resource manager
ipc_pacemakerd.h
Go to the documentation of this file.
1 /*
2  * Copyright 2020 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__IPC_PACEMAKERD__H
11 # define PCMK__IPC_PACEMAKERD__H
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
24 #include <sys/types.h> // time_t
25 #include <crm/common/ipc.h> // pcmk_ipc_api_t
26 
36 };
37 
42 };
43 
47 typedef struct {
48  enum pcmk_pacemakerd_api_reply reply_type;
49 
50  union {
51  // pcmk_pacemakerd_reply_ping
52  struct {
53  const char *sys_from;
55  time_t last_good;
56  int status;
57  } ping;
58  } data;
60 
61 int pcmk_pacemakerd_api_ping(pcmk_ipc_api_t *api, const char *ipc_name);
64 const char
66 
67 #ifdef __cplusplus
68 }
69 #endif
70 
71 #endif // PCMK__IPC_PACEMAKERD__H
pcmk_pacemakerd_api_reply
Possible types of pacemakerd replies.
enum pcmk_pacemakerd_state pcmk_pacemakerd_api_daemon_state_text2enum(const char *state)
int pcmk_pacemakerd_api_ping(pcmk_ipc_api_t *api, const char *ipc_name)
pcmk_pacemakerd_state
const char * pcmk_pacemakerd_api_daemon_state_enum2text(enum pcmk_pacemakerd_state state)
char data[0]
Definition: internal.h:90
IPC interface to Pacemaker daemons.