| pacemaker
    2.1.3-ea053b43a
    Scalable High-Availability cluster resource manager | 
#include <crm_internal.h>#include <unistd.h>#include <stdlib.h>#include <stdio.h>#include <stdarg.h>#include <string.h>#include <sys/utsname.h>#include <glib.h>#include <crm/crm.h>#include <crm/cib/internal.h>#include <crm/msg_xml.h>#include <crm/common/xml.h>#include <crm/common/xml_internal.h>#include <crm/pengine/rules.h>#include <crm/cib/util_compat.h>
Go to the source code of this file.
| Macros | |
| #define | XPATH_CONFIG_CHANGE | 
| Functions | |
| xmlNode * | cib_get_generation (cib_t *cib) | 
| gboolean | cib_version_details (xmlNode *cib, int *admin_epoch, int *epoch, int *updates) | 
| gboolean | cib_diff_version_details (xmlNode *diff, int *admin_epoch, int *epoch, int *updates, int *_admin_epoch, int *_epoch, int *_updates) | 
| xmlNode * | createEmptyCib (int cib_epoch) | 
| Create XML for a new (empty) CIB.  More... | |
| int | cib_perform_op (const char *op, int call_options, cib_op_t *fn, gboolean is_query, const char *section, xmlNode *req, xmlNode *input, gboolean manage_counters, gboolean *config_changed, xmlNode *current_cib, xmlNode **result_cib, xmlNode **diff, xmlNode **output) | 
| xmlNode * | cib_create_op (int call_id, const char *token, const char *op, const char *host, const char *section, xmlNode *data, int call_options, const char *user_name) | 
| void | cib_native_callback (cib_t *cib, xmlNode *msg, int call_id, int rc) | 
| void | cib_native_notify (gpointer data, gpointer user_data) | 
| void | cib_metadata (void) | 
| void | verify_cib_options (GHashTable *options) | 
| const char * | cib_pref (GHashTable *options, const char *name) | 
| gboolean | cib_read_config (GHashTable *options, xmlNode *current_cib) | 
| gboolean | cib_internal_config_changed (xmlNode *diff) | 
| int | cib_internal_op (cib_t *cib, const char *op, const char *host, const char *section, xmlNode *data, xmlNode **output_data, int call_options, const char *user_name) | 
| int | cib_apply_patch_event (xmlNode *event, xmlNode *input, xmlNode **output, int level) | 
| Apply a CIB update patch to a given CIB.  More... | |
| int | cib__signon_query (cib_t **cib, xmlNode **cib_object) | 
| int | cib__clean_up_connection (cib_t **cib) | 
| const char * | get_object_path (const char *object_type) | 
| const char * | get_object_parent (const char *object_type) | 
| xmlNode * | get_object_root (const char *object_type, xmlNode *the_root) | 
| #define XPATH_CONFIG_CHANGE | 
Definition at line 624 of file cib_utils.c.
| int cib__clean_up_connection | ( | cib_t ** | cib | ) | 
Definition at line 752 of file cib_utils.c.
| int cib__signon_query | ( | cib_t ** | cib, | 
| xmlNode ** | cib_object | ||
| ) | 
Definition at line 716 of file cib_utils.c.
| int cib_apply_patch_event | ( | xmlNode * | event, | 
| xmlNode * | input, | ||
| xmlNode ** | output, | ||
| int | level | ||
| ) | 
Apply a CIB update patch to a given CIB.
| [in] | event | CIB update patch | 
| [in] | input | CIB to patch | 
| [out] | output | Resulting CIB after patch | 
| [in] | level | Log the patch at this log level (unless LOG_CRIT) | 
Definition at line 673 of file cib_utils.c.
| xmlNode* cib_create_op | ( | int | call_id, | 
| const char * | token, | ||
| const char * | op, | ||
| const char * | host, | ||
| const char * | section, | ||
| xmlNode * | data, | ||
| int | call_options, | ||
| const char * | user_name | ||
| ) | 
Definition at line 437 of file cib_utils.c.
| gboolean cib_diff_version_details | ( | xmlNode * | diff, | 
| int * | admin_epoch, | ||
| int * | epoch, | ||
| int * | updates, | ||
| int * | _admin_epoch, | ||
| int * | _epoch, | ||
| int * | _updates | ||
| ) | 
Definition at line 61 of file cib_utils.c.
| xmlNode* cib_get_generation | ( | cib_t * | cib | ) | 
Definition at line 28 of file cib_utils.c.
| gboolean cib_internal_config_changed | ( | xmlNode * | diff | ) | 
Definition at line 629 of file cib_utils.c.
| int cib_internal_op | ( | cib_t * | cib, | 
| const char * | op, | ||
| const char * | host, | ||
| const char * | section, | ||
| xmlNode * | data, | ||
| xmlNode ** | output_data, | ||
| int | call_options, | ||
| const char * | user_name | ||
| ) | 
Definition at line 645 of file cib_utils.c.
| void cib_metadata | ( | void | ) | 
Definition at line 572 of file cib_utils.c.
| void cib_native_callback | ( | cib_t * | cib, | 
| xmlNode * | msg, | ||
| int | call_id, | ||
| int | rc | ||
| ) | 
Definition at line 470 of file cib_utils.c.
| void cib_native_notify | ( | gpointer | data, | 
| gpointer | user_data | ||
| ) | 
Definition at line 518 of file cib_utils.c.
| int cib_perform_op | ( | const char * | op, | 
| int | call_options, | ||
| cib_op_t * | fn, | ||
| gboolean | is_query, | ||
| const char * | section, | ||
| xmlNode * | req, | ||
| xmlNode * | input, | ||
| gboolean | manage_counters, | ||
| gboolean * | config_changed, | ||
| xmlNode * | current_cib, | ||
| xmlNode ** | result_cib, | ||
| xmlNode ** | diff, | ||
| xmlNode ** | output | ||
| ) | 
Definition at line 145 of file cib_utils.c.
| const char* cib_pref | ( | GHashTable * | options, | 
| const char * | name | ||
| ) | 
Definition at line 590 of file cib_utils.c.
| gboolean cib_read_config | ( | GHashTable * | options, | 
| xmlNode * | current_cib | ||
| ) | 
Definition at line 597 of file cib_utils.c.
| gboolean cib_version_details | ( | xmlNode * | cib, | 
| int * | admin_epoch, | ||
| int * | epoch, | ||
| int * | updates | ||
| ) | 
Definition at line 43 of file cib_utils.c.
| xmlNode* createEmptyCib | ( | int | cib_epoch | ) | 
Create XML for a new (empty) CIB.
| [in] | cib_epoch | What to use as "epoch" CIB property | 
Definition at line 89 of file cib_utils.c.
| const char* get_object_parent | ( | const char * | object_type | ) | 
Definition at line 778 of file cib_utils.c.
| const char* get_object_path | ( | const char * | object_type | ) | 
Definition at line 772 of file cib_utils.c.
| xmlNode* get_object_root | ( | const char * | object_type, | 
| xmlNode * | the_root | ||
| ) | 
Definition at line 784 of file cib_utils.c.
| void verify_cib_options | ( | GHashTable * | options | ) | 
Definition at line 584 of file cib_utils.c.
 1.8.14
 1.8.14