pacemaker  2.0.5-ba59be712
Scalable High-Availability cluster resource manager
Macros | Typedefs | Functions
pcmk_sched_notif.c File Reference
#include <crm_internal.h>
#include <crm/msg_xml.h>
#include <pacemaker-internal.h>
Include dependency graph for pcmk_sched_notif.c:

Go to the source code of this file.

Macros

#define add_notify_env(n_data, key, value)
 
#define add_notify_env_free(n_data, key, value)
 

Typedefs

typedef struct notify_entry_s notify_entry_t
 

Functions

notify_data_tcreate_notification_boundaries (pe_resource_t *rsc, const char *action, pe_action_t *start, pe_action_t *end, pe_working_set_t *data_set)
 
void collect_notification_data (pe_resource_t *rsc, gboolean state, gboolean activity, notify_data_t *n_data)
 
void pcmk__create_notification_keys (pe_resource_t *rsc, notify_data_t *n_data, pe_working_set_t *data_set)
 
void create_notifications (pe_resource_t *rsc, notify_data_t *n_data, pe_working_set_t *data_set)
 
void free_notification_data (notify_data_t *n_data)
 
void create_secondary_notification (pe_action_t *action, pe_resource_t *rsc, pe_action_t *stonith_op, pe_working_set_t *data_set)
 

Macro Definition Documentation

◆ add_notify_env

#define add_notify_env (   n_data,
  key,
  value 
)
Value:
do { \
n_data->keys = pcmk_prepend_nvpair(n_data->keys, key, value); \
} while (0)
GSList * pcmk_prepend_nvpair(GSList *nvpairs, const char *name, const char *value)
Prepend a name/value pair to a list.
Definition: nvpair.c:92

Definition at line 508 of file pcmk_sched_notif.c.

◆ add_notify_env_free

#define add_notify_env_free (   n_data,
  key,
  value 
)
Value:
do { \
n_data->keys = pcmk_prepend_nvpair(n_data->keys, key, value); \
free(value); value = NULL; \
} while (0)
GSList * pcmk_prepend_nvpair(GSList *nvpairs, const char *name, const char *value)
Prepend a name/value pair to a list.
Definition: nvpair.c:92

Definition at line 512 of file pcmk_sched_notif.c.

Typedef Documentation

◆ notify_entry_t

typedef struct notify_entry_s notify_entry_t

Function Documentation

◆ collect_notification_data()

void collect_notification_data ( pe_resource_t rsc,
gboolean  state,
gboolean  activity,
notify_data_t n_data 
)

Definition at line 407 of file pcmk_sched_notif.c.

◆ create_notification_boundaries()

notify_data_t* create_notification_boundaries ( pe_resource_t rsc,
const char *  action,
pe_action_t start,
pe_action_t end,
pe_working_set_t data_set 
)

Definition at line 288 of file pcmk_sched_notif.c.

◆ create_notifications()

void create_notifications ( pe_resource_t rsc,
notify_data_t n_data,
pe_working_set_t data_set 
)

Definition at line 643 of file pcmk_sched_notif.c.

◆ create_secondary_notification()

void create_secondary_notification ( pe_action_t action,
pe_resource_t rsc,
pe_action_t stonith_op,
pe_working_set_t data_set 
)

Definition at line 794 of file pcmk_sched_notif.c.

◆ free_notification_data()

void free_notification_data ( notify_data_t n_data)

Definition at line 775 of file pcmk_sched_notif.c.

◆ pcmk__create_notification_keys()

void pcmk__create_notification_keys ( pe_resource_t rsc,
notify_data_t n_data,
pe_working_set_t data_set 
)

Definition at line 526 of file pcmk_sched_notif.c.