root/include/crm/common/digests_internal.h

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

INCLUDED FROM


   1 /*
   2  * Copyright 2004-2023 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_DIGESTS_INTERNAL__H
  11 #  define PCMK__CRM_COMMON_DIGESTS_INTERNAL__H
  12 
  13 #include <libxml/tree.h>            // xmlNode
  14 
  15 #ifdef __cplusplus
  16 extern "C" {
  17 #endif
  18 
  19 // Digest comparison results
  20 enum pcmk__digest_result {
  21     pcmk__digest_unknown,   // No digest available for comparison
  22     pcmk__digest_match,     // Digests match
  23     pcmk__digest_mismatch,  // Any parameter changed (potentially reloadable)
  24     pcmk__digest_restart,   // Parameters that require a restart changed
  25 };
  26 
  27 bool pcmk__verify_digest(xmlNode *input, const char *expected);
  28 
  29 #ifdef __cplusplus
  30 }
  31 #endif
  32 
  33 #endif // PCMK__CRM_COMMON_DIGESTS_INTERNAL__H

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