pacemaker  2.1.6-802a72226b
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, const pe_node_t *node, GHashTable *overrides)
 
int pcmk_resource_digests (xmlNodePtr *xml, pe_resource_t *rsc, const 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:280
#define XML_CIB_TAG_LRM
Definition: msg_xml.h:278
#define XML_ATTR_ID
Definition: msg_xml.h:147
#define XML_CIB_TAG_STATE
Definition: msg_xml.h:217
#define XML_ATTR_UNAME
Definition: msg_xml.h:170
#define XML_LRM_TAG_RESOURCES
Definition: msg_xml.h:279
#define XML_CIB_TAG_STATUS
Definition: msg_xml.h:198

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,
const pe_node_t node,
GHashTable *  overrides 
)

Definition at line 118 of file pcmk_resource.c.

◆ pcmk_resource_digests()

int pcmk_resource_digests ( xmlNodePtr *  xml,
pe_resource_t rsc,
const 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,out]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 158 of file pcmk_resource.c.