Blob Blame History Raw
/*
 * Copyright 2004-2020 the Pacemaker project contributors
 *
 * The version control history for this file may have further details.
 *
 * This source code is licensed under the GNU Lesser General Public License
 * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
 */
#ifndef CRM_PE_NOTIF__H
#  define CRM_PE_NOTIF__H

#  include <crm/pengine/internal.h>

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);

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);

#endif /* CRM_PE_NOTIF__H */