pacemaker  2.1.4-dc6eb4362
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 "libpacemaker_private.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_tpcmk__clone_notif_pseudo_ops (pe_resource_t *rsc, const char *task, pe_action_t *action, pe_action_t *complete)
 
void pcmk__create_notifications (pe_resource_t *rsc, notify_data_t *n_data)
 
void pcmk__free_notification_data (notify_data_t *n_data)
 
void pcmk__order_notifs_after_fencing (pe_action_t *stop, pe_resource_t *rsc, pe_action_t *stonith_op)
 

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

Definition at line 638 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:91

Definition at line 642 of file pcmk_sched_notif.c.

Typedef Documentation

◆ notify_entry_t

typedef struct notify_entry_s notify_entry_t

Function Documentation

◆ pcmk__clone_notif_pseudo_ops()

notify_data_t* pcmk__clone_notif_pseudo_ops ( pe_resource_t rsc,
const char *  task,
pe_action_t action,
pe_action_t complete 
)

Definition at line 435 of file pcmk_sched_notif.c.

◆ pcmk__create_notifications()

void pcmk__create_notifications ( pe_resource_t rsc,
notify_data_t n_data 
)

Definition at line 923 of file pcmk_sched_notif.c.

◆ pcmk__free_notification_data()

void pcmk__free_notification_data ( notify_data_t n_data)

Definition at line 940 of file pcmk_sched_notif.c.

◆ pcmk__order_notifs_after_fencing()

void pcmk__order_notifs_after_fencing ( pe_action_t stop,
pe_resource_t rsc,
pe_action_t stonith_op 
)

Definition at line 972 of file pcmk_sched_notif.c.