pacemaker
1.1.18-7fdfbbe
Scalable High-Availability cluster resource manager
|
#include <crm_internal.h>
#include <crm/crm.h>
#include <crm/lrmd.h>
#include <crm/msg_xml.h>
#include <crm/common/alerts_internal.h>
#include <crm/cib/internal.h>
Go to the source code of this file.
Macros | |
#define | XPATH_PATCHSET1_DIFF "//" F_CIB_UPDATE_RESULT "//" XML_TAG_DIFF_ADDED |
#define | XPATH_PATCHSET1_CRMCONFIG XPATH_PATCHSET1_DIFF "//" XML_CIB_TAG_CRMCONFIG |
#define | XPATH_PATCHSET1_ALERTS XPATH_PATCHSET1_DIFF "//" XML_CIB_TAG_ALERTS |
#define | XPATH_PATCHSET1_EITHER XPATH_PATCHSET1_CRMCONFIG " | " XPATH_PATCHSET1_ALERTS |
#define | XPATH_CONFIG "/" XML_TAG_CIB "/" XML_CIB_TAG_CONFIGURATION |
#define | XPATH_CRMCONFIG XPATH_CONFIG "/" XML_CIB_TAG_CRMCONFIG "/" |
#define | XPATH_ALERTS XPATH_CONFIG "/" XML_CIB_TAG_ALERTS |
Functions | |
void | crm_free_alert_envvar (crm_alert_envvar_t *entry) |
crm_alert_entry_t * | crm_alert_entry_new (const char *id, const char *path) |
Create a new alert entry structure. More... | |
void | crm_free_alert_entry (crm_alert_entry_t *entry) |
crm_alert_envvar_t * | crm_dup_alert_envvar (crm_alert_envvar_t *src) |
crm_alert_entry_t * | crm_dup_alert_entry (crm_alert_entry_t *entry) |
void | crm_unset_alert_keys () |
void | crm_insert_alert_key (GHashTable *table, enum crm_alert_keys_e name, const char *value) |
void | crm_insert_alert_key_int (GHashTable *table, enum crm_alert_keys_e name, int value) |
void | crm_set_envvar_list (crm_alert_entry_t *entry) |
void | crm_unset_envvar_list (crm_alert_entry_t *entry) |
bool | crm_patchset_contains_alert (xmlNode *msg, bool config) |
Variables | |
const char * | crm_alert_keys [CRM_ALERT_INTERNAL_KEY_MAX][3] |
#define XPATH_ALERTS XPATH_CONFIG "/" XML_CIB_TAG_ALERTS |
#define XPATH_CONFIG "/" XML_TAG_CIB "/" XML_CIB_TAG_CONFIGURATION |
#define XPATH_CRMCONFIG XPATH_CONFIG "/" XML_CIB_TAG_CRMCONFIG "/" |
#define XPATH_PATCHSET1_ALERTS XPATH_PATCHSET1_DIFF "//" XML_CIB_TAG_ALERTS |
#define XPATH_PATCHSET1_CRMCONFIG XPATH_PATCHSET1_DIFF "//" XML_CIB_TAG_CRMCONFIG |
#define XPATH_PATCHSET1_DIFF "//" F_CIB_UPDATE_RESULT "//" XML_TAG_DIFF_ADDED |
#define XPATH_PATCHSET1_EITHER XPATH_PATCHSET1_CRMCONFIG " | " XPATH_PATCHSET1_ALERTS |
crm_alert_entry_t* crm_alert_entry_new | ( | const char * | id, |
const char * | path | ||
) |
Create a new alert entry structure.
[in] | id | ID to use |
[in] | path | Path to alert agent executable |
crm_alert_entry_t* crm_dup_alert_entry | ( | crm_alert_entry_t * | entry | ) |
crm_alert_envvar_t* crm_dup_alert_envvar | ( | crm_alert_envvar_t * | src | ) |
void crm_free_alert_entry | ( | crm_alert_entry_t * | entry | ) |
void crm_free_alert_envvar | ( | crm_alert_envvar_t * | entry | ) |
void crm_insert_alert_key | ( | GHashTable * | table, |
enum crm_alert_keys_e | name, | ||
const char * | value | ||
) |
void crm_insert_alert_key_int | ( | GHashTable * | table, |
enum crm_alert_keys_e | name, | ||
int | value | ||
) |
bool crm_patchset_contains_alert | ( | xmlNode * | msg, |
bool | config | ||
) |
void crm_set_envvar_list | ( | crm_alert_entry_t * | entry | ) |
void crm_unset_envvar_list | ( | crm_alert_entry_t * | entry | ) |
const char* crm_alert_keys[CRM_ALERT_INTERNAL_KEY_MAX][3] |