1
2
3
4
5
6
7
8
9
10 #ifndef PE_REMOTE__H
11 # define PE_REMOTE__H
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
17 #include <glib.h>
18 #include <libxml/tree.h>
19 #include <crm/pengine/status.h>
20
21 bool xml_contains_remote_node(xmlNode *xml);
22 bool pe__is_remote_node(const pe_node_t *node);
23 bool pe__is_guest_node(const pe_node_t *node);
24 bool pe__is_guest_or_remote_node(const pe_node_t *node);
25 bool pe__is_bundle_node(const pe_node_t *node);
26 bool pe__resource_is_remote_conn(const pe_resource_t *rsc,
27 const pe_working_set_t *data_set);
28 pe_resource_t *pe__resource_contains_guest_node(const pe_working_set_t *data_set,
29 const pe_resource_t *rsc);
30 void pe_foreach_guest_node(const pe_working_set_t *data_set, const pe_node_t *host,
31 void (*helper)(const pe_node_t*, void*), void *user_data);
32 xmlNode *pe_create_remote_xml(xmlNode *parent, const char *uname,
33 const char *container_id, const char *migrateable,
34 const char *is_managed, const char *start_timeout,
35 const char *server, const char *port);
36
37 #ifdef __cplusplus
38 }
39 #endif
40
41 #endif