![]() |
pacemaker
3.0.0-d8340737c4
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/common/cib_internal.h>
#include <crm/common/xml.h>
#include <crm/common/xml_internal.h>
#include <crm/pengine/rules.h>
Go to the source code of this file.
Macros | |
#define | log_signon_query_err(out, fmt, args...) |
Functions | |
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) |
int | cib__get_notify_patchset (const xmlNode *msg, const xmlNode **patchset) |
xmlNode * | createEmptyCib (int cib_epoch) |
Create XML for a new (empty) CIB. More... | |
int | cib_perform_op (cib_t *cib, const char *op, uint32_t call_options, cib__op_fn_t fn, bool is_query, const char *section, xmlNode *req, xmlNode *input, bool manage_counters, bool *config_changed, xmlNode **current_cib, xmlNode **result_cib, xmlNode **diff, xmlNode **output) |
int | cib__create_op (cib_t *cib, const char *op, const char *host, const char *section, xmlNode *data, int call_options, const char *user_name, const char *client_name, xmlNode **op_msg) |
int | cib__extend_transaction (cib_t *cib, xmlNode *request) |
void | cib_native_callback (cib_t *cib, xmlNode *msg, int call_id, int rc) |
void | cib_native_notify (gpointer data, gpointer user_data) |
gboolean | cib_read_config (GHashTable *options, xmlNode *current_cib) |
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 (pcmk__output_t *out, cib_t **cib, xmlNode **cib_object) |
int | cib__signon_attempts (cib_t *cib, enum cib_conn_type type, int attempts) |
int | cib__clean_up_connection (cib_t **cib) |
#define log_signon_query_err | ( | out, | |
fmt, | |||
args... | |||
) |
Definition at line 832 of file cib_utils.c.
int cib__clean_up_connection | ( | cib_t ** | cib | ) |
Definition at line 920 of file cib_utils.c.
int cib__create_op | ( | cib_t * | cib, |
const char * | op, | ||
const char * | host, | ||
const char * | section, | ||
xmlNode * | data, | ||
int | call_options, | ||
const char * | user_name, | ||
const char * | client_name, | ||
xmlNode ** | op_msg | ||
) |
Definition at line 540 of file cib_utils.c.
int cib__extend_transaction | ( | cib_t * | cib, |
xmlNode * | request | ||
) |
Definition at line 619 of file cib_utils.c.
int cib__get_notify_patchset | ( | const xmlNode * | msg, |
const xmlNode ** | patchset | ||
) |
Definition at line 75 of file cib_utils.c.
int cib__signon_attempts | ( | cib_t * | cib, |
enum cib_conn_type | type, | ||
int | attempts | ||
) |
Definition at line 894 of file cib_utils.c.
int cib__signon_query | ( | pcmk__output_t * | out, |
cib_t ** | cib, | ||
xmlNode ** | cib_object | ||
) |
Definition at line 841 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 789 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 46 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 755 of file cib_utils.c.
void cib_native_callback | ( | cib_t * | cib, |
xmlNode * | msg, | ||
int | call_id, | ||
int | rc | ||
) |
Definition at line 647 of file cib_utils.c.
void cib_native_notify | ( | gpointer | data, |
gpointer | user_data | ||
) |
Definition at line 695 of file cib_utils.c.
int cib_perform_op | ( | cib_t * | cib, |
const char * | op, | ||
uint32_t | call_options, | ||
cib__op_fn_t | fn, | ||
bool | is_query, | ||
const char * | section, | ||
xmlNode * | req, | ||
xmlNode * | input, | ||
bool | manage_counters, | ||
bool * | config_changed, | ||
xmlNode ** | current_cib, | ||
xmlNode ** | result_cib, | ||
xmlNode ** | diff, | ||
xmlNode ** | output | ||
) |
Definition at line 222 of file cib_utils.c.
gboolean cib_read_config | ( | GHashTable * | options, |
xmlNode * | current_cib | ||
) |
Definition at line 727 of file cib_utils.c.
gboolean cib_version_details | ( | xmlNode * | cib, |
int * | admin_epoch, | ||
int * | epoch, | ||
int * | updates | ||
) |
Definition at line 28 of file cib_utils.c.
xmlNode* createEmptyCib | ( | int | cib_epoch | ) |
Create XML for a new (empty) CIB.
[in] | cib_epoch | What to use as PCMK_XA_EPOCH CIB attribute |
pcmk__xml_free()
. Definition at line 118 of file cib_utils.c.