pacemaker  2.1.0-7c3f660
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
attrd_client.c File Reference
#include <crm_internal.h>
#include <stdio.h>
#include <crm/crm.h>
#include <crm/msg_xml.h>
#include <crm/common/attrd_internal.h>
Include dependency graph for attrd_client.c:

Go to the source code of this file.

Macros

#define _GNU_SOURCE
 
#define LRM_TARGET_ENV   "OCF_RESKEY_" CRM_META "_" XML_LRM_ATTR_TARGET
 

Functions

int pcmk__node_attr_request (crm_ipc_t *ipc, char command, const char *host, const char *name, const char *value, const char *section, const char *set, const char *dampen, const char *user_name, int options)
 
int pcmk__node_attr_request_clear (crm_ipc_t *ipc, const char *host, const char *resource, const char *operation, const char *interval_spec, const char *user_name, int options)
 
const char * pcmk__node_attr_target (const char *name)
 
char * pcmk_promotion_score_name (const char *rsc_id)
 Return the name of the node attribute used as a promotion score. More...
 

Macro Definition Documentation

#define _GNU_SOURCE

Definition at line 11 of file attrd_client.c.

#define LRM_TARGET_ENV   "OCF_RESKEY_" CRM_META "_" XML_LRM_ATTR_TARGET

Definition at line 273 of file attrd_client.c.

Function Documentation

int pcmk__node_attr_request ( crm_ipc_t ipc,
char  command,
const char *  host,
const char *  name,
const char *  value,
const char *  section,
const char *  set,
const char *  dampen,
const char *  user_name,
int  options 
)

Definition at line 133 of file attrd_client.c.

int pcmk__node_attr_request_clear ( crm_ipc_t ipc,
const char *  host,
const char *  resource,
const char *  operation,
const char *  interval_spec,
const char *  user_name,
int  options 
)

Definition at line 239 of file attrd_client.c.

const char* pcmk__node_attr_target ( const char *  name)

Definition at line 279 of file attrd_client.c.

char* pcmk_promotion_score_name ( const char *  rsc_id)

Return the name of the node attribute used as a promotion score.

Parameters
[in]rsc_idResource ID that promotion score is for (or NULL to check the OCF_RESOURCE_INSTANCE environment variable)
Returns
Newly allocated string with the node attribute name (or NULL on error, including no ID or environment variable specified)
Note
It is the caller's responsibility to free() the result.

Definition at line 320 of file attrd_client.c.