1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
/*
* Copyright 2018-2024 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 PCMK__FENCING_FENCING_PRIVATE__H
#define PCMK__FENCING_FENCING_PRIVATE__H
#include <stdbool.h> // bool
#include <glib.h> // G_GNUC_INTERNAL, GHashTable
#include <crm/stonith-ng.h> // stonith_t, stonith_key_value_t
#include <crm/fencing/internal.h> // stonith_action_t
#ifdef __cplusplus
extern "C" {
#endif
G_GNUC_INTERNAL
int stonith__execute(stonith_action_t *action);
// Utilities from st_rhcs.c
G_GNUC_INTERNAL
int stonith__list_rhcs_agents(stonith_key_value_t **devices);
G_GNUC_INTERNAL
int stonith__rhcs_metadata(const char *agent, int timeout, char **output);
G_GNUC_INTERNAL
bool stonith__agent_is_rhcs(const char *agent);
G_GNUC_INTERNAL
int stonith__rhcs_validate(stonith_t *st, int call_options, const char *target,
const char *agent, GHashTable *params,
const char *host_arg, int timeout,
char **output, char **error_output);
#ifdef HAVE_STONITH_STONITH_H
// Utilities from st_lha.c
G_GNUC_INTERNAL
int stonith__list_lha_agents(stonith_key_value_t **devices);
G_GNUC_INTERNAL
int stonith__lha_metadata(const char *agent, int timeout, char **output);
G_GNUC_INTERNAL
bool stonith__agent_is_lha(const char *agent);
G_GNUC_INTERNAL
int stonith__lha_validate(stonith_t *st, int call_options, const char *target,
const char *agent, GHashTable *params,
int timeout, char **output, char **error_output);
#endif
#ifdef __cplusplus
}
#endif
#endif // PCMK__FENCING_FENCING_PRIVATE__H
|