private 70 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 75 lib/cib/cib_file.c g_hash_table_insert(client_table, private->id, (gpointer) cib); private 87 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 93 lib/cib/cib_file.c g_hash_table_remove(client_table, private->id); private 232 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 254 lib/cib/cib_file.c request, data, true, &changed, &private->cib_xml, private 271 lib/cib/cib_file.c if (result_cib != private->cib_xml) { private 272 lib/cib/cib_file.c free_xml(private->cib_xml); private 273 lib/cib/cib_file.c private->cib_xml = result_cib; private 275 lib/cib/cib_file.c cib_set_file_flags(private, cib_file_flag_dirty); private 284 lib/cib/cib_file.c if ((result_cib != private->cib_xml) && (result_cib != *output)) { private 300 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 337 lib/cib/cib_file.c crm_xml_add(request, PCMK__XA_CIB_CLIENTID, private->id); private 347 lib/cib/cib_file.c if (output->doc == private->cib_xml->doc) { private 356 lib/cib/cib_file.c && (output->doc != private->cib_xml->doc) private 420 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 422 lib/cib/cib_file.c if (private->filename == NULL) { private 425 lib/cib/cib_file.c rc = load_file_cib(private->filename, &private->cib_xml); private 430 lib/cib/cib_file.c private->filename, name); private 437 lib/cib/cib_file.c private->filename, name, private->id, pcmk_strerror(rc)); private 537 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 546 lib/cib/cib_file.c if (pcmk_is_set(private->flags, cib_file_flag_dirty)) { private 549 lib/cib/cib_file.c if (pcmk_is_set(private->flags, cib_file_flag_live)) { private 550 lib/cib/cib_file.c if (cib_file_write_live(private->cib_xml, private->filename) < 0) { private 556 lib/cib/cib_file.c bool compress = pcmk__ends_with_ext(private->filename, ".bz2"); private 558 lib/cib/cib_file.c if (pcmk__xml_write_file(private->cib_xml, private->filename, private 565 lib/cib/cib_file.c crm_info("Wrote CIB to %s", private->filename); private 566 lib/cib/cib_file.c cib_clear_file_flags(private, cib_file_flag_dirty); private 568 lib/cib/cib_file.c crm_err("Could not write CIB to %s", private->filename); private 573 lib/cib/cib_file.c free_xml(private->cib_xml); private 574 lib/cib/cib_file.c private->cib_xml = NULL; private 588 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 590 lib/cib/cib_file.c free(private->id); private 591 lib/cib/cib_file.c free(private->filename); private 592 lib/cib/cib_file.c free(private); private 640 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 643 lib/cib/cib_file.c *async_id = private->id; private 646 lib/cib/cib_file.c *sync_id = private->id; private 655 lib/cib/cib_file.c cib_file_opaque_t *private = NULL; private 676 lib/cib/cib_file.c private = calloc(1, sizeof(cib_file_opaque_t)); private 677 lib/cib/cib_file.c if (private == NULL) { private 683 lib/cib/cib_file.c private->id = crm_generate_uuid(); private 684 lib/cib/cib_file.c private->filename = filename; private 687 lib/cib/cib_file.c cib->variant_opaque = private; private 689 lib/cib/cib_file.c private->flags = 0; private 691 lib/cib/cib_file.c cib_set_file_flags(private, cib_file_flag_live); private 1076 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 1092 lib/cib/cib_file.c private->id, private->filename, op, pcmk_rc_str(rc)); private 1099 lib/cib/cib_file.c op, private->id, private->filename); private 1125 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 1126 lib/cib/cib_file.c xmlNode *saved_cib = private->cib_xml; private 1138 lib/cib/cib_file.c CRM_CHECK((*result_cib != NULL) && (*result_cib != private->cib_xml), private 1139 lib/cib/cib_file.c *result_cib = pcmk__xml_copy(NULL, private->cib_xml)); private 1143 lib/cib/cib_file.c private->id, private->filename); private 1146 lib/cib/cib_file.c private->cib_xml = *result_cib; private 1152 lib/cib/cib_file.c private->id, private->filename); private 1160 lib/cib/cib_file.c *result_cib = private->cib_xml; private 1163 lib/cib/cib_file.c private->cib_xml = saved_cib; private 1185 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 1189 lib/cib/cib_file.c private->id, private->filename, pcmk_rc_str(rc)); private 71 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 100 lib/cib/cib_remote.c pcmk__remote_send_xml(&private->callback, op_msg); private 102 lib/cib/cib_remote.c pcmk__remote_send_xml(&private->command, op_msg); private 124 lib/cib/cib_remote.c rc = pcmk__read_remote_message(&private->command, private 126 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 218 lib/cib/cib_remote.c if (private->start_time == 0) { private 219 lib/cib/cib_remote.c private->start_time = time(NULL); private 222 lib/cib/cib_remote.c rc = pcmk__read_available_remote_data(&private->callback); private 230 lib/cib/cib_remote.c if (time(NULL) >= private->start_time + private->timeout_sec) { private 246 lib/cib/cib_remote.c msg = pcmk__remote_message_xml(&private->callback); private 248 lib/cib/cib_remote.c private->start_time = 0; private 265 lib/cib/cib_remote.c private->start_time = 0; private 274 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 277 lib/cib/cib_remote.c if (private->start_time == 0) { private 278 lib/cib/cib_remote.c private->start_time = time(NULL); private 281 lib/cib/cib_remote.c rc = pcmk__read_available_remote_data(&private->command); private 284 lib/cib/cib_remote.c if (time(NULL) >= private->start_time + private->timeout_sec) { private 294 lib/cib/cib_remote.c free(private->command.buffer); private 295 lib/cib/cib_remote.c private->command.buffer = NULL; private 304 lib/cib/cib_remote.c private->start_time = 0; private 311 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 314 lib/cib/cib_remote.c if (private->encrypted) { private 315 lib/cib/cib_remote.c if (private->command.tls_session) { private 316 lib/cib/cib_remote.c gnutls_bye(*(private->command.tls_session), GNUTLS_SHUT_RDWR); private 317 lib/cib/cib_remote.c gnutls_deinit(*(private->command.tls_session)); private 318 lib/cib/cib_remote.c gnutls_free(private->command.tls_session); private 321 lib/cib/cib_remote.c if (private->callback.tls_session) { private 322 lib/cib/cib_remote.c gnutls_bye(*(private->callback.tls_session), GNUTLS_SHUT_RDWR); private 323 lib/cib/cib_remote.c gnutls_deinit(*(private->callback.tls_session)); private 324 lib/cib/cib_remote.c gnutls_free(private->callback.tls_session); private 326 lib/cib/cib_remote.c private->command.tls_session = NULL; private 327 lib/cib/cib_remote.c private->callback.tls_session = NULL; private 336 lib/cib/cib_remote.c if (private->command.tcp_socket) { private 337 lib/cib/cib_remote.c shutdown(private->command.tcp_socket, SHUT_RDWR); /* no more receptions */ private 338 lib/cib/cib_remote.c close(private->command.tcp_socket); private 340 lib/cib/cib_remote.c if (private->callback.tcp_socket) { private 341 lib/cib/cib_remote.c shutdown(private->callback.tcp_socket, SHUT_RDWR); /* no more receptions */ private 342 lib/cib/cib_remote.c close(private->callback.tcp_socket); private 344 lib/cib/cib_remote.c private->command.tcp_socket = 0; private 345 lib/cib/cib_remote.c private->callback.tcp_socket = 0; private 347 lib/cib/cib_remote.c free(private->command.buffer); private 348 lib/cib/cib_remote.c free(private->callback.buffer); private 349 lib/cib/cib_remote.c private->command.buffer = NULL; private 350 lib/cib/cib_remote.c private->callback.buffer = NULL; private 367 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 383 lib/cib/cib_remote.c rc = pcmk__connect_remote(private->server, private->port, 0, NULL, private 387 lib/cib/cib_remote.c private->server, private->port, pcmk_rc_str(rc), rc); private 391 lib/cib/cib_remote.c if (private->encrypted) { private 416 lib/cib/cib_remote.c private->server, private->port, private 432 lib/cib/cib_remote.c crm_xml_add(login, PCMK_XA_USER, private->user); private 433 lib/cib/cib_remote.c crm_xml_add(login, PCMK__XA_PASSWORD, private->passwd); private 476 lib/cib/cib_remote.c private->timeout_sec = 60; private 487 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 490 lib/cib/cib_remote.c if (private->passwd == NULL) { private 491 lib/cib/cib_remote.c if (private->out == NULL) { private 495 lib/cib/cib_remote.c pcmk__text_prompt("Password", false, &(private->passwd)); private 497 lib/cib/cib_remote.c private->out->prompt("Password", false, &(private->passwd)); private 501 lib/cib/cib_remote.c if (private->server == NULL || private->user == NULL) { private 506 lib/cib/cib_remote.c rc = cib_tls_signon(cib, &(private->command), FALSE); private 510 lib/cib/cib_remote.c rc = cib_tls_signon(cib, &(private->callback), TRUE); private 519 lib/cib/cib_remote.c rc = pcmk__remote_send_xml(&private->command, hello); private 526 lib/cib/cib_remote.c private->server, private->port, name); private 532 lib/cib/cib_remote.c private->server, private->port, name, pcmk_strerror(rc)); private 564 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 566 lib/cib/cib_remote.c free(private->server); private 567 lib/cib/cib_remote.c free(private->user); private 568 lib/cib/cib_remote.c free(private->passwd); private 571 lib/cib/cib_remote.c free(private); private 582 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 584 lib/cib/cib_remote.c return private->callback.tcp_socket; private 591 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 596 lib/cib/cib_remote.c pcmk__remote_send_xml(&private->callback, notify_msg); private 628 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 632 lib/cib/cib_remote.c *async_id = private->callback.token; private 636 lib/cib/cib_remote.c *sync_id = private->command.token; private 645 lib/cib/cib_remote.c cib_remote_opaque_t *private = NULL; private 652 lib/cib/cib_remote.c private = calloc(1, sizeof(cib_remote_opaque_t)); private 654 lib/cib/cib_remote.c if (private == NULL) { private 660 lib/cib/cib_remote.c cib->variant_opaque = private; private 662 lib/cib/cib_remote.c private->server = pcmk__str_copy(server); private 663 lib/cib/cib_remote.c private->user = pcmk__str_copy(user); private 664 lib/cib/cib_remote.c private->passwd = pcmk__str_copy(passwd); private 665 lib/cib/cib_remote.c private->port = port; private 666 lib/cib/cib_remote.c private->encrypted = encrypted; private 686 lib/cib/cib_remote.c cib_remote_opaque_t *private; private 692 lib/cib/cib_remote.c private = cib->variant_opaque; private 693 lib/cib/cib_remote.c private->out = out; private 63 lib/common/ipc_controld.c struct controld_api_private_s *private = NULL; private 71 lib/common/ipc_controld.c private = api->api_data; private 79 lib/common/ipc_controld.c private->client_uuid = pcmk__getpid_s(); private 102 lib/common/ipc_controld.c struct controld_api_private_s *private = api->api_data; private 107 lib/common/ipc_controld.c hello = create_hello_message(private->client_uuid, client_name, private 200 lib/common/ipc_controld.c struct controld_api_private_s *private = api->api_data; private 214 lib/common/ipc_controld.c return private->replies_expected > 0; private 217 lib/common/ipc_controld.c if (private->replies_expected > 0) { private 218 lib/common/ipc_controld.c private->replies_expected--; private 321 lib/common/ipc_controld.c struct controld_api_private_s *private = NULL; private 327 lib/common/ipc_controld.c private = api->api_data; private 335 lib/common/ipc_controld.c private->client_uuid); private 347 lib/common/ipc_controld.c struct controld_api_private_s *private = api->api_data; private 349 lib/common/ipc_controld.c private->replies_expected++; private 615 lib/common/ipc_controld.c struct controld_api_private_s *private = api->api_data; private 617 lib/common/ipc_controld.c return private->replies_expected; private 125 lib/common/ipc_pacemakerd.c struct pacemakerd_api_private_s *private = NULL; private 133 lib/common/ipc_pacemakerd.c private = api->api_data; private 134 lib/common/ipc_pacemakerd.c private->state = pcmk_pacemakerd_state_invalid; private 138 lib/common/ipc_pacemakerd.c private->client_uuid = pcmk__getpid_s(); private 154 lib/common/ipc_pacemakerd.c struct pacemakerd_api_private_s *private = NULL; private 159 lib/common/ipc_pacemakerd.c private = api->api_data; private 160 lib/common/ipc_pacemakerd.c private->state = pcmk_pacemakerd_state_invalid; private 168 lib/common/ipc_pacemakerd.c struct pacemakerd_api_private_s *private = NULL; private 173 lib/common/ipc_pacemakerd.c private = api->api_data; private 174 lib/common/ipc_pacemakerd.c private->state = pcmk_pacemakerd_state_invalid; private 288 lib/common/ipc_pacemakerd.c pacemakerd_api_private_t *private; private 296 lib/common/ipc_pacemakerd.c private = api->api_data; private 297 lib/common/ipc_pacemakerd.c pcmk__assert(private != NULL); private 301 lib/common/ipc_pacemakerd.c private->client_uuid); private 30 lib/common/ipc_schedulerd.c struct schedulerd_api_private_s *private = NULL; private 38 lib/common/ipc_schedulerd.c private = api->api_data; private 40 lib/common/ipc_schedulerd.c private->client_uuid = pcmk__getpid_s(); private 149 lib/common/ipc_schedulerd.c schedulerd_api_private_t *private; private 157 lib/common/ipc_schedulerd.c private = api->api_data; private 158 lib/common/ipc_schedulerd.c pcmk__assert(private != NULL); private 162 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 873 lib/fencing/st_client.c stonith_private_t *private = stonith->st_private; private 876 lib/fencing/st_client.c private->op_callback = NULL; private 877 lib/fencing/st_client.c g_hash_table_destroy(private->stonith_op_callback_table); private 878 lib/fencing/st_client.c private->stonith_op_callback_table = pcmk__intkey_table(stonith_destroy_op_callback); private 881 lib/fencing/st_client.c private->op_callback = NULL; private 884 lib/fencing/st_client.c pcmk__intkey_table_remove(private->stonith_op_callback_table, call_id); private 931 lib/fencing/st_client.c stonith_private_t *private = NULL; private 938 lib/fencing/st_client.c private = stonith->st_private; private 956 lib/fencing/st_client.c cb_info = pcmk__intkey_table_lookup(private->stonith_op_callback_table, private 967 lib/fencing/st_client.c } else if ((private->op_callback == NULL) && !pcmk__result_ok(&result)) { private 976 lib/fencing/st_client.c if (private->op_callback != NULL) { private 979 lib/fencing/st_client.c private->op_callback); private 1034 lib/fencing/st_client.c stonith_private_t *private = st->st_private; private 1036 lib/fencing/st_client.c callback = pcmk__intkey_table_lookup(private->stonith_op_callback_table, private 1052 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1055 lib/fencing/st_client.c private = st->st_private; private 1072 lib/fencing/st_client.c foreach_notify_entry(private, stonith_send_notification, &blob); private 1228 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1230 lib/fencing/st_client.c private = stonith->st_private; private 1231 lib/fencing/st_client.c crm_trace("Adding callback for %s events (%d)", event, g_list_length(private->notify_list)); private 1237 lib/fencing/st_client.c list_item = g_list_find_custom(private->notify_list, new_client, stonithlib_GCompareFunc); private 1245 lib/fencing/st_client.c private->notify_list = g_list_append(private->notify_list, new_client); private 1249 lib/fencing/st_client.c crm_trace("Callback added (%d)", g_list_length(private->notify_list)); private 1271 lib/fencing/st_client.c stonith_private_t *private = stonith->st_private; private 1274 lib/fencing/st_client.c foreach_notify_entry(private, del_notify_entry, stonith); private 1286 lib/fencing/st_client.c list_item = g_list_find_custom(private->notify_list, new_client, stonithlib_GCompareFunc); private 1293 lib/fencing/st_client.c if (private->notify_refcnt) { private 1295 lib/fencing/st_client.c private->notify_deletes = TRUE; private 1297 lib/fencing/st_client.c private->notify_list = g_list_remove(private->notify_list, list_client); private 1316 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1320 lib/fencing/st_client.c private = stonith->st_private; private 1323 lib/fencing/st_client.c private->op_callback = callback; private 1351 lib/fencing/st_client.c pcmk__intkey_table_insert(private->stonith_op_callback_table, call_id, private 1370 lib/fencing/st_client.c stonith_private_t *private = stonith->st_private; private 1372 lib/fencing/st_client.c if (private->stonith_op_callback_table == NULL) { private 1375 lib/fencing/st_client.c return g_hash_table_foreach(private->stonith_op_callback_table, stonith_dump_pending_op, NULL); private 1670 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1673 lib/fencing/st_client.c private = st->st_private; private 1675 lib/fencing/st_client.c while (crm_ipc_ready(private->ipc)) { private 1677 lib/fencing/st_client.c if (crm_ipc_read(private->ipc) > 0) { private 1678 lib/fencing/st_client.c const char *msg = crm_ipc_buffer(private->ipc); private 1683 lib/fencing/st_client.c if (!crm_ipc_connected(private->ipc)) { private 1707 lib/fencing/st_client.c stonith_private_t *private = stonith->st_private; private 1709 lib/fencing/st_client.c crm_trace("Removing %d callbacks", g_hash_table_size(private->stonith_op_callback_table)); private 1710 lib/fencing/st_client.c g_hash_table_destroy(private->stonith_op_callback_table); private 1712 lib/fencing/st_client.c crm_trace("Destroying %d notification clients", g_list_length(private->notify_list)); private 1713 lib/fencing/st_client.c g_list_free_full(private->notify_list, free); private 1837 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1844 lib/fencing/st_client.c private = calloc(1, sizeof(stonith_private_t)); private 1845 lib/fencing/st_client.c if (private == NULL) { private 1849 lib/fencing/st_client.c new_stonith->st_private = private; private 1851 lib/fencing/st_client.c private->stonith_op_callback_table = pcmk__intkey_table(stonith_destroy_op_callback); private 1852 lib/fencing/st_client.c private->notify_list = NULL; private 1853 lib/fencing/st_client.c private->notify_refcnt = 0; private 1854 lib/fencing/st_client.c private->notify_deletes = FALSE; private 528 lib/lrmd/lrmd_client.c lrmd_private_t *private = NULL; private 532 lib/lrmd/lrmd_client.c private = lrmd->lrmd_private; private 533 lib/lrmd/lrmd_client.c switch (private->type) { private 535 lib/lrmd/lrmd_client.c while (crm_ipc_ready(private->ipc)) { private 536 lib/lrmd/lrmd_client.c if (crm_ipc_read(private->ipc) > 0) { private 537 lib/lrmd/lrmd_client.c const char *msg = crm_ipc_buffer(private->ipc); private 550 lib/lrmd/lrmd_client.c private->type);