pacemaker  2.0.2-debe490
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);
27  const pe_resource_t *rsc);
28 void pe_foreach_guest_node(const pe_working_set_t *data_set, const node_t *host,
29  void (*helper)(const node_t*, void*), void *user_data);
30 xmlNode *pe_create_remote_xml(xmlNode *parent, const char *uname,
31  const char *container_id, const char *migrateable,
32  const char *is_managed, const char *start_timeout,
33  const char *server, const char *port);
35 #ifdef __cplusplus
36 }
37 #endif
39 #endif
char uname[MAX_NAME]
Definition: internal.h:87
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:151
gboolean pe__is_guest_or_remote_node(pe_node_t *node)
Definition: remote.c:58
AIS_Host host
Definition: internal.h:86
void pe_foreach_guest_node(const pe_working_set_t *data_set, const node_t *host, void(*helper)(const node_t *, void *), void *user_data)
Definition: remote.c:115
gboolean pe__is_guest_node(pe_node_t *node)
Definition: remote.c:47
pe_resource_t * pe__resource_contains_guest_node(const pe_working_set_t *data_set, const pe_resource_t *rsc)
Definition: remote.c:76
gboolean xml_contains_remote_node(xmlNode *xml)
Definition: remote.c:92
Cluster status and scheduling.
gboolean pe__resource_is_remote_conn(pe_resource_t *rsc, pe_working_set_t *data_set)
Definition: remote.c:17
gboolean pe__is_remote_node(pe_node_t *node)
Definition: remote.c:36