private 71 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 76 lib/cib/cib_file.c g_hash_table_insert(client_table, private->id, (gpointer) cib); private 88 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 94 lib/cib/cib_file.c g_hash_table_remove(client_table, private->id); private 231 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 249 lib/cib/cib_file.c request, data, true, &changed, &private->cib_xml, private 265 lib/cib/cib_file.c if (result_cib != private->cib_xml) { private 266 lib/cib/cib_file.c free_xml(private->cib_xml); private 267 lib/cib/cib_file.c private->cib_xml = result_cib; private 269 lib/cib/cib_file.c cib_set_file_flags(private, cib_file_flag_dirty); private 278 lib/cib/cib_file.c if ((result_cib != private->cib_xml) && (result_cib != *output)) { private 294 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 331 lib/cib/cib_file.c crm_xml_add(request, F_CIB_CLIENTID, private->id); private 341 lib/cib/cib_file.c if (output->doc == private->cib_xml->doc) { private 350 lib/cib/cib_file.c && (output->doc != private->cib_xml->doc) private 414 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 416 lib/cib/cib_file.c if (private->filename == NULL) { private 419 lib/cib/cib_file.c rc = load_file_cib(private->filename, &private->cib_xml); private 424 lib/cib/cib_file.c private->filename, name); private 431 lib/cib/cib_file.c private->filename, name, private->id, pcmk_strerror(rc)); private 531 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 540 lib/cib/cib_file.c if (pcmk_is_set(private->flags, cib_file_flag_dirty)) { private 543 lib/cib/cib_file.c if (pcmk_is_set(private->flags, cib_file_flag_live)) { private 544 lib/cib/cib_file.c if (cib_file_write_live(private->cib_xml, private->filename) < 0) { private 550 lib/cib/cib_file.c gboolean do_bzip = pcmk__ends_with_ext(private->filename, ".bz2"); private 552 lib/cib/cib_file.c if (write_xml_file(private->cib_xml, private->filename, private 559 lib/cib/cib_file.c crm_info("Wrote CIB to %s", private->filename); private 560 lib/cib/cib_file.c cib_clear_file_flags(private, cib_file_flag_dirty); private 562 lib/cib/cib_file.c crm_err("Could not write CIB to %s", private->filename); private 567 lib/cib/cib_file.c free_xml(private->cib_xml); private 568 lib/cib/cib_file.c private->cib_xml = NULL; private 582 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 584 lib/cib/cib_file.c free(private->id); private 585 lib/cib/cib_file.c free(private->filename); private 586 lib/cib/cib_file.c free(private); private 634 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 637 lib/cib/cib_file.c *async_id = private->id; private 640 lib/cib/cib_file.c *sync_id = private->id; private 648 lib/cib/cib_file.c cib_file_opaque_t *private = NULL; private 655 lib/cib/cib_file.c private = calloc(1, sizeof(cib_file_opaque_t)); private 657 lib/cib/cib_file.c if (private == NULL) { private 661 lib/cib/cib_file.c private->id = crm_generate_uuid(); private 664 lib/cib/cib_file.c cib->variant_opaque = private; private 670 lib/cib/cib_file.c private->flags = 0; private 672 lib/cib/cib_file.c cib_set_file_flags(private, cib_file_flag_live); private 675 lib/cib/cib_file.c private->filename = strdup(cib_location); private 1064 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 1078 lib/cib/cib_file.c private->id, private->filename, op, pcmk_rc_str(rc)); private 1085 lib/cib/cib_file.c op, private->id, private->filename); private 1111 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 1112 lib/cib/cib_file.c xmlNode *saved_cib = private->cib_xml; private 1124 lib/cib/cib_file.c CRM_CHECK((*result_cib != NULL) && (*result_cib != private->cib_xml), private 1125 lib/cib/cib_file.c *result_cib = copy_xml(private->cib_xml)); private 1129 lib/cib/cib_file.c private->id, private->filename); private 1132 lib/cib/cib_file.c private->cib_xml = *result_cib; private 1138 lib/cib/cib_file.c private->id, private->filename); private 1146 lib/cib/cib_file.c *result_cib = private->cib_xml; private 1149 lib/cib/cib_file.c private->cib_xml = saved_cib; private 1171 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 1175 lib/cib/cib_file.c private->id, private->filename, pcmk_rc_str(rc)); private 68 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 97 lib/cib/cib_remote.c pcmk__remote_send_xml(&private->callback, op_msg); private 99 lib/cib/cib_remote.c pcmk__remote_send_xml(&private->command, op_msg); private 121 lib/cib/cib_remote.c rc = pcmk__read_remote_message(&private->command, private 123 lib/cib/cib_remote.c op_reply = pcmk__remote_message_xml(&private->command); private 211 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 217 lib/cib/cib_remote.c rc = pcmk__read_remote_message(&private->callback, -1); private 219 lib/cib/cib_remote.c msg = pcmk__remote_message_xml(&private->callback); private 236 lib/cib/cib_remote.c msg = pcmk__remote_message_xml(&private->callback); private 251 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 253 lib/cib/cib_remote.c rc = pcmk__read_remote_message(&private->command, -1); private 255 lib/cib/cib_remote.c free(private->command.buffer); private 256 lib/cib/cib_remote.c private->command.buffer = NULL; private 268 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 271 lib/cib/cib_remote.c if (private->encrypted) { private 272 lib/cib/cib_remote.c if (private->command.tls_session) { private 273 lib/cib/cib_remote.c gnutls_bye(*(private->command.tls_session), GNUTLS_SHUT_RDWR); private 274 lib/cib/cib_remote.c gnutls_deinit(*(private->command.tls_session)); private 275 lib/cib/cib_remote.c gnutls_free(private->command.tls_session); private 278 lib/cib/cib_remote.c if (private->callback.tls_session) { private 279 lib/cib/cib_remote.c gnutls_bye(*(private->callback.tls_session), GNUTLS_SHUT_RDWR); private 280 lib/cib/cib_remote.c gnutls_deinit(*(private->callback.tls_session)); private 281 lib/cib/cib_remote.c gnutls_free(private->callback.tls_session); private 283 lib/cib/cib_remote.c private->command.tls_session = NULL; private 284 lib/cib/cib_remote.c private->callback.tls_session = NULL; private 293 lib/cib/cib_remote.c if (private->command.tcp_socket) { private 294 lib/cib/cib_remote.c shutdown(private->command.tcp_socket, SHUT_RDWR); /* no more receptions */ private 295 lib/cib/cib_remote.c close(private->command.tcp_socket); private 297 lib/cib/cib_remote.c if (private->callback.tcp_socket) { private 298 lib/cib/cib_remote.c shutdown(private->callback.tcp_socket, SHUT_RDWR); /* no more receptions */ private 299 lib/cib/cib_remote.c close(private->callback.tcp_socket); private 301 lib/cib/cib_remote.c private->command.tcp_socket = 0; private 302 lib/cib/cib_remote.c private->callback.tcp_socket = 0; private 304 lib/cib/cib_remote.c free(private->command.buffer); private 305 lib/cib/cib_remote.c free(private->callback.buffer); private 306 lib/cib/cib_remote.c private->command.buffer = NULL; private 307 lib/cib/cib_remote.c private->callback.buffer = NULL; private 324 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 340 lib/cib/cib_remote.c rc = pcmk__connect_remote(private->server, private->port, 0, NULL, private 344 lib/cib/cib_remote.c private->server, private->port, pcmk_rc_str(rc), rc); private 348 lib/cib/cib_remote.c if (private->encrypted) { private 369 lib/cib/cib_remote.c crm_err("Session creation for %s:%d failed", private->server, private->port); private 385 lib/cib/cib_remote.c crm_xml_add(login, "user", private->user); private 386 lib/cib/cib_remote.c crm_xml_add(login, "password", private->passwd); private 438 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 441 lib/cib/cib_remote.c if (private->passwd == NULL) { private 442 lib/cib/cib_remote.c if (private->out == NULL) { private 446 lib/cib/cib_remote.c pcmk__text_prompt("Password", false, &(private->passwd)); private 448 lib/cib/cib_remote.c private->out->prompt("Password", false, &(private->passwd)); private 452 lib/cib/cib_remote.c if (private->server == NULL || private->user == NULL) { private 457 lib/cib/cib_remote.c rc = cib_tls_signon(cib, &(private->command), FALSE); private 461 lib/cib/cib_remote.c rc = cib_tls_signon(cib, &(private->callback), TRUE); private 470 lib/cib/cib_remote.c rc = pcmk__remote_send_xml(&private->command, hello); private 477 lib/cib/cib_remote.c private->server, private->port, name); private 483 lib/cib/cib_remote.c private->server, private->port, name, pcmk_strerror(rc)); private 515 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 517 lib/cib/cib_remote.c free(private->server); private 518 lib/cib/cib_remote.c free(private->user); private 519 lib/cib/cib_remote.c free(private->passwd); private 522 lib/cib/cib_remote.c free(private); private 533 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 535 lib/cib/cib_remote.c return private->callback.tcp_socket; private 542 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 547 lib/cib/cib_remote.c pcmk__remote_send_xml(&private->callback, notify_msg); private 579 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 583 lib/cib/cib_remote.c *async_id = private->callback.token; private 587 lib/cib/cib_remote.c *sync_id = private->command.token; private 596 lib/cib/cib_remote.c cib_remote_opaque_t *private = NULL; private 603 lib/cib/cib_remote.c private = calloc(1, sizeof(cib_remote_opaque_t)); private 605 lib/cib/cib_remote.c if (private == NULL) { private 611 lib/cib/cib_remote.c cib->variant_opaque = private; private 613 lib/cib/cib_remote.c pcmk__str_update(&private->server, server); private 614 lib/cib/cib_remote.c pcmk__str_update(&private->user, user); private 615 lib/cib/cib_remote.c pcmk__str_update(&private->passwd, passwd); private 617 lib/cib/cib_remote.c private->port = port; private 618 lib/cib/cib_remote.c private->encrypted = encrypted; private 638 lib/cib/cib_remote.c cib_remote_opaque_t *private; private 644 lib/cib/cib_remote.c private = cib->variant_opaque; private 645 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 195 lib/common/ipc_controld.c struct controld_api_private_s *private = api->api_data; private 208 lib/common/ipc_controld.c return private->replies_expected > 0; private 211 lib/common/ipc_controld.c if (private->replies_expected > 0) { private 212 lib/common/ipc_controld.c private->replies_expected--; private 313 lib/common/ipc_controld.c struct controld_api_private_s *private = NULL; private 319 lib/common/ipc_controld.c private = api->api_data; private 327 lib/common/ipc_controld.c private->client_uuid); private 339 lib/common/ipc_controld.c struct controld_api_private_s *private = api->api_data; private 341 lib/common/ipc_controld.c private->replies_expected++; private 607 lib/common/ipc_controld.c struct controld_api_private_s *private = api->api_data; private 609 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 871 lib/fencing/st_client.c stonith_private_t *private = stonith->st_private; private 874 lib/fencing/st_client.c private->op_callback = NULL; private 875 lib/fencing/st_client.c g_hash_table_destroy(private->stonith_op_callback_table); private 876 lib/fencing/st_client.c private->stonith_op_callback_table = pcmk__intkey_table(stonith_destroy_op_callback); private 879 lib/fencing/st_client.c private->op_callback = NULL; private 882 lib/fencing/st_client.c pcmk__intkey_table_remove(private->stonith_op_callback_table, call_id); private 929 lib/fencing/st_client.c stonith_private_t *private = NULL; private 936 lib/fencing/st_client.c private = stonith->st_private; private 954 lib/fencing/st_client.c cb_info = pcmk__intkey_table_lookup(private->stonith_op_callback_table, private 965 lib/fencing/st_client.c } else if ((private->op_callback == NULL) && !pcmk__result_ok(&result)) { private 974 lib/fencing/st_client.c if (private->op_callback != NULL) { private 977 lib/fencing/st_client.c private->op_callback); private 1032 lib/fencing/st_client.c stonith_private_t *private = st->st_private; private 1034 lib/fencing/st_client.c callback = pcmk__intkey_table_lookup(private->stonith_op_callback_table, private 1050 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1053 lib/fencing/st_client.c private = st->st_private; private 1070 lib/fencing/st_client.c foreach_notify_entry(private, stonith_send_notification, &blob); private 1224 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1226 lib/fencing/st_client.c private = stonith->st_private; private 1227 lib/fencing/st_client.c crm_trace("Adding callback for %s events (%d)", event, g_list_length(private->notify_list)); private 1233 lib/fencing/st_client.c list_item = g_list_find_custom(private->notify_list, new_client, stonithlib_GCompareFunc); private 1241 lib/fencing/st_client.c private->notify_list = g_list_append(private->notify_list, new_client); private 1245 lib/fencing/st_client.c crm_trace("Callback added (%d)", g_list_length(private->notify_list)); private 1267 lib/fencing/st_client.c stonith_private_t *private = stonith->st_private; private 1270 lib/fencing/st_client.c foreach_notify_entry(private, del_notify_entry, stonith); private 1282 lib/fencing/st_client.c list_item = g_list_find_custom(private->notify_list, new_client, stonithlib_GCompareFunc); private 1289 lib/fencing/st_client.c if (private->notify_refcnt) { private 1291 lib/fencing/st_client.c private->notify_deletes = TRUE; private 1293 lib/fencing/st_client.c private->notify_list = g_list_remove(private->notify_list, list_client); private 1312 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1316 lib/fencing/st_client.c private = stonith->st_private; private 1319 lib/fencing/st_client.c private->op_callback = callback; private 1347 lib/fencing/st_client.c pcmk__intkey_table_insert(private->stonith_op_callback_table, call_id, private 1366 lib/fencing/st_client.c stonith_private_t *private = stonith->st_private; private 1368 lib/fencing/st_client.c if (private->stonith_op_callback_table == NULL) { private 1371 lib/fencing/st_client.c return g_hash_table_foreach(private->stonith_op_callback_table, stonith_dump_pending_op, NULL); private 1663 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1666 lib/fencing/st_client.c private = st->st_private; private 1668 lib/fencing/st_client.c while (crm_ipc_ready(private->ipc)) { private 1670 lib/fencing/st_client.c if (crm_ipc_read(private->ipc) > 0) { private 1671 lib/fencing/st_client.c const char *msg = crm_ipc_buffer(private->ipc); private 1676 lib/fencing/st_client.c if (!crm_ipc_connected(private->ipc)) { private 1700 lib/fencing/st_client.c stonith_private_t *private = stonith->st_private; private 1702 lib/fencing/st_client.c crm_trace("Removing %d callbacks", g_hash_table_size(private->stonith_op_callback_table)); private 1703 lib/fencing/st_client.c g_hash_table_destroy(private->stonith_op_callback_table); private 1705 lib/fencing/st_client.c crm_trace("Destroying %d notification clients", g_list_length(private->notify_list)); private 1706 lib/fencing/st_client.c g_list_free_full(private->notify_list, free); private 1831 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1838 lib/fencing/st_client.c private = calloc(1, sizeof(stonith_private_t)); private 1839 lib/fencing/st_client.c if (private == NULL) { private 1843 lib/fencing/st_client.c new_stonith->st_private = private; private 1845 lib/fencing/st_client.c private->stonith_op_callback_table = pcmk__intkey_table(stonith_destroy_op_callback); private 1846 lib/fencing/st_client.c private->notify_list = NULL; private 1847 lib/fencing/st_client.c private->notify_refcnt = 0; private 1848 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);