cib 33 daemons/attrd/attrd_cib.c cib_t *cib = user_data; cib 35 daemons/attrd/attrd_cib.c cib->cmds->signoff(cib); cib 413 daemons/based/pacemaker-based.c xmlNode *cib = readCibXmlFile(cib_root, filename, !preserve_status); cib 415 daemons/based/pacemaker-based.c if (activateCibXml(cib, TRUE, "start") == 0) { cib 420 daemons/based/pacemaker-based.c cib_read_config(config_hash, cib); cib 422 daemons/based/pacemaker-based.c pcmk__scan_port(crm_element_value(cib, "remote-tls-port"), &port); cib 427 daemons/based/pacemaker-based.c pcmk__scan_port(crm_element_value(cib, "remote-clear-port"), &port); cib 373 daemons/controld/controld_cib.c cib_t *cib = controld_globals.cib_conn; cib 378 daemons/controld/controld_cib.c CRM_ASSERT((uname != NULL) && (cib != NULL)); cib 384 daemons/controld/controld_cib.c cib_rc = cib->cmds->remove(cib, xpath, NULL, options); cib 419 daemons/controld/controld_cib.c cib_t *cib = controld_globals.cib_conn; cib 424 daemons/controld/controld_cib.c if (cib == NULL) { cib 433 daemons/controld/controld_cib.c cib->cmds->set_user(cib, user_name); cib 434 daemons/controld/controld_cib.c rc = cib->cmds->remove(cib, xpath, NULL, call_options|cib_xpath); cib 435 daemons/controld/controld_cib.c cib->cmds->set_user(cib, NULL); cib 828 daemons/controld/controld_cib.c cib_t *cib = controld_globals.cib_conn; cib 833 daemons/controld/controld_cib.c if (cib != NULL) { cib 834 daemons/controld/controld_cib.c cib_rc = cib->cmds->modify(cib, section, data, options); cib 215 daemons/controld/controld_election.c xmlNode *cib = NULL; cib 229 daemons/controld/controld_election.c cib = create_xml_node(NULL, XML_TAG_CIB); cib 230 daemons/controld/controld_election.c crm_xml_add(cib, XML_ATTR_CRM_VERSION, CRM_FEATURE_SET); cib 231 daemons/controld/controld_election.c controld_update_cib(XML_TAG_CIB, cib, cib_none, feature_update_callback); cib 249 daemons/controld/controld_election.c free_xml(cib); cib 710 daemons/controld/controld_join_dc.c cib_t *cib = controld_globals.cib_conn; cib 759 daemons/controld/controld_join_dc.c rc = cib->cmds->init_transaction(cib); cib 770 daemons/controld/controld_join_dc.c rc = cib->cmds->remove(cib, xpath, NULL, cib 803 daemons/controld/controld_join_dc.c rc = cib->cmds->modify(cib, XML_CIB_TAG_STATUS, state, cib 811 daemons/controld/controld_join_dc.c rc = cib->cmds->end_transaction(cib, true, cib_scope_local); cib 385 daemons/controld/controld_te_callbacks.c process_cib_diff(xmlNode *cib, xmlNode *change, const char *op, cib 388 daemons/controld/controld_te_callbacks.c xmlNode *status = first_named_child(cib, XML_CIB_TAG_STATUS); cib 389 daemons/controld/controld_te_callbacks.c xmlNode *config = first_named_child(cib, XML_CIB_TAG_CONFIGURATION); cib 191 daemons/fenced/fenced_cib.c update_stonith_watchdog_timeout_ms(xmlNode *cib) cib 198 daemons/fenced/fenced_cib.c cib, LOG_NEVER); cib 209 daemons/fenced/fenced_scheduler.c fenced_scheduler_run(xmlNode *cib) cib 211 daemons/fenced/fenced_scheduler.c CRM_CHECK((cib != NULL) && (scheduler != NULL), return); cib 218 daemons/fenced/fenced_scheduler.c pcmk__schedule_actions(cib, pcmk_sched_location_only cib 299 daemons/fenced/pacemaker-fenced.h void fenced_scheduler_run(xmlNode *cib); 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 126 include/crm/cib/cib_types.h int (*signon) (cib_t *cib, const char *name, enum cib_conn_type type); cib 129 include/crm/cib/cib_types.h int (*signon_raw) (cib_t *cib, const char *name, enum cib_conn_type type, cib 132 include/crm/cib/cib_types.h int (*signoff) (cib_t *cib); cib 133 include/crm/cib/cib_types.h int (*free) (cib_t *cib); cib 136 include/crm/cib/cib_types.h int (*set_op_callback) (cib_t *cib, void (*callback) (const xmlNode *msg, cib 140 include/crm/cib/cib_types.h int (*add_notify_callback) (cib_t *cib, const char *event, cib 143 include/crm/cib/cib_types.h int (*del_notify_callback) (cib_t *cib, const char *event, cib 146 include/crm/cib/cib_types.h int (*set_connection_dnotify) (cib_t *cib, cib 150 include/crm/cib/cib_types.h int (*inputfd) (cib_t *cib); cib 153 include/crm/cib/cib_types.h int (*noop) (cib_t *cib, int call_options); cib 155 include/crm/cib/cib_types.h int (*ping) (cib_t *cib, xmlNode **output_data, int call_options); cib 156 include/crm/cib/cib_types.h int (*query) (cib_t *cib, const char *section, xmlNode **output_data, cib 158 include/crm/cib/cib_types.h int (*query_from) (cib_t *cib, const char *host, const char *section, cib 162 include/crm/cib/cib_types.h int (*is_master) (cib_t *cib); cib 165 include/crm/cib/cib_types.h int (*set_master) (cib_t *cib, int call_options); cib 168 include/crm/cib/cib_types.h int (*set_slave) (cib_t *cib, int call_options); cib 171 include/crm/cib/cib_types.h int (*set_slave_all) (cib_t *cib, int call_options); cib 173 include/crm/cib/cib_types.h int (*sync) (cib_t *cib, const char *section, int call_options); cib 174 include/crm/cib/cib_types.h int (*sync_from) (cib_t *cib, const char *host, const char *section, cib 176 include/crm/cib/cib_types.h int (*upgrade) (cib_t *cib, int call_options); cib 177 include/crm/cib/cib_types.h int (*bump_epoch) (cib_t *cib, int call_options); cib 178 include/crm/cib/cib_types.h int (*create) (cib_t *cib, const char *section, xmlNode *data, cib 180 include/crm/cib/cib_types.h int (*modify) (cib_t *cib, const char *section, xmlNode *data, cib 184 include/crm/cib/cib_types.h int (*update) (cib_t *cib, const char *section, xmlNode *data, cib 187 include/crm/cib/cib_types.h int (*replace) (cib_t *cib, const char *section, xmlNode *data, cib 189 include/crm/cib/cib_types.h int (*remove) (cib_t *cib, const char *section, xmlNode *data, cib 191 include/crm/cib/cib_types.h int (*erase) (cib_t *cib, xmlNode **output_data, int call_options); cib 194 include/crm/cib/cib_types.h int (*delete_absolute) (cib_t *cib, const char *section, xmlNode *data, cib 198 include/crm/cib/cib_types.h int (*quit) (cib_t *cib, int call_options); cib 200 include/crm/cib/cib_types.h int (*register_notification) (cib_t *cib, const char *callback, cib 202 include/crm/cib/cib_types.h gboolean (*register_callback) (cib_t *cib, int call_id, int timeout, cib 207 include/crm/cib/cib_types.h gboolean (*register_callback_full)(cib_t *cib, int call_id, int timeout, cib 222 include/crm/cib/cib_types.h int (*set_primary)(cib_t *cib, int call_options); cib 232 include/crm/cib/cib_types.h int (*set_secondary)(cib_t *cib, int call_options); cib 251 include/crm/cib/cib_types.h int (*client_id)(const cib_t *cib, const char **async_id, cib 288 include/crm/cib/cib_types.h int (*init_transaction)(cib_t *cib); cib 314 include/crm/cib/cib_types.h int (*end_transaction)(cib_t *cib, bool commit, int call_options); cib 326 include/crm/cib/cib_types.h void (*set_user)(cib_t *cib, const char *user); cib 150 include/crm/cib/internal.h cib_t *cib; cib 213 include/crm/cib/internal.h int cib__create_op(cib_t *cib, const char *op, const char *host, cib 218 include/crm/cib/internal.h int cib__extend_transaction(cib_t *cib, xmlNode *request); cib 220 include/crm/cib/internal.h void cib_native_callback(cib_t * cib, xmlNode * msg, int call_id, int rc); cib 289 include/crm/cib/internal.h int cib_internal_op(cib_t * cib, const char *op, const char *host, cib 299 include/crm/cib/internal.h void cib__set_output(cib_t *cib, pcmk__output_t *out); cib 324 include/crm/cib/internal.h int cib__signon_query(pcmk__output_t *out, cib_t **cib, xmlNode **cib_object); cib 326 include/crm/cib/internal.h int cib__clean_up_connection(cib_t **cib); cib 328 include/crm/cib/internal.h int cib__update_node_attr(pcmk__output_t *out, cib_t *cib, int call_options, cib 334 include/crm/cib/internal.h int cib__get_node_attrs(pcmk__output_t *out, cib_t *cib, const char *section, cib 339 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 145 include/crm/cluster.h void crm_remote_peer_cache_refresh(xmlNode *cib); cib 130 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 35 include/pcmki/pcmki_scheduler.h void pcmk__schedule_actions(xmlNode *cib, unsigned long long flags, cib 49 include/pcmki/pcmki_simulate.h cib_t *cib, cib 45 include/pcmki/pcmki_status.h cib_t *cib, xmlNode *current_cib, cib 53 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 172 lib/cib/cib_attrs.c cib__update_node_attr(pcmk__output_t *out, cib_t *cib, int call_options, const char *section, cib 186 lib/cib/cib_attrs.c CRM_CHECK((out != NULL) && (cib != NULL) && (section != NULL) cib 190 lib/cib/cib_attrs.c rc = find_attr(cib, section, node_uuid, set_type, set_name, attr_id, cib 322 lib/cib/cib_attrs.c rc = cib_internal_op(cib, PCMK__CIB_REQUEST_MODIFY, NULL, section, xml_top, cib 343 lib/cib/cib_attrs.c cib__get_node_attrs(pcmk__output_t *out, cib_t *cib, const char *section, cib 355 lib/cib/cib_attrs.c rc = find_attr(cib, section, node_uuid, set_type, set_name, attr_id, attr_name, cib 369 lib/cib/cib_attrs.c cib__delete_node_attr(pcmk__output_t *out, cib_t *cib, int options, const char *section, cib 383 lib/cib/cib_attrs.c rc = find_attr(cib, section, node_uuid, set_type, set_name, attr_id, cib 398 lib/cib/cib_attrs.c rc = cib_internal_op(cib, PCMK__CIB_REQUEST_DELETE, NULL, section, xml_obj, cib 416 lib/cib/cib_attrs.c find_nvpair_attr_delegate(cib_t *cib, const char *attr, const char *section, cib 430 lib/cib/cib_attrs.c rc = find_attr(cib, section, node_uuid, attr_set_type, set_name, attr_id, cib 448 lib/cib/cib_attrs.c update_attr_delegate(cib_t *cib, int call_options, const char *section, cib 461 lib/cib/cib_attrs.c rc = cib__update_node_attr(out, cib, call_options, section, node_uuid, set_type, cib 471 lib/cib/cib_attrs.c read_attr_delegate(cib_t *cib, const char *section, const char *node_uuid, cib 485 lib/cib/cib_attrs.c rc = cib__get_node_attrs(out, cib, section, node_uuid, set_type, set_name, cib 503 lib/cib/cib_attrs.c delete_attr_delegate(cib_t *cib, int options, const char *section, const char *node_uuid, cib 516 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 #define op_common(cib) do { \ cib 31 lib/cib/cib_client.c if(cib == NULL) { \ cib 33 lib/cib/cib_client.c } else if(cib->delegate_fn == NULL) { \ cib 39 lib/cib/cib_client.c cib_client_set_op_callback(cib_t *cib, cib 49 lib/cib/cib_client.c cib->op_callback = callback; cib 78 lib/cib/cib_client.c cib_client_add_notify_callback(cib_t * cib, const char *event, cib 85 lib/cib/cib_client.c if ((cib->variant != cib_native) && (cib->variant != cib_remote)) { cib 90 lib/cib/cib_client.c event, g_list_length(cib->notify_list)); cib 96 lib/cib/cib_client.c list_item = g_list_find_custom(cib->notify_list, new_client, cib 105 lib/cib/cib_client.c cib->notify_list = g_list_append(cib->notify_list, new_client); cib 107 lib/cib/cib_client.c cib->cmds->register_notification(cib, event, 1); cib 109 lib/cib/cib_client.c crm_trace("Callback added (%d)", g_list_length(cib->notify_list)); cib 115 lib/cib/cib_client.c get_notify_list_event_count(cib_t *cib, const char *event) cib 119 lib/cib/cib_client.c for (GList *iter = g_list_first(cib->notify_list); iter != NULL; cib 132 lib/cib/cib_client.c cib_client_del_notify_callback(cib_t *cib, const char *event, cib 139 lib/cib/cib_client.c if (cib->variant != cib_native && cib->variant != cib_remote) { cib 143 lib/cib/cib_client.c if (get_notify_list_event_count(cib, event) == 0) { cib 154 lib/cib/cib_client.c list_item = g_list_find_custom(cib->notify_list, new_client, ciblib_GCompareFunc); cib 159 lib/cib/cib_client.c cib->notify_list = g_list_remove(cib->notify_list, list_client); cib 168 lib/cib/cib_client.c if (get_notify_list_event_count(cib, event) == 0) { cib 170 lib/cib/cib_client.c cib->cmds->register_notification(cib, event, 0); cib 184 lib/cib/cib_client.c cib_native_callback(timer->cib, NULL, timer->call_id, -ETIME); cib 191 lib/cib/cib_client.c cib_client_register_callback_full(cib_t *cib, int call_id, int timeout, cib 225 lib/cib/cib_client.c async_timer->cib = cib; cib 240 lib/cib/cib_client.c cib_client_register_callback(cib_t *cib, int call_id, int timeout, cib 246 lib/cib/cib_client.c return cib_client_register_callback_full(cib, call_id, timeout, cib 252 lib/cib/cib_client.c cib_client_noop(cib_t * cib, int call_options) cib 254 lib/cib/cib_client.c op_common(cib); cib 255 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_NOOP, NULL, NULL, NULL, NULL, cib 256 lib/cib/cib_client.c call_options, cib->user); cib 260 lib/cib/cib_client.c cib_client_ping(cib_t * cib, xmlNode ** output_data, int call_options) cib 262 lib/cib/cib_client.c op_common(cib); cib 263 lib/cib/cib_client.c return cib_internal_op(cib, CRM_OP_PING, NULL, NULL, NULL, output_data, cib 264 lib/cib/cib_client.c call_options, cib->user); cib 268 lib/cib/cib_client.c cib_client_query(cib_t * cib, const char *section, xmlNode ** output_data, int call_options) cib 270 lib/cib/cib_client.c return cib->cmds->query_from(cib, NULL, section, output_data, call_options); cib 274 lib/cib/cib_client.c cib_client_query_from(cib_t * cib, const char *host, const char *section, cib 277 lib/cib/cib_client.c op_common(cib); cib 278 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_QUERY, host, section, NULL, cib 279 lib/cib/cib_client.c output_data, call_options, cib->user); cib 283 lib/cib/cib_client.c is_primary(cib_t *cib) cib 285 lib/cib/cib_client.c op_common(cib); cib 286 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_IS_PRIMARY, NULL, NULL, NULL, cib 287 lib/cib/cib_client.c NULL, cib_scope_local|cib_sync_call, cib->user); cib 291 lib/cib/cib_client.c set_secondary(cib_t *cib, int call_options) cib 293 lib/cib/cib_client.c op_common(cib); cib 294 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_SECONDARY, NULL, NULL, NULL, cib 295 lib/cib/cib_client.c NULL, call_options, cib->user); cib 299 lib/cib/cib_client.c set_all_secondary(cib_t * cib, int call_options) cib 305 lib/cib/cib_client.c set_primary(cib_t *cib, int call_options) cib 307 lib/cib/cib_client.c op_common(cib); cib 309 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_PRIMARY, NULL, NULL, NULL, cib 310 lib/cib/cib_client.c NULL, call_options|cib_scope_local, cib->user); cib 314 lib/cib/cib_client.c cib_client_bump_epoch(cib_t * cib, int call_options) cib 316 lib/cib/cib_client.c op_common(cib); cib 317 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_BUMP, NULL, NULL, NULL, NULL, cib 318 lib/cib/cib_client.c call_options, cib->user); cib 322 lib/cib/cib_client.c cib_client_upgrade(cib_t * cib, int call_options) cib 324 lib/cib/cib_client.c op_common(cib); cib 325 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_UPGRADE, NULL, NULL, NULL, cib 326 lib/cib/cib_client.c NULL, call_options, cib->user); cib 330 lib/cib/cib_client.c cib_client_sync(cib_t * cib, const char *section, int call_options) cib 332 lib/cib/cib_client.c return cib->cmds->sync_from(cib, NULL, section, call_options); cib 336 lib/cib/cib_client.c cib_client_sync_from(cib_t * cib, const char *host, const char *section, int call_options) cib 338 lib/cib/cib_client.c op_common(cib); cib 339 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_SYNC_TO_ALL, host, section, cib 340 lib/cib/cib_client.c NULL, NULL, call_options, cib->user); cib 344 lib/cib/cib_client.c cib_client_create(cib_t * cib, const char *section, xmlNode * data, int call_options) cib 346 lib/cib/cib_client.c op_common(cib); cib 347 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_CREATE, NULL, section, data, cib 348 lib/cib/cib_client.c NULL, call_options, cib->user); cib 352 lib/cib/cib_client.c cib_client_modify(cib_t * cib, const char *section, xmlNode * data, int call_options) cib 354 lib/cib/cib_client.c op_common(cib); cib 355 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_MODIFY, NULL, section, data, cib 356 lib/cib/cib_client.c NULL, call_options, cib->user); cib 360 lib/cib/cib_client.c cib_client_replace(cib_t * cib, const char *section, xmlNode * data, int call_options) cib 362 lib/cib/cib_client.c op_common(cib); cib 363 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_REPLACE, NULL, section, data, cib 364 lib/cib/cib_client.c NULL, call_options, cib->user); cib 368 lib/cib/cib_client.c cib_client_delete(cib_t * cib, const char *section, xmlNode * data, int call_options) cib 370 lib/cib/cib_client.c op_common(cib); cib 371 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_DELETE, NULL, section, data, cib 372 lib/cib/cib_client.c NULL, call_options, cib->user); cib 376 lib/cib/cib_client.c cib_client_delete_absolute(cib_t * cib, const char *section, xmlNode * data, int call_options) cib 378 lib/cib/cib_client.c op_common(cib); cib 379 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_ABS_DELETE, NULL, section, cib 380 lib/cib/cib_client.c data, NULL, call_options, cib->user); cib 384 lib/cib/cib_client.c cib_client_erase(cib_t * cib, xmlNode ** output_data, int call_options) cib 386 lib/cib/cib_client.c op_common(cib); cib 387 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_ERASE, NULL, NULL, NULL, cib 388 lib/cib/cib_client.c output_data, call_options, cib->user); cib 392 lib/cib/cib_client.c cib_client_init_transaction(cib_t *cib) cib 396 lib/cib/cib_client.c op_common(cib); cib 398 lib/cib/cib_client.c if (cib->transaction != NULL) { cib 404 lib/cib/cib_client.c cib->transaction = create_xml_node(NULL, T_CIB_TRANSACTION); cib 405 lib/cib/cib_client.c if (cib->transaction == NULL) { cib 413 lib/cib/cib_client.c cib->cmds->client_id(cib, NULL, &client_id); cib 421 lib/cib/cib_client.c cib_client_end_transaction(cib_t *cib, bool commit, int call_options) cib 426 lib/cib/cib_client.c op_common(cib); cib 427 lib/cib/cib_client.c cib->cmds->client_id(cib, NULL, &client_id); cib 431 lib/cib/cib_client.c if (cib->transaction == NULL) { cib 438 lib/cib/cib_client.c rc = cib_internal_op(cib, PCMK__CIB_REQUEST_COMMIT_TRANSACT, NULL, NULL, cib 439 lib/cib/cib_client.c cib->transaction, NULL, call_options, cib->user); cib 443 lib/cib/cib_client.c if (cib->transaction != NULL) { cib 449 lib/cib/cib_client.c free_xml(cib->transaction); cib 450 lib/cib/cib_client.c cib->transaction = NULL; cib 455 lib/cib/cib_client.c cib_client_set_user(cib_t *cib, const char *user) cib 457 lib/cib/cib_client.c pcmk__str_update(&(cib->user), user); cib 577 lib/cib/cib_client.c cib_t *cib = NULL; cib 580 lib/cib/cib_client.c cib = cib_new(); cib 585 lib/cib/cib_client.c return cib; cib 743 lib/cib/cib_client.c cib_free_notify(cib_t *cib) cib 746 lib/cib/cib_client.c if (cib) { cib 747 lib/cib/cib_client.c GList *list = cib->notify_list; cib 755 lib/cib/cib_client.c cib->notify_list = NULL; cib 765 lib/cib/cib_client.c cib_free_callbacks(cib_t *cib) cib 767 lib/cib/cib_client.c cib_free_notify(cib); cib 778 lib/cib/cib_client.c cib_delete(cib_t *cib) cib 780 lib/cib/cib_client.c cib_free_callbacks(cib); cib 781 lib/cib/cib_client.c if (cib) { cib 782 lib/cib/cib_client.c cib->cmds->free(cib); cib 69 lib/cib/cib_file.c register_client(const cib_t *cib) cib 71 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; cib 76 lib/cib/cib_file.c g_hash_table_insert(client_table, private->id, (gpointer) cib); cib 86 lib/cib/cib_file.c unregister_client(const cib_t *cib) cib 88 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; cib 214 lib/cib/cib_file.c cib_file_process_request(cib_t *cib, xmlNode *request, xmlNode **output) cib 231 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; cib 273 lib/cib/cib_file.c if (cib->op_callback != NULL) { cib 274 lib/cib/cib_file.c cib->op_callback(NULL, call_id, rc, *output); cib 286 lib/cib/cib_file.c cib_file_perform_op_delegate(cib_t *cib, const char *op, const char *host, cib 294 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; cib 306 lib/cib/cib_file.c if (cib->state == cib_disconnected) { cib 325 lib/cib/cib_file.c rc = cib__create_op(cib, op, host, section, data, call_options, user_name, cib 334 lib/cib/cib_file.c rc = cib__extend_transaction(cib, request); cib 338 lib/cib/cib_file.c rc = cib_file_process_request(cib, request, &output); cib 411 lib/cib/cib_file.c cib_file_signon(cib_t *cib, const char *name, enum cib_conn_type type) cib 414 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; cib 425 lib/cib/cib_file.c cib->state = cib_connected_command; cib 426 lib/cib/cib_file.c cib->type = cib_command; cib 427 lib/cib/cib_file.c register_client(cib); cib 528 lib/cib/cib_file.c cib_file_signoff(cib_t *cib) cib 531 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; cib 534 lib/cib/cib_file.c cib->state = cib_disconnected; cib 535 lib/cib/cib_file.c cib->type = cib_no_connection; cib 536 lib/cib/cib_file.c unregister_client(cib); cib 537 lib/cib/cib_file.c cib->cmds->end_transaction(cib, false, cib_none); cib 573 lib/cib/cib_file.c cib_file_free(cib_t *cib) cib 577 lib/cib/cib_file.c if (cib->state != cib_disconnected) { cib 578 lib/cib/cib_file.c rc = cib_file_signoff(cib); cib 582 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; cib 587 lib/cib/cib_file.c free(cib->cmds); cib 588 lib/cib/cib_file.c free(cib->user); cib 589 lib/cib/cib_file.c free(cib); cib 599 lib/cib/cib_file.c cib_file_inputfd(cib_t *cib) cib 605 lib/cib/cib_file.c cib_file_register_notification(cib_t *cib, const char *callback, int enabled) cib 611 lib/cib/cib_file.c cib_file_set_connection_dnotify(cib_t *cib, cib 631 lib/cib/cib_file.c cib_file_client_id(const cib_t *cib, const char **async_id, cib 634 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; cib 649 lib/cib/cib_file.c cib_t *cib = cib_new_variant(); cib 651 lib/cib/cib_file.c if (cib == NULL) { cib 658 lib/cib/cib_file.c free(cib); cib 663 lib/cib/cib_file.c cib->variant = cib_file; cib 664 lib/cib/cib_file.c cib->variant_opaque = private; cib 678 lib/cib/cib_file.c cib->delegate_fn = cib_file_perform_op_delegate; cib 679 lib/cib/cib_file.c cib->cmds->signon = cib_file_signon; cib 680 lib/cib/cib_file.c cib->cmds->signoff = cib_file_signoff; cib 681 lib/cib/cib_file.c cib->cmds->free = cib_file_free; cib 682 lib/cib/cib_file.c cib->cmds->inputfd = cib_file_inputfd; // Deprecated method cib 684 lib/cib/cib_file.c cib->cmds->register_notification = cib_file_register_notification; cib 685 lib/cib/cib_file.c cib->cmds->set_connection_dnotify = cib_file_set_connection_dnotify; cib 687 lib/cib/cib_file.c cib->cmds->client_id = cib_file_client_id; cib 689 lib/cib/cib_file.c return cib; cib 1062 lib/cib/cib_file.c cib_file_process_transaction_requests(cib_t *cib, xmlNode *transaction) cib 1064 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; cib 1072 lib/cib/cib_file.c int rc = cib_file_process_request(cib, request, &output); cib 1107 lib/cib/cib_file.c cib_file_commit_transaction(cib_t *cib, xmlNode *transaction, cib 1111 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; cib 1134 lib/cib/cib_file.c rc = cib_file_process_transaction_requests(cib, transaction); cib 1162 lib/cib/cib_file.c cib_t *cib = NULL; cib 1166 lib/cib/cib_file.c cib = get_client(client_id); cib 1167 lib/cib/cib_file.c CRM_CHECK(cib != NULL, return -EINVAL); cib 1169 lib/cib/cib_file.c rc = cib_file_commit_transaction(cib, input, result_cib); cib 1171 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; cib 41 lib/cib/cib_native.c cib_native_perform_op_delegate(cib_t *cib, const char *op, const char *host, cib 53 lib/cib/cib_native.c cib_native_opaque_t *native = cib->variant_opaque; cib 55 lib/cib/cib_native.c if (cib->state == cib_disconnected) { cib 72 lib/cib/cib_native.c rc = cib__create_op(cib, op, host, section, data, call_options, user_name, cib 79 lib/cib/cib_native.c rc = cib__extend_transaction(cib, op_msg); cib 83 lib/cib/cib_native.c crm_trace("Sending %s message to the CIB manager (timeout=%ds)", op, cib->call_timeout); cib 84 lib/cib/cib_native.c rc = crm_ipc_send(native->ipc, op_msg, ipc_flags, cib->call_timeout * 1000, &op_reply); cib 88 lib/cib/cib_native.c cib->call_timeout, pcmk_strerror(rc), rc); cib 96 lib/cib/cib_native.c crm_trace("Async call, returning %d", cib->call_id); cib 97 lib/cib/cib_native.c CRM_CHECK(cib->call_id != 0, return -ENOMSG); cib 99 lib/cib/cib_native.c return cib->call_id; cib 104 lib/cib/cib_native.c if (reply_id == cib->call_id) { cib 126 lib/cib/cib_native.c crm_err("Received bad reply: %d (wanted %d)", reply_id, cib->call_id); cib 132 lib/cib/cib_native.c if (op_reply == NULL && cib->state == cib_disconnected) { cib 167 lib/cib/cib_native.c cib->state = cib_disconnected; cib 182 lib/cib/cib_native.c cib_t *cib = userdata; cib 186 lib/cib/cib_native.c if (cib == NULL) { cib 204 lib/cib/cib_native.c cib_native_callback(cib, msg, 0, 0); cib 207 lib/cib/cib_native.c g_list_foreach(cib->notify_list, cib_native_notify, msg); cib 220 lib/cib/cib_native.c cib_t *cib = userdata; cib 221 lib/cib/cib_native.c cib_native_opaque_t *native = cib->variant_opaque; cib 224 lib/cib/cib_native.c cib->state = cib_disconnected; cib 234 lib/cib/cib_native.c cib_native_signoff(cib_t *cib) cib 236 lib/cib/cib_native.c cib_native_opaque_t *native = cib->variant_opaque; cib 240 lib/cib/cib_native.c cib_free_notify(cib); cib 258 lib/cib/cib_native.c cib->cmds->end_transaction(cib, false, cib_none); cib 259 lib/cib/cib_native.c cib->state = cib_disconnected; cib 260 lib/cib/cib_native.c cib->type = cib_no_connection; cib 266 lib/cib/cib_native.c cib_native_signon_raw(cib_t *cib, const char *name, enum cib_conn_type type, cib 271 lib/cib/cib_native.c cib_native_opaque_t *native = cib->variant_opaque; cib 279 lib/cib/cib_native.c cib->call_timeout = PCMK__IPC_TIMEOUT; cib 282 lib/cib/cib_native.c cib->state = cib_connected_command; cib 286 lib/cib/cib_native.c cib->state = cib_connected_command; cib 290 lib/cib/cib_native.c cib->state = cib_connected_query; cib 315 lib/cib/cib_native.c mainloop_add_ipc_client(channel, G_PRIORITY_HIGH, 512 * 1024 /* 512k */ , cib, cib 326 lib/cib/cib_native.c rc = cib__create_op(cib, CRM_OP_REGISTER, NULL, NULL, NULL, cib 366 lib/cib/cib_native.c cib_native_signoff(cib); cib 371 lib/cib/cib_native.c cib_native_signon(cib_t *cib, const char *name, enum cib_conn_type type) cib 373 lib/cib/cib_native.c return cib_native_signon_raw(cib, name, type, NULL); cib 377 lib/cib/cib_native.c cib_native_free(cib_t *cib) cib 381 lib/cib/cib_native.c if (cib->state != cib_disconnected) { cib 382 lib/cib/cib_native.c rc = cib_native_signoff(cib); cib 385 lib/cib/cib_native.c if (cib->state == cib_disconnected) { cib 386 lib/cib/cib_native.c cib_native_opaque_t *native = cib->variant_opaque; cib 389 lib/cib/cib_native.c free(cib->variant_opaque); cib 390 lib/cib/cib_native.c free(cib->cmds); cib 391 lib/cib/cib_native.c free(cib->user); cib 392 lib/cib/cib_native.c free(cib); cib 399 lib/cib/cib_native.c cib_native_register_notification(cib_t *cib, const char *callback, int enabled) cib 403 lib/cib/cib_native.c cib_native_opaque_t *native = cib->variant_opaque; cib 405 lib/cib/cib_native.c if (cib->state != cib_disconnected) { cib 410 lib/cib/cib_native.c 1000 * cib->call_timeout, NULL); cib 422 lib/cib/cib_native.c cib_native_set_connection_dnotify(cib_t *cib, cib 427 lib/cib/cib_native.c if (cib == NULL) { cib 432 lib/cib/cib_native.c native = cib->variant_opaque; cib 457 lib/cib/cib_native.c cib_native_client_id(const cib_t *cib, const char **async_id, cib 460 lib/cib/cib_native.c cib_native_opaque_t *native = cib->variant_opaque; cib 475 lib/cib/cib_native.c cib_t *cib = cib_new_variant(); cib 477 lib/cib/cib_native.c if (cib == NULL) { cib 484 lib/cib/cib_native.c free(cib); cib 488 lib/cib/cib_native.c cib->variant = cib_native; cib 489 lib/cib/cib_native.c cib->variant_opaque = native; cib 496 lib/cib/cib_native.c cib->delegate_fn = cib_native_perform_op_delegate; cib 497 lib/cib/cib_native.c cib->cmds->signon = cib_native_signon; cib 498 lib/cib/cib_native.c cib->cmds->signon_raw = cib_native_signon_raw; cib 499 lib/cib/cib_native.c cib->cmds->signoff = cib_native_signoff; cib 500 lib/cib/cib_native.c cib->cmds->free = cib_native_free; cib 502 lib/cib/cib_native.c cib->cmds->register_notification = cib_native_register_notification; cib 503 lib/cib/cib_native.c cib->cmds->set_connection_dnotify = cib_native_set_connection_dnotify; cib 505 lib/cib/cib_native.c cib->cmds->client_id = cib_native_client_id; cib 507 lib/cib/cib_native.c return cib; cib 56 lib/cib/cib_remote.c cib_remote_perform_op(cib_t *cib, const char *op, const char *host, cib 68 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; cib 70 lib/cib/cib_remote.c if (cib->state == cib_disconnected) { cib 83 lib/cib/cib_remote.c rc = cib__create_op(cib, op, host, section, data, call_options, user_name, cib 90 lib/cib/cib_remote.c rc = cib__extend_transaction(cib, op_msg); cib 108 lib/cib/cib_remote.c return cib->call_id; cib 114 lib/cib/cib_remote.c remaining_time = cib->call_timeout ? cib->call_timeout : 60; cib 119 lib/cib/cib_remote.c int msg_id = cib->call_id; cib 195 lib/cib/cib_remote.c crm_trace("No output in reply to \"%s\" command %d", op, cib->call_id - 1); cib 210 lib/cib/cib_remote.c cib_t *cib = user_data; cib 211 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; cib 226 lib/cib/cib_remote.c cib_native_callback(cib, msg, 0, 0); cib 229 lib/cib/cib_remote.c g_list_foreach(cib->notify_list, cib_native_notify, msg); cib 250 lib/cib/cib_remote.c cib_t *cib = user_data; cib 251 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; cib 266 lib/cib/cib_remote.c cib_tls_close(cib_t *cib) cib 268 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; cib 322 lib/cib/cib_remote.c cib_tls_signon(cib_t *cib, pcmk__remote_t *connection, gboolean event_channel) cib 324 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; cib 363 lib/cib/cib_remote.c cib_tls_close(cib); cib 374 lib/cib/cib_remote.c cib_tls_close(cib); cib 423 lib/cib/cib_remote.c cib_tls_close(cib); cib 429 lib/cib/cib_remote.c connection->tcp_socket, cib, cib 435 lib/cib/cib_remote.c cib_remote_signon(cib_t *cib, const char *name, enum cib_conn_type type) cib 438 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; cib 457 lib/cib/cib_remote.c rc = cib_tls_signon(cib, &(private->command), FALSE); cib 461 lib/cib/cib_remote.c rc = cib_tls_signon(cib, &(private->callback), TRUE); cib 465 lib/cib/cib_remote.c rc = cib__create_op(cib, CRM_OP_REGISTER, NULL, NULL, NULL, cib_none, cib 478 lib/cib/cib_remote.c cib->state = cib_connected_command; cib 479 lib/cib/cib_remote.c cib->type = cib_command; cib 490 lib/cib/cib_remote.c cib_remote_signoff(cib_t *cib) cib 496 lib/cib/cib_remote.c cib_tls_close(cib); cib 499 lib/cib/cib_remote.c cib->cmds->end_transaction(cib, false, cib_none); cib 500 lib/cib/cib_remote.c cib->state = cib_disconnected; cib 501 lib/cib/cib_remote.c cib->type = cib_no_connection; cib 507 lib/cib/cib_remote.c cib_remote_free(cib_t *cib) cib 512 lib/cib/cib_remote.c if (cib->state != cib_disconnected) { cib 513 lib/cib/cib_remote.c rc = cib_remote_signoff(cib); cib 515 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; cib 520 lib/cib/cib_remote.c free(cib->cmds); cib 521 lib/cib/cib_remote.c free(cib->user); cib 523 lib/cib/cib_remote.c free(cib); cib 531 lib/cib/cib_remote.c cib_remote_inputfd(cib_t * cib) cib 533 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; cib 539 lib/cib/cib_remote.c cib_remote_register_notification(cib_t * cib, const char *callback, int enabled) cib 542 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; cib 553 lib/cib/cib_remote.c cib_remote_set_connection_dnotify(cib_t * cib, void (*dnotify) (gpointer user_data)) cib 576 lib/cib/cib_remote.c cib_remote_client_id(const cib_t *cib, const char **async_id, cib 579 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; cib 597 lib/cib/cib_remote.c cib_t *cib = cib_new_variant(); cib 599 lib/cib/cib_remote.c if (cib == NULL) { cib 606 lib/cib/cib_remote.c free(cib); cib 610 lib/cib/cib_remote.c cib->variant = cib_remote; cib 611 lib/cib/cib_remote.c cib->variant_opaque = private; cib 621 lib/cib/cib_remote.c cib->delegate_fn = cib_remote_perform_op; cib 622 lib/cib/cib_remote.c cib->cmds->signon = cib_remote_signon; cib 623 lib/cib/cib_remote.c cib->cmds->signoff = cib_remote_signoff; cib 624 lib/cib/cib_remote.c cib->cmds->free = cib_remote_free; cib 625 lib/cib/cib_remote.c cib->cmds->inputfd = cib_remote_inputfd; // Deprecated method cib 627 lib/cib/cib_remote.c cib->cmds->register_notification = cib_remote_register_notification; cib 628 lib/cib/cib_remote.c cib->cmds->set_connection_dnotify = cib_remote_set_connection_dnotify; cib 630 lib/cib/cib_remote.c cib->cmds->client_id = cib_remote_client_id; cib 632 lib/cib/cib_remote.c return cib; cib 636 lib/cib/cib_remote.c cib__set_output(cib_t *cib, pcmk__output_t *out) cib 640 lib/cib/cib_remote.c if (cib->variant != cib_remote) { cib 644 lib/cib/cib_remote.c private = cib->variant_opaque; cib 29 lib/cib/cib_utils.c cib_get_generation(cib_t * cib) cib 34 lib/cib/cib_utils.c cib->cmds->query(cib, NULL, &the_cib, cib_scope_local | cib_sync_call); cib 44 lib/cib/cib_utils.c cib_version_details(xmlNode * cib, int *admin_epoch, int *epoch, int *updates) cib 50 lib/cib/cib_utils.c if (cib == NULL) { cib 54 lib/cib/cib_utils.c crm_element_value_int(cib, XML_ATTR_GENERATION, epoch); cib 55 lib/cib/cib_utils.c crm_element_value_int(cib, XML_ATTR_NUMUPDATES, updates); cib 56 lib/cib/cib_utils.c crm_element_value_int(cib, XML_ATTR_GENERATION_ADMIN, admin_epoch); cib 673 lib/cib/cib_utils.c cib__create_op(cib_t *cib, const char *op, const char *host, cib 678 lib/cib/cib_utils.c CRM_CHECK((cib != NULL) && (op_msg != NULL), return -EPROTO); cib 685 lib/cib/cib_utils.c cib->call_id++; cib 686 lib/cib/cib_utils.c if (cib->call_id < 1) { cib 687 lib/cib/cib_utils.c cib->call_id = 1; cib 697 lib/cib/cib_utils.c crm_xml_add_int(*op_msg, F_CIB_CALLID, cib->call_id); cib 758 lib/cib/cib_utils.c cib__extend_transaction(cib_t *cib, xmlNode *request) cib 762 lib/cib/cib_utils.c CRM_ASSERT((cib != NULL) && (request != NULL)); cib 766 lib/cib/cib_utils.c if ((rc == pcmk_rc_ok) && (cib->transaction == NULL)) { cib 771 lib/cib/cib_utils.c add_node_copy(cib->transaction, request); cib 777 lib/cib/cib_utils.c cib->cmds->client_id(cib, NULL, &client_id); cib 786 lib/cib/cib_utils.c cib_native_callback(cib_t * cib, xmlNode * msg, int call_id, int rc) cib 803 lib/cib/cib_utils.c if (cib == NULL) { cib 817 lib/cib/cib_utils.c } else if (cib && cib->op_callback == NULL && rc != pcmk_ok) { cib 827 lib/cib/cib_utils.c if (cib && cib->op_callback != NULL) { cib 829 lib/cib/cib_utils.c cib->op_callback(msg, call_id, rc, output); cib 943 lib/cib/cib_utils.c cib_internal_op(cib_t * cib, const char *op, const char *host, cib 947 lib/cib/cib_utils.c int (*delegate) (cib_t * cib, const char *op, const char *host, cib 950 lib/cib/cib_utils.c cib->delegate_fn; cib 956 lib/cib/cib_utils.c return delegate(cib, op, host, section, data, output_data, call_options, user_name); cib 1022 lib/cib/cib_utils.c cib__signon_query(pcmk__output_t *out, cib_t **cib, xmlNode **cib_object) cib 1029 lib/cib/cib_utils.c if (cib == NULL) { cib 1032 lib/cib/cib_utils.c if (*cib == NULL) { cib 1033 lib/cib/cib_utils.c *cib = cib_new(); cib 1035 lib/cib/cib_utils.c cib_conn = *cib; cib 1065 lib/cib/cib_utils.c if (cib == NULL) { cib 1076 lib/cib/cib_utils.c cib__clean_up_connection(cib_t **cib) cib 1080 lib/cib/cib_utils.c if (*cib == NULL) { cib 1084 lib/cib/cib_utils.c rc = (*cib)->cmds->signoff(*cib); cib 1085 lib/cib/cib_utils.c cib_delete(*cib); cib 1086 lib/cib/cib_utils.c *cib = NULL; cib 244 lib/cluster/membership.c crm_remote_peer_cache_refresh(xmlNode *cib) cib 259 lib/cluster/membership.c crm_foreach_xpath_result(cib, PCMK__XP_REMOTE_NODE_STATUS, cib 270 lib/cluster/membership.c crm_foreach_xpath_result(cib, PCMK__XP_GUEST_NODE_CONFIG, cib 274 lib/cluster/membership.c crm_foreach_xpath_result(cib, PCMK__XP_REMOTE_NODE_CONFIG, cib 1292 lib/cluster/membership.c refresh_known_node_cache(xmlNode *cib) cib 1298 lib/cluster/membership.c crm_foreach_xpath_result(cib, PCMK__XP_MEMBER_NODE_CONFIG, cib 1306 lib/cluster/membership.c pcmk__refresh_node_caches_from_cib(xmlNode *cib) cib 1308 lib/cluster/membership.c crm_remote_peer_cache_refresh(cib); cib 1309 lib/cluster/membership.c refresh_known_node_cache(cib); cib 172 lib/common/cib.c pcmk_find_cib_element(xmlNode *cib, const char *element_name) cib 174 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 184 lib/common/patchset.c xmlNode *cib = NULL; cib 207 lib/common/patchset.c cib = find_xml_node(diff_child, tag, FALSE); cib 208 lib/common/patchset.c if (cib == NULL) { cib 209 lib/common/patchset.c cib = create_xml_node(diff_child, tag); cib 217 lib/common/patchset.c crm_xml_add(cib, vfields[lpc], value); cib 228 lib/common/patchset.c cib = find_xml_node(diff_child, tag, FALSE); cib 229 lib/common/patchset.c if (cib == NULL) { cib 230 lib/common/patchset.c cib = create_xml_node(diff_child, tag); cib 243 lib/common/patchset.c xmlSetProp(cib, a->name, (pcmkXmlStr) p_value); cib 441 lib/pacemaker/libpacemaker_private.h void pcmk__inject_scheduler_input(pcmk_scheduler_t *scheduler, cib_t *cib, cib 508 lib/pacemaker/pcmk_injections.c const char *attr_name, bool attr_value, cib_t *cib) cib 515 lib/pacemaker/pcmk_injections.c rc = find_ticket_state(out, cib, ticket_id, &ticket_state_xml); cib 540 lib/pacemaker/pcmk_injections.c rc = cib->cmds->modify(cib, XML_CIB_TAG_STATUS, xml_top, cib 558 lib/pacemaker/pcmk_injections.c inject_action(pcmk__output_t *out, const char *spec, cib_t *cib, cib 603 lib/pacemaker/pcmk_injections.c cib_node = pcmk__inject_node(cib, node, NULL); cib 620 lib/pacemaker/pcmk_injections.c rc = cib->cmds->modify(cib, XML_CIB_TAG_STATUS, cib_node, cib 639 lib/pacemaker/pcmk_injections.c pcmk__inject_scheduler_input(pcmk_scheduler_t *scheduler, cib_t *cib, cib 655 lib/pacemaker/pcmk_injections.c rc = cib->cmds->modify(cib, NULL, top, cib_sync_call|cib_scope_local); cib 660 lib/pacemaker/pcmk_injections.c rc = cib__update_node_attr(out, cib, cib_sync_call|cib_scope_local, cib 672 lib/pacemaker/pcmk_injections.c cib_node = pcmk__inject_node_state_change(cib, node, true); cib 675 lib/pacemaker/pcmk_injections.c rc = cib->cmds->modify(cib, XML_CIB_TAG_STATUS, cib_node, cib 687 lib/pacemaker/pcmk_injections.c cib_node = pcmk__inject_node_state_change(cib, node, false); cib 690 lib/pacemaker/pcmk_injections.c rc = cib->cmds->modify(cib, XML_CIB_TAG_STATUS, cib_node, cib 697 lib/pacemaker/pcmk_injections.c cib->cmds->remove(cib, xpath, NULL, cib 703 lib/pacemaker/pcmk_injections.c cib->cmds->remove(cib, xpath, NULL, cib 713 lib/pacemaker/pcmk_injections.c cib_node = pcmk__inject_node_state_change(cib, node, true); cib 717 lib/pacemaker/pcmk_injections.c rc = cib->cmds->modify(cib, XML_CIB_TAG_STATUS, cib_node, cib 728 lib/pacemaker/pcmk_injections.c rc = set_ticket_state_attr(out, ticket_id, "granted", true, cib); cib 737 lib/pacemaker/pcmk_injections.c rc = set_ticket_state_attr(out, ticket_id, "granted", false, cib); cib 746 lib/pacemaker/pcmk_injections.c rc = set_ticket_state_attr(out, ticket_id, "standby", true, cib); cib 755 lib/pacemaker/pcmk_injections.c rc = set_ticket_state_attr(out, ticket_id, "standby", false, cib); cib 760 lib/pacemaker/pcmk_injections.c inject_action(out, (const char *) iter->data, cib, scheduler); cib 738 lib/pacemaker/pcmk_scheduler.c unpack_cib(xmlNode *cib, unsigned long long flags, pcmk_scheduler_t *scheduler) cib 752 lib/pacemaker/pcmk_scheduler.c CRM_ASSERT(cib != NULL); cib 767 lib/pacemaker/pcmk_scheduler.c scheduler->input = cib; cib 780 lib/pacemaker/pcmk_scheduler.c pcmk__schedule_actions(xmlNode *cib, unsigned long long flags, cib 783 lib/pacemaker/pcmk_scheduler.c unpack_cib(cib, flags, scheduler); cib 733 lib/pacemaker/pcmk_simulate.c pcmk__simulate_transition(pcmk_scheduler_t *scheduler, cib_t *cib, cib 748 lib/pacemaker/pcmk_simulate.c fake_cib = cib; cib 797 lib/pacemaker/pcmk_simulate.c cib_t *cib = NULL; cib 799 lib/pacemaker/pcmk_simulate.c rc = cib__signon_query(out, &cib, &input); cib 807 lib/pacemaker/pcmk_simulate.c if ((cib->variant == cib_native) cib 854 lib/pacemaker/pcmk_simulate.c pcmk__inject_scheduler_input(scheduler, cib, injections); cib 857 lib/pacemaker/pcmk_simulate.c rc = cib->cmds->query(cib, NULL, &input, cib_sync_call); cib 957 lib/pacemaker/pcmk_simulate.c if (pcmk__simulate_transition(scheduler, cib, injections->op_fail) cib 980 lib/pacemaker/pcmk_simulate.c cib__clean_up_connection(&cib); cib 72 lib/pacemaker/pcmk_status.c pcmk__output_cluster_status(pcmk__output_t *out, stonith_t *stonith, cib_t *cib, cib 90 lib/pacemaker/pcmk_status.c cib__clean_up_connection(&cib); cib 111 lib/pacemaker/pcmk_status.c if ((cib->variant == cib_native) && pcmk_is_set(show, pcmk_section_times)) { cib 156 lib/pacemaker/pcmk_status.c cib_t *cib = NULL; cib 164 lib/pacemaker/pcmk_status.c cib = cib_new(); cib 166 lib/pacemaker/pcmk_status.c if (cib == NULL) { cib 172 lib/pacemaker/pcmk_status.c cib_delete(cib); cib 180 lib/pacemaker/pcmk_status.c rc = pcmk__status(out, cib, pcmk__fence_history_full, pcmk_section_all, cib 184 lib/pacemaker/pcmk_status.c cib_delete(cib); cib 224 lib/pacemaker/pcmk_status.c pcmk__status(pcmk__output_t *out, cib_t *cib, cib 236 lib/pacemaker/pcmk_status.c if (cib == NULL) { cib 240 lib/pacemaker/pcmk_status.c if (cib->variant == cib_native) { cib 269 lib/pacemaker/pcmk_status.c rc = cib__signon_query(out, &cib, ¤t_cib); cib 279 lib/pacemaker/pcmk_status.c rc = pcmk__output_cluster_status(out, stonith, cib, current_cib, cib 359 tools/crm_attribute.c cib_t *cib; cib 374 tools/crm_attribute.c rc = cib__delete_node_attr(dd->out, dd->cib, cib_opts, options.type, cib 387 tools/crm_attribute.c command_delete(pcmk__output_t *out, cib_t *cib) cib 396 tools/crm_attribute.c struct delete_data_s dd = { out, cib }; cib 398 tools/crm_attribute.c rc = cib__get_node_attrs(out, cib, options.type, options.dest_node, cib 413 tools/crm_attribute.c rc = cib__delete_node_attr(out, cib, cib_opts, options.type, options.dest_node, cib 434 tools/crm_attribute.c cib_t *cib; cib 449 tools/crm_attribute.c return cib__update_node_attr(ud->out, ud->cib, cib_opts, options.type, cib 457 tools/crm_attribute.c command_update(pcmk__output_t *out, cib_t *cib, int is_remote_node) cib 470 tools/crm_attribute.c struct update_data_s ud = { out, cib, is_remote_node }; cib 472 tools/crm_attribute.c rc = cib__get_node_attrs(out, cib, options.type, options.dest_node, cib 487 tools/crm_attribute.c rc = cib__update_node_attr(out, cib, cib_opts, options.type, cib 531 tools/crm_attribute.c command_query(pcmk__output_t *out, cib_t *cib) cib 544 tools/crm_attribute.c rc = cib__get_node_attrs(out, cib, options.type, options.dest_node, cib 548 tools/crm_attribute.c rc = cib__get_node_attrs(out, cib, options.type, options.dest_node, cib 75 tools/crm_mon.c static cib_t *cib = NULL; cib 860 tools/crm_mon.c if (cib) { cib 861 tools/crm_mon.c cib->cmds->signoff(cib); cib 942 tools/crm_mon.c CRM_CHECK(cib != NULL, return EINVAL); cib 944 tools/crm_mon.c if (cib->state != cib_disconnected) { cib 949 tools/crm_mon.c rc = cib__signon_query(out, &cib, ¤t_cib); cib 952 tools/crm_mon.c rc = pcmk_legacy2rc(cib->cmds->set_connection_dnotify(cib, cib 963 tools/crm_mon.c cib->cmds->del_notify_callback(cib, T_CIB_DIFF_NOTIFY, cib 965 tools/crm_mon.c rc = pcmk_legacy2rc(cib->cmds->add_notify_callback(cib, cib 979 tools/crm_mon.c cib__clean_up_connection(&cib); cib 1028 tools/crm_mon.c CRM_CHECK(cib != NULL, return EINVAL); cib 1030 tools/crm_mon.c if (cib->state != cib_disconnected) { cib 1034 tools/crm_mon.c if (cib->variant == cib_native) { cib 1459 tools/crm_mon.c int rc = pcmk__status(out, cib, fence_history, show, show_opts, cib 1474 tools/crm_mon.c if (cib != NULL) { cib 1540 tools/crm_mon.c cib = cib_new(); cib 1544 tools/crm_mon.c switch (cib->variant) { cib 1607 tools/crm_mon.c cib_delete(cib); cib 1608 tools/crm_mon.c cib = NULL; cib 1610 tools/crm_mon.c cib = cib_new(); cib 1657 tools/crm_mon.c if (cib->variant == cib_file) { cib 1686 tools/crm_mon.c cib__set_output(cib, out); cib 2049 tools/crm_mon.c cib->cmds->query(cib, NULL, ¤t_cib, cib_scope_local | cib_sync_call); cib 2097 tools/crm_mon.c if (cib->variant == cib_native) { cib 2106 tools/crm_mon.c rc = pcmk__output_cluster_status(out, st, cib, current_cib, pcmkd_state, cib 2221 tools/crm_mon.c cib__clean_up_connection(&cib); cib 543 tools/crm_node.c remove_from_section(cib_t *cib, const char *element, const char *section, cib 557 tools/crm_node.c rc = cib->cmds->remove(cib, section, xml, cib_transaction); cib 577 tools/crm_node.c cib_t *cib = NULL; cib 580 tools/crm_node.c cib = cib_new(); cib 581 tools/crm_node.c if (cib == NULL) { cib 584 tools/crm_node.c rc = cib->cmds->signon(cib, crm_system_name, cib_command); cib 586 tools/crm_node.c rc = cib->cmds->init_transaction(cib); cib 590 tools/crm_node.c cib__clean_up_connection(&cib); cib 595 tools/crm_node.c rc = remove_from_section(cib, XML_CIB_TAG_NODE, XML_CIB_TAG_NODES, cib 598 tools/crm_node.c rc = remove_from_section(cib, XML_CIB_TAG_STATE, XML_CIB_TAG_STATUS, cib 603 tools/crm_node.c commit_rc = cib->cmds->end_transaction(cib, (rc == pcmk_rc_ok), cib 605 tools/crm_node.c cib__clean_up_connection(&cib); cib 92 tools/crm_resource.h int timeout_ms, cib_t *cib, int cib_options, cib 96 tools/crm_resource.h cib_t *cib, int cib_options, pcmk_scheduler_t *scheduler, cib 107 tools/crm_resource.h int timeout_ms, cib_t *cib, cib 116 tools/crm_resource.h cib_t *cib, int cib_options, gboolean force); cib 121 tools/crm_resource.h cib_t *cib, int cib_options, gboolean force); cib 124 tools/crm_resource.h int wait_till_stable(pcmk__output_t *out, int timeout_ms, cib_t * cib); cib 167 tools/crm_resource_runtime.c cib_t * cib, const char * cmd, int depth) cib 178 tools/crm_resource_runtime.c attr_id, attr_name, cib, cmd, depth+1); cib 185 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, XML_ATTR_ID, lookup_id, attr_set_type, cib 204 tools/crm_resource_runtime.c const char * attr_name, cib_t * cib, const char * cmd, cib 221 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, XML_ATTR_ID, rsc_id, attr_set_type, cib 238 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, XML_ATTR_ID, lookup_id, attr_set_type, cib 255 tools/crm_resource_runtime.c cib, cmd, 0); cib 265 tools/crm_resource_runtime.c cib_t *cib, int cib_options, gboolean force) cib 276 tools/crm_resource_runtime.c find_resource_attr(out, cib, XML_ATTR_ID, top_id, NULL, NULL, NULL, cib 282 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, XML_ATTR_ID, top_id, cib 303 tools/crm_resource_runtime.c CRM_ASSERT(cib != NULL); cib 304 tools/crm_resource_runtime.c rc = cib->cmds->replace(cib, XML_CIB_TAG_RESOURCES, rsc->xml, cib 316 tools/crm_resource_runtime.c attr_id, attr_name, cib, cib 344 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, XML_ATTR_ID, lookup_id, attr_set_type, cib 388 tools/crm_resource_runtime.c rc = cib->cmds->modify(cib, XML_CIB_TAG_RESOURCES, xml_top, cib 436 tools/crm_resource_runtime.c recursive, cib, cib_options, cib 451 tools/crm_resource_runtime.c cib_t *cib, int cib_options, gboolean force) cib 458 tools/crm_resource_runtime.c find_resource_attr(out, cib, XML_ATTR_ID, cib 466 tools/crm_resource_runtime.c attr_id, attr_name, cib, cib 471 tools/crm_resource_runtime.c CRM_ASSERT(cib != NULL); cib 472 tools/crm_resource_runtime.c rc = cib->cmds->replace(cib, XML_CIB_TAG_RESOURCES, rsc->xml, cib 493 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, XML_ATTR_ID, lookup_id, attr_set_type, cib 517 tools/crm_resource_runtime.c CRM_ASSERT(cib); cib 518 tools/crm_resource_runtime.c rc = cib->cmds->remove(cib, XML_CIB_TAG_RESOURCES, xml_obj, cib 1223 tools/crm_resource_runtime.c cib_t *cib) cib 1228 tools/crm_resource_runtime.c rc = cib->cmds->query(cib, NULL, &cib_xml_copy, cib_scope_local | cib_sync_call); cib 1247 tools/crm_resource_runtime.c update_dataset(cib_t *cib, pcmk_scheduler_t *scheduler, bool simulate) cib 1259 tools/crm_resource_runtime.c rc = update_scheduler_input_to_cib(out, scheduler, cib); cib 1441 tools/crm_resource_runtime.c int timeout_ms, cib_t *cib, int cib_options, cib 1549 tools/crm_resource_runtime.c rc = update_dataset(cib, scheduler, false); cib 1564 tools/crm_resource_runtime.c rc = cli_resource_ban(out, lookup_id, host, move_lifetime, cib, cib 1573 tools/crm_resource_runtime.c find_resource_attr(out, cib, XML_NVPAIR_ATTR_VALUE, lookup_id, NULL, NULL, cib 1577 tools/crm_resource_runtime.c PCMK_ACTION_STOPPED, FALSE, cib, cib 1593 tools/crm_resource_runtime.c rc = update_dataset(cib, scheduler, true); cib 1621 tools/crm_resource_runtime.c rc = update_dataset(cib, scheduler, FALSE); cib 1651 tools/crm_resource_runtime.c rc = cli_resource_clear(lookup_id, host, NULL, cib, cib_options, true, force); cib 1656 tools/crm_resource_runtime.c orig_target_role, FALSE, cib, cib 1662 tools/crm_resource_runtime.c NULL, XML_RSC_ATTR_TARGET_ROLE, cib, cib 1697 tools/crm_resource_runtime.c rc = update_dataset(cib, scheduler, false); cib 1732 tools/crm_resource_runtime.c cli_resource_clear(lookup_id, host, NULL, cib, cib_options, true, force); cib 1736 tools/crm_resource_runtime.c FALSE, cib, cib_options, force); cib 1740 tools/crm_resource_runtime.c NULL, XML_RSC_ATTR_TARGET_ROLE, cib, cib 1842 tools/crm_resource_runtime.c wait_till_stable(pcmk__output_t *out, int timeout_ms, cib_t * cib) cib 1874 tools/crm_resource_runtime.c rc = update_scheduler_input_to_cib(out, scheduler, cib); cib 2066 tools/crm_resource_runtime.c int timeout_ms, cib_t *cib, pcmk_scheduler_t *scheduler, cib 2129 tools/crm_resource_runtime.c const char *host_name, const char *move_lifetime, cib_t *cib, cib 2204 tools/crm_resource_runtime.c cli_resource_clear(rsc_id, NULL, scheduler->nodes, cib, cib_options, false, cib 2208 tools/crm_resource_runtime.c cli_resource_clear(rsc_id, dest->details->uname, scheduler->nodes, cib, cib 2213 tools/crm_resource_runtime.c cib, cib_options, promoted_role_only, cib 2227 tools/crm_resource_runtime.c cib, cib_options, promoted_role_only, cib 567 tools/crm_ticket.c modify_ticket_state(gchar *ticket_id, cib_t *cib, pcmk_scheduler_t *scheduler) 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);