pacemaker
2.1.7-0f7f88312f
Scalable High-Availability cluster resource manager
include
crm
common
ipc_schedulerd.h
Go to the documentation of this file.
1
/*
2
* Copyright 2021-2022 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
27
enum
pcmk_schedulerd_api_reply
{
29
pcmk_schedulerd_reply_unknown
,
30
pcmk_schedulerd_reply_graph
,
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
;
47
}
pcmk_schedulerd_api_reply_t
;
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
pcmk_schedulerd_api_reply_t::reference
const char * reference
Definition:
ipc_schedulerd.h:43
data
char data[0]
Definition:
cpg.c:55
pcmk_schedulerd_api_reply_t::tgraph
xmlNode * tgraph
Definition:
ipc_schedulerd.h:42
pcmk_schedulerd_api_reply_t
Definition:
ipc_schedulerd.h:36
pcmk_schedulerd_api_graph
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.
Definition:
ipc_schedulerd.c:177
pcmk_schedulerd_api_reply_t::input
const char * input
Definition:
ipc_schedulerd.h:44
pcmk_schedulerd_api_reply
pcmk_schedulerd_api_reply
Possible types of schedulerd replies.
Definition:
ipc_schedulerd.h:28
pcmk_ipc_api_s
Definition:
crmcommon_private.h:205
pcmk_schedulerd_reply_graph
Definition:
ipc_schedulerd.h:30
ipc.h
IPC interface to Pacemaker daemons.
pcmk_schedulerd_reply_unknown
Definition:
ipc_schedulerd.h:29
Generated on Tue Dec 19 2023 17:32:56 for pacemaker by
1.8.14