root/include/crm/common/output.h

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

INCLUDED FROM


   1 /*
   2  * Copyright 2021-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_COMMON_OUTPUT__H
  11 #define PCMK__CRM_COMMON_OUTPUT__H
  12 
  13 #ifdef __cplusplus
  14 extern "C" {
  15 #endif
  16 
  17 /**
  18  * \file
  19  * \brief Control output from tools
  20  * \ingroup core
  21  */
  22 
  23 /*!
  24  * \brief Control which sections are output
  25  */
  26 typedef enum {
  27     pcmk_section_stack         = 1 << 0,
  28     pcmk_section_dc            = 1 << 1,
  29     pcmk_section_times         = 1 << 2,
  30     pcmk_section_counts        = 1 << 3,
  31     pcmk_section_options       = 1 << 4,
  32     pcmk_section_nodes         = 1 << 5,
  33     pcmk_section_resources     = 1 << 6,
  34     pcmk_section_attributes    = 1 << 7,
  35     pcmk_section_failcounts    = 1 << 8,
  36     pcmk_section_operations    = 1 << 9,
  37     pcmk_section_fence_failed  = 1 << 10,
  38     pcmk_section_fence_pending = 1 << 11,
  39     pcmk_section_fence_worked  = 1 << 12,
  40     pcmk_section_tickets       = 1 << 13,
  41     pcmk_section_bans          = 1 << 14,
  42     pcmk_section_failures      = 1 << 15,
  43     pcmk_section_maint_mode    = 1 << 16,
  44 } pcmk_section_e;
  45 
  46 #define pcmk_section_fencing_all    (pcmk_section_fence_failed | pcmk_section_fence_pending | pcmk_section_fence_worked)
  47 #define pcmk_section_summary        (pcmk_section_stack | pcmk_section_dc | pcmk_section_times | \
  48                                      pcmk_section_counts | pcmk_section_maint_mode)
  49 #define pcmk_section_all            (pcmk_section_summary | pcmk_section_options | pcmk_section_nodes | \
  50                                      pcmk_section_resources | pcmk_section_attributes | pcmk_section_failcounts | \
  51                                      pcmk_section_operations | pcmk_section_fencing_all | pcmk_section_tickets | \
  52                                      pcmk_section_bans | pcmk_section_failures | pcmk_section_maint_mode)
  53 
  54 /*!
  55  * \brief Further modify the output of sections
  56  */
  57 typedef enum {
  58     pcmk_show_brief         = 1 << 0,
  59     pcmk_show_clone_detail  = 1 << 1,
  60     pcmk_show_node_id       = 1 << 2,
  61     pcmk_show_implicit_rscs = 1 << 3,
  62     pcmk_show_timing        = 1 << 4,
  63     pcmk_show_inactive_rscs = 1 << 5,
  64     pcmk_show_rscs_by_node  = 1 << 6,
  65     pcmk_show_pending       = 1 << 7,
  66     pcmk_show_rsc_only      = 1 << 8,
  67     pcmk_show_failed_detail = 1 << 9,
  68     pcmk_show_feature_set   = 1 << 10,
  69     pcmk_show_description   = 1 << 11,
  70 } pcmk_show_opt_e;
  71 
  72 #define pcmk_show_details   ((pcmk_show_clone_detail)     \
  73                              | (pcmk_show_node_id)        \
  74                              | (pcmk_show_implicit_rscs)  \
  75                              | (pcmk_show_failed_detail)  \
  76                              | (pcmk_show_feature_set)    \
  77                              | (pcmk_show_description))
  78 
  79 #ifdef __cplusplus
  80 }
  81 #endif
  82 
  83 #endif // PCMK__CRM_COMMON_OUTPUT__H

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