pacemaker  2.0.4-2deceaa
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Go to the documentation of this file.
1 /*
2  * Copyright 2013-2019 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  */
10 #ifndef PE_REMOTE__H
11 # define PE_REMOTE__H
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
17 #include <glib.h> // gboolean
18 #include <libxml/tree.h> // xmlNode
19 #include <crm/pengine/status.h>
21 gboolean xml_contains_remote_node(xmlNode *xml);
22 gboolean pe__is_remote_node(pe_node_t *node);
23 gboolean pe__is_guest_node(pe_node_t *node);
25 bool pe__is_bundle_node(pe_node_t *node);
28  const pe_resource_t *rsc);
29 void pe_foreach_guest_node(const pe_working_set_t *data_set, const pe_node_t *host,
30  void (*helper)(const pe_node_t*, void*), void *user_data);
31 xmlNode *pe_create_remote_xml(xmlNode *parent, const char *uname,
32  const char *container_id, const char *migrateable,
33  const char *is_managed, const char *start_timeout,
34  const char *server, const char *port);
36 #ifdef __cplusplus
37 }
38 #endif
40 #endif
char uname[MAX_NAME]
Definition: internal.h:85
void pe_foreach_guest_node(const pe_working_set_t *data_set, const pe_node_t *host, void(*helper)(const pe_node_t *, void *), void *user_data)
Definition: remote.c:122
gboolean pe__is_guest_or_remote_node(pe_node_t *node)
Definition: remote.c:58
gboolean xml_contains_remote_node(xmlNode *xml)
Definition: remote.c:99
AIS_Host host
Definition: internal.h:84
bool pe__is_bundle_node(pe_node_t *node)
Definition: remote.c:64
gboolean pe__is_remote_node(pe_node_t *node)
Definition: remote.c:36
xmlNode * pe_create_remote_xml(xmlNode *parent, const char *uname, const char *container_id, const char *migrateable, const char *is_managed, const char *start_timeout, const char *server, const char *port)
Definition: remote.c:158
gboolean pe__resource_is_remote_conn(pe_resource_t *rsc, pe_working_set_t *data_set)
Definition: remote.c:17
pe_resource_t * pe__resource_contains_guest_node(const pe_working_set_t *data_set, const pe_resource_t *rsc)
Definition: remote.c:83
gboolean pe__is_guest_node(pe_node_t *node)
Definition: remote.c:47
Cluster status and scheduling.