pacemaker 3.0.1-16e74fc4da
Scalable High-Availability cluster resource manager
Loading...
Searching...
No Matches
xml.h
Go to the documentation of this file.
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
19#include <crm/common/xml_io.h>
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
32/*
33 * Searching & Modifying
34 */
35
36bool xml_patch_versions(const xmlNode *patchset, int add[3], int del[3]);
37
38xmlNode *xml_create_patchset(
39 int format, xmlNode *source, xmlNode *target, bool *config, bool manage_version);
40int xml_apply_patchset(xmlNode *xml, xmlNode *patchset, bool check_version);
41
42void 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)
50#endif
51
52#endif
const char * target
Definition pcmk_fence.c:31
bool xml_patch_versions(const xmlNode *patchset, int add[3], int del[3])
Definition patchset.c:315
void patchset_process_digest(xmlNode *patch, xmlNode *source, xmlNode *target, bool with_digest)
Definition patchset.c:289
int xml_apply_patchset(xmlNode *xml, xmlNode *patchset, bool check_version)
Definition patchset.c:765
xmlNode * xml_create_patchset(int format, xmlNode *source, xmlNode *target, bool *config, bool manage_version)
Definition patchset.c:244
Deprecated Pacemaker XML API.
Wrappers for and extensions to libxml2 for XML elements.
Wrappers for and extensions to XML input/output functions.
Defined string constants for XML element and attribute names.