pacemaker  2.1.7-0f7f88312f
Scalable High-Availability cluster resource manager
Macros | Typedefs | Functions
pe_notif.c File Reference
#include <crm_internal.h>
#include <crm/msg_xml.h>
#include <crm/pengine/internal.h>
#include <pacemaker-internal.h>
#include "pe_status_private.h"
Include dependency graph for pe_notif.c:

Go to the source code of this file.

Macros

#define add_notify_env(n_data, key, value)
 
#define add_notify_env_gs(n_data, key, value)
 
#define add_notify_env_free_gs(n_data, key, value)
 

Typedefs

typedef struct notify_entry_s notify_entry_t
 

Functions

notify_data_tpe__action_notif_pseudo_ops (pcmk_resource_t *rsc, const char *task, pcmk_action_t *action, pcmk_action_t *complete)
 
void pe__create_action_notifications (pcmk_resource_t *rsc, notify_data_t *n_data)
 
void pe__free_action_notification_data (notify_data_t *n_data)
 
void pe__order_notifs_after_fencing (const pcmk_action_t *stop, pcmk_resource_t *rsc, pcmk_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 647 of file pe_notif.c.

◆ add_notify_env_free_gs

#define add_notify_env_free_gs (   n_data,
  key,
  value 
)
Value:
do { \
n_data->keys = pcmk_prepend_nvpair(n_data->keys, key, \
(const char *) value->str); \
g_string_free(value, TRUE); 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 658 of file pe_notif.c.

◆ add_notify_env_gs

#define add_notify_env_gs (   n_data,
  key,
  value 
)
Value:
do { \
n_data->keys = pcmk_prepend_nvpair(n_data->keys, key, \
(const char *) value->str); \
} 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 652 of file pe_notif.c.

Typedef Documentation

◆ notify_entry_t

typedef struct notify_entry_s notify_entry_t

Function Documentation

◆ pe__action_notif_pseudo_ops()

notify_data_t* pe__action_notif_pseudo_ops ( pcmk_resource_t rsc,
const char *  task,
pcmk_action_t action,
pcmk_action_t complete 
)

Definition at line 435 of file pe_notif.c.

◆ pe__create_action_notifications()

void pe__create_action_notifications ( pcmk_resource_t rsc,
notify_data_t n_data 
)

Definition at line 943 of file pe_notif.c.

◆ pe__free_action_notification_data()

void pe__free_action_notification_data ( notify_data_t n_data)

Definition at line 960 of file pe_notif.c.

◆ pe__order_notifs_after_fencing()

void pe__order_notifs_after_fencing ( const pcmk_action_t stop,
pcmk_resource_t rsc,
pcmk_action_t stonith_op 
)

Definition at line 992 of file pe_notif.c.