1 /* 2 * Copyright 2004-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_PENGINE_RULES_COMPAT__H 11 # define PCMK__CRM_PENGINE_RULES_COMPAT__H 12 13 #include <glib.h> 14 #include <libxml/tree.h> // xmlNode 15 #include <crm/common/iso8601.h> // crm_time_t 16 #include <crm/pengine/pe_types.h> 17 18 #ifdef __cplusplus 19 extern "C" { 20 #endif 21 22 /** 23 * \file 24 * \brief Deprecated Pacemaker rule API 25 * \ingroup pengine 26 * \deprecated Do not include this header directly. The rule APIs in this 27 * header, and the header itself, will be removed in a future 28 * release. 29 */ 30 31 // @COMPAT sbd's configure script checks for this (as of at least 1.5.2) 32 //! \deprecated Use pcmk_evaluate_rule() instead 33 gboolean test_rule(xmlNode *rule, GHashTable *node_hash, enum rsc_role_e role, 34 crm_time_t *now); 35 36 #ifdef __cplusplus 37 } 38 #endif 39 40 #endif // PCMK__CRM_PENGINE_RULES_COMPAT__H