pacemaker  2.0.4-2deceaa
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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)
 
gboolean expand_notification_data (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

#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:91

Definition at line 527 of file pcmk_sched_notif.c.

#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:91

Definition at line 531 of file pcmk_sched_notif.c.

Typedef Documentation

typedef struct notify_entry_s notify_entry_t

Function Documentation

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

Definition at line 428 of file pcmk_sched_notif.c.

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 319 of file pcmk_sched_notif.c.

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

Definition at line 675 of file pcmk_sched_notif.c.

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 823 of file pcmk_sched_notif.c.

gboolean expand_notification_data ( pe_resource_t rsc,
notify_data_t n_data,
pe_working_set_t data_set 
)

Definition at line 537 of file pcmk_sched_notif.c.

void free_notification_data ( notify_data_t n_data)

Definition at line 804 of file pcmk_sched_notif.c.