pacemaker  2.1.8-3980678f03
Scalable High-Availability cluster resource manager
Functions | Variables
alerts.c File Reference
#include <crm_internal.h>
#include <crm/crm.h>
#include <crm/lrmd.h>
#include <crm/common/xml.h>
#include <crm/common/alerts_internal.h>
#include <crm/common/cib_internal.h>
#include <crm/common/xml_internal.h>
Include dependency graph for alerts.c:

Go to the source code of this file.

Functions

pcmk__alert_tpcmk__alert_new (const char *id, const char *path)
 Create a new alert entry structure. More...
 
void pcmk__free_alert (pcmk__alert_t *entry)
 
pcmk__alert_tpcmk__dup_alert (const pcmk__alert_t *entry)
 
void pcmk__add_alert_key (GHashTable *table, enum pcmk__alert_keys_e name, const char *value)
 
void pcmk__add_alert_key_int (GHashTable *table, enum pcmk__alert_keys_e name, int value)
 

Variables

const char * pcmk__alert_keys [PCMK__ALERT_INTERNAL_KEY_MAX][3]
 

Function Documentation

◆ pcmk__add_alert_key()

void pcmk__add_alert_key ( GHashTable *  table,
enum pcmk__alert_keys_e  name,
const char *  value 
)

Definition at line 149 of file alerts.c.

◆ pcmk__add_alert_key_int()

void pcmk__add_alert_key_int ( GHashTable *  table,
enum pcmk__alert_keys_e  name,
int  value 
)

Definition at line 163 of file alerts.c.

◆ pcmk__alert_new()

pcmk__alert_t* pcmk__alert_new ( const char *  id,
const char *  path 
)

Create a new alert entry structure.

Parameters
[in]idID to use
[in]pathPath to alert agent executable
Returns
Pointer to newly allocated alert entry
Note
Non-string fields will be filled in with defaults. It is the caller's responsibility to free the result, using pcmk__free_alert().

Definition at line 95 of file alerts.c.

◆ pcmk__dup_alert()

pcmk__alert_t* pcmk__dup_alert ( const pcmk__alert_t entry)

Definition at line 133 of file alerts.c.

◆ pcmk__free_alert()

void pcmk__free_alert ( pcmk__alert_t entry)

Definition at line 108 of file alerts.c.

Variable Documentation

◆ pcmk__alert_keys

const char* pcmk__alert_keys[PCMK__ALERT_INTERNAL_KEY_MAX][3]

Definition at line 22 of file alerts.c.