cib 352 daemons/based/pacemaker-based.c xmlNode *cib = readCibXmlFile(cib_root, filename, !preserve_status); cib 354 daemons/based/pacemaker-based.c if (activateCibXml(cib, TRUE, "start") == 0) { cib 359 daemons/based/pacemaker-based.c cib_read_config(config_hash, cib); cib 361 daemons/based/pacemaker-based.c pcmk__scan_port(crm_element_value(cib, "remote-tls-port"), &port); cib 366 daemons/based/pacemaker-based.c pcmk__scan_port(crm_element_value(cib, "remote-clear-port"), &port); cib 194 daemons/controld/controld_election.c xmlNode *cib = NULL; cib 207 daemons/controld/controld_election.c cib = create_xml_node(NULL, XML_TAG_CIB); cib 208 daemons/controld/controld_election.c crm_xml_add(cib, XML_ATTR_CRM_VERSION, CRM_FEATURE_SET); cib 209 daemons/controld/controld_election.c fsa_cib_update(XML_TAG_CIB, cib, cib_quorum_override, rc, NULL); cib 238 daemons/controld/controld_election.c free_xml(cib); cib 387 daemons/controld/controld_te_callbacks.c process_cib_diff(xmlNode *cib, xmlNode *change, const char *op, cib 390 daemons/controld/controld_te_callbacks.c xmlNode *status = first_named_child(cib, XML_CIB_TAG_STATUS); cib 391 daemons/controld/controld_te_callbacks.c xmlNode *config = first_named_child(cib, XML_CIB_TAG_CONFIGURATION); cib 650 daemons/fenced/pacemaker-fenced.c update_stonith_watchdog_timeout_ms(xmlNode *cib) cib 657 daemons/fenced/pacemaker-fenced.c cib, LOG_NEVER); cib 46 include/crm/cib.h void cib_free_notify(cib_t *cib); cib 47 include/crm/cib.h void cib_free_callbacks(cib_t *cib); cib 48 include/crm/cib.h void cib_delete(cib_t * cib); cib 73 include/crm/cib/cib_types.h int (*signon) (cib_t *cib, const char *name, enum cib_conn_type type); cib 74 include/crm/cib/cib_types.h int (*signon_raw) (cib_t *cib, const char *name, enum cib_conn_type type, cib 76 include/crm/cib/cib_types.h int (*signoff) (cib_t *cib); cib 77 include/crm/cib/cib_types.h int (*free) (cib_t *cib); cib 78 include/crm/cib/cib_types.h int (*set_op_callback) (cib_t *cib, void (*callback) (const xmlNode *msg, cib 81 include/crm/cib/cib_types.h int (*add_notify_callback) (cib_t *cib, const char *event, cib 84 include/crm/cib/cib_types.h int (*del_notify_callback) (cib_t *cib, const char *event, cib 87 include/crm/cib/cib_types.h int (*set_connection_dnotify) (cib_t *cib, cib 89 include/crm/cib/cib_types.h int (*inputfd) (cib_t *cib); cib 90 include/crm/cib/cib_types.h int (*noop) (cib_t *cib, int call_options); cib 91 include/crm/cib/cib_types.h int (*ping) (cib_t *cib, xmlNode **output_data, int call_options); cib 92 include/crm/cib/cib_types.h int (*query) (cib_t *cib, const char *section, xmlNode **output_data, cib 94 include/crm/cib/cib_types.h int (*query_from) (cib_t *cib, const char *host, const char *section, cib 98 include/crm/cib/cib_types.h int (*is_master) (cib_t *cib); cib 101 include/crm/cib/cib_types.h int (*set_master) (cib_t *cib, int call_options); cib 104 include/crm/cib/cib_types.h int (*set_slave) (cib_t *cib, int call_options); cib 107 include/crm/cib/cib_types.h int (*set_slave_all) (cib_t *cib, int call_options); cib 109 include/crm/cib/cib_types.h int (*sync) (cib_t *cib, const char *section, int call_options); cib 110 include/crm/cib/cib_types.h int (*sync_from) (cib_t *cib, const char *host, const char *section, cib 112 include/crm/cib/cib_types.h int (*upgrade) (cib_t *cib, int call_options); cib 113 include/crm/cib/cib_types.h int (*bump_epoch) (cib_t *cib, int call_options); cib 114 include/crm/cib/cib_types.h int (*create) (cib_t *cib, const char *section, xmlNode *data, cib 116 include/crm/cib/cib_types.h int (*modify) (cib_t *cib, const char *section, xmlNode *data, cib 118 include/crm/cib/cib_types.h int (*update) (cib_t *cib, const char *section, xmlNode *data, cib 120 include/crm/cib/cib_types.h int (*replace) (cib_t *cib, const char *section, xmlNode *data, cib 122 include/crm/cib/cib_types.h int (*remove) (cib_t *cib, const char *section, xmlNode *data, cib 124 include/crm/cib/cib_types.h int (*erase) (cib_t *cib, xmlNode **output_data, int call_options); cib 127 include/crm/cib/cib_types.h int (*delete_absolute) (cib_t *cib, const char *section, xmlNode *data, cib 130 include/crm/cib/cib_types.h int (*quit) (cib_t *cib, int call_options); cib 131 include/crm/cib/cib_types.h int (*register_notification) (cib_t *cib, const char *callback, cib 133 include/crm/cib/cib_types.h gboolean (*register_callback) (cib_t *cib, int call_id, int timeout, cib 138 include/crm/cib/cib_types.h gboolean (*register_callback_full)(cib_t *cib, int call_id, int timeout, cib 153 include/crm/cib/cib_types.h int (*set_primary)(cib_t *cib, int call_options); cib 163 include/crm/cib/cib_types.h int (*set_secondary)(cib_t *cib, int call_options); cib 115 include/crm/cib/internal.h cib_t *cib; cib 145 include/crm/cib/internal.h void cib_native_callback(cib_t * cib, xmlNode * msg, int call_id, int rc); cib 147 include/crm/cib/internal.h int cib_native_register_notification(cib_t * cib, const char *callback, int enabled); cib 148 include/crm/cib/internal.h gboolean cib_client_register_callback(cib_t * cib, int call_id, int timeout, gboolean only_success, cib 151 include/crm/cib/internal.h gboolean cib_client_register_callback_full(cib_t *cib, int call_id, cib 225 include/crm/cib/internal.h int cib_internal_op(cib_t * cib, const char *op, const char *host, cib 235 include/crm/cib/internal.h void cib__set_output(cib_t *cib, pcmk__output_t *out); cib 251 include/crm/cib/internal.h int cib__signon_query(cib_t **cib, xmlNode **cib_object); cib 253 include/crm/cib/internal.h int cib__clean_up_connection(cib_t **cib); cib 255 include/crm/cib/internal.h int cib__update_node_attr(pcmk__output_t *out, cib_t *cib, int call_options, cib 261 include/crm/cib/internal.h int cib__get_node_attrs(pcmk__output_t *out, cib_t *cib, const char *section, cib 266 include/crm/cib/internal.h int cib__delete_node_attr(pcmk__output_t *out, cib_t *cib, int options, cib 24 include/crm/cib/util.h gboolean cib_version_details(xmlNode * cib, int *admin_epoch, int *epoch, int *updates); cib 57 include/crm/cib/util.h xmlNode *cib_get_generation(cib_t * cib); cib 129 include/crm/cluster.h void crm_remote_peer_cache_refresh(xmlNode *cib); cib 129 include/crm/cluster/internal.h void pcmk__refresh_node_caches_from_cib(xmlNode *cib); cib 21 include/crm/common/cib.h xmlNode *pcmk_find_cib_element(xmlNode *cib, const char *element_name); cib 58 include/crm/common/ipc_schedulerd.h int pcmk_schedulerd_api_graph(pcmk_ipc_api_t *api, xmlNode *cib, char **ref); cib 172 include/crm/compatibility.h #define add_cib_op_callback(cib, id, flag, data, fn) do { \ cib 173 include/crm/compatibility.h cib->cmds->register_callback(cib, id, 120, flag, data, #fn, fn); \ cib 37 include/pcmki/pcmki_scheduler.h void pcmk__schedule_actions(xmlNode *cib, unsigned long long flags, cib 50 include/pcmki/pcmki_simulate.h cib_t *cib, cib 42 include/pcmki/pcmki_status.h cib_t *cib, xmlNode *current_cib, cib 49 include/pcmki/pcmki_status.h int pcmk__status(pcmk__output_t *out, cib_t *cib, cib 54 lib/cib/cib_attrs.c find_attr(cib_t *cib, const char *section, const char *node_uuid, cib 133 lib/cib/cib_attrs.c rc = cib_internal_op(cib, PCMK__CIB_REQUEST_QUERY, NULL, cib 173 lib/cib/cib_attrs.c cib__update_node_attr(pcmk__output_t *out, cib_t *cib, int call_options, const char *section, cib 191 lib/cib/cib_attrs.c rc = find_attr(cib, section, node_uuid, set_type, set_name, attr_id, cib 323 lib/cib/cib_attrs.c rc = cib_internal_op(cib, PCMK__CIB_REQUEST_MODIFY, NULL, section, xml_top, cib 344 lib/cib/cib_attrs.c cib__get_node_attrs(pcmk__output_t *out, cib_t *cib, const char *section, cib 356 lib/cib/cib_attrs.c rc = find_attr(cib, section, node_uuid, set_type, set_name, attr_id, attr_name, cib 370 lib/cib/cib_attrs.c cib__delete_node_attr(pcmk__output_t *out, cib_t *cib, int options, const char *section, cib 384 lib/cib/cib_attrs.c rc = find_attr(cib, section, node_uuid, set_type, set_name, attr_id, cib 399 lib/cib/cib_attrs.c rc = cib_internal_op(cib, PCMK__CIB_REQUEST_DELETE, NULL, section, xml_obj, cib 417 lib/cib/cib_attrs.c find_nvpair_attr_delegate(cib_t *cib, const char *attr, const char *section, cib 431 lib/cib/cib_attrs.c rc = find_attr(cib, section, node_uuid, attr_set_type, set_name, attr_id, cib 449 lib/cib/cib_attrs.c update_attr_delegate(cib_t *cib, int call_options, const char *section, cib 462 lib/cib/cib_attrs.c rc = cib__update_node_attr(out, cib, call_options, section, node_uuid, set_type, cib 472 lib/cib/cib_attrs.c read_attr_delegate(cib_t *cib, const char *section, const char *node_uuid, cib 486 lib/cib/cib_attrs.c rc = cib__get_node_attrs(out, cib, section, node_uuid, set_type, set_name, cib 504 lib/cib/cib_attrs.c delete_attr_delegate(cib_t *cib, int options, const char *section, const char *node_uuid, cib 517 lib/cib/cib_attrs.c rc = cib__delete_node_attr(out, cib, options, section, node_uuid, set_type, cib 30 lib/cib/cib_client.c int cib_client_set_op_callback(cib_t * cib, void (*callback) (const xmlNode * msg, int call_id, cib 33 lib/cib/cib_client.c int cib_client_add_notify_callback(cib_t * cib, const char *event, cib 36 lib/cib/cib_client.c int cib_client_del_notify_callback(cib_t * cib, const char *event, cib 41 lib/cib/cib_client.c #define op_common(cib) do { \ cib 42 lib/cib/cib_client.c if(cib == NULL) { \ cib 44 lib/cib/cib_client.c } else if(cib->delegate_fn == NULL) { \ cib 50 lib/cib/cib_client.c cib_client_noop(cib_t * cib, int call_options) cib 52 lib/cib/cib_client.c op_common(cib); cib 53 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_NOOP, NULL, NULL, NULL, NULL, cib 58 lib/cib/cib_client.c cib_client_ping(cib_t * cib, xmlNode ** output_data, int call_options) cib 60 lib/cib/cib_client.c op_common(cib); cib 61 lib/cib/cib_client.c return cib_internal_op(cib, CRM_OP_PING, NULL, NULL, NULL, output_data, call_options, NULL); cib 65 lib/cib/cib_client.c cib_client_query(cib_t * cib, const char *section, xmlNode ** output_data, int call_options) cib 67 lib/cib/cib_client.c return cib->cmds->query_from(cib, NULL, section, output_data, call_options); cib 71 lib/cib/cib_client.c cib_client_query_from(cib_t * cib, const char *host, const char *section, cib 74 lib/cib/cib_client.c op_common(cib); cib 75 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_QUERY, host, section, NULL, cib 80 lib/cib/cib_client.c is_primary(cib_t *cib) cib 82 lib/cib/cib_client.c op_common(cib); cib 83 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_IS_PRIMARY, NULL, NULL, NULL, cib 88 lib/cib/cib_client.c set_secondary(cib_t *cib, int call_options) cib 90 lib/cib/cib_client.c op_common(cib); cib 91 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_SECONDARY, NULL, NULL, NULL, cib 96 lib/cib/cib_client.c set_all_secondary(cib_t * cib, int call_options) cib 102 lib/cib/cib_client.c set_primary(cib_t *cib, int call_options) cib 104 lib/cib/cib_client.c op_common(cib); cib 106 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_PRIMARY, NULL, NULL, NULL, cib 111 lib/cib/cib_client.c cib_client_bump_epoch(cib_t * cib, int call_options) cib 113 lib/cib/cib_client.c op_common(cib); cib 114 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_BUMP, NULL, NULL, NULL, NULL, cib 119 lib/cib/cib_client.c cib_client_upgrade(cib_t * cib, int call_options) cib 121 lib/cib/cib_client.c op_common(cib); cib 122 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_UPGRADE, NULL, NULL, NULL, cib 127 lib/cib/cib_client.c cib_client_sync(cib_t * cib, const char *section, int call_options) cib 129 lib/cib/cib_client.c return cib->cmds->sync_from(cib, NULL, section, call_options); cib 133 lib/cib/cib_client.c cib_client_sync_from(cib_t * cib, const char *host, const char *section, int call_options) cib 135 lib/cib/cib_client.c op_common(cib); cib 136 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_SYNC_TO_ALL, host, section, cib 141 lib/cib/cib_client.c cib_client_create(cib_t * cib, const char *section, xmlNode * data, int call_options) cib 143 lib/cib/cib_client.c op_common(cib); cib 144 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_CREATE, NULL, section, data, cib 149 lib/cib/cib_client.c cib_client_modify(cib_t * cib, const char *section, xmlNode * data, int call_options) cib 151 lib/cib/cib_client.c op_common(cib); cib 152 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_MODIFY, NULL, section, data, cib 157 lib/cib/cib_client.c cib_client_update(cib_t * cib, const char *section, xmlNode * data, int call_options) cib 159 lib/cib/cib_client.c op_common(cib); cib 160 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_MODIFY, NULL, section, data, cib 165 lib/cib/cib_client.c cib_client_replace(cib_t * cib, const char *section, xmlNode * data, int call_options) cib 167 lib/cib/cib_client.c op_common(cib); cib 168 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_REPLACE, NULL, section, data, cib 173 lib/cib/cib_client.c cib_client_delete(cib_t * cib, const char *section, xmlNode * data, int call_options) cib 175 lib/cib/cib_client.c op_common(cib); cib 176 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_DELETE, NULL, section, data, cib 181 lib/cib/cib_client.c cib_client_delete_absolute(cib_t * cib, const char *section, xmlNode * data, int call_options) cib 183 lib/cib/cib_client.c op_common(cib); cib 184 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_ABS_DELETE, NULL, section, cib 189 lib/cib/cib_client.c cib_client_erase(cib_t * cib, xmlNode ** output_data, int call_options) cib 191 lib/cib/cib_client.c op_common(cib); cib 192 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_ERASE, NULL, NULL, NULL, cib 435 lib/cib/cib_client.c cib_free_notify(cib_t *cib) cib 438 lib/cib/cib_client.c if (cib) { cib 439 lib/cib/cib_client.c GList *list = cib->notify_list; cib 447 lib/cib/cib_client.c cib->notify_list = NULL; cib 456 lib/cib/cib_client.c cib_free_callbacks(cib_t *cib) cib 458 lib/cib/cib_client.c cib_free_notify(cib); cib 469 lib/cib/cib_client.c cib_delete(cib_t *cib) cib 471 lib/cib/cib_client.c cib_free_callbacks(cib); cib 472 lib/cib/cib_client.c if (cib) { cib 473 lib/cib/cib_client.c cib->cmds->free(cib); cib 478 lib/cib/cib_client.c cib_client_set_op_callback(cib_t * cib, void (*callback) (const xmlNode * msg, int call_id, cib 487 lib/cib/cib_client.c cib->op_callback = callback; cib 492 lib/cib/cib_client.c cib_client_add_notify_callback(cib_t * cib, const char *event, cib 498 lib/cib/cib_client.c if (cib->variant != cib_native && cib->variant != cib_remote) { cib 502 lib/cib/cib_client.c crm_trace("Adding callback for %s events (%d)", event, g_list_length(cib->notify_list)); cib 508 lib/cib/cib_client.c list_item = g_list_find_custom(cib->notify_list, new_client, ciblib_GCompareFunc); cib 516 lib/cib/cib_client.c cib->notify_list = g_list_append(cib->notify_list, new_client); cib 518 lib/cib/cib_client.c cib->cmds->register_notification(cib, event, 1); cib 520 lib/cib/cib_client.c crm_trace("Callback added (%d)", g_list_length(cib->notify_list)); cib 526 lib/cib/cib_client.c get_notify_list_event_count(cib_t * cib, const char *event) cib 531 lib/cib/cib_client.c for (l = g_list_first(cib->notify_list); l; l = g_list_next(l)) { cib 543 lib/cib/cib_client.c cib_client_del_notify_callback(cib_t * cib, const char *event, cib 549 lib/cib/cib_client.c if (cib->variant != cib_native && cib->variant != cib_remote) { cib 553 lib/cib/cib_client.c if (get_notify_list_event_count(cib, event) == 0) { cib 564 lib/cib/cib_client.c list_item = g_list_find_custom(cib->notify_list, new_client, ciblib_GCompareFunc); cib 569 lib/cib/cib_client.c cib->notify_list = g_list_remove(cib->notify_list, list_client); cib 578 lib/cib/cib_client.c if (get_notify_list_event_count(cib, event) == 0) { cib 580 lib/cib/cib_client.c cib->cmds->register_notification(cib, event, 0); cib 617 lib/cib/cib_client.c cib_native_callback(timer->cib, NULL, timer->call_id, -ETIME); cib 626 lib/cib/cib_client.c cib_client_register_callback(cib_t * cib, int call_id, int timeout, gboolean only_success, cib 630 lib/cib/cib_client.c return cib_client_register_callback_full(cib, call_id, timeout, cib 636 lib/cib/cib_client.c cib_client_register_callback_full(cib_t *cib, int call_id, int timeout, cib 670 lib/cib/cib_client.c async_timer->cib = cib; cib 60 lib/cib/cib_file.c int cib_file_perform_op(cib_t * cib, const char *op, const char *host, const char *section, cib 63 lib/cib/cib_file.c int cib_file_perform_op_delegate(cib_t * cib, const char *op, const char *host, const char *section, cib 67 lib/cib/cib_file.c int cib_file_signon(cib_t * cib, const char *name, enum cib_conn_type type); cib 68 lib/cib/cib_file.c int cib_file_signoff(cib_t * cib); cib 69 lib/cib/cib_file.c int cib_file_free(cib_t * cib); cib 72 lib/cib/cib_file.c cib_file_inputfd(cib_t * cib) cib 78 lib/cib/cib_file.c cib_file_set_connection_dnotify(cib_t * cib, void (*dnotify) (gpointer user_data)) cib 84 lib/cib/cib_file.c cib_file_register_notification(cib_t * cib, const char *callback, int enabled) cib 498 lib/cib/cib_file.c cib_t *cib = cib_new_variant(); cib 500 lib/cib/cib_file.c if (cib == NULL) { cib 507 lib/cib/cib_file.c free(cib); cib 511 lib/cib/cib_file.c cib->variant = cib_file; cib 512 lib/cib/cib_file.c cib->variant_opaque = private; cib 526 lib/cib/cib_file.c cib->delegate_fn = cib_file_perform_op_delegate; cib 527 lib/cib/cib_file.c cib->cmds->signon = cib_file_signon; cib 528 lib/cib/cib_file.c cib->cmds->signoff = cib_file_signoff; cib 529 lib/cib/cib_file.c cib->cmds->free = cib_file_free; cib 530 lib/cib/cib_file.c cib->cmds->inputfd = cib_file_inputfd; cib 532 lib/cib/cib_file.c cib->cmds->register_notification = cib_file_register_notification; cib 533 lib/cib/cib_file.c cib->cmds->set_connection_dnotify = cib_file_set_connection_dnotify; cib 535 lib/cib/cib_file.c return cib; cib 591 lib/cib/cib_file.c cib_file_signon(cib_t * cib, const char *name, enum cib_conn_type type) cib 594 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; cib 605 lib/cib/cib_file.c cib->state = cib_connected_command; cib 606 lib/cib/cib_file.c cib->type = cib_command; cib 706 lib/cib/cib_file.c cib_file_signoff(cib_t * cib) cib 709 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; cib 712 lib/cib/cib_file.c cib->state = cib_disconnected; cib 713 lib/cib/cib_file.c cib->type = cib_no_connection; cib 748 lib/cib/cib_file.c cib_file_free(cib_t * cib) cib 752 lib/cib/cib_file.c if (cib->state != cib_disconnected) { cib 753 lib/cib/cib_file.c rc = cib_file_signoff(cib); cib 757 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; cib 760 lib/cib/cib_file.c free(cib->cmds); cib 762 lib/cib/cib_file.c free(cib); cib 792 lib/cib/cib_file.c cib_file_perform_op(cib_t * cib, const char *op, const char *host, const char *section, cib 795 lib/cib/cib_file.c return cib_file_perform_op_delegate(cib, op, host, section, data, output_data, call_options, cib 800 lib/cib/cib_file.c cib_file_perform_op_delegate(cib_t * cib, const char *op, const char *host, const char *section, cib 815 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; cib 824 lib/cib/cib_file.c if (cib->state == cib_disconnected) { cib 848 lib/cib/cib_file.c cib->call_id++; cib 849 lib/cib/cib_file.c request = cib_create_op(cib->call_id, "dummy-token", op, host, section, data, call_options, user_name); cib 880 lib/cib/cib_file.c if (cib->op_callback != NULL) { cib 881 lib/cib/cib_file.c cib->op_callback(NULL, cib->call_id, rc, output); cib 41 lib/cib/cib_native.c int cib_native_perform_op(cib_t * cib, const char *op, const char *host, const char *section, cib 44 lib/cib/cib_native.c int cib_native_perform_op_delegate(cib_t * cib, const char *op, const char *host, cib 48 lib/cib/cib_native.c int cib_native_free(cib_t * cib); cib 49 lib/cib/cib_native.c int cib_native_signoff(cib_t * cib); cib 50 lib/cib/cib_native.c int cib_native_signon(cib_t * cib, const char *name, enum cib_conn_type type); cib 51 lib/cib/cib_native.c int cib_native_signon_raw(cib_t * cib, const char *name, enum cib_conn_type type, int *event_fd); cib 53 lib/cib/cib_native.c int cib_native_set_connection_dnotify(cib_t * cib, void (*dnotify) (gpointer user_data)); cib 59 lib/cib/cib_native.c cib_t *cib = cib_new_variant(); cib 61 lib/cib/cib_native.c if (cib == NULL) { cib 68 lib/cib/cib_native.c free(cib); cib 72 lib/cib/cib_native.c cib->variant = cib_native; cib 73 lib/cib/cib_native.c cib->variant_opaque = native; cib 80 lib/cib/cib_native.c cib->delegate_fn = cib_native_perform_op_delegate; cib 81 lib/cib/cib_native.c cib->cmds->signon = cib_native_signon; cib 82 lib/cib/cib_native.c cib->cmds->signon_raw = cib_native_signon_raw; cib 83 lib/cib/cib_native.c cib->cmds->signoff = cib_native_signoff; cib 84 lib/cib/cib_native.c cib->cmds->free = cib_native_free; cib 86 lib/cib/cib_native.c cib->cmds->register_notification = cib_native_register_notification; cib 87 lib/cib/cib_native.c cib->cmds->set_connection_dnotify = cib_native_set_connection_dnotify; cib 89 lib/cib/cib_native.c return cib; cib 93 lib/cib/cib_native.c cib_native_signon(cib_t * cib, const char *name, enum cib_conn_type type) cib 95 lib/cib/cib_native.c return cib_native_signon_raw(cib, name, type, NULL); cib 104 lib/cib/cib_native.c cib_t *cib = userdata; cib 108 lib/cib/cib_native.c if (cib == NULL) { cib 126 lib/cib/cib_native.c cib_native_callback(cib, msg, 0, 0); cib 129 lib/cib/cib_native.c g_list_foreach(cib->notify_list, cib_native_notify, msg); cib 142 lib/cib/cib_native.c cib_t *cib = userdata; cib 143 lib/cib/cib_native.c cib_native_opaque_t *native = cib->variant_opaque; cib 146 lib/cib/cib_native.c cib->state = cib_disconnected; cib 156 lib/cib/cib_native.c cib_native_signon_raw(cib_t * cib, const char *name, enum cib_conn_type type, int *async_fd) cib 160 lib/cib/cib_native.c cib_native_opaque_t *native = cib->variant_opaque; cib 167 lib/cib/cib_native.c cib->call_timeout = PCMK__IPC_TIMEOUT; cib 170 lib/cib/cib_native.c cib->state = cib_connected_command; cib 174 lib/cib/cib_native.c cib->state = cib_connected_command; cib 178 lib/cib/cib_native.c cib->state = cib_connected_query; cib 199 lib/cib/cib_native.c mainloop_add_ipc_client(channel, G_PRIORITY_HIGH, 512 * 1024 /* 512k */ , cib, cib 251 lib/cib/cib_native.c cib_native_signoff(cib); cib 256 lib/cib/cib_native.c cib_native_signoff(cib_t * cib) cib 258 lib/cib/cib_native.c cib_native_opaque_t *native = cib->variant_opaque; cib 262 lib/cib/cib_native.c cib_free_notify(cib); cib 280 lib/cib/cib_native.c cib->state = cib_disconnected; cib 281 lib/cib/cib_native.c cib->type = cib_no_connection; cib 287 lib/cib/cib_native.c cib_native_free(cib_t * cib) cib 291 lib/cib/cib_native.c if (cib->state != cib_disconnected) { cib 292 lib/cib/cib_native.c rc = cib_native_signoff(cib); cib 295 lib/cib/cib_native.c if (cib->state == cib_disconnected) { cib 296 lib/cib/cib_native.c cib_native_opaque_t *native = cib->variant_opaque; cib 299 lib/cib/cib_native.c free(cib->variant_opaque); cib 300 lib/cib/cib_native.c free(cib->cmds); cib 301 lib/cib/cib_native.c free(cib); cib 308 lib/cib/cib_native.c cib_native_perform_op(cib_t * cib, const char *op, const char *host, const char *section, cib 311 lib/cib/cib_native.c return cib_native_perform_op_delegate(cib, op, host, section, cib 316 lib/cib/cib_native.c cib_native_perform_op_delegate(cib_t * cib, const char *op, const char *host, const char *section, cib 327 lib/cib/cib_native.c cib_native_opaque_t *native = cib->variant_opaque; cib 329 lib/cib/cib_native.c if (cib->state == cib_disconnected) { cib 346 lib/cib/cib_native.c cib->call_id++; cib 347 lib/cib/cib_native.c if (cib->call_id < 1) { cib 348 lib/cib/cib_native.c cib->call_id = 1; cib 354 lib/cib/cib_native.c cib_create_op(cib->call_id, native->token, op, host, section, data, call_options, cib 360 lib/cib/cib_native.c crm_trace("Sending %s message to the CIB manager (timeout=%ds)", op, cib->call_timeout); cib 361 lib/cib/cib_native.c rc = crm_ipc_send(native->ipc, op_msg, ipc_flags, cib->call_timeout * 1000, &op_reply); cib 366 lib/cib/cib_native.c cib->call_timeout, pcmk_strerror(rc), rc); cib 374 lib/cib/cib_native.c crm_trace("Async call, returning %d", cib->call_id); cib 375 lib/cib/cib_native.c CRM_CHECK(cib->call_id != 0, return -ENOMSG); cib 377 lib/cib/cib_native.c return cib->call_id; cib 382 lib/cib/cib_native.c if (reply_id == cib->call_id) { cib 404 lib/cib/cib_native.c crm_err("Received bad reply: %d (wanted %d)", reply_id, cib->call_id); cib 410 lib/cib/cib_native.c if (op_reply == NULL && cib->state == cib_disconnected) { cib 445 lib/cib/cib_native.c cib->state = cib_disconnected; cib 453 lib/cib/cib_native.c cib_native_set_connection_dnotify(cib_t * cib, void (*dnotify) (gpointer user_data)) cib 457 lib/cib/cib_native.c if (cib == NULL) { cib 462 lib/cib/cib_native.c native = cib->variant_opaque; cib 469 lib/cib/cib_native.c cib_native_register_notification(cib_t * cib, const char *callback, int enabled) cib 473 lib/cib/cib_native.c cib_native_opaque_t *native = cib->variant_opaque; cib 475 lib/cib/cib_native.c if (cib->state != cib_disconnected) { cib 480 lib/cib/cib_native.c 1000 * cib->call_timeout, NULL); cib 67 lib/cib/cib_remote.c int cib_remote_signon(cib_t * cib, const char *name, enum cib_conn_type type); cib 68 lib/cib/cib_remote.c int cib_remote_signoff(cib_t * cib); cib 69 lib/cib/cib_remote.c int cib_remote_free(cib_t * cib); cib 71 lib/cib/cib_remote.c int cib_remote_perform_op(cib_t * cib, const char *op, const char *host, const char *section, cib 76 lib/cib/cib_remote.c cib_remote_inputfd(cib_t * cib) cib 78 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; cib 84 lib/cib/cib_remote.c cib_remote_set_connection_dnotify(cib_t * cib, void (*dnotify) (gpointer user_data)) cib 90 lib/cib/cib_remote.c cib_remote_register_notification(cib_t * cib, const char *callback, int enabled) cib 93 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; cib 108 lib/cib/cib_remote.c cib_t *cib = cib_new_variant(); cib 110 lib/cib/cib_remote.c if (cib == NULL) { cib 117 lib/cib/cib_remote.c free(cib); cib 121 lib/cib/cib_remote.c cib->variant = cib_remote; cib 122 lib/cib/cib_remote.c cib->variant_opaque = private; cib 132 lib/cib/cib_remote.c cib->delegate_fn = cib_remote_perform_op; cib 133 lib/cib/cib_remote.c cib->cmds->signon = cib_remote_signon; cib 134 lib/cib/cib_remote.c cib->cmds->signoff = cib_remote_signoff; cib 135 lib/cib/cib_remote.c cib->cmds->free = cib_remote_free; cib 136 lib/cib/cib_remote.c cib->cmds->inputfd = cib_remote_inputfd; cib 138 lib/cib/cib_remote.c cib->cmds->register_notification = cib_remote_register_notification; cib 139 lib/cib/cib_remote.c cib->cmds->set_connection_dnotify = cib_remote_set_connection_dnotify; cib 141 lib/cib/cib_remote.c return cib; cib 145 lib/cib/cib_remote.c cib_tls_close(cib_t * cib) cib 147 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; cib 192 lib/cib/cib_remote.c cib_tls_signon(cib_t *cib, pcmk__remote_t *connection, gboolean event_channel) cib 194 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; cib 233 lib/cib/cib_remote.c cib_tls_close(cib); cib 244 lib/cib/cib_remote.c cib_tls_close(cib); cib 293 lib/cib/cib_remote.c cib_tls_close(cib); cib 299 lib/cib/cib_remote.c connection->tcp_socket, cib, cib 318 lib/cib/cib_remote.c cib_t *cib = user_data; cib 319 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; cib 337 lib/cib/cib_remote.c cib_t *cib = user_data; cib 338 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; cib 353 lib/cib/cib_remote.c cib_native_callback(cib, msg, 0, 0); cib 356 lib/cib/cib_remote.c g_list_foreach(cib->notify_list, cib_native_notify, msg); cib 374 lib/cib/cib_remote.c cib_remote_signon(cib_t * cib, const char *name, enum cib_conn_type type) cib 377 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; cib 395 lib/cib/cib_remote.c rc = cib_tls_signon(cib, &(private->command), FALSE); cib 399 lib/cib/cib_remote.c rc = cib_tls_signon(cib, &(private->callback), TRUE); cib 413 lib/cib/cib_remote.c cib->state = cib_connected_command; cib 414 lib/cib/cib_remote.c cib->type = cib_command; cib 425 lib/cib/cib_remote.c cib_remote_signoff(cib_t * cib) cib 433 lib/cib/cib_remote.c cib_tls_close(cib); cib 436 lib/cib/cib_remote.c cib->state = cib_disconnected; cib 437 lib/cib/cib_remote.c cib->type = cib_no_connection; cib 443 lib/cib/cib_remote.c cib_remote_free(cib_t * cib) cib 448 lib/cib/cib_remote.c if (cib->state != cib_disconnected) { cib 449 lib/cib/cib_remote.c rc = cib_remote_signoff(cib); cib 451 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; cib 456 lib/cib/cib_remote.c free(cib->cmds); cib 458 lib/cib/cib_remote.c free(cib); cib 466 lib/cib/cib_remote.c cib_remote_perform_op(cib_t * cib, const char *op, const char *host, const char *section, cib 476 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; cib 478 lib/cib/cib_remote.c if (cib->state == cib_disconnected) { cib 491 lib/cib/cib_remote.c cib->call_id++; cib 492 lib/cib/cib_remote.c if (cib->call_id < 1) { cib 493 lib/cib/cib_remote.c cib->call_id = 1; cib 497 lib/cib/cib_remote.c cib_create_op(cib->call_id, private->callback.token, op, host, section, data, call_options, cib 516 lib/cib/cib_remote.c return cib->call_id; cib 522 lib/cib/cib_remote.c remaining_time = cib->call_timeout ? cib->call_timeout : 60; cib 527 lib/cib/cib_remote.c int msg_id = cib->call_id; cib 603 lib/cib/cib_remote.c crm_trace("No output in reply to \"%s\" command %d", op, cib->call_id - 1); cib 615 lib/cib/cib_remote.c cib__set_output(cib_t *cib, pcmk__output_t *out) cib 619 lib/cib/cib_remote.c if (cib->variant != cib_remote) { cib 623 lib/cib/cib_remote.c private = cib->variant_opaque; cib 28 lib/cib/cib_utils.c cib_get_generation(cib_t * cib) cib 33 lib/cib/cib_utils.c cib->cmds->query(cib, NULL, &the_cib, cib_scope_local | cib_sync_call); cib 43 lib/cib/cib_utils.c cib_version_details(xmlNode * cib, int *admin_epoch, int *epoch, int *updates) cib 49 lib/cib/cib_utils.c if (cib == NULL) { cib 53 lib/cib/cib_utils.c crm_element_value_int(cib, XML_ATTR_GENERATION, epoch); cib 54 lib/cib/cib_utils.c crm_element_value_int(cib, XML_ATTR_NUMUPDATES, updates); cib 55 lib/cib/cib_utils.c crm_element_value_int(cib, XML_ATTR_GENERATION_ADMIN, admin_epoch); cib 470 lib/cib/cib_utils.c cib_native_callback(cib_t * cib, xmlNode * msg, int call_id, int rc) cib 487 lib/cib/cib_utils.c if (cib == NULL) { cib 501 lib/cib/cib_utils.c } else if (cib && cib->op_callback == NULL && rc != pcmk_ok) { cib 511 lib/cib/cib_utils.c if (cib && cib->op_callback != NULL) { cib 513 lib/cib/cib_utils.c cib->op_callback(msg, call_id, rc, output); cib 648 lib/cib/cib_utils.c cib_internal_op(cib_t * cib, const char *op, const char *host, cib 652 lib/cib/cib_utils.c int (*delegate) (cib_t * cib, const char *op, const char *host, cib 655 lib/cib/cib_utils.c cib->delegate_fn; cib 661 lib/cib/cib_utils.c return delegate(cib, op, host, section, data, output_data, call_options, user_name); cib 719 lib/cib/cib_utils.c cib__signon_query(cib_t **cib, xmlNode **cib_object) cib 726 lib/cib/cib_utils.c if (cib == NULL) { cib 729 lib/cib/cib_utils.c *cib = cib_new(); cib 730 lib/cib/cib_utils.c cib_conn = *cib; cib 745 lib/cib/cib_utils.c if (cib == NULL) { cib 756 lib/cib/cib_utils.c cib__clean_up_connection(cib_t **cib) cib 760 lib/cib/cib_utils.c if (*cib == NULL) { cib 764 lib/cib/cib_utils.c rc = (*cib)->cmds->signoff(*cib); cib 765 lib/cib/cib_utils.c cib_delete(*cib); cib 766 lib/cib/cib_utils.c *cib = NULL; cib 243 lib/cluster/membership.c crm_remote_peer_cache_refresh(xmlNode *cib) cib 258 lib/cluster/membership.c crm_foreach_xpath_result(cib, PCMK__XP_REMOTE_NODE_STATUS, cib 269 lib/cluster/membership.c crm_foreach_xpath_result(cib, PCMK__XP_GUEST_NODE_CONFIG, cib 273 lib/cluster/membership.c crm_foreach_xpath_result(cib, PCMK__XP_REMOTE_NODE_CONFIG, cib 1226 lib/cluster/membership.c refresh_known_node_cache(xmlNode *cib) cib 1232 lib/cluster/membership.c crm_foreach_xpath_result(cib, PCMK__XP_MEMBER_NODE_CONFIG, cib 1240 lib/cluster/membership.c pcmk__refresh_node_caches_from_cib(xmlNode *cib) cib 1242 lib/cluster/membership.c crm_remote_peer_cache_refresh(cib); cib 1243 lib/cluster/membership.c refresh_known_node_cache(cib); cib 153 lib/common/cib.c pcmk_find_cib_element(xmlNode *cib, const char *element_name) cib 155 lib/common/cib.c return get_xpath_object(pcmk_cib_xpath_for(element_name), cib, LOG_TRACE); cib 143 lib/common/ipc_schedulerd.c do_schedulerd_api_call(pcmk_ipc_api_t *api, const char *task, xmlNode *cib, char **ref) cib 156 lib/common/ipc_schedulerd.c cmd = create_request(task, cib, NULL, CRM_SYSTEM_PENGINE, cib 177 lib/common/ipc_schedulerd.c pcmk_schedulerd_api_graph(pcmk_ipc_api_t *api, xmlNode *cib, char **ref) cib 179 lib/common/ipc_schedulerd.c return do_schedulerd_api_call(api, CRM_OP_PECALC, cib, ref); cib 225 lib/common/patchset.c xmlNode *cib = NULL; cib 248 lib/common/patchset.c cib = find_xml_node(diff_child, tag, FALSE); cib 249 lib/common/patchset.c if (cib == NULL) { cib 250 lib/common/patchset.c cib = create_xml_node(diff_child, tag); cib 258 lib/common/patchset.c crm_xml_add(cib, vfields[lpc], value); cib 269 lib/common/patchset.c cib = find_xml_node(diff_child, tag, FALSE); cib 270 lib/common/patchset.c if (cib == NULL) { cib 271 lib/common/patchset.c cib = create_xml_node(diff_child, tag); cib 283 lib/common/patchset.c xmlSetProp(cib, a->name, (pcmkXmlStr) p_value); cib 325 lib/pacemaker/libpacemaker_private.h void pcmk__inject_scheduler_input(pe_working_set_t *data_set, cib_t *cib, cib 471 lib/pacemaker/pcmk_injections.c const char *attr_name, bool attr_value, cib_t *cib) cib 478 lib/pacemaker/pcmk_injections.c rc = find_ticket_state(out, cib, ticket_id, &ticket_state_xml); cib 503 lib/pacemaker/pcmk_injections.c rc = cib->cmds->modify(cib, XML_CIB_TAG_STATUS, xml_top, cib 521 lib/pacemaker/pcmk_injections.c inject_action(pcmk__output_t *out, const char *spec, cib_t *cib, cib 566 lib/pacemaker/pcmk_injections.c cib_node = pcmk__inject_node(cib, node, NULL); cib 583 lib/pacemaker/pcmk_injections.c rc = cib->cmds->modify(cib, XML_CIB_TAG_STATUS, cib_node, cib 602 lib/pacemaker/pcmk_injections.c pcmk__inject_scheduler_input(pe_working_set_t *data_set, cib_t *cib, cib 618 lib/pacemaker/pcmk_injections.c rc = cib->cmds->modify(cib, NULL, top, cib_sync_call|cib_scope_local); cib 623 lib/pacemaker/pcmk_injections.c rc = cib__update_node_attr(out, cib, cib_sync_call|cib_scope_local, cib 635 lib/pacemaker/pcmk_injections.c cib_node = pcmk__inject_node_state_change(cib, node, true); cib 638 lib/pacemaker/pcmk_injections.c rc = cib->cmds->modify(cib, XML_CIB_TAG_STATUS, cib_node, cib 650 lib/pacemaker/pcmk_injections.c cib_node = pcmk__inject_node_state_change(cib, node, false); cib 653 lib/pacemaker/pcmk_injections.c rc = cib->cmds->modify(cib, XML_CIB_TAG_STATUS, cib_node, cib 660 lib/pacemaker/pcmk_injections.c cib->cmds->remove(cib, xpath, NULL, cib 666 lib/pacemaker/pcmk_injections.c cib->cmds->remove(cib, xpath, NULL, cib 676 lib/pacemaker/pcmk_injections.c cib_node = pcmk__inject_node_state_change(cib, node, true); cib 680 lib/pacemaker/pcmk_injections.c rc = cib->cmds->modify(cib, XML_CIB_TAG_STATUS, cib_node, cib 691 lib/pacemaker/pcmk_injections.c rc = set_ticket_state_attr(out, ticket_id, "granted", true, cib); cib 700 lib/pacemaker/pcmk_injections.c rc = set_ticket_state_attr(out, ticket_id, "granted", false, cib); cib 709 lib/pacemaker/pcmk_injections.c rc = set_ticket_state_attr(out, ticket_id, "standby", true, cib); cib 718 lib/pacemaker/pcmk_injections.c rc = set_ticket_state_attr(out, ticket_id, "standby", false, cib); cib 723 lib/pacemaker/pcmk_injections.c inject_action(out, (char *) iter->data, cib, data_set); cib 724 lib/pacemaker/pcmk_sched_allocate.c unpack_cib(xmlNode *cib, unsigned long long flags, pe_working_set_t *data_set) cib 738 lib/pacemaker/pcmk_sched_allocate.c CRM_ASSERT(cib != NULL); cib 753 lib/pacemaker/pcmk_sched_allocate.c data_set->input = cib; cib 766 lib/pacemaker/pcmk_sched_allocate.c pcmk__schedule_actions(xmlNode *cib, unsigned long long flags, cib 769 lib/pacemaker/pcmk_sched_allocate.c unpack_cib(cib, flags, data_set); cib 726 lib/pacemaker/pcmk_simulate.c pcmk__simulate_transition(pe_working_set_t *data_set, cib_t *cib, cib 741 lib/pacemaker/pcmk_simulate.c fake_cib = cib; cib 789 lib/pacemaker/pcmk_simulate.c cib_t *cib = NULL; cib 791 lib/pacemaker/pcmk_simulate.c rc = cib__signon_query(&cib, &input); cib 836 lib/pacemaker/pcmk_simulate.c pcmk__inject_scheduler_input(data_set, cib, injections); cib 839 lib/pacemaker/pcmk_simulate.c rc = cib->cmds->query(cib, NULL, &input, cib_sync_call); cib 938 lib/pacemaker/pcmk_simulate.c if (pcmk__simulate_transition(data_set, cib, cib 961 lib/pacemaker/pcmk_simulate.c cib__clean_up_connection(&cib); cib 25 lib/pacemaker/pcmk_status.c cib_connect(pcmk__output_t *out, cib_t *cib, xmlNode **current_cib) cib 29 lib/pacemaker/pcmk_status.c CRM_CHECK(cib != NULL, return EINVAL); cib 31 lib/pacemaker/pcmk_status.c if (cib->state == cib_connected_query || cib 32 lib/pacemaker/pcmk_status.c cib->state == cib_connected_command) { cib 38 lib/pacemaker/pcmk_status.c rc = cib->cmds->signon(cib, crm_system_name, cib_query); cib 47 lib/pacemaker/pcmk_status.c rc = cib->cmds->query(cib, NULL, current_cib, cib 100 lib/pacemaker/pcmk_status.c pcmk__output_cluster_status(pcmk__output_t *out, stonith_t *stonith, cib_t *cib, cib 116 lib/pacemaker/pcmk_status.c cib__clean_up_connection(&cib); cib 172 lib/pacemaker/pcmk_status.c cib_t *cib = NULL; cib 178 lib/pacemaker/pcmk_status.c cib = cib_new(); cib 180 lib/pacemaker/pcmk_status.c if (cib == NULL) { cib 186 lib/pacemaker/pcmk_status.c cib_delete(cib); cib 194 lib/pacemaker/pcmk_status.c rc = pcmk__status(out, cib, pcmk__fence_history_full, pcmk_section_all, cib 198 lib/pacemaker/pcmk_status.c cib_delete(cib); cib 238 lib/pacemaker/pcmk_status.c pcmk__status(pcmk__output_t *out, cib_t *cib, cib 249 lib/pacemaker/pcmk_status.c if (cib == NULL) { cib 253 lib/pacemaker/pcmk_status.c if ((cib->variant == cib_native) cib 254 lib/pacemaker/pcmk_status.c && (cib->state != cib_connected_query) cib 255 lib/pacemaker/pcmk_status.c && (cib->state != cib_connected_command)) { cib 280 lib/pacemaker/pcmk_status.c if (fence_history != pcmk__fence_history_none && cib->variant == cib_native) { cib 284 lib/pacemaker/pcmk_status.c rc = cib_connect(out, cib, ¤t_cib); cib 289 lib/pacemaker/pcmk_status.c rc = pcmk__output_cluster_status(out, stonith, cib, current_cib, cib 411 tools/crm_attribute.c cib_t *cib; cib 426 tools/crm_attribute.c rc = cib__delete_node_attr(dd->out, dd->cib, cib_opts, options.type, cib 439 tools/crm_attribute.c command_delete(pcmk__output_t *out, cib_t *cib) cib 448 tools/crm_attribute.c struct delete_data_s dd = { out, cib }; cib 450 tools/crm_attribute.c rc = cib__get_node_attrs(out, cib, options.type, options.dest_node, cib 465 tools/crm_attribute.c rc = cib__delete_node_attr(out, cib, cib_opts, options.type, options.dest_node, cib 486 tools/crm_attribute.c cib_t *cib; cib 501 tools/crm_attribute.c return cib__update_node_attr(ud->out, ud->cib, cib_opts, options.type, cib 509 tools/crm_attribute.c command_update(pcmk__output_t *out, cib_t *cib, int is_remote_node) cib 522 tools/crm_attribute.c struct update_data_s ud = { out, cib, is_remote_node }; cib 524 tools/crm_attribute.c rc = cib__get_node_attrs(out, cib, options.type, options.dest_node, cib 539 tools/crm_attribute.c rc = cib__update_node_attr(out, cib, cib_opts, options.type, cib 583 tools/crm_attribute.c command_query(pcmk__output_t *out, cib_t *cib) cib 596 tools/crm_attribute.c rc = cib__get_node_attrs(out, cib, options.type, options.dest_node, cib 600 tools/crm_attribute.c rc = cib__get_node_attrs(out, cib, options.type, options.dest_node, cib 74 tools/crm_mon.c static cib_t *cib = NULL; cib 698 tools/crm_mon.c if (cib) { cib 699 tools/crm_mon.c cib->cmds->signoff(cib); cib 780 tools/crm_mon.c CRM_CHECK(cib != NULL, return EINVAL); cib 782 tools/crm_mon.c if (cib->state == cib_connected_query || cib 783 tools/crm_mon.c cib->state == cib_connected_command) { cib 789 tools/crm_mon.c rc = pcmk_legacy2rc(cib->cmds->signon(cib, crm_system_name, cib_query)); cib 801 tools/crm_mon.c rc = pcmk_legacy2rc(cib->cmds->query(cib, NULL, ¤t_cib, cib 805 tools/crm_mon.c rc = pcmk_legacy2rc(cib->cmds->set_connection_dnotify(cib, cib 818 tools/crm_mon.c cib->cmds->del_notify_callback(cib, T_CIB_DIFF_NOTIFY, cib 820 tools/crm_mon.c rc = pcmk_legacy2rc(cib->cmds->add_notify_callback(cib, cib 826 tools/crm_mon.c cib__clean_up_connection(&cib); cib 924 tools/crm_mon.c if (cib != NULL && cib 925 tools/crm_mon.c (cib->state == cib_connected_query || cib 926 tools/crm_mon.c cib->state == cib_connected_command)) { cib 1333 tools/crm_mon.c int rc = pcmk__status(out, cib, fence_history, show, show_opts, cib 1348 tools/crm_mon.c if (cib != NULL) { cib 1414 tools/crm_mon.c cib = cib_new(); cib 1418 tools/crm_mon.c switch (cib->variant) { cib 1505 tools/crm_mon.c cib_delete(cib); cib 1506 tools/crm_mon.c cib = NULL; cib 1508 tools/crm_mon.c cib = cib_new(); cib 1552 tools/crm_mon.c if (cib->variant == cib_file) { cib 1585 tools/crm_mon.c cib__set_output(cib, out); cib 1952 tools/crm_mon.c cib->cmds->query(cib, NULL, ¤t_cib, cib_scope_local | cib_sync_call); cib 2003 tools/crm_mon.c rc = pcmk__output_cluster_status(out, st, cib, current_cib, fence_history, cib 2133 tools/crm_mon.c cib__clean_up_connection(&cib); cib 333 tools/crm_node.c cib_t *cib = NULL; cib 353 tools/crm_node.c cib = cib_new(); cib 354 tools/crm_node.c cib->cmds->signon(cib, crm_system_name, cib_command); cib 356 tools/crm_node.c rc = cib->cmds->remove(cib, XML_CIB_TAG_NODES, node, cib_sync_call); cib 361 tools/crm_node.c rc = cib->cmds->remove(cib, XML_CIB_TAG_STATUS, node_state, cib_sync_call); cib 367 tools/crm_node.c cib__clean_up_connection(&cib); cib 86 tools/crm_resource.h const char *move_lifetime, int timeout_ms, cib_t *cib, cib 89 tools/crm_resource.h const char *move_lifetime, cib_t *cib, int cib_options, cib 100 tools/crm_resource.h int timeout_ms, cib_t *cib, pe_working_set_t *data_set, cib 107 tools/crm_resource.h cib_t *cib, int cib_options, cib 112 tools/crm_resource.h cib_t *cib, int cib_options, cib 116 tools/crm_resource.h int wait_till_stable(pcmk__output_t *out, int timeout_ms, cib_t * cib); cib 163 tools/crm_resource_runtime.c cib_t * cib, const char * cmd, int depth) cib 173 tools/crm_resource_runtime.c attr_id, attr_name, cib, cmd, depth+1); cib 180 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, XML_ATTR_ID, lookup_id, attr_set_type, cib 199 tools/crm_resource_runtime.c const char * attr_name, cib_t * cib, const char * cmd, cib 215 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, XML_ATTR_ID, rsc_id, attr_set_type, cib 230 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, XML_ATTR_ID, lookup_id, attr_set_type, cib 247 tools/crm_resource_runtime.c cib, cmd, 0); cib 257 tools/crm_resource_runtime.c cib_t *cib, int cib_options, cib 271 tools/crm_resource_runtime.c find_resource_attr (out, cib, XML_ATTR_ID, uber_parent(rsc)->id, NULL, cib 277 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, XML_ATTR_ID, uber_parent(rsc)->id, cib 295 tools/crm_resource_runtime.c attr_id, attr_name, cib, "update", force); cib 314 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, XML_ATTR_ID, lookup_id, attr_set_type, cib 354 tools/crm_resource_runtime.c rc = cib->cmds->modify(cib, XML_CIB_TAG_RESOURCES, xml_top, cib_options); cib 393 tools/crm_resource_runtime.c recursive, cib, cib_options, cib 408 tools/crm_resource_runtime.c cib_t *cib, int cib_options, cib 416 tools/crm_resource_runtime.c find_resource_attr(out, cib, XML_ATTR_ID, uber_parent(rsc)->id, NULL, cib 422 tools/crm_resource_runtime.c attr_id, attr_name, cib, "delete", force); cib 435 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, XML_ATTR_ID, lookup_id, attr_set_type, cib 456 tools/crm_resource_runtime.c CRM_ASSERT(cib); cib 457 tools/crm_resource_runtime.c rc = cib->cmds->remove(cib, XML_CIB_TAG_RESOURCES, xml_obj, cib_options); cib 1152 tools/crm_resource_runtime.c cib_t *cib) cib 1157 tools/crm_resource_runtime.c rc = cib->cmds->query(cib, NULL, &cib_xml_copy, cib_scope_local | cib_sync_call); cib 1176 tools/crm_resource_runtime.c update_dataset(cib_t *cib, pe_working_set_t * data_set, bool simulate) cib 1187 tools/crm_resource_runtime.c rc = update_working_set_from_cib(out, data_set, cib); cib 1326 tools/crm_resource_runtime.c const char *move_lifetime, int timeout_ms, cib_t *cib, cib 1427 tools/crm_resource_runtime.c rc = update_dataset(cib, data_set, false); cib 1442 tools/crm_resource_runtime.c rc = cli_resource_ban(out, lookup_id, host, move_lifetime, NULL, cib, cib 1451 tools/crm_resource_runtime.c find_resource_attr(out, cib, XML_NVPAIR_ATTR_VALUE, lookup_id, NULL, NULL, cib 1455 tools/crm_resource_runtime.c RSC_STOPPED, FALSE, cib, cib_options, cib 1471 tools/crm_resource_runtime.c rc = update_dataset(cib, data_set, true); cib 1498 tools/crm_resource_runtime.c rc = update_dataset(cib, data_set, FALSE); cib 1528 tools/crm_resource_runtime.c rc = cli_resource_clear(lookup_id, host, NULL, cib, cib_options, true, force); cib 1533 tools/crm_resource_runtime.c orig_target_role, FALSE, cib, cib 1539 tools/crm_resource_runtime.c NULL, XML_RSC_ATTR_TARGET_ROLE, cib, cib 1573 tools/crm_resource_runtime.c rc = update_dataset(cib, data_set, false); cib 1609 tools/crm_resource_runtime.c cli_resource_clear(lookup_id, host, NULL, cib, cib_options, true, force); cib 1613 tools/crm_resource_runtime.c FALSE, cib, cib_options, data_set, force); cib 1617 tools/crm_resource_runtime.c XML_RSC_ATTR_TARGET_ROLE, cib, cib_options, cib 1716 tools/crm_resource_runtime.c wait_till_stable(pcmk__output_t *out, int timeout_ms, cib_t * cib) cib 1747 tools/crm_resource_runtime.c rc = update_working_set_from_cib(out, data_set, cib); cib 1934 tools/crm_resource_runtime.c int timeout_ms, cib_t * cib, pe_working_set_t *data_set, cib 1996 tools/crm_resource_runtime.c const char *move_lifetime, cib_t *cib, int cib_options, cib 2070 tools/crm_resource_runtime.c cli_resource_clear(rsc_id, NULL, data_set->nodes, cib, cib_options, false, force); cib 2073 tools/crm_resource_runtime.c cli_resource_clear(rsc_id, dest->details->uname, data_set->nodes, cib, cib 2078 tools/crm_resource_runtime.c cib, cib_options, promoted_role_only); cib 2091 tools/crm_resource_runtime.c NULL, cib, cib_options, promoted_role_only); cib 567 tools/crm_ticket.c modify_ticket_state(gchar * ticket_id, cib_t * cib, pe_working_set_t * data_set) cib 582 tools/crm_ticket.c rc = find_ticket_state(cib, ticket_id, &ticket_state_xml); cib 627 tools/crm_ticket.c rc = cib->cmds->replace(cib, XML_CIB_TAG_STATUS, ticket_state_xml, cib_options); cib 632 tools/crm_ticket.c rc = cib->cmds->modify(cib, XML_CIB_TAG_STATUS, xml_top, cib_options); cib 641 tools/crm_ticket.c delete_ticket_state(gchar *ticket_id, cib_t * cib) cib 647 tools/crm_ticket.c rc = find_ticket_state(cib, ticket_id, &ticket_state_xml); cib 658 tools/crm_ticket.c rc = cib->cmds->remove(cib, XML_CIB_TAG_STATUS, ticket_state_xml, cib_options);