pacemaker  2.1.4-dc6eb4362
Scalable High-Availability cluster resource manager
ipc_schedulerd.h
Go to the documentation of this file.
1 /*
2  * Copyright 2021 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_IPC_SCHEDULERD__H
11 # define PCMK__CRM_COMMON_IPC_SCHEDULERD__H
12 
13 #include <crm/common/ipc.h> // pcmk_ipc_api_t
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
31 };
32 
36 typedef struct {
37  enum pcmk_schedulerd_api_reply reply_type;
38 
39  union {
40  // pcmk__schedulerd_reply_graph
41  struct {
42  xmlNode *tgraph;
43  const char *reference;
44  const char *input;
45  } graph;
46  } data;
48 
58 int pcmk_schedulerd_api_graph(pcmk_ipc_api_t *api, xmlNode *cib, char **ref);
59 
60 #ifdef __cplusplus
61 }
62 #endif
63 
64 #endif // PCMK__CRM_COMMON_IPC_SCHEDULERD__H
char data[0]
Definition: cpg.c:55
int pcmk_schedulerd_api_graph(pcmk_ipc_api_t *api, xmlNode *cib, char **ref)
Make an IPC request to the scheduler for the transition graph.
pcmk_schedulerd_api_reply
Possible types of schedulerd replies.
IPC interface to Pacemaker daemons.