pacemaker  2.1.1-52dc28db4
Scalable High-Availability cluster resource manager
Functions
pacemaker.h File Reference

High Level API. More...

#include <glib.h>
#include <libxml/tree.h>
#include <crm/pengine/pe_types.h>
#include <crm/stonith-ng.h>
Include dependency graph for pacemaker.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int pcmk_controller_status (xmlNodePtr *xml, char *dest_node, unsigned int message_timeout_ms)
 Get controller status. More...
 
int pcmk_designated_controller (xmlNodePtr *xml, unsigned int message_timeout_ms)
 Get designated controller. More...
 
int pcmk_pacemakerd_status (xmlNodePtr *xml, char *ipc_name, unsigned int message_timeout_ms)
 Get pacemakerd status. More...
 
int pcmk_resource_digests (xmlNodePtr *xml, pe_resource_t *rsc, pe_node_t *node, GHashTable *overrides, pe_working_set_t *data_set)
 Calculate and output resource operation digests. More...
 
int pcmk_list_nodes (xmlNodePtr *xml, char *node_types)
 Get nodes list. More...
 

Detailed Description

High Level API.

Definition in file pacemaker.h.

Function Documentation

◆ pcmk_controller_status()

int pcmk_controller_status ( xmlNodePtr *  xml,
char *  dest_node,
unsigned int  message_timeout_ms 
)

Get controller status.

Parameters
[in,out]xmlThe destination for the result, as an XML tree.
[in]dest_nodeDestination node for request
[in]message_timeout_msMessage timeout
Returns
Standard Pacemaker return code

Definition at line 298 of file pcmk_cluster_queries.c.

◆ pcmk_designated_controller()

int pcmk_designated_controller ( xmlNodePtr *  xml,
unsigned int  message_timeout_ms 
)

Get designated controller.

Parameters
[in,out]xmlThe destination for the result, as an XML tree.
[in]message_timeout_msMessage timeout
Returns
Standard Pacemaker return code

Definition at line 343 of file pcmk_cluster_queries.c.

◆ pcmk_list_nodes()

int pcmk_list_nodes ( xmlNodePtr *  xml,
char *  node_types 
)

Get nodes list.

Parameters
[in,out]xmlThe destination for the result, as an XML tree.
[in]node_typesNode type(s) to return (default: all)
Returns
Standard Pacemaker return code

Definition at line 497 of file pcmk_cluster_queries.c.

◆ pcmk_pacemakerd_status()

int pcmk_pacemakerd_status ( xmlNodePtr *  xml,
char *  ipc_name,
unsigned int  message_timeout_ms 
)

Get pacemakerd status.

Parameters
[in,out]xmlThe destination for the result, as an XML tree.
[in]ipc_nameIPC name for request
[in]message_timeout_msMessage timeout
Returns
Standard Pacemaker return code

Definition at line 388 of file pcmk_cluster_queries.c.

◆ pcmk_resource_digests()

int pcmk_resource_digests ( xmlNodePtr *  xml,
pe_resource_t rsc,
pe_node_t node,
GHashTable *  overrides,
pe_working_set_t data_set 
)

Calculate and output resource operation digests.

Parameters
[out]xmlWhere to store XML with result
[in]rscResource to calculate digests for
[in]nodeNode whose operation history should be used
[in]overridesHash table of configuration parameters to override
[in]data_setCluster working set (with status)
Returns
Standard Pacemaker return code

Definition at line 125 of file pcmk_resource.c.