pacemaker  2.0.4-2deceaa
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 
42 int pcmk_fence_action(stonith_t *st, const char *target, const char *action,
43  const char *name, unsigned int timeout, unsigned int tolerance);
44 
62 int pcmk_fence_history(xmlNodePtr *xml, stonith_t *st, char *target,
63  unsigned int timeout, bool quiet, int verbose,
64  bool broadcast, bool cleanup);
65 
78 int pcmk_fence_installed(xmlNodePtr *xml, stonith_t *st, unsigned int timeout);
79 
92 int pcmk_fence_last(xmlNodePtr *xml, const char *target, bool as_nodeid);
93 
107 int pcmk_fence_list_targets(xmlNodePtr *xml, stonith_t *st,
108  const char *device_id, unsigned int timeout);
109 
123 int pcmk_fence_metadata(xmlNodePtr *xml, stonith_t *st, char *agent,
124  unsigned int timeout);
125 
140 int pcmk_fence_registered(xmlNodePtr *xml, stonith_t *st, char *target,
141  unsigned int timeout);
142 
158 int pcmk_fence_register_level(stonith_t *st, char *target, int fence_level,
159  stonith_key_value_t *devices);
160 
175 int pcmk_fence_unregister_level(stonith_t *st, char *target, int fence_level);
176 
192 int pcmk_fence_validate(xmlNodePtr *xml, stonith_t *st, const char *agent,
193  const char *id, stonith_key_value_t *params,
194  unsigned int timeout);
195 
196 #endif
197 
198 #ifdef __cplusplus
199 }
200 #endif
201 
202 #endif
const char * action
Definition: pcmk_fence.c:29
stonith_t * st
Definition: pcmk_fence.c:27
unsigned int tolerance
Definition: pcmk_fence.c:32
const char * target
Definition: pcmk_fence.c:28
Fencing aka. STONITH.
char * name
Definition: pcmk_fence.c:30
unsigned int timeout
Definition: pcmk_fence.c:31