pacemaker  2.1.4-dc6eb4362
Scalable High-Availability cluster resource manager
Macros | Functions
pcmk_resource.c File Reference
#include <crm_internal.h>
#include <errno.h>
#include <glib.h>
#include <libxml/tree.h>
#include <crm/common/mainloop.h>
#include <crm/common/results.h>
#include <crm/common/output_internal.h>
#include <crm/pengine/internal.h>
#include <pacemaker.h>
#include <pacemaker-internal.h>
Include dependency graph for pcmk_resource.c:

Go to the source code of this file.

Macros

#define XPATH_OP_HISTORY
 

Functions

int pcmk__resource_digests (pcmk__output_t *out, pe_resource_t *rsc, pe_node_t *node, GHashTable *overrides, pe_working_set_t *data_set)
 
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...
 

Macro Definition Documentation

◆ XPATH_OP_HISTORY

#define XPATH_OP_HISTORY
Value:
"/" XML_CIB_TAG_STATE "[@" XML_ATTR_UNAME "='%s']" \
#define XML_LRM_TAG_RESOURCE
Definition: msg_xml.h:270
#define XML_CIB_TAG_LRM
Definition: msg_xml.h:268
#define XML_ATTR_ID
Definition: msg_xml.h:135
#define XML_CIB_TAG_STATE
Definition: msg_xml.h:204
#define XML_ATTR_UNAME
Definition: msg_xml.h:157
#define XML_LRM_TAG_RESOURCES
Definition: msg_xml.h:269
#define XML_CIB_TAG_STATUS
Definition: msg_xml.h:185

Definition at line 25 of file pcmk_resource.c.

Function Documentation

◆ pcmk__resource_digests()

int pcmk__resource_digests ( pcmk__output_t out,
pe_resource_t rsc,
pe_node_t node,
GHashTable *  overrides,
pe_working_set_t data_set 
)

Definition at line 84 of file pcmk_resource.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.