pacemaker  2.0.2-debe490
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 (resource_t *rsc, const char *action, action_t *start, action_t *end, pe_working_set_t *data_set)
 
void collect_notification_data (resource_t *rsc, gboolean state, gboolean activity, notify_data_t *n_data)
 
gboolean expand_notification_data (resource_t *rsc, notify_data_t *n_data, pe_working_set_t *data_set)
 
void create_notifications (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, 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:88

Definition at line 525 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:88

Definition at line 529 of file pcmk_sched_notif.c.

Typedef Documentation

typedef struct notify_entry_s notify_entry_t

Function Documentation

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

Definition at line 426 of file pcmk_sched_notif.c.

notify_data_t* create_notification_boundaries ( resource_t rsc,
const char *  action,
action_t start,
action_t end,
pe_working_set_t data_set 
)

Definition at line 317 of file pcmk_sched_notif.c.

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

Definition at line 673 of file pcmk_sched_notif.c.

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

Definition at line 821 of file pcmk_sched_notif.c.

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

Definition at line 535 of file pcmk_sched_notif.c.

void free_notification_data ( notify_data_t n_data)

Definition at line 802 of file pcmk_sched_notif.c.