root/include/crm/pengine/status.h

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

INCLUDED FROM


   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_STATUS__H
  11 #  define PCMK__CRM_PENGINE_STATUS__H
  12 
  13 #  include <glib.h>                 // gboolean
  14 #  include <stdbool.h>              // bool
  15 #  include <crm/common/util.h>      // pcmk_is_set()
  16 #  include <crm/common/iso8601.h>
  17 #  include <crm/pengine/pe_types.h> // pcmk_node_t, pcmk_resource_t, etc.
  18 #  include <crm/pengine/complex.h>
  19 
  20 #ifdef __cplusplus
  21 extern "C" {
  22 #endif
  23 
  24 /*!
  25  * \file
  26  * \brief Cluster status and scheduling
  27  * \ingroup pengine
  28  */
  29 
  30 const char *rsc_printable_id(const pcmk_resource_t *rsc);
  31 
  32 // NOTE: sbd (as of at least 1.5.2) uses this
  33 gboolean cluster_status(pcmk_scheduler_t *scheduler);
  34 
  35 pcmk_resource_t *pe_find_resource(GList *rsc_list, const char *id);
  36 pcmk_resource_t *pe_find_resource_with_flags(GList *rsc_list, const char *id,
  37                                              enum pe_find flags);
  38 pcmk_node_t *pe_find_node_id(const GList *node_list, const char *id);
  39 pcmk_node_t *pe_find_node_any(const GList *node_list, const char *id,
  40                             const char *node_name);
  41 GList *find_operations(const char *rsc, const char *node, gboolean active_filter,
  42                          pcmk_scheduler_t *scheduler);
  43 void calculate_active_ops(const GList *sorted_op_list, int *start_index,
  44                           int *stop_index);
  45 int pe_bundle_replicas(const pcmk_resource_t *rsc);
  46 
  47 #ifdef __cplusplus
  48 }
  49 #endif
  50 
  51 #if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1)
  52 #include <crm/pengine/common.h>
  53 #include <crm/pengine/status_compat.h>
  54 #endif
  55 
  56 #endif

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