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__H 11 # define PCMK__CRM_PENGINE_RULES__H 12 13 # include <glib.h> 14 # include <crm/crm.h> 15 # include <crm/common/iso8601.h> 16 # include <crm/common/scheduler.h> 17 18 /** 19 * \file 20 * \brief Deprecated Pacemaker rule API 21 * \ingroup pengine 22 * \deprecated Do not include this header directly. The rule APIs in this 23 * header, and the header itself, will be removed in a future 24 * release. 25 */ 26 27 #if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1) 28 #include <crm/pengine/common.h> 29 #include <crm/pengine/rules_compat.h> 30 #else 31 #error Do not include the deprecated header crm/pengine/rules.h 32 #endif 33 34 #endif