pacemaker  2.1.7-0f7f88312f
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/msg_xml.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)
 
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 apply_xml_diff (xmlNode *old_xml, xmlNode *diff, xmlNode **new_xml)
 

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 1416 of file patchset.c.

◆ diff_xml_object()

xmlNode* diff_xml_object ( xmlNode *  old,
xmlNode *  new,
gboolean  suppress 
)

Definition at line 1186 of file patchset.c.

◆ patchset_process_digest()

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

Definition at line 385 of file patchset.c.

◆ purge_diff_markers()

void purge_diff_markers ( xmlNode *  a_node)

Definition at line 1172 of file patchset.c.

◆ subtract_xml_object()

xmlNode* subtract_xml_object ( xmlNode *  parent,
xmlNode *  left,
xmlNode *  right,
gboolean  full,
gboolean *  changed,
const char *  marker 
)

Definition at line 1235 of file patchset.c.

◆ xml_apply_patchset()

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

Definition at line 1099 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 572 of file patchset.c.