private 144 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 215 lib/cib/cib_file.c cib_set_file_flags(private, cib_file_flag_dirty); private 293 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 295 lib/cib/cib_file.c if (private->filename == NULL) { private 298 lib/cib/cib_file.c rc = load_file_cib(private->filename); private 303 lib/cib/cib_file.c private->filename, name); private 309 lib/cib/cib_file.c private->filename, name, pcmk_strerror(rc)); private 408 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 415 lib/cib/cib_file.c if (pcmk_is_set(private->flags, cib_file_flag_dirty)) { private 418 lib/cib/cib_file.c if (pcmk_is_set(private->flags, cib_file_flag_live)) { private 419 lib/cib/cib_file.c if (cib_file_write_live(private->filename) < 0) { private 425 lib/cib/cib_file.c gboolean do_bzip = pcmk__ends_with_ext(private->filename, ".bz2"); private 427 lib/cib/cib_file.c if (write_xml_file(in_mem_cib, private->filename, do_bzip) <= 0) { private 433 lib/cib/cib_file.c crm_info("Wrote CIB to %s", private->filename); private 434 lib/cib/cib_file.c cib_clear_file_flags(private, cib_file_flag_dirty); private 436 lib/cib/cib_file.c crm_err("Could not write CIB to %s", private->filename); private 456 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 458 lib/cib/cib_file.c free(private->filename); private 460 lib/cib/cib_file.c free(private); private 520 lib/cib/cib_file.c cib_file_opaque_t *private = NULL; private 527 lib/cib/cib_file.c private = calloc(1, sizeof(cib_file_opaque_t)); private 529 lib/cib/cib_file.c if (private == NULL) { private 535 lib/cib/cib_file.c cib->variant_opaque = private; private 541 lib/cib/cib_file.c private->flags = 0; private 543 lib/cib/cib_file.c cib_set_file_flags(private, cib_file_flag_live); private 546 lib/cib/cib_file.c private->filename = strdup(cib_location); private 67 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 95 lib/cib/cib_remote.c pcmk__remote_send_xml(&private->callback, op_msg); private 97 lib/cib/cib_remote.c pcmk__remote_send_xml(&private->command, op_msg); private 119 lib/cib/cib_remote.c rc = pcmk__read_remote_message(&private->command, private 121 lib/cib/cib_remote.c op_reply = pcmk__remote_message_xml(&private->command); private 209 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 215 lib/cib/cib_remote.c rc = pcmk__read_remote_message(&private->callback, -1); private 217 lib/cib/cib_remote.c msg = pcmk__remote_message_xml(&private->callback); private 234 lib/cib/cib_remote.c msg = pcmk__remote_message_xml(&private->callback); private 249 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 251 lib/cib/cib_remote.c rc = pcmk__read_remote_message(&private->command, -1); private 253 lib/cib/cib_remote.c free(private->command.buffer); private 254 lib/cib/cib_remote.c private->command.buffer = NULL; private 266 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 269 lib/cib/cib_remote.c if (private->encrypted) { private 270 lib/cib/cib_remote.c if (private->command.tls_session) { private 271 lib/cib/cib_remote.c gnutls_bye(*(private->command.tls_session), GNUTLS_SHUT_RDWR); private 272 lib/cib/cib_remote.c gnutls_deinit(*(private->command.tls_session)); private 273 lib/cib/cib_remote.c gnutls_free(private->command.tls_session); private 276 lib/cib/cib_remote.c if (private->callback.tls_session) { private 277 lib/cib/cib_remote.c gnutls_bye(*(private->callback.tls_session), GNUTLS_SHUT_RDWR); private 278 lib/cib/cib_remote.c gnutls_deinit(*(private->callback.tls_session)); private 279 lib/cib/cib_remote.c gnutls_free(private->callback.tls_session); private 281 lib/cib/cib_remote.c private->command.tls_session = NULL; private 282 lib/cib/cib_remote.c private->callback.tls_session = NULL; private 291 lib/cib/cib_remote.c if (private->command.tcp_socket) { private 292 lib/cib/cib_remote.c shutdown(private->command.tcp_socket, SHUT_RDWR); /* no more receptions */ private 293 lib/cib/cib_remote.c close(private->command.tcp_socket); private 295 lib/cib/cib_remote.c if (private->callback.tcp_socket) { private 296 lib/cib/cib_remote.c shutdown(private->callback.tcp_socket, SHUT_RDWR); /* no more receptions */ private 297 lib/cib/cib_remote.c close(private->callback.tcp_socket); private 299 lib/cib/cib_remote.c private->command.tcp_socket = 0; private 300 lib/cib/cib_remote.c private->callback.tcp_socket = 0; private 302 lib/cib/cib_remote.c free(private->command.buffer); private 303 lib/cib/cib_remote.c free(private->callback.buffer); private 304 lib/cib/cib_remote.c private->command.buffer = NULL; private 305 lib/cib/cib_remote.c private->callback.buffer = NULL; private 322 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 338 lib/cib/cib_remote.c rc = pcmk__connect_remote(private->server, private->port, 0, NULL, private 342 lib/cib/cib_remote.c private->server, private->port, pcmk_rc_str(rc), rc); private 346 lib/cib/cib_remote.c if (private->encrypted) { private 367 lib/cib/cib_remote.c crm_err("Session creation for %s:%d failed", private->server, private->port); private 383 lib/cib/cib_remote.c crm_xml_add(login, "user", private->user); private 384 lib/cib/cib_remote.c crm_xml_add(login, "password", private->passwd); private 436 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 438 lib/cib/cib_remote.c if (private->passwd == NULL) { private 439 lib/cib/cib_remote.c if (private->out == NULL) { private 443 lib/cib/cib_remote.c pcmk__text_prompt("Password", false, &(private->passwd)); private 445 lib/cib/cib_remote.c private->out->prompt("Password", false, &(private->passwd)); private 449 lib/cib/cib_remote.c if (private->server == NULL || private->user == NULL) { private 454 lib/cib/cib_remote.c rc = cib_tls_signon(cib, &(private->command), FALSE); private 458 lib/cib/cib_remote.c rc = cib_tls_signon(cib, &(private->callback), TRUE); private 465 lib/cib/cib_remote.c pcmk__remote_send_xml(&private->command, hello); private 471 lib/cib/cib_remote.c private->server, private->port, name); private 477 lib/cib/cib_remote.c private->server, private->port, name, pcmk_strerror(rc)); private 508 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 510 lib/cib/cib_remote.c free(private->server); private 511 lib/cib/cib_remote.c free(private->user); private 512 lib/cib/cib_remote.c free(private->passwd); private 514 lib/cib/cib_remote.c free(private); private 525 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 527 lib/cib/cib_remote.c return private->callback.tcp_socket; private 534 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 539 lib/cib/cib_remote.c pcmk__remote_send_xml(&private->callback, notify_msg); private 571 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 575 lib/cib/cib_remote.c *async_id = private->callback.token; private 579 lib/cib/cib_remote.c *sync_id = private->command.token; private 588 lib/cib/cib_remote.c cib_remote_opaque_t *private = NULL; private 595 lib/cib/cib_remote.c private = calloc(1, sizeof(cib_remote_opaque_t)); private 597 lib/cib/cib_remote.c if (private == NULL) { private 603 lib/cib/cib_remote.c cib->variant_opaque = private; private 605 lib/cib/cib_remote.c pcmk__str_update(&private->server, server); private 606 lib/cib/cib_remote.c pcmk__str_update(&private->user, user); private 607 lib/cib/cib_remote.c pcmk__str_update(&private->passwd, passwd); private 609 lib/cib/cib_remote.c private->port = port; private 610 lib/cib/cib_remote.c private->encrypted = encrypted; private 630 lib/cib/cib_remote.c cib_remote_opaque_t *private; private 636 lib/cib/cib_remote.c private = cib->variant_opaque; private 637 lib/cib/cib_remote.c private->out = out; private 61 lib/common/ipc_controld.c struct controld_api_private_s *private = NULL; private 69 lib/common/ipc_controld.c private = api->api_data; private 77 lib/common/ipc_controld.c private->client_uuid = pcmk__getpid_s(); private 100 lib/common/ipc_controld.c struct controld_api_private_s *private = api->api_data; private 105 lib/common/ipc_controld.c hello = create_hello_message(private->client_uuid, client_name, private 197 lib/common/ipc_controld.c struct controld_api_private_s *private = api->api_data; private 223 lib/common/ipc_controld.c if (private->replies_expected > 0) { private 224 lib/common/ipc_controld.c private->replies_expected--; private 325 lib/common/ipc_controld.c struct controld_api_private_s *private = NULL; private 331 lib/common/ipc_controld.c private = api->api_data; private 339 lib/common/ipc_controld.c private->client_uuid); private 354 lib/common/ipc_controld.c struct controld_api_private_s *private = api->api_data; private 356 lib/common/ipc_controld.c private->replies_expected++; private 622 lib/common/ipc_controld.c struct controld_api_private_s *private = api->api_data; private 624 lib/common/ipc_controld.c return private->replies_expected; private 126 lib/common/ipc_pacemakerd.c struct pacemakerd_api_private_s *private = NULL; private 134 lib/common/ipc_pacemakerd.c private = api->api_data; private 135 lib/common/ipc_pacemakerd.c private->state = pcmk_pacemakerd_state_invalid; private 139 lib/common/ipc_pacemakerd.c private->client_uuid = pcmk__getpid_s(); private 155 lib/common/ipc_pacemakerd.c struct pacemakerd_api_private_s *private = NULL; private 160 lib/common/ipc_pacemakerd.c private = api->api_data; private 161 lib/common/ipc_pacemakerd.c private->state = pcmk_pacemakerd_state_invalid; private 169 lib/common/ipc_pacemakerd.c struct pacemakerd_api_private_s *private = NULL; private 174 lib/common/ipc_pacemakerd.c private = api->api_data; private 175 lib/common/ipc_pacemakerd.c private->state = pcmk_pacemakerd_state_invalid; private 277 lib/common/ipc_pacemakerd.c pacemakerd_api_private_t *private; private 285 lib/common/ipc_pacemakerd.c private = api->api_data; private 286 lib/common/ipc_pacemakerd.c CRM_ASSERT(private != NULL); private 290 lib/common/ipc_pacemakerd.c private->client_uuid); private 31 lib/common/ipc_schedulerd.c struct schedulerd_api_private_s *private = NULL; private 39 lib/common/ipc_schedulerd.c private = api->api_data; private 41 lib/common/ipc_schedulerd.c private->client_uuid = pcmk__getpid_s(); private 145 lib/common/ipc_schedulerd.c schedulerd_api_private_t *private; private 153 lib/common/ipc_schedulerd.c private = api->api_data; private 154 lib/common/ipc_schedulerd.c CRM_ASSERT(private != NULL); private 158 lib/common/ipc_schedulerd.c private->client_uuid); private 241 lib/fencing/st_client.c foreach_notify_entry (stonith_private_t *private, private 245 lib/fencing/st_client.c private->notify_refcnt++; private 246 lib/fencing/st_client.c g_list_foreach(private->notify_list, func, user_data); private 247 lib/fencing/st_client.c private->notify_refcnt--; private 248 lib/fencing/st_client.c if ((private->notify_refcnt == 0) && private 249 lib/fencing/st_client.c private->notify_deletes) { private 250 lib/fencing/st_client.c GList *list_item = private->notify_list; private 252 lib/fencing/st_client.c private->notify_deletes = FALSE; private 260 lib/fencing/st_client.c private->notify_list = private 261 lib/fencing/st_client.c g_list_delete_link(private->notify_list, list_item); private 867 lib/fencing/st_client.c stonith_private_t *private = stonith->st_private; private 870 lib/fencing/st_client.c private->op_callback = NULL; private 871 lib/fencing/st_client.c g_hash_table_destroy(private->stonith_op_callback_table); private 872 lib/fencing/st_client.c private->stonith_op_callback_table = pcmk__intkey_table(stonith_destroy_op_callback); private 875 lib/fencing/st_client.c private->op_callback = NULL; private 878 lib/fencing/st_client.c pcmk__intkey_table_remove(private->stonith_op_callback_table, call_id); private 925 lib/fencing/st_client.c stonith_private_t *private = NULL; private 932 lib/fencing/st_client.c private = stonith->st_private; private 950 lib/fencing/st_client.c cb_info = pcmk__intkey_table_lookup(private->stonith_op_callback_table, private 961 lib/fencing/st_client.c } else if ((private->op_callback == NULL) && !pcmk__result_ok(&result)) { private 970 lib/fencing/st_client.c if (private->op_callback != NULL) { private 973 lib/fencing/st_client.c private->op_callback); private 1028 lib/fencing/st_client.c stonith_private_t *private = st->st_private; private 1030 lib/fencing/st_client.c callback = pcmk__intkey_table_lookup(private->stonith_op_callback_table, private 1046 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1049 lib/fencing/st_client.c private = st->st_private; private 1066 lib/fencing/st_client.c foreach_notify_entry(private, stonith_send_notification, &blob); private 1213 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1215 lib/fencing/st_client.c private = stonith->st_private; private 1216 lib/fencing/st_client.c crm_trace("Adding callback for %s events (%d)", event, g_list_length(private->notify_list)); private 1222 lib/fencing/st_client.c list_item = g_list_find_custom(private->notify_list, new_client, stonithlib_GCompareFunc); private 1230 lib/fencing/st_client.c private->notify_list = g_list_append(private->notify_list, new_client); private 1234 lib/fencing/st_client.c crm_trace("Callback added (%d)", g_list_length(private->notify_list)); private 1256 lib/fencing/st_client.c stonith_private_t *private = stonith->st_private; private 1259 lib/fencing/st_client.c foreach_notify_entry(private, del_notify_entry, stonith); private 1271 lib/fencing/st_client.c list_item = g_list_find_custom(private->notify_list, new_client, stonithlib_GCompareFunc); private 1278 lib/fencing/st_client.c if (private->notify_refcnt) { private 1280 lib/fencing/st_client.c private->notify_deletes = TRUE; private 1282 lib/fencing/st_client.c private->notify_list = g_list_remove(private->notify_list, list_client); private 1301 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1305 lib/fencing/st_client.c private = stonith->st_private; private 1308 lib/fencing/st_client.c private->op_callback = callback; private 1336 lib/fencing/st_client.c pcmk__intkey_table_insert(private->stonith_op_callback_table, call_id, private 1355 lib/fencing/st_client.c stonith_private_t *private = stonith->st_private; private 1357 lib/fencing/st_client.c if (private->stonith_op_callback_table == NULL) { private 1360 lib/fencing/st_client.c return g_hash_table_foreach(private->stonith_op_callback_table, stonith_dump_pending_op, NULL); private 1652 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1655 lib/fencing/st_client.c private = st->st_private; private 1657 lib/fencing/st_client.c while (crm_ipc_ready(private->ipc)) { private 1659 lib/fencing/st_client.c if (crm_ipc_read(private->ipc) > 0) { private 1660 lib/fencing/st_client.c const char *msg = crm_ipc_buffer(private->ipc); private 1665 lib/fencing/st_client.c if (!crm_ipc_connected(private->ipc)) { private 1689 lib/fencing/st_client.c stonith_private_t *private = stonith->st_private; private 1691 lib/fencing/st_client.c crm_trace("Removing %d callbacks", g_hash_table_size(private->stonith_op_callback_table)); private 1692 lib/fencing/st_client.c g_hash_table_destroy(private->stonith_op_callback_table); private 1694 lib/fencing/st_client.c crm_trace("Destroying %d notification clients", g_list_length(private->notify_list)); private 1695 lib/fencing/st_client.c g_list_free_full(private->notify_list, free); private 1820 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1827 lib/fencing/st_client.c private = calloc(1, sizeof(stonith_private_t)); private 1828 lib/fencing/st_client.c if (private == NULL) { private 1832 lib/fencing/st_client.c new_stonith->st_private = private; private 1834 lib/fencing/st_client.c private->stonith_op_callback_table = pcmk__intkey_table(stonith_destroy_op_callback); private 1835 lib/fencing/st_client.c private->notify_list = NULL; private 1836 lib/fencing/st_client.c private->notify_refcnt = 0; private 1837 lib/fencing/st_client.c private->notify_deletes = FALSE; private 483 lib/lrmd/lrmd_client.c lrmd_private_t *private = NULL; private 487 lib/lrmd/lrmd_client.c private = lrmd->lrmd_private; private 488 lib/lrmd/lrmd_client.c switch (private->type) { private 490 lib/lrmd/lrmd_client.c while (crm_ipc_ready(private->ipc)) { private 491 lib/lrmd/lrmd_client.c if (crm_ipc_read(private->ipc) > 0) { private 492 lib/lrmd/lrmd_client.c const char *msg = crm_ipc_buffer(private->ipc); private 505 lib/lrmd/lrmd_client.c private->type);