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 92 daemons/based/pacemaker-based.h gboolean verifyCibXml(xmlNode *cib); cib 191 daemons/controld/controld_election.c xmlNode *cib = NULL; cib 204 daemons/controld/controld_election.c cib = create_xml_node(NULL, XML_TAG_CIB); cib 205 daemons/controld/controld_election.c crm_xml_add(cib, XML_ATTR_CRM_VERSION, CRM_FEATURE_SET); cib 206 daemons/controld/controld_election.c fsa_cib_update(XML_TAG_CIB, cib, cib_quorum_override, rc, NULL); cib 232 daemons/controld/controld_election.c free_xml(cib); cib 401 daemons/controld/controld_te_callbacks.c process_cib_diff(xmlNode *cib, xmlNode *change, const char *op, cib 404 daemons/controld/controld_te_callbacks.c xmlNode *status = first_named_child(cib, XML_CIB_TAG_STATUS); cib 405 daemons/controld/controld_te_callbacks.c xmlNode *config = first_named_child(cib, XML_CIB_TAG_CONFIGURATION); cib 581 daemons/fenced/pacemaker-fenced.c watchdog_device_update(xmlNode *cib) cib 588 daemons/fenced/pacemaker-fenced.c cib, LOG_NEVER); cib 598 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 96 include/crm/cib/cib_types.h int (*is_master) (cib_t *cib); cib 97 include/crm/cib/cib_types.h int (*set_master) (cib_t *cib, int call_options); cib 98 include/crm/cib/cib_types.h int (*set_slave) (cib_t *cib, int call_options); cib 99 include/crm/cib/cib_types.h int (*set_slave_all) (cib_t *cib, int call_options); cib 100 include/crm/cib/cib_types.h int (*sync) (cib_t *cib, const char *section, int call_options); cib 101 include/crm/cib/cib_types.h int (*sync_from) (cib_t *cib, const char *host, const char *section, cib 103 include/crm/cib/cib_types.h int (*upgrade) (cib_t *cib, int call_options); cib 104 include/crm/cib/cib_types.h int (*bump_epoch) (cib_t *cib, int call_options); cib 105 include/crm/cib/cib_types.h int (*create) (cib_t *cib, const char *section, xmlNode *data, cib 107 include/crm/cib/cib_types.h int (*modify) (cib_t *cib, const char *section, xmlNode *data, cib 109 include/crm/cib/cib_types.h int (*update) (cib_t *cib, const char *section, xmlNode *data, cib 111 include/crm/cib/cib_types.h int (*replace) (cib_t *cib, const char *section, xmlNode *data, cib 113 include/crm/cib/cib_types.h int (*remove) (cib_t *cib, const char *section, xmlNode *data, cib 115 include/crm/cib/cib_types.h int (*erase) (cib_t *cib, xmlNode **output_data, int call_options); cib 116 include/crm/cib/cib_types.h int (*delete_absolute) (cib_t *cib, const char *section, xmlNode *data, cib 118 include/crm/cib/cib_types.h int (*quit) (cib_t *cib, int call_options); cib 119 include/crm/cib/cib_types.h int (*register_notification) (cib_t *cib, const char *callback, cib 121 include/crm/cib/cib_types.h gboolean (*register_callback) (cib_t *cib, int call_id, int timeout, cib 126 include/crm/cib/cib_types.h gboolean (*register_callback_full)(cib_t *cib, int call_id, int timeout, cib 99 include/crm/cib/internal.h cib_t *cib; cib 129 include/crm/cib/internal.h void cib_native_callback(cib_t * cib, xmlNode * msg, int call_id, int rc); cib 131 include/crm/cib/internal.h int cib_native_register_notification(cib_t * cib, const char *callback, int enabled); cib 132 include/crm/cib/internal.h gboolean cib_client_register_callback(cib_t * cib, int call_id, int timeout, gboolean only_success, cib 135 include/crm/cib/internal.h gboolean cib_client_register_callback_full(cib_t *cib, int call_id, cib 206 include/crm/cib/internal.h int cib_internal_op(cib_t * cib, const char *op, const char *host, cib 216 include/crm/cib/internal.h void cib__set_output(cib_t *cib, pcmk__output_t *out); cib 28 include/crm/cib/util.h gboolean verifyCibXml(xmlNode * cib); cib 30 include/crm/cib/util.h gboolean cib_version_details(xmlNode * cib, int *admin_epoch, int *epoch, int *updates); cib 63 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 150 include/crm/common/xml.h xmlNode *find_xml_node(xmlNode * cib, const char *node_path, gboolean must_find); 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 94 include/pcmki/pcmki_sched_utils.h pe_working_set_t * data_set, cib_t *cib, cib 99 include/pcmki/pcmki_sched_utils.h int run_simulation(pe_working_set_t * data_set, cib_t *cib, GList *op_fail_list); 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, CRM_OP_NOOP, NULL, NULL, NULL, NULL, call_options, NULL); cib 57 lib/cib/cib_client.c cib_client_ping(cib_t * cib, xmlNode ** output_data, int call_options) cib 59 lib/cib/cib_client.c op_common(cib); cib 60 lib/cib/cib_client.c return cib_internal_op(cib, CRM_OP_PING, NULL, NULL, NULL, output_data, call_options, NULL); cib 64 lib/cib/cib_client.c cib_client_query(cib_t * cib, const char *section, xmlNode ** output_data, int call_options) cib 66 lib/cib/cib_client.c return cib->cmds->query_from(cib, NULL, section, output_data, call_options); cib 70 lib/cib/cib_client.c cib_client_query_from(cib_t * cib, const char *host, const char *section, cib 73 lib/cib/cib_client.c op_common(cib); cib 74 lib/cib/cib_client.c return cib_internal_op(cib, CIB_OP_QUERY, host, section, NULL, output_data, call_options, NULL); cib 78 lib/cib/cib_client.c cib_client_is_master(cib_t * cib) cib 80 lib/cib/cib_client.c op_common(cib); cib 81 lib/cib/cib_client.c return cib_internal_op(cib, CIB_OP_ISMASTER, NULL, NULL, NULL, NULL, cib 86 lib/cib/cib_client.c cib_client_set_slave(cib_t * cib, int call_options) cib 88 lib/cib/cib_client.c op_common(cib); cib 89 lib/cib/cib_client.c return cib_internal_op(cib, CIB_OP_SLAVE, NULL, NULL, NULL, NULL, call_options, NULL); cib 93 lib/cib/cib_client.c cib_client_set_slave_all(cib_t * cib, int call_options) cib 99 lib/cib/cib_client.c cib_client_set_master(cib_t * cib, int call_options) cib 101 lib/cib/cib_client.c op_common(cib); cib 103 lib/cib/cib_client.c return cib_internal_op(cib, CIB_OP_MASTER, NULL, NULL, NULL, NULL, cib 108 lib/cib/cib_client.c cib_client_bump_epoch(cib_t * cib, int call_options) cib 110 lib/cib/cib_client.c op_common(cib); cib 111 lib/cib/cib_client.c return cib_internal_op(cib, CIB_OP_BUMP, NULL, NULL, NULL, NULL, call_options, NULL); cib 115 lib/cib/cib_client.c cib_client_upgrade(cib_t * cib, int call_options) cib 117 lib/cib/cib_client.c op_common(cib); cib 118 lib/cib/cib_client.c return cib_internal_op(cib, CIB_OP_UPGRADE, NULL, NULL, NULL, NULL, call_options, NULL); cib 122 lib/cib/cib_client.c cib_client_sync(cib_t * cib, const char *section, int call_options) cib 124 lib/cib/cib_client.c return cib->cmds->sync_from(cib, NULL, section, call_options); cib 128 lib/cib/cib_client.c cib_client_sync_from(cib_t * cib, const char *host, const char *section, int call_options) cib 130 lib/cib/cib_client.c op_common(cib); cib 131 lib/cib/cib_client.c return cib_internal_op(cib, CIB_OP_SYNC, host, section, NULL, NULL, call_options, NULL); cib 135 lib/cib/cib_client.c cib_client_create(cib_t * cib, const char *section, xmlNode * data, int call_options) cib 137 lib/cib/cib_client.c op_common(cib); cib 138 lib/cib/cib_client.c return cib_internal_op(cib, CIB_OP_CREATE, NULL, section, data, NULL, call_options, NULL); cib 142 lib/cib/cib_client.c cib_client_modify(cib_t * cib, const char *section, xmlNode * data, int call_options) cib 144 lib/cib/cib_client.c op_common(cib); cib 145 lib/cib/cib_client.c return cib_internal_op(cib, CIB_OP_MODIFY, NULL, section, data, NULL, call_options, NULL); cib 149 lib/cib/cib_client.c cib_client_update(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, CIB_OP_MODIFY, NULL, section, data, NULL, call_options, NULL); cib 156 lib/cib/cib_client.c cib_client_replace(cib_t * cib, const char *section, xmlNode * data, int call_options) cib 158 lib/cib/cib_client.c op_common(cib); cib 159 lib/cib/cib_client.c return cib_internal_op(cib, CIB_OP_REPLACE, NULL, section, data, NULL, call_options, NULL); cib 163 lib/cib/cib_client.c cib_client_delete(cib_t * cib, const char *section, xmlNode * data, int call_options) cib 165 lib/cib/cib_client.c op_common(cib); cib 166 lib/cib/cib_client.c return cib_internal_op(cib, CIB_OP_DELETE, NULL, section, data, NULL, call_options, NULL); cib 170 lib/cib/cib_client.c cib_client_delete_absolute(cib_t * cib, const char *section, xmlNode * data, int call_options) cib 172 lib/cib/cib_client.c op_common(cib); cib 173 lib/cib/cib_client.c return cib_internal_op(cib, CIB_OP_DELETE_ALT, NULL, section, data, NULL, call_options, NULL); cib 177 lib/cib/cib_client.c cib_client_erase(cib_t * cib, xmlNode ** output_data, int call_options) cib 179 lib/cib/cib_client.c op_common(cib); cib 180 lib/cib/cib_client.c return cib_internal_op(cib, CIB_OP_ERASE, NULL, NULL, NULL, output_data, call_options, NULL); cib 408 lib/cib/cib_client.c cib_free_notify(cib_t *cib) cib 411 lib/cib/cib_client.c if (cib) { cib 412 lib/cib/cib_client.c GList *list = cib->notify_list; cib 420 lib/cib/cib_client.c cib->notify_list = NULL; cib 429 lib/cib/cib_client.c cib_free_callbacks(cib_t *cib) cib 431 lib/cib/cib_client.c cib_free_notify(cib); cib 442 lib/cib/cib_client.c cib_delete(cib_t *cib) cib 444 lib/cib/cib_client.c cib_free_callbacks(cib); cib 445 lib/cib/cib_client.c if (cib) { cib 446 lib/cib/cib_client.c cib->cmds->free(cib); cib 451 lib/cib/cib_client.c cib_client_set_op_callback(cib_t * cib, void (*callback) (const xmlNode * msg, int call_id, cib 460 lib/cib/cib_client.c cib->op_callback = callback; cib 465 lib/cib/cib_client.c cib_client_add_notify_callback(cib_t * cib, const char *event, cib 471 lib/cib/cib_client.c if (cib->variant != cib_native && cib->variant != cib_remote) { cib 475 lib/cib/cib_client.c crm_trace("Adding callback for %s events (%d)", event, g_list_length(cib->notify_list)); cib 481 lib/cib/cib_client.c list_item = g_list_find_custom(cib->notify_list, new_client, ciblib_GCompareFunc); cib 489 lib/cib/cib_client.c cib->notify_list = g_list_append(cib->notify_list, new_client); cib 491 lib/cib/cib_client.c cib->cmds->register_notification(cib, event, 1); cib 493 lib/cib/cib_client.c crm_trace("Callback added (%d)", g_list_length(cib->notify_list)); cib 499 lib/cib/cib_client.c get_notify_list_event_count(cib_t * cib, const char *event) cib 504 lib/cib/cib_client.c for (l = g_list_first(cib->notify_list); l; l = g_list_next(l)) { cib 516 lib/cib/cib_client.c cib_client_del_notify_callback(cib_t * cib, const char *event, cib 522 lib/cib/cib_client.c if (cib->variant != cib_native && cib->variant != cib_remote) { cib 526 lib/cib/cib_client.c if (get_notify_list_event_count(cib, event) == 0) { cib 537 lib/cib/cib_client.c list_item = g_list_find_custom(cib->notify_list, new_client, ciblib_GCompareFunc); cib 542 lib/cib/cib_client.c cib->notify_list = g_list_remove(cib->notify_list, list_client); cib 551 lib/cib/cib_client.c if (get_notify_list_event_count(cib, event) == 0) { cib 553 lib/cib/cib_client.c cib->cmds->register_notification(cib, event, 0); cib 590 lib/cib/cib_client.c cib_native_callback(timer->cib, NULL, timer->call_id, -ETIME); cib 599 lib/cib/cib_client.c cib_client_register_callback(cib_t * cib, int call_id, int timeout, gboolean only_success, cib 603 lib/cib/cib_client.c return cib_client_register_callback_full(cib, call_id, timeout, cib 609 lib/cib/cib_client.c cib_client_register_callback_full(cib_t *cib, int call_id, int timeout, cib 643 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 501 lib/cib/cib_file.c CRM_ASSERT((cib != NULL) && (private != NULL)); cib 503 lib/cib/cib_file.c cib->variant = cib_file; cib 504 lib/cib/cib_file.c cib->variant_opaque = private; cib 517 lib/cib/cib_file.c cib->delegate_fn = cib_file_perform_op_delegate; cib 518 lib/cib/cib_file.c cib->cmds->signon = cib_file_signon; cib 519 lib/cib/cib_file.c cib->cmds->signoff = cib_file_signoff; cib 520 lib/cib/cib_file.c cib->cmds->free = cib_file_free; cib 521 lib/cib/cib_file.c cib->cmds->inputfd = cib_file_inputfd; cib 523 lib/cib/cib_file.c cib->cmds->register_notification = cib_file_register_notification; cib 524 lib/cib/cib_file.c cib->cmds->set_connection_dnotify = cib_file_set_connection_dnotify; cib 526 lib/cib/cib_file.c return cib; cib 582 lib/cib/cib_file.c cib_file_signon(cib_t * cib, const char *name, enum cib_conn_type type) cib 585 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; cib 596 lib/cib/cib_file.c cib->state = cib_connected_command; cib 597 lib/cib/cib_file.c cib->type = cib_command; cib 697 lib/cib/cib_file.c cib_file_signoff(cib_t * cib) cib 700 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; cib 703 lib/cib/cib_file.c cib->state = cib_disconnected; cib 704 lib/cib/cib_file.c cib->type = cib_no_connection; cib 739 lib/cib/cib_file.c cib_file_free(cib_t * cib) cib 743 lib/cib/cib_file.c if (cib->state != cib_disconnected) { cib 744 lib/cib/cib_file.c rc = cib_file_signoff(cib); cib 748 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; cib 751 lib/cib/cib_file.c free(cib->cmds); cib 753 lib/cib/cib_file.c free(cib); cib 783 lib/cib/cib_file.c cib_file_perform_op(cib_t * cib, const char *op, const char *host, const char *section, cib 786 lib/cib/cib_file.c return cib_file_perform_op_delegate(cib, op, host, section, data, output_data, call_options, cib 791 lib/cib/cib_file.c cib_file_perform_op_delegate(cib_t * cib, const char *op, const char *host, const char *section, cib 806 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; cib 815 lib/cib/cib_file.c if (cib->state == cib_disconnected) { cib 839 lib/cib/cib_file.c cib->call_id++; cib 840 lib/cib/cib_file.c request = cib_create_op(cib->call_id, "dummy-token", op, host, section, data, call_options, user_name); cib 871 lib/cib/cib_file.c if (cib->op_callback != NULL) { cib 872 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 63 lib/cib/cib_native.c cib->variant = cib_native; cib 64 lib/cib/cib_native.c cib->variant_opaque = native; cib 71 lib/cib/cib_native.c cib->delegate_fn = cib_native_perform_op_delegate; cib 72 lib/cib/cib_native.c cib->cmds->signon = cib_native_signon; cib 73 lib/cib/cib_native.c cib->cmds->signon_raw = cib_native_signon_raw; cib 74 lib/cib/cib_native.c cib->cmds->signoff = cib_native_signoff; cib 75 lib/cib/cib_native.c cib->cmds->free = cib_native_free; cib 77 lib/cib/cib_native.c cib->cmds->register_notification = cib_native_register_notification; cib 78 lib/cib/cib_native.c cib->cmds->set_connection_dnotify = cib_native_set_connection_dnotify; cib 80 lib/cib/cib_native.c return cib; cib 84 lib/cib/cib_native.c cib_native_signon(cib_t * cib, const char *name, enum cib_conn_type type) cib 86 lib/cib/cib_native.c return cib_native_signon_raw(cib, name, type, NULL); cib 95 lib/cib/cib_native.c cib_t *cib = userdata; cib 99 lib/cib/cib_native.c if (cib == NULL) { cib 117 lib/cib/cib_native.c cib_native_callback(cib, msg, 0, 0); cib 120 lib/cib/cib_native.c g_list_foreach(cib->notify_list, cib_native_notify, msg); cib 133 lib/cib/cib_native.c cib_t *cib = userdata; cib 134 lib/cib/cib_native.c cib_native_opaque_t *native = cib->variant_opaque; cib 137 lib/cib/cib_native.c cib->state = cib_disconnected; cib 147 lib/cib/cib_native.c cib_native_signon_raw(cib_t * cib, const char *name, enum cib_conn_type type, int *async_fd) cib 151 lib/cib/cib_native.c cib_native_opaque_t *native = cib->variant_opaque; cib 158 lib/cib/cib_native.c cib->call_timeout = PCMK__IPC_TIMEOUT; cib 161 lib/cib/cib_native.c cib->state = cib_connected_command; cib 165 lib/cib/cib_native.c cib->state = cib_connected_command; cib 169 lib/cib/cib_native.c cib->state = cib_connected_query; cib 190 lib/cib/cib_native.c mainloop_add_ipc_client(channel, G_PRIORITY_HIGH, 512 * 1024 /* 512k */ , cib, cib 242 lib/cib/cib_native.c cib_native_signoff(cib); cib 247 lib/cib/cib_native.c cib_native_signoff(cib_t * cib) cib 249 lib/cib/cib_native.c cib_native_opaque_t *native = cib->variant_opaque; cib 253 lib/cib/cib_native.c cib_free_notify(cib); cib 271 lib/cib/cib_native.c cib->state = cib_disconnected; cib 272 lib/cib/cib_native.c cib->type = cib_no_connection; cib 278 lib/cib/cib_native.c cib_native_free(cib_t * cib) cib 282 lib/cib/cib_native.c if (cib->state != cib_disconnected) { cib 283 lib/cib/cib_native.c rc = cib_native_signoff(cib); cib 286 lib/cib/cib_native.c if (cib->state == cib_disconnected) { cib 287 lib/cib/cib_native.c cib_native_opaque_t *native = cib->variant_opaque; cib 290 lib/cib/cib_native.c free(cib->variant_opaque); cib 291 lib/cib/cib_native.c free(cib->cmds); cib 292 lib/cib/cib_native.c free(cib); cib 299 lib/cib/cib_native.c cib_native_perform_op(cib_t * cib, const char *op, const char *host, const char *section, cib 302 lib/cib/cib_native.c return cib_native_perform_op_delegate(cib, op, host, section, cib 307 lib/cib/cib_native.c cib_native_perform_op_delegate(cib_t * cib, const char *op, const char *host, const char *section, cib 318 lib/cib/cib_native.c cib_native_opaque_t *native = cib->variant_opaque; cib 320 lib/cib/cib_native.c if (cib->state == cib_disconnected) { cib 337 lib/cib/cib_native.c cib->call_id++; cib 338 lib/cib/cib_native.c if (cib->call_id < 1) { cib 339 lib/cib/cib_native.c cib->call_id = 1; cib 345 lib/cib/cib_native.c cib_create_op(cib->call_id, native->token, op, host, section, data, call_options, cib 351 lib/cib/cib_native.c crm_trace("Sending %s message to the CIB manager (timeout=%ds)", op, cib->call_timeout); cib 352 lib/cib/cib_native.c rc = crm_ipc_send(native->ipc, op_msg, ipc_flags, cib->call_timeout * 1000, &op_reply); cib 357 lib/cib/cib_native.c cib->call_timeout, pcmk_strerror(rc), rc); cib 365 lib/cib/cib_native.c crm_trace("Async call, returning %d", cib->call_id); cib 366 lib/cib/cib_native.c CRM_CHECK(cib->call_id != 0, return -ENOMSG); cib 368 lib/cib/cib_native.c return cib->call_id; cib 373 lib/cib/cib_native.c if (reply_id == cib->call_id) { cib 395 lib/cib/cib_native.c crm_err("Received bad reply: %d (wanted %d)", reply_id, cib->call_id); cib 401 lib/cib/cib_native.c if (op_reply == NULL && cib->state == cib_disconnected) { cib 436 lib/cib/cib_native.c cib->state = cib_disconnected; cib 444 lib/cib/cib_native.c cib_native_set_connection_dnotify(cib_t * cib, void (*dnotify) (gpointer user_data)) cib 448 lib/cib/cib_native.c if (cib == NULL) { cib 453 lib/cib/cib_native.c native = cib->variant_opaque; cib 460 lib/cib/cib_native.c cib_native_register_notification(cib_t * cib, const char *callback, int enabled) cib 464 lib/cib/cib_native.c cib_native_opaque_t *native = cib->variant_opaque; cib 466 lib/cib/cib_native.c if (cib->state != cib_disconnected) { cib 471 lib/cib/cib_native.c 1000 * cib->call_timeout, NULL); cib 69 lib/cib/cib_remote.c int cib_remote_signon(cib_t * cib, const char *name, enum cib_conn_type type); cib 70 lib/cib/cib_remote.c int cib_remote_signoff(cib_t * cib); cib 71 lib/cib/cib_remote.c int cib_remote_free(cib_t * cib); cib 73 lib/cib/cib_remote.c int cib_remote_perform_op(cib_t * cib, const char *op, const char *host, const char *section, cib 78 lib/cib/cib_remote.c cib_remote_inputfd(cib_t * cib) cib 80 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; cib 86 lib/cib/cib_remote.c cib_remote_set_connection_dnotify(cib_t * cib, void (*dnotify) (gpointer user_data)) cib 92 lib/cib/cib_remote.c cib_remote_register_notification(cib_t * cib, const char *callback, int enabled) cib 95 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; cib 110 lib/cib/cib_remote.c cib_t *cib = cib_new_variant(); cib 114 lib/cib/cib_remote.c cib->variant = cib_remote; cib 115 lib/cib/cib_remote.c cib->variant_opaque = private; cib 133 lib/cib/cib_remote.c cib->delegate_fn = cib_remote_perform_op; cib 134 lib/cib/cib_remote.c cib->cmds->signon = cib_remote_signon; cib 135 lib/cib/cib_remote.c cib->cmds->signoff = cib_remote_signoff; cib 136 lib/cib/cib_remote.c cib->cmds->free = cib_remote_free; cib 137 lib/cib/cib_remote.c cib->cmds->inputfd = cib_remote_inputfd; cib 139 lib/cib/cib_remote.c cib->cmds->register_notification = cib_remote_register_notification; cib 140 lib/cib/cib_remote.c cib->cmds->set_connection_dnotify = cib_remote_set_connection_dnotify; cib 142 lib/cib/cib_remote.c return cib; cib 146 lib/cib/cib_remote.c cib_tls_close(cib_t * cib) cib 148 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; cib 193 lib/cib/cib_remote.c cib_tls_signon(cib_t *cib, pcmk__remote_t *connection, gboolean event_channel) cib 195 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; cib 234 lib/cib/cib_remote.c cib_tls_close(cib); cib 245 lib/cib/cib_remote.c cib_tls_close(cib); cib 294 lib/cib/cib_remote.c cib_tls_close(cib); cib 300 lib/cib/cib_remote.c connection->tcp_socket, cib, cib 319 lib/cib/cib_remote.c cib_t *cib = user_data; cib 320 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; cib 338 lib/cib/cib_remote.c cib_t *cib = user_data; cib 339 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; cib 354 lib/cib/cib_remote.c cib_native_callback(cib, msg, 0, 0); cib 357 lib/cib/cib_remote.c g_list_foreach(cib->notify_list, cib_native_notify, msg); cib 375 lib/cib/cib_remote.c cib_remote_signon(cib_t * cib, const char *name, enum cib_conn_type type) cib 378 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; cib 396 lib/cib/cib_remote.c rc = cib_tls_signon(cib, &(private->command), FALSE); cib 400 lib/cib/cib_remote.c rc = cib_tls_signon(cib, &(private->callback), TRUE); cib 414 lib/cib/cib_remote.c cib->state = cib_connected_command; cib 415 lib/cib/cib_remote.c cib->type = cib_command; cib 426 lib/cib/cib_remote.c cib_remote_signoff(cib_t * cib) cib 434 lib/cib/cib_remote.c cib_tls_close(cib); cib 437 lib/cib/cib_remote.c cib->state = cib_disconnected; cib 438 lib/cib/cib_remote.c cib->type = cib_no_connection; cib 444 lib/cib/cib_remote.c cib_remote_free(cib_t * cib) cib 449 lib/cib/cib_remote.c if (cib->state != cib_disconnected) { cib 450 lib/cib/cib_remote.c rc = cib_remote_signoff(cib); cib 452 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; cib 457 lib/cib/cib_remote.c free(cib->cmds); cib 459 lib/cib/cib_remote.c free(cib); cib 467 lib/cib/cib_remote.c cib_remote_perform_op(cib_t * cib, const char *op, const char *host, const char *section, cib 477 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; cib 479 lib/cib/cib_remote.c if (cib->state == cib_disconnected) { cib 492 lib/cib/cib_remote.c cib->call_id++; cib 493 lib/cib/cib_remote.c if (cib->call_id < 1) { cib 494 lib/cib/cib_remote.c cib->call_id = 1; cib 498 lib/cib/cib_remote.c cib_create_op(cib->call_id, private->callback.token, op, host, section, data, call_options, cib 517 lib/cib/cib_remote.c return cib->call_id; cib 523 lib/cib/cib_remote.c remaining_time = cib->call_timeout ? cib->call_timeout : 60; cib 528 lib/cib/cib_remote.c int msg_id = cib->call_id; cib 604 lib/cib/cib_remote.c crm_trace("No output in reply to \"%s\" command %d", op, cib->call_id - 1); cib 616 lib/cib/cib_remote.c cib__set_output(cib_t *cib, pcmk__output_t *out) cib 620 lib/cib/cib_remote.c if (cib->variant != cib_remote) { cib 624 lib/cib/cib_remote.c private = cib->variant_opaque; cib 60 lib/cib/cib_utils.c cib_get_generation(cib_t * cib) cib 65 lib/cib/cib_utils.c cib->cmds->query(cib, NULL, &the_cib, cib_scope_local | cib_sync_call); cib 75 lib/cib/cib_utils.c cib_version_details(xmlNode * cib, int *admin_epoch, int *epoch, int *updates) cib 81 lib/cib/cib_utils.c if (cib == NULL) { cib 85 lib/cib/cib_utils.c crm_element_value_int(cib, XML_ATTR_GENERATION, epoch); cib 86 lib/cib/cib_utils.c crm_element_value_int(cib, XML_ATTR_NUMUPDATES, updates); cib 87 lib/cib/cib_utils.c crm_element_value_int(cib, XML_ATTR_GENERATION_ADMIN, admin_epoch); cib 547 lib/cib/cib_utils.c cib_native_callback(cib_t * cib, xmlNode * msg, int call_id, int rc) cib 563 lib/cib/cib_utils.c if (cib == NULL) { cib 576 lib/cib/cib_utils.c } else if (cib && cib->op_callback == NULL && rc != pcmk_ok) { cib 586 lib/cib/cib_utils.c if (cib && cib->op_callback != NULL) { cib 588 lib/cib/cib_utils.c cib->op_callback(msg, call_id, rc, output); cib 719 lib/cib/cib_utils.c cib_internal_op(cib_t * cib, const char *op, const char *host, cib 723 lib/cib/cib_utils.c int (*delegate) (cib_t * cib, const char *op, const char *host, cib 726 lib/cib/cib_utils.c cib->delegate_fn; cib 732 lib/cib/cib_utils.c return delegate(cib, op, host, section, data, output_data, call_options, user_name); cib 245 lib/cluster/membership.c crm_remote_peer_cache_refresh(xmlNode *cib) cib 260 lib/cluster/membership.c crm_foreach_xpath_result(cib, PCMK__XP_REMOTE_NODE_STATUS, cib 271 lib/cluster/membership.c crm_foreach_xpath_result(cib, PCMK__XP_GUEST_NODE_CONFIG, cib 275 lib/cluster/membership.c crm_foreach_xpath_result(cib, PCMK__XP_REMOTE_NODE_CONFIG, cib 1234 lib/cluster/membership.c refresh_known_node_cache(xmlNode *cib) cib 1240 lib/cluster/membership.c crm_foreach_xpath_result(cib, PCMK__XP_MEMBER_NODE_CONFIG, cib 1248 lib/cluster/membership.c pcmk__refresh_node_caches_from_cib(xmlNode *cib) cib 1250 lib/cluster/membership.c crm_remote_peer_cache_refresh(cib); cib 1251 lib/cluster/membership.c refresh_known_node_cache(cib); cib 227 lib/common/patchset.c xmlNode *cib = NULL; cib 250 lib/common/patchset.c cib = find_xml_node(diff_child, tag, FALSE); cib 251 lib/common/patchset.c if (cib == NULL) { cib 252 lib/common/patchset.c cib = create_xml_node(diff_child, tag); cib 260 lib/common/patchset.c crm_xml_add(cib, vfields[lpc], value); cib 271 lib/common/patchset.c cib = find_xml_node(diff_child, tag, FALSE); cib 272 lib/common/patchset.c if (cib == NULL) { cib 273 lib/common/patchset.c cib = create_xml_node(diff_child, tag); cib 285 lib/common/patchset.c xmlSetProp(cib, a->name, (pcmkXmlStr) p_value); cib 357 lib/pacemaker/pcmk_sched_transition.c const char *attr_value, cib_t * cib, int cib_options) cib 363 lib/pacemaker/pcmk_sched_transition.c rc = find_ticket_state(cib, ticket_id, &ticket_state_xml); cib 384 lib/pacemaker/pcmk_sched_transition.c rc = cib->cmds->modify(cib, XML_CIB_TAG_STATUS, xml_top, cib_options); cib 392 lib/pacemaker/pcmk_sched_transition.c modify_configuration(pe_working_set_t * data_set, cib_t *cib, cib 416 lib/pacemaker/pcmk_sched_transition.c rc = cib->cmds->modify(cib, NULL, top, cib_sync_call | cib_scope_local); cib 421 lib/pacemaker/pcmk_sched_transition.c rc = update_attr_delegate(cib, cib_sync_call | cib_scope_local, cib 433 lib/pacemaker/pcmk_sched_transition.c cib_node = modify_node(cib, node, TRUE); cib 436 lib/pacemaker/pcmk_sched_transition.c rc = cib->cmds->modify(cib, XML_CIB_TAG_STATUS, cib_node, cib 448 lib/pacemaker/pcmk_sched_transition.c cib_node = modify_node(cib, node, FALSE); cib 451 lib/pacemaker/pcmk_sched_transition.c rc = cib->cmds->modify(cib, XML_CIB_TAG_STATUS, cib_node, cib 457 lib/pacemaker/pcmk_sched_transition.c cib->cmds->remove(cib, xpath, NULL, cib 462 lib/pacemaker/pcmk_sched_transition.c cib->cmds->remove(cib, xpath, NULL, cib 472 lib/pacemaker/pcmk_sched_transition.c cib_node = modify_node(cib, node, TRUE); cib 476 lib/pacemaker/pcmk_sched_transition.c rc = cib->cmds->modify(cib, XML_CIB_TAG_STATUS, cib_node, cib 488 lib/pacemaker/pcmk_sched_transition.c cib, cib_sync_call | cib_scope_local); cib 499 lib/pacemaker/pcmk_sched_transition.c cib, cib_sync_call | cib_scope_local); cib 510 lib/pacemaker/pcmk_sched_transition.c cib, cib_sync_call | cib_scope_local); cib 521 lib/pacemaker/pcmk_sched_transition.c cib, cib_sync_call | cib_scope_local); cib 566 lib/pacemaker/pcmk_sched_transition.c cib_node = inject_node_state(cib, node, NULL); cib 582 lib/pacemaker/pcmk_sched_transition.c rc = cib->cmds->modify(cib, XML_CIB_TAG_STATUS, cib_node, cib 798 lib/pacemaker/pcmk_sched_transition.c run_simulation(pe_working_set_t * data_set, cib_t *cib, GList *op_fail_list) cib 812 lib/pacemaker/pcmk_sched_transition.c fake_cib = cib; cib 87 maint/mocked/based.c xmlNode *reply, *cib; cib 102 maint/mocked/based.c cib = xmlReadMemory(cib_str, sizeof(cib_str), "file:///tmp/foo", NULL, 0)->children; cib 115 maint/mocked/based.c if (cib != NULL) { cib 117 maint/mocked/based.c add_message_xml(reply, F_CIB_CALLDATA, cib); cib 125 maint/mocked/based.c free_xml(cib); cib 75 tools/crm_mon.c static cib_t *cib = NULL; cib 726 tools/crm_mon.c if (cib) { cib 727 tools/crm_mon.c cib->cmds->signoff(cib); cib 808 tools/crm_mon.c CRM_CHECK(cib != NULL, return EINVAL); cib 810 tools/crm_mon.c if (cib->state == cib_connected_query || cib 811 tools/crm_mon.c cib->state == cib_connected_command) { cib 817 tools/crm_mon.c rc = pcmk_legacy2rc(cib->cmds->signon(cib, crm_system_name, cib_query)); cib 831 tools/crm_mon.c rc = pcmk_legacy2rc(cib->cmds->query(cib, NULL, ¤t_cib, cib 835 tools/crm_mon.c rc = pcmk_legacy2rc(cib->cmds->set_connection_dnotify(cib, cib 848 tools/crm_mon.c cib->cmds->del_notify_callback(cib, T_CIB_DIFF_NOTIFY, cib 850 tools/crm_mon.c rc = pcmk_legacy2rc(cib->cmds->add_notify_callback(cib, cib 954 tools/crm_mon.c if (cib != NULL && cib 955 tools/crm_mon.c (cib->state == cib_connected_query || cib 956 tools/crm_mon.c cib->state == cib_connected_command)) { cib 1445 tools/crm_mon.c cib = cib_new(); cib 1447 tools/crm_mon.c if (cib == NULL) { cib 1450 tools/crm_mon.c switch (cib->variant) { cib 1498 tools/crm_mon.c if (cib) { cib 1502 tools/crm_mon.c cib_delete(cib); cib 1503 tools/crm_mon.c cib = NULL; cib 1505 tools/crm_mon.c cib = cib_new(); cib 1506 tools/crm_mon.c if (cib == NULL) { cib 1592 tools/crm_mon.c if (cib->variant == cib_file) { cib 1620 tools/crm_mon.c cib__set_output(cib, out); cib 2072 tools/crm_mon.c cib->cmds->query(cib, NULL, ¤t_cib, cib_scope_local | cib_sync_call); cib 2304 tools/crm_mon.c if (cib == NULL) { cib 2308 tools/crm_mon.c cib->cmds->signoff(cib); cib 2309 tools/crm_mon.c cib_delete(cib); cib 2310 tools/crm_mon.c cib = NULL; cib 332 tools/crm_node.c cib_t *cib = NULL; cib 352 tools/crm_node.c cib = cib_new(); cib 353 tools/crm_node.c cib->cmds->signon(cib, crm_system_name, cib_command); cib 355 tools/crm_node.c rc = cib->cmds->remove(cib, XML_CIB_TAG_NODES, node, cib_sync_call); cib 360 tools/crm_node.c rc = cib->cmds->remove(cib, XML_CIB_TAG_STATUS, node_state, cib_sync_call); cib 366 tools/crm_node.c cib->cmds->signoff(cib); cib 367 tools/crm_node.c cib_delete(cib); cib 67 tools/crm_resource.h int cli_resource_check(pcmk__output_t *out, cib_t * cib, pe_resource_t *rsc); cib 80 tools/crm_resource.h const char *move_lifetime, int timeout_ms, cib_t *cib, cib 83 tools/crm_resource.h const char *move_lifetime, cib_t *cib, int cib_options, cib 94 tools/crm_resource.h int timeout_ms, cib_t *cib, pe_working_set_t *data_set, cib 101 tools/crm_resource.h cib_t *cib, int cib_options, cib 106 tools/crm_resource.h cib_t *cib, int cib_options, cib 110 tools/crm_resource.h int wait_till_stable(pcmk__output_t *out, int timeout_ms, cib_t * cib); cib 191 tools/crm_resource_runtime.c cib_t * cib, const char * cmd, int depth) cib 201 tools/crm_resource_runtime.c attr_id, attr_name, cib, cmd, depth+1); cib 208 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, XML_ATTR_ID, lookup_id, attr_set_type, cib 227 tools/crm_resource_runtime.c const char * attr_name, cib_t * cib, const char * cmd, cib 243 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, XML_ATTR_ID, rsc_id, attr_set_type, cib 258 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, XML_ATTR_ID, lookup_id, attr_set_type, cib 275 tools/crm_resource_runtime.c cib, cmd, 0); cib 285 tools/crm_resource_runtime.c cib_t *cib, int cib_options, cib 299 tools/crm_resource_runtime.c find_resource_attr (out, cib, XML_ATTR_ID, uber_parent(rsc)->id, NULL, cib 305 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, XML_ATTR_ID, uber_parent(rsc)->id, cib 323 tools/crm_resource_runtime.c attr_id, attr_name, cib, "update", force); cib 342 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, XML_ATTR_ID, lookup_id, attr_set_type, cib 382 tools/crm_resource_runtime.c rc = cib->cmds->modify(cib, XML_CIB_TAG_RESOURCES, xml_top, cib_options); cib 421 tools/crm_resource_runtime.c cib, cib_options, data_set, force); cib 435 tools/crm_resource_runtime.c cib_t *cib, int cib_options, cib 443 tools/crm_resource_runtime.c find_resource_attr(out, cib, XML_ATTR_ID, uber_parent(rsc)->id, NULL, cib 449 tools/crm_resource_runtime.c attr_id, attr_name, cib, "delete", force); cib 462 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, XML_ATTR_ID, lookup_id, attr_set_type, cib 483 tools/crm_resource_runtime.c CRM_ASSERT(cib); cib 484 tools/crm_resource_runtime.c rc = cib->cmds->remove(cib, XML_CIB_TAG_RESOURCES, xml_obj, cib_options); cib 1095 tools/crm_resource_runtime.c cib_t *cib) cib 1100 tools/crm_resource_runtime.c rc = cib->cmds->query(cib, NULL, &cib_xml_copy, cib_scope_local | cib_sync_call); cib 1119 tools/crm_resource_runtime.c update_dataset(cib_t *cib, pe_working_set_t * data_set, bool simulate) cib 1129 tools/crm_resource_runtime.c rc = update_working_set_from_cib(out, data_set, cib); cib 1267 tools/crm_resource_runtime.c const char *move_lifetime, int timeout_ms, cib_t *cib, cib 1330 tools/crm_resource_runtime.c rc = update_dataset(cib, data_set, FALSE); cib 1345 tools/crm_resource_runtime.c rc = cli_resource_ban(out, rsc_id, host, move_lifetime, NULL, cib, cib 1355 tools/crm_resource_runtime.c find_resource_attr(out, cib, XML_NVPAIR_ATTR_VALUE, lookup_id, NULL, NULL, cib 1360 tools/crm_resource_runtime.c RSC_STOPPED, FALSE, cib, cib_options, cib 1374 tools/crm_resource_runtime.c rc = update_dataset(cib, data_set, TRUE); cib 1401 tools/crm_resource_runtime.c rc = update_dataset(cib, data_set, FALSE); cib 1429 tools/crm_resource_runtime.c rc = cli_resource_clear(rsc_id, host, NULL, cib, cib_options, TRUE, force); cib 1434 tools/crm_resource_runtime.c orig_target_role, FALSE, cib, cib 1440 tools/crm_resource_runtime.c NULL, XML_RSC_ATTR_TARGET_ROLE, cib, cib 1473 tools/crm_resource_runtime.c rc = update_dataset(cib, data_set, FALSE); cib 1508 tools/crm_resource_runtime.c cli_resource_clear(rsc_id, host, NULL, cib, cib_options, TRUE, force); cib 1512 tools/crm_resource_runtime.c FALSE, cib, cib_options, data_set, force); cib 1516 tools/crm_resource_runtime.c XML_RSC_ATTR_TARGET_ROLE, cib, cib_options, cib 1613 tools/crm_resource_runtime.c wait_till_stable(pcmk__output_t *out, int timeout_ms, cib_t * cib) cib 1645 tools/crm_resource_runtime.c rc = update_working_set_from_cib(out, data_set, cib); cib 1825 tools/crm_resource_runtime.c int timeout_ms, cib_t * cib, pe_working_set_t *data_set, cib 1887 tools/crm_resource_runtime.c const char *move_lifetime, cib_t *cib, int cib_options, cib 1959 tools/crm_resource_runtime.c cli_resource_clear(rsc_id, NULL, data_set->nodes, cib, cib_options, FALSE, force); cib 1962 tools/crm_resource_runtime.c cli_resource_clear(rsc_id, dest->details->uname, data_set->nodes, cib, cib 1967 tools/crm_resource_runtime.c cib, cib_options, promoted_role_only); cib 1980 tools/crm_resource_runtime.c NULL, cib, cib_options, promoted_role_only); cib 371 tools/crm_ticket.c cib_t * cib, pe_working_set_t * data_set) cib 386 tools/crm_ticket.c rc = find_ticket_state(cib, ticket_id, &ticket_state_xml); cib 431 tools/crm_ticket.c rc = cib->cmds->replace(cib, XML_CIB_TAG_STATUS, ticket_state_xml, cib_options); cib 435 tools/crm_ticket.c rc = cib->cmds->modify(cib, XML_CIB_TAG_STATUS, xml_top, cib_options); cib 443 tools/crm_ticket.c delete_ticket_state(const char *ticket_id, cib_t * cib) cib 449 tools/crm_ticket.c rc = find_ticket_state(cib, ticket_id, &ticket_state_xml); cib 460 tools/crm_ticket.c rc = cib->cmds->remove(cib, XML_CIB_TAG_STATUS, ticket_state_xml, cib_options);