diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 06:53:20 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 06:53:20 +0000 |
commit | e5a812082ae033afb1eed82c0f2df3d0f6bdc93f (patch) | |
tree | a6716c9275b4b413f6c9194798b34b91affb3cc7 /daemons/controld/controld_timers.h | |
parent | Initial commit. (diff) | |
download | pacemaker-e5a812082ae033afb1eed82c0f2df3d0f6bdc93f.tar.xz pacemaker-e5a812082ae033afb1eed82c0f2df3d0f6bdc93f.zip |
Adding upstream version 2.1.6.upstream/2.1.6
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'daemons/controld/controld_timers.h')
-rw-r--r-- | daemons/controld/controld_timers.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/daemons/controld/controld_timers.h b/daemons/controld/controld_timers.h new file mode 100644 index 0000000..587f4d1 --- /dev/null +++ b/daemons/controld/controld_timers.h @@ -0,0 +1,36 @@ +/* + * Copyright 2004-2022 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 CONTROLD_TIMERS__H +# define CONTROLD_TIMERS__H + +# include <stdbool.h> // bool +# include <glib.h> // gboolean, gpointer, guint +# include <controld_fsa.h> // crmd_fsa_input + +bool controld_init_fsa_timers(void); +void controld_free_fsa_timers(void); +void controld_configure_fsa_timers(GHashTable *options); + +bool controld_stop_recheck_timer(void); +bool controld_stop_transition_timer(void); + +void controld_start_recheck_timer(void); +void controld_start_transition_timer(void); +void controld_start_wait_timer(void); + +bool controld_is_started_transition_timer(void); + +guint controld_get_period_transition_timer(void); + +void controld_reset_counter_election_timer(void); + +void controld_shutdown_start_countdown(guint default_period_ms); + +#endif |