root/include/crm/pengine/rules_compat.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2  * Copyright 2004-2021 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__PENGINE_RULES_COMPAT__H
  11 #  define PCMK__PENGINE_RULES_COMPAT__H
  12 
  13 #ifdef __cplusplus
  14 extern "C" {
  15 #endif
  16 
  17 /**
  18  * \file
  19  * \brief Deprecated Pacemaker rule API
  20  * \ingroup pengine
  21  * \deprecated Do not include this header directly. The rule APIs in this
  22  *             header, and the header itself, will be removed in a future
  23  *             release.
  24  */
  25 
  26 //! \deprecated Use pe_evaluate_rules() instead
  27 gboolean test_ruleset(xmlNode *ruleset, GHashTable *node_hash, crm_time_t *now);
  28 
  29 //! \deprecated Use pe_test_rule() instead
  30 gboolean test_rule(xmlNode *rule, GHashTable *node_hash, enum rsc_role_e role,
  31                    crm_time_t *now);
  32 
  33 //! \deprecated Use pe_test_rule() instead
  34 gboolean pe_test_rule_re(xmlNode *rule, GHashTable *node_hash,
  35                          enum rsc_role_e role, crm_time_t *now,
  36                          pe_re_match_data_t *re_match_data);
  37 
  38 //! \deprecated Use pe_test_rule() instead
  39 gboolean pe_test_rule_full(xmlNode *rule, GHashTable *node_hash,
  40                            enum rsc_role_e role, crm_time_t *now,
  41                            pe_match_data_t *match_data);
  42 
  43 //! \deprecated Use pe_test_expression() instead
  44 gboolean test_expression(xmlNode *expr, GHashTable *node_hash,
  45                          enum rsc_role_e role, crm_time_t *now);
  46 
  47 //! \deprecated Use pe_test_expression() instead
  48 gboolean pe_test_expression_re(xmlNode *expr, GHashTable *node_hash,
  49                          enum rsc_role_e role, crm_time_t *now,
  50                          pe_re_match_data_t *re_match_data);
  51 
  52 //! \deprecated Use pe_test_expression() instead
  53 gboolean pe_test_expression_full(xmlNode *expr, GHashTable *node_hash,
  54                                  enum rsc_role_e role,
  55                                  crm_time_t *now, pe_match_data_t *match_data);
  56 
  57 //! \deprecated Use pe_unpack_nvpairs() instead
  58 void unpack_instance_attributes(xmlNode *top, xmlNode *xml_obj,
  59                                 const char *set_name, GHashTable *node_hash,
  60                                 GHashTable *hash, const char *always_first,
  61                                 gboolean overwrite, crm_time_t *now);
  62 
  63 #ifdef __cplusplus
  64 }
  65 #endif
  66 
  67 #endif // PCMK__PENGINE_RULES_COMPAT__H

/* [previous][next][first][last][top][bottom][index][help] */