private 497 lib/cib/cib_file.c cib_file_opaque_t *private = NULL; private 504 lib/cib/cib_file.c private = calloc(1, sizeof(cib_file_opaque_t)); private 506 lib/cib/cib_file.c if (private == NULL) { private 512 lib/cib/cib_file.c cib->variant_opaque = private; private 517 lib/cib/cib_file.c private->flags = 0; private 519 lib/cib/cib_file.c cib_set_file_flags(private, cib_file_flag_live); private 522 lib/cib/cib_file.c private->filename = strdup(cib_location); private 593 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 595 lib/cib/cib_file.c if (private->filename == NULL) { private 598 lib/cib/cib_file.c rc = load_file_cib(private->filename); private 603 lib/cib/cib_file.c private->filename, name); private 609 lib/cib/cib_file.c private->filename, name, pcmk_strerror(rc)); private 708 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 715 lib/cib/cib_file.c if (pcmk_is_set(private->flags, cib_file_flag_dirty)) { private 718 lib/cib/cib_file.c if (pcmk_is_set(private->flags, cib_file_flag_live)) { private 719 lib/cib/cib_file.c if (cib_file_write_live(private->filename) < 0) { private 725 lib/cib/cib_file.c gboolean do_bzip = pcmk__ends_with_ext(private->filename, ".bz2"); private 727 lib/cib/cib_file.c if (write_xml_file(in_mem_cib, private->filename, do_bzip) <= 0) { private 733 lib/cib/cib_file.c crm_info("Wrote CIB to %s", private->filename); private 734 lib/cib/cib_file.c cib_clear_file_flags(private, cib_file_flag_dirty); private 736 lib/cib/cib_file.c crm_err("Could not write CIB to %s", private->filename); private 756 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 758 lib/cib/cib_file.c free(private->filename); private 760 lib/cib/cib_file.c free(private); private 814 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 874 lib/cib/cib_file.c cib_set_file_flags(private, cib_file_flag_dirty); private 80 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 82 lib/cib/cib_remote.c return private->callback.tcp_socket; private 95 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, notify_msg); private 109 lib/cib/cib_remote.c cib_remote_opaque_t *private = NULL; private 116 lib/cib/cib_remote.c private = calloc(1, sizeof(cib_remote_opaque_t)); private 118 lib/cib/cib_remote.c if (private == NULL) { private 124 lib/cib/cib_remote.c cib->variant_opaque = private; private 127 lib/cib/cib_remote.c private->server = strdup(server); private 131 lib/cib/cib_remote.c private->user = strdup(user); private 135 lib/cib/cib_remote.c private->passwd = strdup(passwd); private 138 lib/cib/cib_remote.c private->port = port; private 139 lib/cib/cib_remote.c private->encrypted = encrypted; private 157 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 160 lib/cib/cib_remote.c if (private->encrypted) { private 161 lib/cib/cib_remote.c if (private->command.tls_session) { private 162 lib/cib/cib_remote.c gnutls_bye(*(private->command.tls_session), GNUTLS_SHUT_RDWR); private 163 lib/cib/cib_remote.c gnutls_deinit(*(private->command.tls_session)); private 164 lib/cib/cib_remote.c gnutls_free(private->command.tls_session); private 167 lib/cib/cib_remote.c if (private->callback.tls_session) { private 168 lib/cib/cib_remote.c gnutls_bye(*(private->callback.tls_session), GNUTLS_SHUT_RDWR); private 169 lib/cib/cib_remote.c gnutls_deinit(*(private->callback.tls_session)); private 170 lib/cib/cib_remote.c gnutls_free(private->callback.tls_session); private 172 lib/cib/cib_remote.c private->command.tls_session = NULL; private 173 lib/cib/cib_remote.c private->callback.tls_session = NULL; private 182 lib/cib/cib_remote.c if (private->command.tcp_socket) { private 183 lib/cib/cib_remote.c shutdown(private->command.tcp_socket, SHUT_RDWR); /* no more receptions */ private 184 lib/cib/cib_remote.c close(private->command.tcp_socket); private 186 lib/cib/cib_remote.c if (private->callback.tcp_socket) { private 187 lib/cib/cib_remote.c shutdown(private->callback.tcp_socket, SHUT_RDWR); /* no more receptions */ private 188 lib/cib/cib_remote.c close(private->callback.tcp_socket); private 190 lib/cib/cib_remote.c private->command.tcp_socket = 0; private 191 lib/cib/cib_remote.c private->callback.tcp_socket = 0; private 193 lib/cib/cib_remote.c free(private->command.buffer); private 194 lib/cib/cib_remote.c free(private->callback.buffer); private 195 lib/cib/cib_remote.c private->command.buffer = NULL; private 196 lib/cib/cib_remote.c private->callback.buffer = NULL; private 204 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 220 lib/cib/cib_remote.c rc = pcmk__connect_remote(private->server, private->port, 0, NULL, private 224 lib/cib/cib_remote.c private->server, private->port, pcmk_rc_str(rc), rc); private 228 lib/cib/cib_remote.c if (private->encrypted) { private 249 lib/cib/cib_remote.c crm_err("Session creation for %s:%d failed", private->server, private->port); private 265 lib/cib/cib_remote.c crm_xml_add(login, "user", private->user); private 266 lib/cib/cib_remote.c crm_xml_add(login, "password", private->passwd); private 329 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 331 lib/cib/cib_remote.c rc = pcmk__read_remote_message(&private->command, -1); private 333 lib/cib/cib_remote.c free(private->command.buffer); private 334 lib/cib/cib_remote.c private->command.buffer = NULL; private 348 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 354 lib/cib/cib_remote.c rc = pcmk__read_remote_message(&private->callback, -1); private 356 lib/cib/cib_remote.c msg = pcmk__remote_message_xml(&private->callback); private 373 lib/cib/cib_remote.c msg = pcmk__remote_message_xml(&private->callback); private 387 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 389 lib/cib/cib_remote.c if (private->passwd == NULL) { private 390 lib/cib/cib_remote.c if (private->out == NULL) { private 394 lib/cib/cib_remote.c pcmk__text_prompt("Password", false, &(private->passwd)); private 396 lib/cib/cib_remote.c private->out->prompt("Password", false, &(private->passwd)); private 400 lib/cib/cib_remote.c if (private->server == NULL || private->user == NULL) { private 405 lib/cib/cib_remote.c rc = cib_tls_signon(cib, &(private->command), FALSE); private 409 lib/cib/cib_remote.c rc = cib_tls_signon(cib, &(private->callback), TRUE); private 414 lib/cib/cib_remote.c cib_create_op(0, private->callback.token, CRM_OP_REGISTER, NULL, NULL, NULL, 0, NULL); private 416 lib/cib/cib_remote.c pcmk__remote_send_xml(&private->command, hello); private 422 lib/cib/cib_remote.c private->server, private->port, name); private 428 lib/cib/cib_remote.c private->server, private->port, name, pcmk_strerror(rc)); private 461 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 463 lib/cib/cib_remote.c free(private->server); private 464 lib/cib/cib_remote.c free(private->user); private 465 lib/cib/cib_remote.c free(private->passwd); private 467 lib/cib/cib_remote.c free(private); private 486 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 507 lib/cib/cib_remote.c cib_create_op(cib->call_id, private->callback.token, op, host, section, data, call_options, private 515 lib/cib/cib_remote.c pcmk__remote_send_xml(&private->callback, op_msg); private 517 lib/cib/cib_remote.c pcmk__remote_send_xml(&private->command, op_msg); private 539 lib/cib/cib_remote.c rc = pcmk__read_remote_message(&private->command, private 541 lib/cib/cib_remote.c op_reply = pcmk__remote_message_xml(&private->command); private 627 lib/cib/cib_remote.c cib_remote_opaque_t *private; private 633 lib/cib/cib_remote.c private = cib->variant_opaque; private 634 lib/cib/cib_remote.c private->out = out; private 34 lib/common/ipc_controld.c struct controld_api_private_s *private = NULL; private 42 lib/common/ipc_controld.c private = api->api_data; private 50 lib/common/ipc_controld.c private->client_uuid = pcmk__getpid_s(); private 73 lib/common/ipc_controld.c struct controld_api_private_s *private = api->api_data; private 78 lib/common/ipc_controld.c hello = create_hello_message(private->client_uuid, client_name, private 165 lib/common/ipc_controld.c struct controld_api_private_s *private = api->api_data; private 173 lib/common/ipc_controld.c if (private->replies_expected > 0) { private 174 lib/common/ipc_controld.c private->replies_expected--; private 273 lib/common/ipc_controld.c struct controld_api_private_s *private = NULL; private 279 lib/common/ipc_controld.c private = api->api_data; private 287 lib/common/ipc_controld.c private->client_uuid); private 302 lib/common/ipc_controld.c struct controld_api_private_s *private = api->api_data; private 304 lib/common/ipc_controld.c private->replies_expected++; private 566 lib/common/ipc_controld.c struct controld_api_private_s *private = api->api_data; private 568 lib/common/ipc_controld.c return private->replies_expected; private 69 lib/common/ipc_pacemakerd.c struct pacemakerd_api_private_s *private = NULL; private 77 lib/common/ipc_pacemakerd.c private = api->api_data; private 78 lib/common/ipc_pacemakerd.c private->state = pcmk_pacemakerd_state_invalid; private 82 lib/common/ipc_pacemakerd.c private->client_uuid = pcmk__getpid_s(); private 98 lib/common/ipc_pacemakerd.c struct pacemakerd_api_private_s *private = NULL; private 103 lib/common/ipc_pacemakerd.c private = api->api_data; private 104 lib/common/ipc_pacemakerd.c private->state = pcmk_pacemakerd_state_invalid; private 112 lib/common/ipc_pacemakerd.c struct pacemakerd_api_private_s *private = NULL; private 117 lib/common/ipc_pacemakerd.c private = api->api_data; private 118 lib/common/ipc_pacemakerd.c private->state = pcmk_pacemakerd_state_invalid; private 214 lib/common/ipc_pacemakerd.c pacemakerd_api_private_t *private; private 219 lib/common/ipc_pacemakerd.c private = api->api_data; private 220 lib/common/ipc_pacemakerd.c CRM_ASSERT(private != NULL); private 224 lib/common/ipc_pacemakerd.c private->client_uuid); private 284 lib/fencing/st_client.c foreach_notify_entry (stonith_private_t *private, private 288 lib/fencing/st_client.c private->notify_refcnt++; private 289 lib/fencing/st_client.c g_list_foreach(private->notify_list, func, user_data); private 290 lib/fencing/st_client.c private->notify_refcnt--; private 291 lib/fencing/st_client.c if ((private->notify_refcnt == 0) && private 292 lib/fencing/st_client.c private->notify_deletes) { private 293 lib/fencing/st_client.c GList *list_item = private->notify_list; private 295 lib/fencing/st_client.c private->notify_deletes = FALSE; private 303 lib/fencing/st_client.c private->notify_list = private 304 lib/fencing/st_client.c g_list_delete_link(private->notify_list, list_item); private 1334 lib/fencing/st_client.c stonith_private_t *private = stonith->st_private; private 1337 lib/fencing/st_client.c private->op_callback = NULL; private 1338 lib/fencing/st_client.c g_hash_table_destroy(private->stonith_op_callback_table); private 1339 lib/fencing/st_client.c private->stonith_op_callback_table = pcmk__intkey_table(stonith_destroy_op_callback); private 1342 lib/fencing/st_client.c private->op_callback = NULL; private 1345 lib/fencing/st_client.c pcmk__intkey_table_remove(private->stonith_op_callback_table, call_id); private 1366 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1373 lib/fencing/st_client.c private = stonith->st_private; private 1387 lib/fencing/st_client.c blob = pcmk__intkey_table_lookup(private->stonith_op_callback_table, private 1404 lib/fencing/st_client.c } else if (private->op_callback == NULL && rc != pcmk_ok) { private 1409 lib/fencing/st_client.c if (private->op_callback != NULL) { private 1411 lib/fencing/st_client.c invoke_callback(stonith, call_id, rc, NULL, private->op_callback); private 1462 lib/fencing/st_client.c stonith_private_t *private = st->st_private; private 1464 lib/fencing/st_client.c callback = pcmk__intkey_table_lookup(private->stonith_op_callback_table, private 1480 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1483 lib/fencing/st_client.c private = st->st_private; private 1500 lib/fencing/st_client.c foreach_notify_entry(private, stonith_send_notification, &blob); private 1650 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1652 lib/fencing/st_client.c private = stonith->st_private; private 1653 lib/fencing/st_client.c crm_trace("Adding callback for %s events (%d)", event, g_list_length(private->notify_list)); private 1659 lib/fencing/st_client.c list_item = g_list_find_custom(private->notify_list, new_client, stonithlib_GCompareFunc); private 1667 lib/fencing/st_client.c private->notify_list = g_list_append(private->notify_list, new_client); private 1671 lib/fencing/st_client.c crm_trace("Callback added (%d)", g_list_length(private->notify_list)); private 1681 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1685 lib/fencing/st_client.c private = stonith->st_private; private 1690 lib/fencing/st_client.c list_item = g_list_find_custom(private->notify_list, new_client, stonithlib_GCompareFunc); private 1697 lib/fencing/st_client.c if (private->notify_refcnt) { private 1699 lib/fencing/st_client.c private->notify_deletes = TRUE; private 1701 lib/fencing/st_client.c private->notify_list = g_list_remove(private->notify_list, list_client); private 1720 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1724 lib/fencing/st_client.c private = stonith->st_private; private 1727 lib/fencing/st_client.c private->op_callback = callback; private 1750 lib/fencing/st_client.c pcmk__intkey_table_insert(private->stonith_op_callback_table, call_id, private 1769 lib/fencing/st_client.c stonith_private_t *private = stonith->st_private; private 1771 lib/fencing/st_client.c if (private->stonith_op_callback_table == NULL) { private 1774 lib/fencing/st_client.c return g_hash_table_foreach(private->stonith_op_callback_table, stonith_dump_pending_op, NULL); private 2021 lib/fencing/st_client.c stonith_private_t *private = NULL; private 2024 lib/fencing/st_client.c private = st->st_private; private 2026 lib/fencing/st_client.c while (crm_ipc_ready(private->ipc)) { private 2028 lib/fencing/st_client.c if (crm_ipc_read(private->ipc) > 0) { private 2029 lib/fencing/st_client.c const char *msg = crm_ipc_buffer(private->ipc); private 2034 lib/fencing/st_client.c if (crm_ipc_connected(private->ipc) == FALSE) { private 2056 lib/fencing/st_client.c stonith_private_t *private = stonith->st_private; private 2058 lib/fencing/st_client.c crm_trace("Removing %d callbacks", g_hash_table_size(private->stonith_op_callback_table)); private 2059 lib/fencing/st_client.c g_hash_table_destroy(private->stonith_op_callback_table); private 2061 lib/fencing/st_client.c crm_trace("Destroying %d notification clients", g_list_length(private->notify_list)); private 2062 lib/fencing/st_client.c g_list_free_full(private->notify_list, free); private 2165 lib/fencing/st_client.c stonith_private_t *private = NULL; private 2172 lib/fencing/st_client.c private = calloc(1, sizeof(stonith_private_t)); private 2173 lib/fencing/st_client.c if (private == NULL) { private 2177 lib/fencing/st_client.c new_stonith->st_private = private; private 2179 lib/fencing/st_client.c private->stonith_op_callback_table = pcmk__intkey_table(stonith_destroy_op_callback); private 2180 lib/fencing/st_client.c private->notify_list = NULL; private 2181 lib/fencing/st_client.c private->notify_refcnt = 0; private 2182 lib/fencing/st_client.c private->notify_deletes = FALSE; private 480 lib/lrmd/lrmd_client.c lrmd_private_t *private = NULL; private 484 lib/lrmd/lrmd_client.c private = lrmd->lrmd_private; private 485 lib/lrmd/lrmd_client.c switch (private->type) { private 487 lib/lrmd/lrmd_client.c while (crm_ipc_ready(private->ipc)) { private 488 lib/lrmd/lrmd_client.c if (crm_ipc_read(private->ipc) > 0) { private 489 lib/lrmd/lrmd_client.c const char *msg = crm_ipc_buffer(private->ipc); private 502 lib/lrmd/lrmd_client.c private->type);