cib 34 daemons/attrd/attrd_cib.c cib_t *cib = user_data; cib 36 daemons/attrd/attrd_cib.c cib->cmds->signoff(cib); cib 429 daemons/based/pacemaker-based.c xmlNode *cib = readCibXmlFile(cib_root, filename, !preserve_status); cib 431 daemons/based/pacemaker-based.c if (activateCibXml(cib, TRUE, "start") == 0) { cib 436 daemons/based/pacemaker-based.c cib_read_config(config_hash, cib); cib 438 daemons/based/pacemaker-based.c pcmk__scan_port(crm_element_value(cib, PCMK_XA_REMOTE_TLS_PORT), &port); cib 443 daemons/based/pacemaker-based.c pcmk__scan_port(crm_element_value(cib, PCMK_XA_REMOTE_CLEAR_PORT), cib 369 daemons/controld/controld_cib.c cib_t *cib = controld_globals.cib_conn; cib 374 daemons/controld/controld_cib.c pcmk__assert((uname != NULL) && (cib != NULL)); cib 380 daemons/controld/controld_cib.c cib_rc = cib->cmds->remove(cib, xpath, NULL, options); cib 415 daemons/controld/controld_cib.c cib_t *cib = controld_globals.cib_conn; cib 420 daemons/controld/controld_cib.c if (cib == NULL) { cib 429 daemons/controld/controld_cib.c cib->cmds->set_user(cib, user_name); cib 430 daemons/controld/controld_cib.c rc = cib->cmds->remove(cib, xpath, NULL, call_options|cib_xpath); cib 431 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 230 daemons/controld/controld_election.c cib = pcmk__xe_create(NULL, PCMK_XE_CIB); cib 231 daemons/controld/controld_election.c crm_xml_add(cib, PCMK_XA_CRM_FEATURE_SET, CRM_FEATURE_SET); cib 232 daemons/controld/controld_election.c controld_update_cib(PCMK_XE_CIB, cib, cib_none, feature_update_callback); cib 253 daemons/controld/controld_election.c free_xml(cib); cib 733 daemons/controld/controld_join_dc.c cib_t *cib = controld_globals.cib_conn; cib 782 daemons/controld/controld_join_dc.c rc = cib->cmds->init_transaction(cib); cib 793 daemons/controld/controld_join_dc.c rc = cib->cmds->remove(cib, xpath, NULL, cib 826 daemons/controld/controld_join_dc.c rc = cib->cmds->modify(cib, PCMK_XE_STATUS, state, cib 834 daemons/controld/controld_join_dc.c rc = cib->cmds->end_transaction(cib, true, cib_scope_local); cib 397 daemons/controld/controld_te_callbacks.c process_cib_diff(xmlNode *cib, xmlNode *change, const char *op, cib 400 daemons/controld/controld_te_callbacks.c xmlNode *status = pcmk__xe_first_child(cib, PCMK_XE_STATUS, NULL, NULL); cib 401 daemons/controld/controld_te_callbacks.c xmlNode *config = pcmk__xe_first_child(cib, PCMK_XE_CONFIGURATION, NULL, cib 136 daemons/execd/remoted_schemas.c cib_t *cib = NULL; cib 139 daemons/execd/remoted_schemas.c cib = cib_new(); cib 140 daemons/execd/remoted_schemas.c if (cib == NULL) { cib 144 daemons/execd/remoted_schemas.c rc = cib->cmds->signon(cib, crm_system_name, cib_query); cib 150 daemons/execd/remoted_schemas.c rc = cib->cmds->fetch_schemas(cib, &reply, pcmk__highest_schema_name(), cib 190 daemons/execd/remoted_schemas.c cib__clean_up_connection(&cib); cib 195 daemons/fenced/fenced_cib.c update_stonith_watchdog_timeout_ms(xmlNode *cib) cib 201 daemons/fenced/fenced_cib.c stonith_watchdog_xml = get_xpath_object(XPATH_WATCHDOG_TIMEOUT, cib, cib 210 daemons/fenced/fenced_scheduler.c fenced_scheduler_run(xmlNode *cib) cib 212 daemons/fenced/fenced_scheduler.c CRM_CHECK((cib != NULL) && (scheduler != NULL), return); cib 219 daemons/fenced/fenced_scheduler.c pcmk__schedule_actions(cib, pcmk_sched_location_only cib 295 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 50 include/crm/cib.h void cib_delete(cib_t * cib); cib 159 include/crm/cib/cib_types.h int (*signon) (cib_t *cib, const char *name, enum cib_conn_type type); cib 162 include/crm/cib/cib_types.h int (*signon_raw) (cib_t *cib, const char *name, enum cib_conn_type type, cib 166 include/crm/cib/cib_types.h int (*signoff) (cib_t *cib); cib 168 include/crm/cib/cib_types.h int (*free) (cib_t *cib); cib 171 include/crm/cib/cib_types.h int (*set_op_callback) (cib_t *cib, void (*callback) (const xmlNode *msg, cib 176 include/crm/cib/cib_types.h int (*add_notify_callback) (cib_t *cib, const char *event, cib 181 include/crm/cib/cib_types.h int (*del_notify_callback) (cib_t *cib, const char *event, cib 185 include/crm/cib/cib_types.h int (*set_connection_dnotify) (cib_t *cib, cib 189 include/crm/cib/cib_types.h int (*inputfd) (cib_t *cib); cib 193 include/crm/cib/cib_types.h int (*noop) (cib_t *cib, int call_options); cib 195 include/crm/cib/cib_types.h int (*ping) (cib_t *cib, xmlNode **output_data, int call_options); cib 198 include/crm/cib/cib_types.h int (*query) (cib_t *cib, const char *section, xmlNode **output_data, cib 201 include/crm/cib/cib_types.h int (*query_from) (cib_t *cib, const char *host, const char *section, cib 205 include/crm/cib/cib_types.h int (*is_master) (cib_t *cib); cib 208 include/crm/cib/cib_types.h int (*set_master) (cib_t *cib, int call_options); cib 211 include/crm/cib/cib_types.h int (*set_slave) (cib_t *cib, int call_options); cib 214 include/crm/cib/cib_types.h int (*set_slave_all) (cib_t *cib, int call_options); cib 216 include/crm/cib/cib_types.h int (*sync) (cib_t *cib, const char *section, int call_options); cib 217 include/crm/cib/cib_types.h int (*sync_from) (cib_t *cib, const char *host, const char *section, cib 219 include/crm/cib/cib_types.h int (*upgrade) (cib_t *cib, int call_options); cib 220 include/crm/cib/cib_types.h int (*bump_epoch) (cib_t *cib, int call_options); cib 226 include/crm/cib/cib_types.h int (*create) (cib_t *cib, const char *section, xmlNode *data, cib 228 include/crm/cib/cib_types.h int (*modify) (cib_t *cib, const char *section, xmlNode *data, cib 232 include/crm/cib/cib_types.h int (*update) (cib_t *cib, const char *section, xmlNode *data, cib 235 include/crm/cib/cib_types.h int (*replace) (cib_t *cib, const char *section, xmlNode *data, cib 237 include/crm/cib/cib_types.h int (*remove) (cib_t *cib, const char *section, xmlNode *data, cib 239 include/crm/cib/cib_types.h int (*erase) (cib_t *cib, xmlNode **output_data, int call_options); cib 242 include/crm/cib/cib_types.h int (*delete_absolute) (cib_t *cib, const char *section, xmlNode *data, cib 246 include/crm/cib/cib_types.h int (*quit) (cib_t *cib, int call_options); cib 248 include/crm/cib/cib_types.h int (*register_notification) (cib_t *cib, const char *callback, cib 250 include/crm/cib/cib_types.h gboolean (*register_callback) (cib_t *cib, int call_id, int timeout, cib 255 include/crm/cib/cib_types.h gboolean (*register_callback_full)(cib_t *cib, int call_id, int timeout, cib 270 include/crm/cib/cib_types.h int (*set_primary)(cib_t *cib, int call_options); cib 280 include/crm/cib/cib_types.h int (*set_secondary)(cib_t *cib, int call_options); cib 299 include/crm/cib/cib_types.h int (*client_id)(const cib_t *cib, const char **async_id, cib 336 include/crm/cib/cib_types.h int (*init_transaction)(cib_t *cib); cib 362 include/crm/cib/cib_types.h int (*end_transaction)(cib_t *cib, bool commit, int call_options); cib 374 include/crm/cib/cib_types.h void (*set_user)(cib_t *cib, const char *user); cib 376 include/crm/cib/cib_types.h int (*fetch_schemas)(cib_t *cib, xmlNode **output_data, const char *after_ver, cib 115 include/crm/cib/internal.h cib_t *cib; cib 172 include/crm/cib/internal.h int cib_perform_op(cib_t *cib, const char *op, uint32_t call_options, cib 178 include/crm/cib/internal.h int cib__create_op(cib_t *cib, const char *op, const char *host, cib 183 include/crm/cib/internal.h int cib__extend_transaction(cib_t *cib, xmlNode *request); cib 185 include/crm/cib/internal.h void cib_native_callback(cib_t * cib, xmlNode * msg, int call_id, int rc); cib 254 include/crm/cib/internal.h int cib_internal_op(cib_t * cib, const char *op, const char *host, cib 264 include/crm/cib/internal.h void cib__set_output(cib_t *cib, pcmk__output_t *out); cib 289 include/crm/cib/internal.h int cib__signon_query(pcmk__output_t *out, cib_t **cib, xmlNode **cib_object); cib 291 include/crm/cib/internal.h int cib__signon_attempts(cib_t *cib, const char *name, enum cib_conn_type type, cib 294 include/crm/cib/internal.h int cib__clean_up_connection(cib_t **cib); cib 296 include/crm/cib/internal.h int cib__update_node_attr(pcmk__output_t *out, cib_t *cib, int call_options, cib 302 include/crm/cib/internal.h int cib__get_node_attrs(pcmk__output_t *out, cib_t *cib, const char *section, cib 307 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 48 include/crm/cib/util_compat.h xmlNode *cib_get_generation(cib_t *cib); cib 115 include/crm/cluster/compat.h void crm_remote_peer_cache_refresh(xmlNode *cib); cib 192 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 185 include/crm/common/nodes.h const char *pcmk_cib_node_shutdown(xmlNode *cib, const char *node); cib 287 include/crm/common/scheduler.h int pcmk_set_scheduler_cib(pcmk_scheduler_t *scheduler, xmlNode *cib); cib 173 include/crm/compatibility.h #define add_cib_op_callback(cib, id, flag, data, fn) do { \ cib 174 include/crm/compatibility.h cib->cmds->register_callback(cib, id, 120, flag, data, #fn, fn); \ cib 18 include/pcmki/pcmki_resource.h int pcmk__resource_delete(cib_t *cib, uint32_t cib_opts, const char *rsc_id, 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 30 include/pcmki/pcmki_ticket.h int pcmk__get_ticket_state(cib_t *cib, const char *ticket_id, xmlNode **state); cib 43 include/pcmki/pcmki_ticket.h int pcmk__ticket_constraints(pcmk__output_t *out, cib_t *cib, const char *ticket_id); cib 58 include/pcmki/pcmki_ticket.h int pcmk__ticket_delete(pcmk__output_t *out, cib_t *cib, pcmk_scheduler_t *scheduler, cib 113 include/pcmki/pcmki_ticket.h int pcmk__ticket_remove_attr(pcmk__output_t *out, cib_t *cib, pcmk_scheduler_t *scheduler, cib 135 include/pcmki/pcmki_ticket.h int pcmk__ticket_set_attr(pcmk__output_t *out, cib_t *cib, pcmk_scheduler_t *scheduler, cib 152 include/pcmki/pcmki_ticket.h int pcmk__ticket_state(pcmk__output_t *out, cib_t *cib, const char *ticket_id); cib 53 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 164 lib/cib/cib_attrs.c cib__update_node_attr(pcmk__output_t *out, cib_t *cib, int call_options, const char *section, cib 178 lib/cib/cib_attrs.c CRM_CHECK((out != NULL) && (cib != NULL) && (section != NULL) cib 182 lib/cib/cib_attrs.c rc = find_attr(cib, section, node_uuid, set_type, set_name, attr_id, cib 319 lib/cib/cib_attrs.c rc = cib_internal_op(cib, PCMK__CIB_REQUEST_MODIFY, NULL, section, xml_top, cib 322 lib/cib/cib_attrs.c if (!pcmk_is_set(call_options, cib_sync_call) && (cib->variant != cib_file) cib 345 lib/cib/cib_attrs.c cib__get_node_attrs(pcmk__output_t *out, cib_t *cib, const char *section, cib 357 lib/cib/cib_attrs.c rc = find_attr(cib, section, node_uuid, set_type, set_name, attr_id, attr_name, cib 371 lib/cib/cib_attrs.c cib__delete_node_attr(pcmk__output_t *out, cib_t *cib, int options, const char *section, cib 385 lib/cib/cib_attrs.c rc = find_attr(cib, section, node_uuid, set_type, set_name, attr_id, cib 400 lib/cib/cib_attrs.c rc = cib_internal_op(cib, PCMK__CIB_REQUEST_DELETE, NULL, section, xml_obj, cib 403 lib/cib/cib_attrs.c if (!pcmk_is_set(options, cib_sync_call) && (cib->variant != cib_file) cib 423 lib/cib/cib_attrs.c find_nvpair_attr_delegate(cib_t *cib, const char *attr, const char *section, cib 437 lib/cib/cib_attrs.c rc = find_attr(cib, section, node_uuid, attr_set_type, set_name, attr_id, cib 455 lib/cib/cib_attrs.c update_attr_delegate(cib_t *cib, int call_options, const char *section, cib 468 lib/cib/cib_attrs.c rc = cib__update_node_attr(out, cib, call_options, section, node_uuid, set_type, cib 478 lib/cib/cib_attrs.c read_attr_delegate(cib_t *cib, const char *section, const char *node_uuid, cib 492 lib/cib/cib_attrs.c rc = cib__get_node_attrs(out, cib, section, node_uuid, set_type, set_name, cib 511 lib/cib/cib_attrs.c delete_attr_delegate(cib_t *cib, int options, const char *section, const char *node_uuid, cib 524 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 cib_client_set_op_callback(cib_t *cib, cib 40 lib/cib/cib_client.c cib->op_callback = callback; cib 69 lib/cib/cib_client.c cib_client_add_notify_callback(cib_t * cib, const char *event, cib 76 lib/cib/cib_client.c if ((cib->variant != cib_native) && (cib->variant != cib_remote)) { cib 81 lib/cib/cib_client.c event, g_list_length(cib->notify_list)); cib 87 lib/cib/cib_client.c list_item = g_list_find_custom(cib->notify_list, new_client, cib 96 lib/cib/cib_client.c cib->notify_list = g_list_append(cib->notify_list, new_client); cib 98 lib/cib/cib_client.c cib->cmds->register_notification(cib, event, 1); cib 100 lib/cib/cib_client.c crm_trace("Callback added (%d)", g_list_length(cib->notify_list)); cib 106 lib/cib/cib_client.c get_notify_list_event_count(cib_t *cib, const char *event) cib 110 lib/cib/cib_client.c for (GList *iter = g_list_first(cib->notify_list); iter != NULL; cib 123 lib/cib/cib_client.c cib_client_del_notify_callback(cib_t *cib, const char *event, cib 130 lib/cib/cib_client.c if (cib->variant != cib_native && cib->variant != cib_remote) { cib 134 lib/cib/cib_client.c if (get_notify_list_event_count(cib, event) == 0) { cib 145 lib/cib/cib_client.c list_item = g_list_find_custom(cib->notify_list, new_client, ciblib_GCompareFunc); cib 150 lib/cib/cib_client.c cib->notify_list = g_list_remove(cib->notify_list, list_client); cib 159 lib/cib/cib_client.c if (get_notify_list_event_count(cib, event) == 0) { cib 161 lib/cib/cib_client.c cib->cmds->register_notification(cib, event, 0); cib 175 lib/cib/cib_client.c cib_native_callback(timer->cib, NULL, timer->call_id, -ETIME); cib 182 lib/cib/cib_client.c cib_client_register_callback_full(cib_t *cib, int call_id, int timeout, cib 216 lib/cib/cib_client.c async_timer->cib = cib; cib 231 lib/cib/cib_client.c cib_client_register_callback(cib_t *cib, int call_id, int timeout, cib 237 lib/cib/cib_client.c return cib_client_register_callback_full(cib, call_id, timeout, cib 243 lib/cib/cib_client.c cib_client_noop(cib_t * cib, int call_options) cib 245 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_NOOP, NULL, NULL, NULL, NULL, cib 246 lib/cib/cib_client.c call_options, cib->user); cib 250 lib/cib/cib_client.c cib_client_ping(cib_t * cib, xmlNode ** output_data, int call_options) cib 252 lib/cib/cib_client.c return cib_internal_op(cib, CRM_OP_PING, NULL, NULL, NULL, output_data, cib 253 lib/cib/cib_client.c call_options, cib->user); cib 257 lib/cib/cib_client.c cib_client_query(cib_t * cib, const char *section, xmlNode ** output_data, int call_options) cib 259 lib/cib/cib_client.c return cib->cmds->query_from(cib, NULL, section, output_data, call_options); cib 263 lib/cib/cib_client.c cib_client_query_from(cib_t * cib, const char *host, const char *section, cib 266 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_QUERY, host, section, NULL, cib 267 lib/cib/cib_client.c output_data, call_options, cib->user); cib 271 lib/cib/cib_client.c is_primary(cib_t *cib) cib 273 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_IS_PRIMARY, NULL, NULL, NULL, cib 274 lib/cib/cib_client.c NULL, cib_scope_local|cib_sync_call, cib->user); cib 278 lib/cib/cib_client.c set_secondary(cib_t *cib, int call_options) cib 280 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_SECONDARY, NULL, NULL, NULL, cib 281 lib/cib/cib_client.c NULL, call_options, cib->user); cib 285 lib/cib/cib_client.c set_all_secondary(cib_t * cib, int call_options) cib 291 lib/cib/cib_client.c set_primary(cib_t *cib, int call_options) cib 294 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_PRIMARY, NULL, NULL, NULL, cib 295 lib/cib/cib_client.c NULL, call_options|cib_scope_local, cib->user); cib 299 lib/cib/cib_client.c cib_client_bump_epoch(cib_t * cib, int call_options) cib 301 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_BUMP, NULL, NULL, NULL, NULL, cib 302 lib/cib/cib_client.c call_options, cib->user); cib 306 lib/cib/cib_client.c cib_client_upgrade(cib_t * cib, int call_options) cib 308 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_UPGRADE, NULL, NULL, NULL, cib 309 lib/cib/cib_client.c NULL, call_options, cib->user); cib 313 lib/cib/cib_client.c cib_client_sync(cib_t * cib, const char *section, int call_options) cib 315 lib/cib/cib_client.c return cib->cmds->sync_from(cib, NULL, section, call_options); cib 319 lib/cib/cib_client.c cib_client_sync_from(cib_t * cib, const char *host, const char *section, int call_options) cib 321 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_SYNC_TO_ALL, host, section, cib 322 lib/cib/cib_client.c NULL, NULL, call_options, cib->user); cib 326 lib/cib/cib_client.c cib_client_create(cib_t * cib, const char *section, xmlNode * data, int call_options) cib 328 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_CREATE, NULL, section, data, cib 329 lib/cib/cib_client.c NULL, call_options, cib->user); cib 333 lib/cib/cib_client.c cib_client_modify(cib_t * cib, const char *section, xmlNode * data, int call_options) cib 335 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_MODIFY, NULL, section, data, cib 336 lib/cib/cib_client.c NULL, call_options, cib->user); cib 340 lib/cib/cib_client.c cib_client_replace(cib_t * cib, const char *section, xmlNode * data, int call_options) cib 342 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_REPLACE, NULL, section, data, cib 343 lib/cib/cib_client.c NULL, call_options, cib->user); cib 347 lib/cib/cib_client.c cib_client_delete(cib_t * cib, const char *section, xmlNode * data, int call_options) cib 349 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_DELETE, NULL, section, data, cib 350 lib/cib/cib_client.c NULL, call_options, cib->user); cib 354 lib/cib/cib_client.c cib_client_delete_absolute(cib_t * cib, const char *section, xmlNode * data, int call_options) cib 356 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_ABS_DELETE, NULL, section, cib 357 lib/cib/cib_client.c data, NULL, call_options, cib->user); cib 361 lib/cib/cib_client.c cib_client_erase(cib_t * cib, xmlNode ** output_data, int call_options) cib 363 lib/cib/cib_client.c return cib_internal_op(cib, PCMK__CIB_REQUEST_ERASE, NULL, NULL, NULL, cib 364 lib/cib/cib_client.c output_data, call_options, cib->user); cib 368 lib/cib/cib_client.c cib_client_init_transaction(cib_t *cib) cib 372 lib/cib/cib_client.c if (cib == NULL) { cib 376 lib/cib/cib_client.c if (cib->transaction != NULL) { cib 382 lib/cib/cib_client.c cib->transaction = pcmk__xe_create(NULL, PCMK__XE_CIB_TRANSACTION); cib 388 lib/cib/cib_client.c cib->cmds->client_id(cib, NULL, &client_id); cib 396 lib/cib/cib_client.c cib_client_end_transaction(cib_t *cib, bool commit, int call_options) cib 401 lib/cib/cib_client.c if (cib == NULL) { cib 405 lib/cib/cib_client.c cib->cmds->client_id(cib, NULL, &client_id); cib 409 lib/cib/cib_client.c if (cib->transaction == NULL) { cib 416 lib/cib/cib_client.c rc = cib_internal_op(cib, PCMK__CIB_REQUEST_COMMIT_TRANSACT, NULL, NULL, cib 417 lib/cib/cib_client.c cib->transaction, NULL, call_options, cib->user); cib 421 lib/cib/cib_client.c if (cib->transaction != NULL) { cib 427 lib/cib/cib_client.c free_xml(cib->transaction); cib 428 lib/cib/cib_client.c cib->transaction = NULL; cib 433 lib/cib/cib_client.c cib_client_fetch_schemas(cib_t *cib, xmlNode **output_data, const char *after_ver, cib 441 lib/cib/cib_client.c rc = cib_internal_op(cib, PCMK__CIB_REQUEST_SCHEMAS, NULL, NULL, data, cib 448 lib/cib/cib_client.c cib_client_set_user(cib_t *cib, const char *user) cib 450 lib/cib/cib_client.c pcmk__str_update(&(cib->user), user); cib 570 lib/cib/cib_client.c cib_t *cib = NULL; cib 573 lib/cib/cib_client.c cib = cib_new(); cib 578 lib/cib/cib_client.c return cib; cib 736 lib/cib/cib_client.c cib_free_notify(cib_t *cib) cib 739 lib/cib/cib_client.c if (cib) { cib 740 lib/cib/cib_client.c GList *list = cib->notify_list; cib 748 lib/cib/cib_client.c cib->notify_list = NULL; cib 758 lib/cib/cib_client.c cib_free_callbacks(cib_t *cib) cib 760 lib/cib/cib_client.c cib_free_notify(cib); cib 771 lib/cib/cib_client.c cib_delete(cib_t *cib) cib 773 lib/cib/cib_client.c cib_free_callbacks(cib); cib 774 lib/cib/cib_client.c if (cib) { cib 775 lib/cib/cib_client.c cib->cmds->free(cib); cib 68 lib/cib/cib_file.c register_client(const cib_t *cib) cib 70 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; cib 75 lib/cib/cib_file.c g_hash_table_insert(client_table, private->id, (gpointer) cib); cib 85 lib/cib/cib_file.c unregister_client(const cib_t *cib) cib 87 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; cib 213 lib/cib/cib_file.c cib_file_process_request(cib_t *cib, xmlNode *request, xmlNode **output) cib 232 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; cib 253 lib/cib/cib_file.c rc = cib_perform_op(cib, op, call_options, op_function, read_only, section, cib 279 lib/cib/cib_file.c if (cib->op_callback != NULL) { cib 280 lib/cib/cib_file.c cib->op_callback(NULL, call_id, rc, *output); cib 292 lib/cib/cib_file.c cib_file_perform_op_delegate(cib_t *cib, const char *op, const char *host, cib 300 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; cib 312 lib/cib/cib_file.c if (cib->state == cib_disconnected) { cib 331 lib/cib/cib_file.c rc = cib__create_op(cib, op, host, section, data, call_options, user_name, cib 340 lib/cib/cib_file.c rc = cib__extend_transaction(cib, request); cib 344 lib/cib/cib_file.c rc = cib_file_process_request(cib, request, &output); cib 417 lib/cib/cib_file.c cib_file_signon(cib_t *cib, const char *name, enum cib_conn_type type) cib 420 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; cib 431 lib/cib/cib_file.c cib->state = cib_connected_command; cib 432 lib/cib/cib_file.c cib->type = cib_command; cib 433 lib/cib/cib_file.c register_client(cib); cib 534 lib/cib/cib_file.c cib_file_signoff(cib_t *cib) cib 537 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; cib 540 lib/cib/cib_file.c cib->state = cib_disconnected; cib 541 lib/cib/cib_file.c cib->type = cib_no_connection; cib 542 lib/cib/cib_file.c unregister_client(cib); cib 543 lib/cib/cib_file.c cib->cmds->end_transaction(cib, false, cib_none); cib 579 lib/cib/cib_file.c cib_file_free(cib_t *cib) cib 583 lib/cib/cib_file.c if (cib->state != cib_disconnected) { cib 584 lib/cib/cib_file.c rc = cib_file_signoff(cib); cib 588 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; cib 593 lib/cib/cib_file.c free(cib->cmds); cib 594 lib/cib/cib_file.c free(cib->user); cib 595 lib/cib/cib_file.c free(cib); cib 605 lib/cib/cib_file.c cib_file_inputfd(cib_t *cib) cib 611 lib/cib/cib_file.c cib_file_register_notification(cib_t *cib, const char *callback, int enabled) cib 617 lib/cib/cib_file.c cib_file_set_connection_dnotify(cib_t *cib, cib 637 lib/cib/cib_file.c cib_file_client_id(const cib_t *cib, const char **async_id, cib 640 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; cib 654 lib/cib/cib_file.c cib_t *cib = NULL; cib 665 lib/cib/cib_file.c cib = cib_new_variant(); cib 666 lib/cib/cib_file.c if (cib == NULL) { cib 672 lib/cib/cib_file.c free(cib); cib 678 lib/cib/cib_file.c free(cib); cib 686 lib/cib/cib_file.c cib->variant = cib_file; cib 687 lib/cib/cib_file.c cib->variant_opaque = private; cib 696 lib/cib/cib_file.c cib->delegate_fn = cib_file_perform_op_delegate; cib 697 lib/cib/cib_file.c cib->cmds->signon = cib_file_signon; cib 698 lib/cib/cib_file.c cib->cmds->signoff = cib_file_signoff; cib 699 lib/cib/cib_file.c cib->cmds->free = cib_file_free; cib 700 lib/cib/cib_file.c cib->cmds->inputfd = cib_file_inputfd; // Deprecated method cib 702 lib/cib/cib_file.c cib->cmds->register_notification = cib_file_register_notification; cib 703 lib/cib/cib_file.c cib->cmds->set_connection_dnotify = cib_file_set_connection_dnotify; cib 705 lib/cib/cib_file.c cib->cmds->client_id = cib_file_client_id; cib 707 lib/cib/cib_file.c return cib; cib 1074 lib/cib/cib_file.c cib_file_process_transaction_requests(cib_t *cib, xmlNode *transaction) cib 1076 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; cib 1086 lib/cib/cib_file.c int rc = cib_file_process_request(cib, request, &output); cib 1121 lib/cib/cib_file.c cib_file_commit_transaction(cib_t *cib, xmlNode *transaction, cib 1125 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; cib 1148 lib/cib/cib_file.c rc = cib_file_process_transaction_requests(cib, transaction); cib 1176 lib/cib/cib_file.c cib_t *cib = NULL; cib 1180 lib/cib/cib_file.c cib = get_client(client_id); cib 1181 lib/cib/cib_file.c CRM_CHECK(cib != NULL, return -EINVAL); cib 1183 lib/cib/cib_file.c rc = cib_file_commit_transaction(cib, input, result_cib); cib 1185 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, cib 99 lib/cib/cib_native.c rc = cib->call_id; cib 105 lib/cib/cib_native.c if (reply_id == cib->call_id) { cib 128 lib/cib/cib_native.c crm_err("Received bad reply: %d (wanted %d)", reply_id, cib->call_id); cib 134 lib/cib/cib_native.c if (op_reply == NULL && cib->state == cib_disconnected) { cib 169 lib/cib/cib_native.c cib->state = cib_disconnected; cib 184 lib/cib/cib_native.c cib_t *cib = userdata; cib 188 lib/cib/cib_native.c if (cib == NULL) { cib 206 lib/cib/cib_native.c cib_native_callback(cib, msg, 0, 0); cib 209 lib/cib/cib_native.c g_list_foreach(cib->notify_list, cib_native_notify, msg); cib 222 lib/cib/cib_native.c cib_t *cib = userdata; cib 223 lib/cib/cib_native.c cib_native_opaque_t *native = cib->variant_opaque; cib 226 lib/cib/cib_native.c cib->state = cib_disconnected; cib 236 lib/cib/cib_native.c cib_native_signoff(cib_t *cib) cib 238 lib/cib/cib_native.c cib_native_opaque_t *native = cib->variant_opaque; cib 242 lib/cib/cib_native.c cib_free_notify(cib); cib 260 lib/cib/cib_native.c cib->cmds->end_transaction(cib, false, cib_none); cib 261 lib/cib/cib_native.c cib->state = cib_disconnected; cib 262 lib/cib/cib_native.c cib->type = cib_no_connection; cib 268 lib/cib/cib_native.c cib_native_signon_raw(cib_t *cib, const char *name, enum cib_conn_type type, cib 273 lib/cib/cib_native.c cib_native_opaque_t *native = cib->variant_opaque; cib 281 lib/cib/cib_native.c cib->call_timeout = PCMK__IPC_TIMEOUT; cib 284 lib/cib/cib_native.c cib->state = cib_connected_command; cib 288 lib/cib/cib_native.c cib->state = cib_connected_command; cib 292 lib/cib/cib_native.c cib->state = cib_connected_query; cib 317 lib/cib/cib_native.c mainloop_add_ipc_client(channel, G_PRIORITY_HIGH, 512 * 1024 /* 512k */ , cib, cib 328 lib/cib/cib_native.c rc = cib__create_op(cib, CRM_OP_REGISTER, NULL, NULL, NULL, cib 369 lib/cib/cib_native.c cib_native_signoff(cib); cib 374 lib/cib/cib_native.c cib_native_signon(cib_t *cib, const char *name, enum cib_conn_type type) cib 376 lib/cib/cib_native.c return cib_native_signon_raw(cib, name, type, NULL); cib 380 lib/cib/cib_native.c cib_native_free(cib_t *cib) cib 384 lib/cib/cib_native.c if (cib->state != cib_disconnected) { cib 385 lib/cib/cib_native.c rc = cib_native_signoff(cib); cib 388 lib/cib/cib_native.c if (cib->state == cib_disconnected) { cib 389 lib/cib/cib_native.c cib_native_opaque_t *native = cib->variant_opaque; cib 392 lib/cib/cib_native.c free(cib->variant_opaque); cib 393 lib/cib/cib_native.c free(cib->cmds); cib 394 lib/cib/cib_native.c free(cib->user); cib 395 lib/cib/cib_native.c free(cib); cib 402 lib/cib/cib_native.c cib_native_register_notification(cib_t *cib, const char *callback, int enabled) cib 406 lib/cib/cib_native.c cib_native_opaque_t *native = cib->variant_opaque; cib 408 lib/cib/cib_native.c if (cib->state != cib_disconnected) { cib 413 lib/cib/cib_native.c 1000 * cib->call_timeout, NULL); cib 425 lib/cib/cib_native.c cib_native_set_connection_dnotify(cib_t *cib, cib 430 lib/cib/cib_native.c if (cib == NULL) { cib 435 lib/cib/cib_native.c native = cib->variant_opaque; cib 460 lib/cib/cib_native.c cib_native_client_id(const cib_t *cib, const char **async_id, cib 463 lib/cib/cib_native.c cib_native_opaque_t *native = cib->variant_opaque; cib 478 lib/cib/cib_native.c cib_t *cib = cib_new_variant(); cib 480 lib/cib/cib_native.c if (cib == NULL) { cib 487 lib/cib/cib_native.c free(cib); cib 491 lib/cib/cib_native.c cib->variant = cib_native; cib 492 lib/cib/cib_native.c cib->variant_opaque = native; cib 499 lib/cib/cib_native.c cib->delegate_fn = cib_native_perform_op_delegate; cib 500 lib/cib/cib_native.c cib->cmds->signon = cib_native_signon; cib 501 lib/cib/cib_native.c cib->cmds->signon_raw = cib_native_signon_raw; cib 502 lib/cib/cib_native.c cib->cmds->signoff = cib_native_signoff; cib 503 lib/cib/cib_native.c cib->cmds->free = cib_native_free; cib 505 lib/cib/cib_native.c cib->cmds->register_notification = cib_native_register_notification; cib 506 lib/cib/cib_native.c cib->cmds->set_connection_dnotify = cib_native_set_connection_dnotify; cib 508 lib/cib/cib_native.c cib->cmds->client_id = cib_native_client_id; cib 510 lib/cib/cib_native.c return cib; cib 59 lib/cib/cib_remote.c cib_remote_perform_op(cib_t *cib, const char *op, const char *host, cib 71 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; cib 73 lib/cib/cib_remote.c if (cib->state == cib_disconnected) { cib 86 lib/cib/cib_remote.c rc = cib__create_op(cib, op, host, section, data, call_options, user_name, cib 93 lib/cib/cib_remote.c rc = cib__extend_transaction(cib, op_msg); cib 111 lib/cib/cib_remote.c return cib->call_id; cib 117 lib/cib/cib_remote.c remaining_time = cib->call_timeout ? cib->call_timeout : 60; cib 122 lib/cib/cib_remote.c int msg_id = cib->call_id; cib 193 lib/cib/cib_remote.c crm_trace("No output in reply to \"%s\" command %d", op, cib->call_id - 1); cib 208 lib/cib/cib_remote.c cib_t *cib = user_data; cib 209 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; cib 257 lib/cib/cib_remote.c cib_native_callback(cib, msg, 0, 0); cib 259 lib/cib/cib_remote.c g_list_foreach(cib->notify_list, cib_native_notify, msg); cib 273 lib/cib/cib_remote.c cib_t *cib = user_data; cib 274 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; cib 309 lib/cib/cib_remote.c cib_tls_close(cib_t *cib) cib 311 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; cib 365 lib/cib/cib_remote.c cib_tls_signon(cib_t *cib, pcmk__remote_t *connection, gboolean event_channel) cib 367 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; cib 408 lib/cib/cib_remote.c cib_tls_close(cib); cib 421 lib/cib/cib_remote.c cib_tls_close(cib); cib 471 lib/cib/cib_remote.c cib_tls_close(cib); cib 478 lib/cib/cib_remote.c connection->tcp_socket, cib, cib 484 lib/cib/cib_remote.c cib_remote_signon(cib_t *cib, const char *name, enum cib_conn_type type) cib 487 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; cib 506 lib/cib/cib_remote.c rc = cib_tls_signon(cib, &(private->command), FALSE); cib 510 lib/cib/cib_remote.c rc = cib_tls_signon(cib, &(private->callback), TRUE); cib 514 lib/cib/cib_remote.c rc = cib__create_op(cib, CRM_OP_REGISTER, NULL, NULL, NULL, cib_none, cib 527 lib/cib/cib_remote.c cib->state = cib_connected_command; cib 528 lib/cib/cib_remote.c cib->type = cib_command; cib 539 lib/cib/cib_remote.c cib_remote_signoff(cib_t *cib) cib 545 lib/cib/cib_remote.c cib_tls_close(cib); cib 548 lib/cib/cib_remote.c cib->cmds->end_transaction(cib, false, cib_none); cib 549 lib/cib/cib_remote.c cib->state = cib_disconnected; cib 550 lib/cib/cib_remote.c cib->type = cib_no_connection; cib 556 lib/cib/cib_remote.c cib_remote_free(cib_t *cib) cib 561 lib/cib/cib_remote.c if (cib->state != cib_disconnected) { cib 562 lib/cib/cib_remote.c rc = cib_remote_signoff(cib); cib 564 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; cib 569 lib/cib/cib_remote.c free(cib->cmds); cib 570 lib/cib/cib_remote.c free(cib->user); cib 572 lib/cib/cib_remote.c free(cib); cib 580 lib/cib/cib_remote.c cib_remote_inputfd(cib_t * cib) cib 582 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; cib 588 lib/cib/cib_remote.c cib_remote_register_notification(cib_t * cib, const char *callback, int enabled) cib 591 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; cib 602 lib/cib/cib_remote.c cib_remote_set_connection_dnotify(cib_t * cib, void (*dnotify) (gpointer user_data)) cib 625 lib/cib/cib_remote.c cib_remote_client_id(const cib_t *cib, const char **async_id, cib 628 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; cib 646 lib/cib/cib_remote.c cib_t *cib = cib_new_variant(); cib 648 lib/cib/cib_remote.c if (cib == NULL) { cib 655 lib/cib/cib_remote.c free(cib); cib 659 lib/cib/cib_remote.c cib->variant = cib_remote; cib 660 lib/cib/cib_remote.c cib->variant_opaque = private; cib 669 lib/cib/cib_remote.c cib->delegate_fn = cib_remote_perform_op; cib 670 lib/cib/cib_remote.c cib->cmds->signon = cib_remote_signon; cib 671 lib/cib/cib_remote.c cib->cmds->signoff = cib_remote_signoff; cib 672 lib/cib/cib_remote.c cib->cmds->free = cib_remote_free; cib 673 lib/cib/cib_remote.c cib->cmds->inputfd = cib_remote_inputfd; // Deprecated method cib 675 lib/cib/cib_remote.c cib->cmds->register_notification = cib_remote_register_notification; cib 676 lib/cib/cib_remote.c cib->cmds->set_connection_dnotify = cib_remote_set_connection_dnotify; cib 678 lib/cib/cib_remote.c cib->cmds->client_id = cib_remote_client_id; cib 680 lib/cib/cib_remote.c return cib; cib 684 lib/cib/cib_remote.c cib__set_output(cib_t *cib, pcmk__output_t *out) cib 688 lib/cib/cib_remote.c if (cib->variant != cib_remote) { cib 692 lib/cib/cib_remote.c private = cib->variant_opaque; cib 28 lib/cib/cib_utils.c cib_version_details(xmlNode * cib, int *admin_epoch, int *epoch, int *updates) cib 34 lib/cib/cib_utils.c if (cib == NULL) { cib 38 lib/cib/cib_utils.c crm_element_value_int(cib, PCMK_XA_EPOCH, epoch); cib 39 lib/cib/cib_utils.c crm_element_value_int(cib, PCMK_XA_NUM_UPDATES, updates); cib 40 lib/cib/cib_utils.c crm_element_value_int(cib, PCMK_XA_ADMIN_EPOCH, admin_epoch); cib 332 lib/cib/cib_utils.c cib_perform_op(cib_t *cib, const char *op, uint32_t call_options, cib 465 lib/cib/cib_utils.c if (scratch && (cib == NULL || cib->variant != cib_file)) { cib 661 lib/cib/cib_utils.c cib__create_op(cib_t *cib, const char *op, const char *host, cib 666 lib/cib/cib_utils.c CRM_CHECK((cib != NULL) && (op_msg != NULL), return -EPROTO); cib 670 lib/cib/cib_utils.c cib->call_id++; cib 671 lib/cib/cib_utils.c if (cib->call_id < 1) { cib 672 lib/cib/cib_utils.c cib->call_id = 1; cib 681 lib/cib/cib_utils.c crm_xml_add_int(*op_msg, PCMK__XA_CIB_CALLID, cib->call_id); cib 744 lib/cib/cib_utils.c cib__extend_transaction(cib_t *cib, xmlNode *request) cib 748 lib/cib/cib_utils.c pcmk__assert((cib != NULL) && (request != NULL)); cib 752 lib/cib/cib_utils.c if ((rc == pcmk_rc_ok) && (cib->transaction == NULL)) { cib 757 lib/cib/cib_utils.c pcmk__xml_copy(cib->transaction, request); cib 763 lib/cib/cib_utils.c cib->cmds->client_id(cib, NULL, &client_id); cib 772 lib/cib/cib_utils.c cib_native_callback(cib_t * cib, xmlNode * msg, int call_id, int rc) cib 792 lib/cib/cib_utils.c if (cib == NULL) { cib 806 lib/cib/cib_utils.c } else if (cib && cib->op_callback == NULL && rc != pcmk_ok) { cib 816 lib/cib/cib_utils.c if (cib && cib->op_callback != NULL) { cib 818 lib/cib/cib_utils.c cib->op_callback(msg, call_id, rc, output); cib 884 lib/cib/cib_utils.c cib_internal_op(cib_t * cib, const char *op, const char *host, cib 888 lib/cib/cib_utils.c int (*delegate)(cib_t *cib, const char *op, const char *host, cib 892 lib/cib/cib_utils.c if (cib == NULL) { cib 896 lib/cib/cib_utils.c delegate = cib->delegate_fn; cib 903 lib/cib/cib_utils.c return delegate(cib, op, host, section, data, output_data, call_options, user_name); cib 970 lib/cib/cib_utils.c cib__signon_query(pcmk__output_t *out, cib_t **cib, xmlNode **cib_object) cib 977 lib/cib/cib_utils.c if (cib == NULL) { cib 980 lib/cib/cib_utils.c if (*cib == NULL) { cib 981 lib/cib/cib_utils.c *cib = cib_new(); cib 983 lib/cib/cib_utils.c cib_conn = *cib; cib 1013 lib/cib/cib_utils.c if (cib == NULL) { cib 1024 lib/cib/cib_utils.c cib__signon_attempts(cib_t *cib, const char *name, enum cib_conn_type type, cib 1033 lib/cib/cib_utils.c rc = cib->cmds->signon(cib, name, type); cib 1051 lib/cib/cib_utils.c cib__clean_up_connection(cib_t **cib) cib 1055 lib/cib/cib_utils.c if (*cib == NULL) { cib 1059 lib/cib/cib_utils.c rc = (*cib)->cmds->signoff(*cib); cib 1060 lib/cib/cib_utils.c cib_delete(*cib); cib 1061 lib/cib/cib_utils.c *cib = NULL; cib 1071 lib/cib/cib_utils.c cib_get_generation(cib_t * cib) cib 1076 lib/cib/cib_utils.c cib->cmds->query(cib, NULL, &the_cib, cib_scope_local | cib_sync_call); cib 298 lib/cluster/membership.c refresh_remote_nodes(xmlNode *cib) cib 313 lib/cluster/membership.c crm_foreach_xpath_result(cib, PCMK__XP_REMOTE_NODE_STATUS, cib 324 lib/cluster/membership.c crm_foreach_xpath_result(cib, PCMK__XP_GUEST_NODE_CONFIG, cib 328 lib/cluster/membership.c crm_foreach_xpath_result(cib, PCMK__XP_REMOTE_NODE_CONFIG, cib 1425 lib/cluster/membership.c refresh_cluster_node_cib_cache(xmlNode *cib) cib 1431 lib/cluster/membership.c crm_foreach_xpath_result(cib, PCMK__XP_MEMBER_NODE_CONFIG, cib 1439 lib/cluster/membership.c pcmk__refresh_node_caches_from_cib(xmlNode *cib) cib 1441 lib/cluster/membership.c refresh_remote_nodes(cib); cib 1442 lib/cluster/membership.c refresh_cluster_node_cib_cache(cib); cib 1483 lib/cluster/membership.c crm_remote_peer_cache_refresh(xmlNode *cib) cib 1485 lib/cluster/membership.c refresh_remote_nodes(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 147 lib/common/ipc_schedulerd.c do_schedulerd_api_call(pcmk_ipc_api_t *api, const char *task, xmlNode *cib, char **ref) cib 160 lib/common/ipc_schedulerd.c cmd = create_request(task, cib, NULL, CRM_SYSTEM_PENGINE, cib 181 lib/common/ipc_schedulerd.c pcmk_schedulerd_api_graph(pcmk_ipc_api_t *api, xmlNode *cib, char **ref) cib 183 lib/common/ipc_schedulerd.c return do_schedulerd_api_call(api, CRM_OP_PECALC, cib, ref); cib 181 lib/common/nodes.c pcmk_cib_node_shutdown(xmlNode *cib, const char *node) cib 183 lib/common/nodes.c if ((cib != NULL) && (node != NULL)) { cib 185 lib/common/nodes.c xmlNode *match = get_xpath_object(xpath, cib, LOG_TRACE); cib 183 lib/common/patchset.c xmlNode *cib = NULL; cib 206 lib/common/patchset.c cib = pcmk__xe_first_child(diff_child, tag, NULL, NULL); cib 207 lib/common/patchset.c if (cib == NULL) { cib 208 lib/common/patchset.c cib = pcmk__xe_create(diff_child, tag); cib 216 lib/common/patchset.c crm_xml_add(cib, vfields[lpc], value); cib 227 lib/common/patchset.c cib = pcmk__xe_first_child(diff_child, tag, NULL, NULL); cib 228 lib/common/patchset.c if (cib == NULL) { cib 229 lib/common/patchset.c cib = pcmk__xe_create(diff_child, tag); cib 242 lib/common/patchset.c pcmk__xe_set_attr_force(cib, (const char *) a->name, p_value); cib 67 lib/common/scheduler.c pcmk_set_scheduler_cib(pcmk_scheduler_t *scheduler, xmlNode *cib) cib 72 lib/common/scheduler.c scheduler->input = cib; cib 18 lib/common/tests/scheduler/pcmk_set_scheduler_cib_test.c xmlNode *cib = pcmk__xe_create(NULL, "test"); cib 21 lib/common/tests/scheduler/pcmk_set_scheduler_cib_test.c assert_int_equal(pcmk_set_scheduler_cib(NULL, cib), EINVAL); cib 23 lib/common/tests/scheduler/pcmk_set_scheduler_cib_test.c free_xml(cib); cib 43 lib/common/tests/scheduler/pcmk_set_scheduler_cib_test.c xmlNode *cib = pcmk__xe_create(NULL, "test"); cib 45 lib/common/tests/scheduler/pcmk_set_scheduler_cib_test.c assert_int_equal(pcmk_set_scheduler_cib(&scheduler, cib), pcmk_rc_ok); cib 46 lib/common/tests/scheduler/pcmk_set_scheduler_cib_test.c assert_ptr_equal(scheduler.input, cib); cib 48 lib/common/tests/scheduler/pcmk_set_scheduler_cib_test.c free_xml(cib); cib 443 lib/pacemaker/libpacemaker_private.h void pcmk__inject_scheduler_input(pcmk_scheduler_t *scheduler, cib_t *cib, cib 1138 lib/pacemaker/libpacemaker_private.h int pcmk__setup_output_cib_sched(pcmk__output_t **out, cib_t **cib, cib 496 lib/pacemaker/pcmk_injections.c const char *attr_name, bool attr_value, cib_t *cib) cib 503 lib/pacemaker/pcmk_injections.c rc = pcmk__get_ticket_state(cib, ticket_id, &ticket_state_xml); cib 533 lib/pacemaker/pcmk_injections.c rc = cib->cmds->modify(cib, PCMK_XE_STATUS, xml_top, cib 551 lib/pacemaker/pcmk_injections.c inject_action(pcmk__output_t *out, const char *spec, cib_t *cib, cib 596 lib/pacemaker/pcmk_injections.c cib_node = pcmk__inject_node(cib, node, NULL); cib 599 lib/pacemaker/pcmk_injections.c pcmk__inject_failcount(out, cib, cib_node, resource, task, interval_ms, cib 614 lib/pacemaker/pcmk_injections.c rc = cib->cmds->modify(cib, PCMK_XE_STATUS, cib_node, cib 633 lib/pacemaker/pcmk_injections.c pcmk__inject_scheduler_input(pcmk_scheduler_t *scheduler, cib_t *cib, cib 649 lib/pacemaker/pcmk_injections.c rc = cib->cmds->modify(cib, NULL, top, cib_sync_call|cib_scope_local); cib 654 lib/pacemaker/pcmk_injections.c rc = cib__update_node_attr(out, cib, cib_sync_call|cib_scope_local, cib 666 lib/pacemaker/pcmk_injections.c cib_node = pcmk__inject_node_state_change(cib, node, true); cib 669 lib/pacemaker/pcmk_injections.c rc = cib->cmds->modify(cib, PCMK_XE_STATUS, cib_node, cib 681 lib/pacemaker/pcmk_injections.c cib_node = pcmk__inject_node_state_change(cib, node, false); cib 684 lib/pacemaker/pcmk_injections.c rc = cib->cmds->modify(cib, PCMK_XE_STATUS, cib_node, cib 693 lib/pacemaker/pcmk_injections.c cib->cmds->remove(cib, xpath, NULL, cib 701 lib/pacemaker/pcmk_injections.c cib->cmds->remove(cib, xpath, NULL, cib 711 lib/pacemaker/pcmk_injections.c cib_node = pcmk__inject_node_state_change(cib, node, true); cib 715 lib/pacemaker/pcmk_injections.c rc = cib->cmds->modify(cib, PCMK_XE_STATUS, cib_node, cib 726 lib/pacemaker/pcmk_injections.c rc = set_ticket_state_attr(out, ticket_id, PCMK__XA_GRANTED, true, cib); cib 736 lib/pacemaker/pcmk_injections.c cib); cib 745 lib/pacemaker/pcmk_injections.c rc = set_ticket_state_attr(out, ticket_id, PCMK_XA_STANDBY, true, cib); cib 754 lib/pacemaker/pcmk_injections.c rc = set_ticket_state_attr(out, ticket_id, PCMK_XA_STANDBY, false, cib); cib 759 lib/pacemaker/pcmk_injections.c inject_action(out, (const char *) iter->data, cib, scheduler); cib 123 lib/pacemaker/pcmk_resource.c pcmk__resource_delete(cib_t *cib, uint32_t cib_opts, const char *rsc_id, cib 129 lib/pacemaker/pcmk_resource.c if (cib == NULL) { cib 140 lib/pacemaker/pcmk_resource.c rc = cib->cmds->remove(cib, PCMK_XE_RESOURCES, msg_data, cib_opts); cib 153 lib/pacemaker/pcmk_resource.c cib_t *cib = NULL; cib 160 lib/pacemaker/pcmk_resource.c cib = cib_new(); cib 161 lib/pacemaker/pcmk_resource.c if (cib == NULL) { cib 166 lib/pacemaker/pcmk_resource.c rc = cib->cmds->signon(cib, crm_system_name, cib_command); cib 173 lib/pacemaker/pcmk_resource.c rc = pcmk__resource_delete(cib, cib_opts, rsc_id, rsc_type); cib 176 lib/pacemaker/pcmk_resource.c if (cib != NULL) { cib 177 lib/pacemaker/pcmk_resource.c cib__clean_up_connection(&cib); cib 741 lib/pacemaker/pcmk_scheduler.c unpack_cib(xmlNode *cib, unsigned long long flags, pcmk_scheduler_t *scheduler) cib 755 lib/pacemaker/pcmk_scheduler.c pcmk__assert(cib != NULL); cib 770 lib/pacemaker/pcmk_scheduler.c scheduler->input = cib; cib 783 lib/pacemaker/pcmk_scheduler.c pcmk__schedule_actions(xmlNode *cib, unsigned long long flags, cib 786 lib/pacemaker/pcmk_scheduler.c unpack_cib(cib, flags, scheduler); cib 41 lib/pacemaker/pcmk_setup.c pcmk__setup_output_cib_sched(pcmk__output_t **out, cib_t **cib, cib 51 lib/pacemaker/pcmk_setup.c if (cib != NULL) { cib 52 lib/pacemaker/pcmk_setup.c *cib = cib_new(); cib 53 lib/pacemaker/pcmk_setup.c if (*cib == NULL) { cib 57 lib/pacemaker/pcmk_setup.c rc = (*cib)->cmds->signon(*cib, crm_system_name, cib_command); cib 61 lib/pacemaker/pcmk_setup.c cib__clean_up_connection(cib); cib 68 lib/pacemaker/pcmk_setup.c if (rc != pcmk_rc_ok && cib != NULL) { cib 69 lib/pacemaker/pcmk_setup.c cib__clean_up_connection(cib); cib 740 lib/pacemaker/pcmk_simulate.c pcmk__simulate_transition(pcmk_scheduler_t *scheduler, cib_t *cib, cib 755 lib/pacemaker/pcmk_simulate.c fake_cib = cib; cib 804 lib/pacemaker/pcmk_simulate.c cib_t *cib = NULL; cib 806 lib/pacemaker/pcmk_simulate.c rc = cib__signon_query(out, &cib, &input); cib 814 lib/pacemaker/pcmk_simulate.c if ((cib->variant == cib_native) cib 861 lib/pacemaker/pcmk_simulate.c pcmk__inject_scheduler_input(scheduler, cib, injections); cib 864 lib/pacemaker/pcmk_simulate.c rc = cib->cmds->query(cib, NULL, &input, cib_sync_call); cib 964 lib/pacemaker/pcmk_simulate.c if (pcmk__simulate_transition(scheduler, cib, injections->op_fail) cib 987 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 91 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 21 lib/pacemaker/pcmk_ticket.c build_ticket_modify_xml(cib_t *cib, const char *ticket_id, xmlNode **ticket_state_xml, cib 24 lib/pacemaker/pcmk_ticket.c int rc = pcmk__get_ticket_state(cib, ticket_id, ticket_state_xml); cib 76 lib/pacemaker/pcmk_ticket.c pcmk__get_ticket_state(cib_t *cib, const char *ticket_id, xmlNode **state) cib 82 lib/pacemaker/pcmk_ticket.c pcmk__assert((cib != NULL) && (state != NULL)); cib 93 lib/pacemaker/pcmk_ticket.c rc = cib->cmds->query(cib, xpath, &xml_search, cib 112 lib/pacemaker/pcmk_ticket.c pcmk__ticket_constraints(pcmk__output_t *out, cib_t *cib, const char *ticket_id) cib 119 lib/pacemaker/pcmk_ticket.c pcmk__assert((out != NULL) && (cib != NULL)); cib 131 lib/pacemaker/pcmk_ticket.c rc = cib->cmds->query(cib, (const char *) xpath, &result, cib 149 lib/pacemaker/pcmk_ticket.c cib_t *cib = NULL; cib 151 lib/pacemaker/pcmk_ticket.c rc = pcmk__setup_output_cib_sched(&out, &cib, NULL, xml); cib 156 lib/pacemaker/pcmk_ticket.c rc = pcmk__ticket_constraints(out, cib, ticket_id); cib 159 lib/pacemaker/pcmk_ticket.c if (cib != NULL) { cib 160 lib/pacemaker/pcmk_ticket.c cib__clean_up_connection(&cib); cib 171 lib/pacemaker/pcmk_ticket.c cib_t *cib = (cib_t *) userdata; cib 173 lib/pacemaker/pcmk_ticket.c rc = cib->cmds->remove(cib, PCMK_XE_STATUS, child, cib_sync_call); cib 180 lib/pacemaker/pcmk_ticket.c pcmk__ticket_delete(pcmk__output_t *out, cib_t *cib, pcmk_scheduler_t *scheduler, cib 186 lib/pacemaker/pcmk_ticket.c pcmk__assert((cib != NULL) && (scheduler != NULL)); cib 204 lib/pacemaker/pcmk_ticket.c rc = pcmk__get_ticket_state(cib, ticket_id, &state); cib 220 lib/pacemaker/pcmk_ticket.c rc = pcmk__xe_foreach_child(state, NULL, delete_single_ticket, cib); cib 222 lib/pacemaker/pcmk_ticket.c rc = delete_single_ticket(state, cib); cib 238 lib/pacemaker/pcmk_ticket.c cib_t *cib = NULL; cib 241 lib/pacemaker/pcmk_ticket.c rc = pcmk__setup_output_cib_sched(&out, &cib, &scheduler, xml); cib 246 lib/pacemaker/pcmk_ticket.c rc = pcmk__ticket_delete(out, cib, scheduler, ticket_id, force); cib 249 lib/pacemaker/pcmk_ticket.c if (cib != NULL) { cib 250 lib/pacemaker/pcmk_ticket.c cib__clean_up_connection(&cib); cib 369 lib/pacemaker/pcmk_ticket.c pcmk__ticket_remove_attr(pcmk__output_t *out, cib_t *cib, pcmk_scheduler_t *scheduler, cib 376 lib/pacemaker/pcmk_ticket.c pcmk__assert((out != NULL) && (cib != NULL) && (scheduler != NULL)); cib 387 lib/pacemaker/pcmk_ticket.c rc = build_ticket_modify_xml(cib, ticket_id, &ticket_state_xml, &xml_top); cib 408 lib/pacemaker/pcmk_ticket.c rc = cib->cmds->replace(cib, PCMK_XE_STATUS, ticket_state_xml, cib_sync_call); cib 421 lib/pacemaker/pcmk_ticket.c cib_t *cib = NULL; cib 423 lib/pacemaker/pcmk_ticket.c rc = pcmk__setup_output_cib_sched(&out, &cib, &scheduler, xml); cib 428 lib/pacemaker/pcmk_ticket.c rc = pcmk__ticket_remove_attr(out, cib, scheduler, ticket_id, attr_delete, force); cib 431 lib/pacemaker/pcmk_ticket.c if (cib != NULL) { cib 432 lib/pacemaker/pcmk_ticket.c cib__clean_up_connection(&cib); cib 441 lib/pacemaker/pcmk_ticket.c pcmk__ticket_set_attr(pcmk__output_t *out, cib_t *cib, pcmk_scheduler_t *scheduler, cib 448 lib/pacemaker/pcmk_ticket.c pcmk__assert((out != NULL) && (cib != NULL) && (scheduler != NULL)); cib 459 lib/pacemaker/pcmk_ticket.c rc = build_ticket_modify_xml(cib, ticket_id, &ticket_state_xml, &xml_top); cib 476 lib/pacemaker/pcmk_ticket.c rc = cib->cmds->modify(cib, PCMK_XE_STATUS, xml_top, cib_sync_call); cib 490 lib/pacemaker/pcmk_ticket.c cib_t *cib = NULL; cib 492 lib/pacemaker/pcmk_ticket.c rc = pcmk__setup_output_cib_sched(&out, &cib, &scheduler, xml); cib 497 lib/pacemaker/pcmk_ticket.c rc = pcmk__ticket_set_attr(out, cib, scheduler, ticket_id, attr_set, force); cib 500 lib/pacemaker/pcmk_ticket.c if (cib != NULL) { cib 501 lib/pacemaker/pcmk_ticket.c cib__clean_up_connection(&cib); cib 510 lib/pacemaker/pcmk_ticket.c pcmk__ticket_state(pcmk__output_t *out, cib_t *cib, const char *ticket_id) cib 515 lib/pacemaker/pcmk_ticket.c pcmk__assert((out != NULL) && (cib != NULL)); cib 517 lib/pacemaker/pcmk_ticket.c rc = pcmk__get_ticket_state(cib, ticket_id, &state_xml); cib 537 lib/pacemaker/pcmk_ticket.c cib_t *cib = NULL; cib 539 lib/pacemaker/pcmk_ticket.c rc = pcmk__setup_output_cib_sched(&out, &cib, NULL, xml); cib 544 lib/pacemaker/pcmk_ticket.c rc = pcmk__ticket_state(out, cib, ticket_id); cib 547 lib/pacemaker/pcmk_ticket.c if (cib != NULL) { cib 548 lib/pacemaker/pcmk_ticket.c cib__clean_up_connection(&cib); cib 76 lib/pacemaker/tests/pcmk_resource/pcmk_resource_delete_test.c cib_t *cib = NULL; cib 78 lib/pacemaker/tests/pcmk_resource/pcmk_resource_delete_test.c cib = cib_new(); cib 79 lib/pacemaker/tests/pcmk_resource/pcmk_resource_delete_test.c cib->cmds->signon(cib, crm_system_name, cib_command); cib 85 lib/pacemaker/tests/pcmk_resource/pcmk_resource_delete_test.c cib->cmds->query(cib, (const char *) xpath->str, &xml_search, cib 89 lib/pacemaker/tests/pcmk_resource/pcmk_resource_delete_test.c cib__clean_up_connection(&cib); cib 25 lib/pacemaker/tests/pcmk_ticket/pcmk__get_ticket_state_test.c cib_t *cib = cib_new(); cib 31 lib/pacemaker/tests/pcmk_ticket/pcmk__get_ticket_state_test.c assert_int_equal(pcmk__get_ticket_state(cib, "ticketA", &xml), ENOTCONN); cib 32 lib/pacemaker/tests/pcmk_ticket/pcmk__get_ticket_state_test.c cib__clean_up_connection(&cib); cib 59 lib/pacemaker/tests/pcmk_ticket/pcmk__get_ticket_state_test.c cib_t *cib = cib_new(); cib 61 lib/pacemaker/tests/pcmk_ticket/pcmk__get_ticket_state_test.c cib->cmds->signon(cib, crm_system_name, cib_command); cib 64 lib/pacemaker/tests/pcmk_ticket/pcmk__get_ticket_state_test.c pcmk__assert_asserts(pcmk__get_ticket_state(cib, "ticketA", NULL)); cib 66 lib/pacemaker/tests/pcmk_ticket/pcmk__get_ticket_state_test.c cib__clean_up_connection(&cib); cib 73 lib/pacemaker/tests/pcmk_ticket/pcmk__get_ticket_state_test.c cib_t *cib = cib_new(); cib 75 lib/pacemaker/tests/pcmk_ticket/pcmk__get_ticket_state_test.c cib->cmds->signon(cib, crm_system_name, cib_command); cib 77 lib/pacemaker/tests/pcmk_ticket/pcmk__get_ticket_state_test.c assert_int_equal(pcmk__get_ticket_state(cib, "XYZ", &xml), ENXIO); cib 80 lib/pacemaker/tests/pcmk_ticket/pcmk__get_ticket_state_test.c cib__clean_up_connection(&cib); cib 88 lib/pacemaker/tests/pcmk_ticket/pcmk__get_ticket_state_test.c cib_t *cib = cib_new(); cib 90 lib/pacemaker/tests/pcmk_ticket/pcmk__get_ticket_state_test.c cib->cmds->signon(cib, crm_system_name, cib_command); cib 92 lib/pacemaker/tests/pcmk_ticket/pcmk__get_ticket_state_test.c assert_int_equal(pcmk__get_ticket_state(cib, "ticketA", &xml), pcmk_rc_ok); cib 102 lib/pacemaker/tests/pcmk_ticket/pcmk__get_ticket_state_test.c cib__clean_up_connection(&cib); cib 111 lib/pacemaker/tests/pcmk_ticket/pcmk__get_ticket_state_test.c cib_t *cib = cib_new(); cib 113 lib/pacemaker/tests/pcmk_ticket/pcmk__get_ticket_state_test.c cib->cmds->signon(cib, crm_system_name, cib_command); cib 115 lib/pacemaker/tests/pcmk_ticket/pcmk__get_ticket_state_test.c assert_int_equal(pcmk__get_ticket_state(cib, NULL, &xml), pcmk_rc_ok); cib 138 lib/pacemaker/tests/pcmk_ticket/pcmk__get_ticket_state_test.c cib__clean_up_connection(&cib); cib 146 lib/pacemaker/tests/pcmk_ticket/pcmk__get_ticket_state_test.c cib_t *cib = cib_new(); cib 148 lib/pacemaker/tests/pcmk_ticket/pcmk__get_ticket_state_test.c cib->cmds->signon(cib, crm_system_name, cib_command); cib 150 lib/pacemaker/tests/pcmk_ticket/pcmk__get_ticket_state_test.c assert_int_equal(pcmk__get_ticket_state(cib, "ticketC", &xml), pcmk_rc_duplicate_id); cib 160 lib/pacemaker/tests/pcmk_ticket/pcmk__get_ticket_state_test.c cib__clean_up_connection(&cib); cib 95 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_delete_test.c cib_t *cib; cib 101 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_delete_test.c cib = cib_new(); cib 102 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_delete_test.c cib->cmds->signon(cib, crm_system_name, cib_command); cib 103 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_delete_test.c cib->cmds->query(cib, "//" PCMK__XE_TICKET_STATE "[@" PCMK_XA_ID "=\"ticketA\"]", cib 108 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_delete_test.c cib__clean_up_connection(&cib); cib 116 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_delete_test.c cib_t *cib; cib 122 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_delete_test.c cib = cib_new(); cib 123 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_delete_test.c cib->cmds->signon(cib, crm_system_name, cib_command); cib 124 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_delete_test.c cib->cmds->query(cib, "//" PCMK__XE_TICKET_STATE "[@" PCMK_XA_ID "=\"ticketB\"]", cib 129 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_delete_test.c cib__clean_up_connection(&cib); cib 137 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_delete_test.c cib_t *cib; cib 143 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_delete_test.c cib = cib_new(); cib 144 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_delete_test.c cib->cmds->signon(cib, crm_system_name, cib_command); cib 145 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_delete_test.c cib->cmds->query(cib, "//" PCMK__XE_TICKET_STATE "[@" PCMK_XA_ID "=\"ticketC\"]", cib 151 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_delete_test.c cib__clean_up_connection(&cib); cib 71 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_remove_attr_test.c cib_t *cib = cib_new(); cib 73 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_remove_attr_test.c cib->cmds->signon(cib, crm_system_name, cib_command); cib 81 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_remove_attr_test.c cib->cmds->query(cib, "//" PCMK__XE_TICKET_STATE "[@" PCMK_XA_ID "=\"XYZ\"]", cib 91 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_remove_attr_test.c cib->cmds->query(cib, "//" PCMK__XE_TICKET_STATE "[@" PCMK_XA_ID "=\"ticketA\"]", cib 101 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_remove_attr_test.c cib->cmds->query(cib, "//" PCMK__XE_TICKET_STATE "[@" PCMK_XA_ID "=\"XYZ\"]", cib 106 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_remove_attr_test.c cib__clean_up_connection(&cib); cib 115 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_remove_attr_test.c cib_t *cib; cib 124 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_remove_attr_test.c cib = cib_new(); cib 125 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_remove_attr_test.c cib->cmds->signon(cib, crm_system_name, cib_command); cib 126 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_remove_attr_test.c cib->cmds->query(cib, "//" PCMK__XE_TICKET_STATE "[@" PCMK_XA_ID "=\"ticketA\"]", cib 134 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_remove_attr_test.c cib__clean_up_connection(&cib); cib 143 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_remove_attr_test.c cib_t *cib; cib 151 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_remove_attr_test.c cib = cib_new(); cib 152 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_remove_attr_test.c cib->cmds->signon(cib, crm_system_name, cib_command); cib 153 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_remove_attr_test.c cib->cmds->query(cib, "//" PCMK__XE_TICKET_STATE "[@" PCMK_XA_ID "=\"ticketA\"]", cib 160 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_remove_attr_test.c cib__clean_up_connection(&cib); cib 169 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_remove_attr_test.c cib_t *cib; cib 177 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_remove_attr_test.c cib = cib_new(); cib 178 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_remove_attr_test.c cib->cmds->signon(cib, crm_system_name, cib_command); cib 179 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_remove_attr_test.c cib->cmds->query(cib, "//" PCMK__XE_TICKET_STATE "[@" PCMK_XA_ID "=\"ticketB\"]", cib 186 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_remove_attr_test.c cib__clean_up_connection(&cib); cib 195 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_remove_attr_test.c cib_t *cib; cib 203 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_remove_attr_test.c cib = cib_new(); cib 204 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_remove_attr_test.c cib->cmds->signon(cib, crm_system_name, cib_command); cib 205 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_remove_attr_test.c cib->cmds->query(cib, "//" PCMK__XE_TICKET_STATE "[@" PCMK_XA_ID "=\"ticketB\"]", cib 212 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_remove_attr_test.c cib__clean_up_connection(&cib); cib 71 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c cib_t *cib = cib_new(); cib 73 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c cib->cmds->signon(cib, crm_system_name, cib_command); cib 81 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c cib->cmds->query(cib, "//" PCMK__XE_TICKET_STATE "[@" PCMK_XA_ID "=\"XYZ\"]", cib 90 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c cib->cmds->query(cib, "//" PCMK__XE_TICKET_STATE "[@" PCMK_XA_ID "=\"XYZ\"]", cib 95 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c cib__clean_up_connection(&cib); cib 104 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c cib_t *cib; cib 116 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c cib = cib_new(); cib 117 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c cib->cmds->signon(cib, crm_system_name, cib_command); cib 118 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c cib->cmds->query(cib, "//" PCMK__XE_TICKET_STATE "[@" PCMK_XA_ID "=\"XYZ\"]", cib 126 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c cib__clean_up_connection(&cib); cib 135 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c cib_t *cib; cib 143 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c cib = cib_new(); cib 144 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c cib->cmds->signon(cib, crm_system_name, cib_command); cib 145 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c cib->cmds->query(cib, "//" PCMK__XE_TICKET_STATE "[@" PCMK_XA_ID "=\"ticketA\"]", cib 152 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c cib__clean_up_connection(&cib); cib 161 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c cib_t *cib; cib 169 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c cib = cib_new(); cib 170 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c cib->cmds->signon(cib, crm_system_name, cib_command); cib 171 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c cib->cmds->query(cib, "//" PCMK__XE_TICKET_STATE "[@" PCMK_XA_ID "=\"ticketA\"]", cib 179 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c cib__clean_up_connection(&cib); cib 188 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c cib_t *cib; cib 196 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c cib = cib_new(); cib 197 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c cib->cmds->signon(cib, crm_system_name, cib_command); cib 198 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c cib->cmds->query(cib, "//" PCMK__XE_TICKET_STATE "[@" PCMK_XA_ID "=\"ticketA\"]", cib 206 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c cib__clean_up_connection(&cib); cib 215 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c cib_t *cib; cib 223 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c cib = cib_new(); cib 224 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c cib->cmds->signon(cib, crm_system_name, cib_command); cib 225 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c cib->cmds->query(cib, "//" PCMK__XE_TICKET_STATE "[@" PCMK_XA_ID "=\"ticketB\"]", cib 233 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c cib__clean_up_connection(&cib); cib 242 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c cib_t *cib; cib 250 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c cib = cib_new(); cib 251 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c cib->cmds->signon(cib, crm_system_name, cib_command); cib 252 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c cib->cmds->query(cib, "//" PCMK__XE_TICKET_STATE "[@" PCMK_XA_ID "=\"ticketB\"]", cib 260 lib/pacemaker/tests/pcmk_ticket/pcmk_ticket_set_attr_test.c cib__clean_up_connection(&cib); cib 402 tools/crm_attribute.c cib_t *cib; cib 417 tools/crm_attribute.c rc = cib__delete_node_attr(dd->out, dd->cib, cib_opts, options.type, cib 446 tools/crm_attribute.c command_delete(pcmk__output_t *out, cib_t *cib) cib 455 tools/crm_attribute.c struct delete_data_s dd = { out, cib }; cib 457 tools/crm_attribute.c rc = cib__get_node_attrs(out, cib, options.type, options.dest_node, cib 468 tools/crm_attribute.c rc = cib__delete_node_attr(out, cib, cib_opts, options.type, options.dest_node, cib 489 tools/crm_attribute.c cib_t *cib; cib 504 tools/crm_attribute.c return cib__update_node_attr(ud->out, ud->cib, cib_opts, options.type, cib 512 tools/crm_attribute.c command_update(pcmk__output_t *out, cib_t *cib, int is_remote_node) cib 526 tools/crm_attribute.c struct update_data_s ud = { out, cib, is_remote_node }; cib 528 tools/crm_attribute.c rc = cib__get_node_attrs(out, cib, options.type, options.dest_node, cib 539 tools/crm_attribute.c rc = cib__update_node_attr(out, cib, cib_opts, options.type, cib 583 tools/crm_attribute.c command_query(pcmk__output_t *out, cib_t *cib) cib 596 tools/crm_attribute.c rc = cib__get_node_attrs(out, cib, options.type, options.dest_node, cib 600 tools/crm_attribute.c rc = cib__get_node_attrs(out, cib, options.type, options.dest_node, cib 74 tools/crm_mon.c static cib_t *cib = NULL; cib 864 tools/crm_mon.c if (cib) { cib 865 tools/crm_mon.c cib->cmds->signoff(cib); cib 950 tools/crm_mon.c CRM_CHECK(cib != NULL, return EINVAL); cib 952 tools/crm_mon.c if (cib->state != cib_disconnected) { cib 957 tools/crm_mon.c rc = cib__signon_query(out, &cib, ¤t_cib); cib 960 tools/crm_mon.c rc = pcmk_legacy2rc(cib->cmds->set_connection_dnotify(cib, cib 971 tools/crm_mon.c cib->cmds->del_notify_callback(cib, PCMK__VALUE_CIB_DIFF_NOTIFY, cib 973 tools/crm_mon.c rc = cib->cmds->add_notify_callback(cib, PCMK__VALUE_CIB_DIFF_NOTIFY, cib 988 tools/crm_mon.c cib__clean_up_connection(&cib); cib 1037 tools/crm_mon.c CRM_CHECK(cib != NULL, return EINVAL); cib 1039 tools/crm_mon.c if (cib->state != cib_disconnected) { cib 1043 tools/crm_mon.c if (cib->variant == cib_native) { cib 1474 tools/crm_mon.c int rc = pcmk__status(out, cib, fence_history, show, show_opts, cib 1489 tools/crm_mon.c if (cib != NULL) { cib 1555 tools/crm_mon.c cib = cib_new(); cib 1559 tools/crm_mon.c switch (cib->variant) { cib 1631 tools/crm_mon.c cib_delete(cib); cib 1632 tools/crm_mon.c cib = NULL; cib 1634 tools/crm_mon.c cib = cib_new(); cib 1681 tools/crm_mon.c if (cib->variant == cib_file) { cib 1716 tools/crm_mon.c cib__set_output(cib, out); cib 2085 tools/crm_mon.c cib->cmds->query(cib, NULL, ¤t_cib, cib_scope_local | cib_sync_call); cib 2133 tools/crm_mon.c if (cib->variant == cib_native) { cib 2142 tools/crm_mon.c rc = pcmk__output_cluster_status(out, st, cib, current_cib, pcmkd_state, cib 2261 tools/crm_mon.c cib__clean_up_connection(&cib); cib 544 tools/crm_node.c remove_from_section(cib_t *cib, const char *element, const char *section, cib 555 tools/crm_node.c rc = cib->cmds->remove(cib, section, xml, cib_transaction); cib 575 tools/crm_node.c cib_t *cib = NULL; cib 578 tools/crm_node.c cib = cib_new(); cib 579 tools/crm_node.c if (cib == NULL) { cib 582 tools/crm_node.c rc = cib__signon_attempts(cib, crm_system_name, cib_command, 5); cib 584 tools/crm_node.c rc = cib->cmds->init_transaction(cib); cib 588 tools/crm_node.c cib__clean_up_connection(&cib); cib 593 tools/crm_node.c rc = remove_from_section(cib, PCMK_XE_NODE, PCMK_XE_NODES, node_name, cib 596 tools/crm_node.c rc = remove_from_section(cib, PCMK__XE_NODE_STATE, PCMK_XE_STATUS, cib 601 tools/crm_node.c commit_rc = cib->cmds->end_transaction(cib, (rc == pcmk_rc_ok), cib 603 tools/crm_node.c cib__clean_up_connection(&cib); cib 101 tools/crm_resource.h guint timeout_ms, cib_t *cib, int cib_options, cib 105 tools/crm_resource.h cib_t *cib, int cib_options, pcmk_scheduler_t *scheduler, cib 117 tools/crm_resource.h guint timeout_ms, cib_t *cib, cib 126 tools/crm_resource.h cib_t *cib, gboolean force); cib 131 tools/crm_resource.h cib_t *cib, int cib_options, gboolean force); cib 134 tools/crm_resource.h int wait_till_stable(pcmk__output_t *out, guint timeout_ms, cib_t * cib); cib 163 tools/crm_resource_runtime.c const char * attr_name, cib_t * cib, int depth) cib 173 tools/crm_resource_runtime.c attr_name, cib, depth+1); cib 180 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, PCMK_XA_ID, lookup_id, attr_set_type, cib 198 tools/crm_resource_runtime.c const char * attr_name, cib_t * cib, const char * cmd, cib 211 tools/crm_resource_runtime.c int rc = find_resource_attr(out, cib, PCMK_XA_ID, rsc_id, attr_set_type, cib 227 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, PCMK_XA_ID, lookup_id, cib 243 tools/crm_resource_runtime.c cib, 0); cib 249 tools/crm_resource_runtime.c cib_t *cib, const char *attr_name, const char *attr_value) cib 253 tools/crm_resource_runtime.c if (cib == NULL) { cib 259 tools/crm_resource_runtime.c rc = cib->cmds->replace(cib, PCMK_XE_RESOURCES, rsc->xml, cib_sync_call); cib 270 tools/crm_resource_runtime.c resources_with_attr(pcmk__output_t *out, cib_t *cib, pcmk_resource_t *rsc, cib 282 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, PCMK_XA_ID, top_id, cib 314 tools/crm_resource_runtime.c attr_id, attr_name, cib, cib 354 tools/crm_resource_runtime.c const char *attr_value, gboolean recursive, cib_t *cib, cib 364 tools/crm_resource_runtime.c find_resource_attr(out, cib, PCMK_XA_ID, top_id, NULL, NULL, NULL, cib 368 tools/crm_resource_runtime.c rc = resources_with_attr(out, cib, rsc, requested_name, attr_set, attr_set_type, cib 389 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, PCMK_XA_ID, lookup_id, attr_set_type, cib 435 tools/crm_resource_runtime.c rc = cib->cmds->modify(cib, PCMK_XE_RESOURCES, xml_top, cib_sync_call); cib 488 tools/crm_resource_runtime.c recursive, cib, force, results); cib 503 tools/crm_resource_runtime.c cib_t *cib, gboolean force) cib 515 tools/crm_resource_runtime.c return update_element_attribute(out, rsc, cib, attr_name, attr_value); cib 526 tools/crm_resource_runtime.c attr_id, attr_name, attr_value, recursive, cib, cib 546 tools/crm_resource_runtime.c cib_t *cib, int cib_options, gboolean force) cib 553 tools/crm_resource_runtime.c find_resource_attr(out, cib, PCMK_XA_ID, cib 561 tools/crm_resource_runtime.c attr_id, attr_name, cib, cib 566 tools/crm_resource_runtime.c pcmk__assert(cib != NULL); cib 567 tools/crm_resource_runtime.c rc = cib->cmds->replace(cib, PCMK_XE_RESOURCES, rsc->xml, cib_options); cib 588 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, PCMK_XA_ID, lookup_id, attr_set_type, cib 615 tools/crm_resource_runtime.c pcmk__assert(cib != NULL); cib 616 tools/crm_resource_runtime.c rc = cib->cmds->remove(cib, PCMK_XE_RESOURCES, xml_obj, cib_options); cib 1322 tools/crm_resource_runtime.c cib_t *cib) cib 1327 tools/crm_resource_runtime.c rc = cib->cmds->query(cib, NULL, &cib_xml_copy, cib_scope_local | cib_sync_call); cib 1346 tools/crm_resource_runtime.c update_dataset(cib_t *cib, pcmk_scheduler_t *scheduler, bool simulate) cib 1358 tools/crm_resource_runtime.c rc = update_scheduler_input_to_cib(out, scheduler, cib); cib 1540 tools/crm_resource_runtime.c guint timeout_ms, cib_t *cib, int cib_options, cib 1648 tools/crm_resource_runtime.c rc = update_dataset(cib, scheduler, false); cib 1663 tools/crm_resource_runtime.c rc = cli_resource_ban(out, lookup_id, host, move_lifetime, cib, cib 1674 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, PCMK_XA_VALUE, lookup_id, NULL, NULL, NULL, cib 1686 tools/crm_resource_runtime.c PCMK_ACTION_STOPPED, FALSE, cib, cib 1703 tools/crm_resource_runtime.c rc = update_dataset(cib, scheduler, true); cib 1731 tools/crm_resource_runtime.c rc = update_dataset(cib, scheduler, FALSE); cib 1761 tools/crm_resource_runtime.c rc = cli_resource_clear(lookup_id, host, NULL, cib, cib_options, true, force); cib 1767 tools/crm_resource_runtime.c orig_target_role, FALSE, cib, force); cib 1773 tools/crm_resource_runtime.c PCMK_META_TARGET_ROLE, cib, cib 1810 tools/crm_resource_runtime.c rc = update_dataset(cib, scheduler, false); cib 1845 tools/crm_resource_runtime.c cli_resource_clear(lookup_id, host, NULL, cib, cib_options, true, force); cib 1850 tools/crm_resource_runtime.c FALSE, cib, force); cib 1855 tools/crm_resource_runtime.c PCMK_META_TARGET_ROLE, cib, cib_options, cib 1957 tools/crm_resource_runtime.c wait_till_stable(pcmk__output_t *out, guint timeout_ms, cib_t * cib) cib 2004 tools/crm_resource_runtime.c rc = update_scheduler_input_to_cib(out, scheduler, cib); cib 2220 tools/crm_resource_runtime.c guint timeout_ms, cib_t *cib, pcmk_scheduler_t *scheduler, cib 2284 tools/crm_resource_runtime.c const char *host_name, const char *move_lifetime, cib_t *cib, cib 2359 tools/crm_resource_runtime.c cli_resource_clear(rsc_id, NULL, scheduler->nodes, cib, cib_options, false, cib 2363 tools/crm_resource_runtime.c cli_resource_clear(rsc_id, dest->details->uname, scheduler->nodes, cib, cib 2368 tools/crm_resource_runtime.c cib, cib_options, promoted_role_only, cib 2382 tools/crm_resource_runtime.c cib, cib_options, promoted_role_only,