pacemaker  2.1.8-3980678f03
Scalable High-Availability cluster resource manager
Typedefs | Functions
patchset.c File Reference
#include <crm_internal.h>
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
#include <time.h>
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
#include <bzlib.h>
#include <libxml/tree.h>
#include <crm/crm.h>
#include <crm/common/xml.h>
#include <crm/common/xml_internal.h>
#include "crmcommon_private.h"
#include <crm/common/xml_compat.h>
Include dependency graph for patchset.c:

Go to the source code of this file.

Typedefs

typedef struct xml_change_obj_s xml_change_obj_t
 

Functions

xmlNode * xml_create_patchset (int format, xmlNode *source, xmlNode *target, bool *config_changed, bool manage_version)
 
void patchset_process_digest (xmlNode *patch, xmlNode *source, xmlNode *target, bool with_digest)
 
bool xml_patch_versions (const xmlNode *patchset, int add[3], int del[3])
 
int xml_apply_patchset (xmlNode *xml, xmlNode *patchset, bool check_version)
 
xmlNode * pcmk__diff_v1_xml_object (xmlNode *old, xmlNode *new, bool suppress)
 
gboolean apply_xml_diff (xmlNode *old_xml, xmlNode *diff, xmlNode **new_xml)
 
void purge_diff_markers (xmlNode *a_node)
 
xmlNode * diff_xml_object (xmlNode *old, xmlNode *new, gboolean suppress)
 
xmlNode * subtract_xml_object (xmlNode *parent, xmlNode *left, xmlNode *right, gboolean full, gboolean *changed, const char *marker)
 
gboolean can_prune_leaf (xmlNode *xml_node)
 

Typedef Documentation

◆ xml_change_obj_t

typedef struct xml_change_obj_s xml_change_obj_t

Function Documentation

◆ apply_xml_diff()

gboolean apply_xml_diff ( xmlNode *  old_xml,
xmlNode *  diff,
xmlNode **  new_xml 
)
Deprecated:
Use xml_apply_patchset() instead

Definition at line 1481 of file patchset.c.

◆ can_prune_leaf()

gboolean can_prune_leaf ( xmlNode *  xml_node)
Deprecated:
Do not use

Definition at line 1590 of file patchset.c.

◆ diff_xml_object()

xmlNode* diff_xml_object ( xmlNode *  left,
xmlNode *  right,
gboolean  suppress 
)
Deprecated:
Do not use

Definition at line 1577 of file patchset.c.

◆ patchset_process_digest()

void patchset_process_digest ( xmlNode *  patch,
xmlNode *  source,
xmlNode *  target,
bool  with_digest 
)

Definition at line 386 of file patchset.c.

◆ pcmk__diff_v1_xml_object()

xmlNode* pcmk__diff_v1_xml_object ( xmlNode *  old,
xmlNode *  new,
bool  suppress 
)

Definition at line 1447 of file patchset.c.

◆ purge_diff_markers()

void purge_diff_markers ( xmlNode *  a_node)
Deprecated:
Do not use

Definition at line 1571 of file patchset.c.

◆ subtract_xml_object()

xmlNode* subtract_xml_object ( xmlNode *  parent,
xmlNode *  left,
xmlNode *  right,
gboolean  full,
gboolean *  changed,
const char *  marker 
)
Deprecated:
Do not use

Definition at line 1583 of file patchset.c.

◆ xml_apply_patchset()

int xml_apply_patchset ( xmlNode *  xml,
xmlNode *  patchset,
bool  check_version 
)

Definition at line 1330 of file patchset.c.

◆ xml_create_patchset()

xmlNode* xml_create_patchset ( int  format,
xmlNode *  source,
xmlNode *  target,
bool *  config_changed,
bool  manage_version 
)

Definition at line 328 of file patchset.c.

◆ xml_patch_versions()

bool xml_patch_versions ( const xmlNode *  patchset,
int  add[3],
int  del[3] 
)

Definition at line 788 of file patchset.c.