pacemaker
2.1.4-dc6eb4362
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 <pwd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <glib.h>
#include <crm/crm.h>
#include <crm/cib/internal.h>
#include <crm/msg_xml.h>
#include <crm/common/xml.h>
Go to the source code of this file.
Macros | |
#define | op_common(cib) |
Functions | |
int | cib_client_set_op_callback (cib_t *cib, void(*callback)(const xmlNode *msg, int call_id, int rc, xmlNode *output)) |
int | cib_client_add_notify_callback (cib_t *cib, const char *event, void(*callback)(const char *event, xmlNode *msg)) |
int | cib_client_del_notify_callback (cib_t *cib, const char *event, void(*callback)(const char *event, xmlNode *msg)) |
gint | ciblib_GCompareFunc (gconstpointer a, gconstpointer b) |
char * | get_shadow_file (const char *suffix) |
cib_t * | cib_shadow_new (const char *shadow) |
cib_t * | cib_new_no_shadow (void) |
cib_t * | cib_new (void) |
cib_t * | cib_new_variant (void) |
void | cib_free_notify (cib_t *cib) |
void | cib_free_callbacks (cib_t *cib) |
Free all callbacks for a CIB connection. More... | |
void | cib_delete (cib_t *cib) |
Free all memory used by CIB connection. More... | |
gboolean | cib_client_register_callback (cib_t *cib, int call_id, int timeout, gboolean only_success, void *user_data, const char *callback_name, void(*callback)(xmlNode *, int, int, xmlNode *, void *)) |
gboolean | cib_client_register_callback_full (cib_t *cib, int call_id, int timeout, gboolean only_success, void *user_data, const char *callback_name, void(*callback)(xmlNode *, int, int, xmlNode *, void *), void(*free_func)(void *)) |
void | remove_cib_op_callback (int call_id, gboolean all_callbacks) |
int | num_cib_op_callbacks (void) |
void | cib_dump_pending_callbacks (void) |
cib_callback_client_t * | cib__lookup_id (int call_id) |
#define op_common | ( | cib | ) |
Definition at line 41 of file cib_client.c.
cib_callback_client_t* cib__lookup_id | ( | int | call_id | ) |
Definition at line 704 of file cib_client.c.
int cib_client_add_notify_callback | ( | cib_t * | cib, |
const char * | event, | ||
void(*)(const char *event, xmlNode *msg) | callback | ||
) |
Definition at line 474 of file cib_client.c.
int cib_client_del_notify_callback | ( | cib_t * | cib, |
const char * | event, | ||
void(*)(const char *event, xmlNode *msg) | callback | ||
) |
Definition at line 525 of file cib_client.c.
gboolean cib_client_register_callback | ( | cib_t * | cib, |
int | call_id, | ||
int | timeout, | ||
gboolean | only_success, | ||
void * | user_data, | ||
const char * | callback_name, | ||
void(*)(xmlNode *, int, int, xmlNode *, void *) | callback | ||
) |
Definition at line 608 of file cib_client.c.
gboolean cib_client_register_callback_full | ( | cib_t * | cib, |
int | call_id, | ||
int | timeout, | ||
gboolean | only_success, | ||
void * | user_data, | ||
const char * | callback_name, | ||
void(*)(xmlNode *, int, int, xmlNode *, void *) | callback, | ||
void(*)(void *) | free_func | ||
) |
Definition at line 618 of file cib_client.c.
int cib_client_set_op_callback | ( | cib_t * | cib, |
void(*)(const xmlNode *msg, int call_id, int rc, xmlNode *output) | callback | ||
) |
Definition at line 460 of file cib_client.c.
void cib_delete | ( | cib_t * | cib | ) |
Free all memory used by CIB connection.
[in] | cib | CIB connection to delete |
Definition at line 451 of file cib_client.c.
void cib_dump_pending_callbacks | ( | void | ) |
Definition at line 695 of file cib_client.c.
void cib_free_callbacks | ( | cib_t * | cib | ) |
Free all callbacks for a CIB connection.
[in] | cib | CIB connection to clean up |
Definition at line 438 of file cib_client.c.
void cib_free_notify | ( | cib_t * | cib | ) |
Definition at line 417 of file cib_client.c.
cib_t* cib_new | ( | void | ) |
Definition at line 292 of file cib_client.c.
cib_t* cib_new_no_shadow | ( | void | ) |
Definition at line 285 of file cib_client.c.
cib_t* cib_new_variant | ( | void | ) |
Definition at line 352 of file cib_client.c.
cib_t* cib_shadow_new | ( | const char * | shadow | ) |
Definition at line 270 of file cib_client.c.
gint ciblib_GCompareFunc | ( | gconstpointer | a, |
gconstpointer | b | ||
) |
Definition at line 570 of file cib_client.c.
char* get_shadow_file | ( | const char * | suffix | ) |
Definition at line 210 of file cib_client.c.
int num_cib_op_callbacks | ( | void | ) |
Definition at line 677 of file cib_client.c.
void remove_cib_op_callback | ( | int | call_id, |
gboolean | all_callbacks | ||
) |
Definition at line 666 of file cib_client.c.