1 /* 2 * Copyright 2024 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 PCMK__CRM_COMMON_PROBES__H 11 #define PCMK__CRM_COMMON_PROBES__H 12 13 #include <stdbool.h> // bool 14 #include <glib.h> // guint 15 #include <libxml/tree.h> // xmlNode 16 17 #ifdef __cplusplus 18 extern "C" { 19 #endif 20 21 /*! 22 * \file 23 * \brief Scheduler API for probes 24 * \ingroup core 25 */ 26 27 bool pcmk_is_probe(const char *task, guint interval); 28 bool pcmk_xe_is_probe(const xmlNode *xml_op); 29 bool pcmk_xe_mask_probe_failure(const xmlNode *xml_op); 30 31 #ifdef __cplusplus 32 } 33 #endif 34 35 #endif // PCMK__CRM_COMMON_PROBES__H