pacemaker  2.1.0-7c3f660
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Typedefs | Functions | Variables
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)
 

Variables

bool pcmk__is_daemon
 

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:92

Definition at line 510 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:92

Definition at line 514 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 409 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 290 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 653 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 804 of file pcmk_sched_notif.c.

void free_notification_data ( notify_data_t n_data)

Definition at line 785 of file pcmk_sched_notif.c.

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

Definition at line 528 of file pcmk_sched_notif.c.

Variable Documentation

bool pcmk__is_daemon

Definition at line 47 of file logging.c.