root/include/crm/common/xml.h

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

INCLUDED FROM


   1 /*
   2  * Copyright 2004-2025 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_XML__H
  11 #define PCMK__CRM_COMMON_XML__H
  12 
  13 #include <stdbool.h>                // bool
  14 
  15 #include <libxml/tree.h>            // xmlNode
  16 
  17 // xml.h is a wrapper for the following headers
  18 #include <crm/common/xml_element.h>
  19 #include <crm/common/xml_io.h>
  20 #include <crm/common/xml_names.h>
  21 
  22 #ifdef __cplusplus
  23 extern "C" {
  24 #endif
  25 
  26 /**
  27  * \file
  28  * \brief Wrappers for and extensions to libxml2
  29  * \ingroup core
  30  */
  31 
  32 /*
  33  * Searching & Modifying
  34  */
  35 
  36 bool xml_patch_versions(const xmlNode *patchset, int add[3], int del[3]);
  37 
  38 xmlNode *xml_create_patchset(
  39     int format, xmlNode *source, xmlNode *target, bool *config, bool manage_version);
  40 int xml_apply_patchset(xmlNode *xml, xmlNode *patchset, bool check_version);
  41 
  42 void patchset_process_digest(xmlNode *patch, xmlNode *source, xmlNode *target, bool with_digest);
  43 
  44 #ifdef __cplusplus
  45 }
  46 #endif
  47 
  48 #if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1)
  49 #include <crm/common/xml_compat.h>
  50 #endif
  51 
  52 #endif

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