1 
   2 
   3 
   4 
   5 
   6 
   7 
   8 
   9 
  10 #ifndef CONTROLD_FENCING__H
  11 #  define CONTROLD_FENCING__H
  12 
  13 #include <stdbool.h>                
  14 #include <pacemaker-internal.h>     
  15 
  16 
  17 void set_fence_reaction(const char *reaction_s);
  18 
  19 
  20 void st_fail_count_reset(const char * target);
  21 void update_stonith_max_attempts(const char* value);
  22 
  23 
  24 void controld_trigger_fencer_connect(void);
  25 void controld_disconnect_fencer(bool destroy);
  26 gboolean te_fence_node(crm_graph_t *graph, crm_action_t *action);
  27 bool controld_verify_stonith_watchdog_timeout(const char *value);
  28 
  29 
  30 void add_stonith_cleanup(const char *target);
  31 void remove_stonith_cleanup(const char *target);
  32 void purge_stonith_cleanup(void);
  33 void execute_stonith_cleanup(void);
  34 
  35 
  36 void te_trigger_stonith_history_sync(bool long_timeout);
  37 void te_cleanup_stonith_history_sync(stonith_t *st, bool free_timers);
  38 
  39 #endif