pacemaker  2.0.5-ba59be712
Scalable High-Availability cluster resource manager
pacemaker.h
Go to the documentation of this file.
1 /*
2  * Copyright 2019 the Pacemaker project contributors
3  *
4  * The version control history for this file may have further details.
5  *
6  * This source code is licensed under the GNU Lesser General Public License
7  * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
8  */
9 
10 #ifndef PACEMAKER__H
11 # define PACEMAKER__H
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 #ifdef BUILD_PUBLIC_LIBPACEMAKER
18 
25 # include <crm/stonith-ng.h>
26 # include <libxml/tree.h>
27 
44 int pcmk_fence_action(stonith_t *st, const char *target, const char *action,
45  const char *name, unsigned int timeout, unsigned int tolerance,
46  int delay);
47 
65 int pcmk_fence_history(xmlNodePtr *xml, stonith_t *st, char *target,
66  unsigned int timeout, bool quiet, int verbose,
67  bool broadcast, bool cleanup);
68 
81 int pcmk_fence_installed(xmlNodePtr *xml, stonith_t *st, unsigned int timeout);
82 
95 int pcmk_fence_last(xmlNodePtr *xml, const char *target, bool as_nodeid);
96 
110 int pcmk_fence_list_targets(xmlNodePtr *xml, stonith_t *st,
111  const char *device_id, unsigned int timeout);
112 
126 int pcmk_fence_metadata(xmlNodePtr *xml, stonith_t *st, char *agent,
127  unsigned int timeout);
128 
143 int pcmk_fence_registered(xmlNodePtr *xml, stonith_t *st, char *target,
144  unsigned int timeout);
145 
161 int pcmk_fence_register_level(stonith_t *st, char *target, int fence_level,
162  stonith_key_value_t *devices);
163 
178 int pcmk_fence_unregister_level(stonith_t *st, char *target, int fence_level);
179 
195 int pcmk_fence_validate(xmlNodePtr *xml, stonith_t *st, const char *agent,
196  const char *id, stonith_key_value_t *params,
197  unsigned int timeout);
198 
199 #endif
200 
201 #ifdef __cplusplus
202 }
203 #endif
204 
205 #endif
const char * action
Definition: pcmk_fence.c:30
stonith_t * st
Definition: pcmk_fence.c:28
unsigned int tolerance
Definition: pcmk_fence.c:33
const char * target
Definition: pcmk_fence.c:29
int delay
Definition: pcmk_fence.c:34
Fencing aka. STONITH.
char * name
Definition: pcmk_fence.c:31
unsigned int timeout
Definition: pcmk_fence.c:32