root/include/pcmki/pcmki_sched_utils.h

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

INCLUDED FROM


   1 /*
   2  * Copyright 2004-2022 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__PCMKI_PCMKI_SCHED_UTILS__H
  11 #  define PCMK__PCMKI_PCMKI_SCHED_UTILS__H
  12 
  13 #include <stdbool.h>                    // bool
  14 #include <glib.h>                       // GList, GHashTable, gboolean, guint
  15 #include <crm/lrmd.h>                   // lrmd_event_data_t
  16 #include <crm/cib.h>                    // cib_t
  17 #include <crm/pengine/pe_types.h>
  18 #include <crm/common/xml_internal.h>
  19 #include <crm/pengine/internal.h>
  20 #include <pcmki/pcmki_scheduler.h>
  21 #include <pcmki/pcmki_transition.h>
  22 #include <pacemaker.h>
  23 
  24 /* Constraint helper functions */
  25 GList *pcmk__copy_node_list(const GList *list, bool reset);
  26 
  27 pe_resource_t *find_compatible_child(const pe_resource_t *local_child,
  28                                      const pe_resource_t *rsc,
  29                                      enum rsc_role_e filter, gboolean current);
  30 pe_resource_t *find_compatible_child_by_node(const pe_resource_t *local_child,
  31                                              const pe_node_t *local_node,
  32                                              const pe_resource_t *rsc,
  33                                              enum rsc_role_e filter,
  34                                              gboolean current);
  35 gboolean is_child_compatible(const pe_resource_t *child_rsc,
  36                              const pe_node_t *local_node,
  37                              enum rsc_role_e filter, gboolean current);
  38 enum pe_action_flags summary_action_flags(pe_action_t *action, GList *children,
  39                                           const pe_node_t *node);
  40 enum action_tasks clone_child_action(pe_action_t * action);
  41 int copies_per_node(pe_resource_t * rsc);
  42 
  43 xmlNode *pcmk__create_history_xml(xmlNode *parent, lrmd_event_data_t *event,
  44                                  const char *caller_version, int target_rc,
  45                                  const char *node, const char *origin);
  46 
  47 #endif

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