private 495 lib/cib/cib_file.c cib_file_opaque_t *private = NULL; private 498 lib/cib/cib_file.c private = calloc(1, sizeof(cib_file_opaque_t)); private 499 lib/cib/cib_file.c CRM_ASSERT((cib != NULL) && (private != NULL)); private 502 lib/cib/cib_file.c cib->variant_opaque = private; private 507 lib/cib/cib_file.c private->flags = 0; private 509 lib/cib/cib_file.c cib_set_file_flags(private, cib_file_flag_live); private 512 lib/cib/cib_file.c private->filename = strdup(cib_location); private 583 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 585 lib/cib/cib_file.c if (private->filename == NULL) { private 588 lib/cib/cib_file.c rc = load_file_cib(private->filename); private 593 lib/cib/cib_file.c private->filename, name); private 599 lib/cib/cib_file.c private->filename, name, pcmk_strerror(rc)); private 698 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 705 lib/cib/cib_file.c if (pcmk_is_set(private->flags, cib_file_flag_dirty)) { private 708 lib/cib/cib_file.c if (pcmk_is_set(private->flags, cib_file_flag_live)) { private 709 lib/cib/cib_file.c if (cib_file_write_live(private->filename) < 0) { private 715 lib/cib/cib_file.c gboolean do_bzip = pcmk__ends_with_ext(private->filename, ".bz2"); private 717 lib/cib/cib_file.c if (write_xml_file(in_mem_cib, private->filename, do_bzip) <= 0) { private 723 lib/cib/cib_file.c crm_info("Wrote CIB to %s", private->filename); private 724 lib/cib/cib_file.c cib_clear_file_flags(private, cib_file_flag_dirty); private 726 lib/cib/cib_file.c crm_err("Could not write CIB to %s", private->filename); private 746 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 748 lib/cib/cib_file.c free(private->filename); private 750 lib/cib/cib_file.c free(private); private 804 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 871 lib/cib/cib_file.c cib_set_file_flags(private, cib_file_flag_dirty); private 81 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 83 lib/cib/cib_remote.c return private->callback.tcp_socket; private 96 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 101 lib/cib/cib_remote.c pcmk__remote_send_xml(&private->callback, notify_msg); private 110 lib/cib/cib_remote.c cib_remote_opaque_t *private = NULL; private 113 lib/cib/cib_remote.c private = calloc(1, sizeof(cib_remote_opaque_t)); private 116 lib/cib/cib_remote.c cib->variant_opaque = private; private 119 lib/cib/cib_remote.c private->server = strdup(server); private 123 lib/cib/cib_remote.c private->user = strdup(user); private 127 lib/cib/cib_remote.c private->passwd = strdup(passwd); private 130 lib/cib/cib_remote.c private->port = port; private 131 lib/cib/cib_remote.c private->encrypted = encrypted; private 149 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 152 lib/cib/cib_remote.c if (private->encrypted) { private 153 lib/cib/cib_remote.c if (private->command.tls_session) { private 154 lib/cib/cib_remote.c gnutls_bye(*(private->command.tls_session), GNUTLS_SHUT_RDWR); private 155 lib/cib/cib_remote.c gnutls_deinit(*(private->command.tls_session)); private 156 lib/cib/cib_remote.c gnutls_free(private->command.tls_session); private 159 lib/cib/cib_remote.c if (private->callback.tls_session) { private 160 lib/cib/cib_remote.c gnutls_bye(*(private->callback.tls_session), GNUTLS_SHUT_RDWR); private 161 lib/cib/cib_remote.c gnutls_deinit(*(private->callback.tls_session)); private 162 lib/cib/cib_remote.c gnutls_free(private->callback.tls_session); private 164 lib/cib/cib_remote.c private->command.tls_session = NULL; private 165 lib/cib/cib_remote.c private->callback.tls_session = NULL; private 174 lib/cib/cib_remote.c if (private->command.tcp_socket) { private 175 lib/cib/cib_remote.c shutdown(private->command.tcp_socket, SHUT_RDWR); /* no more receptions */ private 176 lib/cib/cib_remote.c close(private->command.tcp_socket); private 178 lib/cib/cib_remote.c if (private->callback.tcp_socket) { private 179 lib/cib/cib_remote.c shutdown(private->callback.tcp_socket, SHUT_RDWR); /* no more receptions */ private 180 lib/cib/cib_remote.c close(private->callback.tcp_socket); private 182 lib/cib/cib_remote.c private->command.tcp_socket = 0; private 183 lib/cib/cib_remote.c private->callback.tcp_socket = 0; private 185 lib/cib/cib_remote.c free(private->command.buffer); private 186 lib/cib/cib_remote.c free(private->callback.buffer); private 187 lib/cib/cib_remote.c private->command.buffer = NULL; private 188 lib/cib/cib_remote.c private->callback.buffer = NULL; private 206 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 222 lib/cib/cib_remote.c rc = pcmk__connect_remote(private->server, private->port, 0, NULL, private 226 lib/cib/cib_remote.c private->server, private->port, pcmk_rc_str(rc), rc); private 230 lib/cib/cib_remote.c if (private->encrypted) { private 250 lib/cib/cib_remote.c crm_err("Session creation for %s:%d failed", private->server, private->port); private 266 lib/cib/cib_remote.c crm_xml_add(login, "user", private->user); private 267 lib/cib/cib_remote.c crm_xml_add(login, "password", private->passwd); private 330 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 332 lib/cib/cib_remote.c rc = pcmk__read_remote_message(&private->command, -1); private 334 lib/cib/cib_remote.c free(private->command.buffer); private 335 lib/cib/cib_remote.c private->command.buffer = NULL; private 349 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 355 lib/cib/cib_remote.c rc = pcmk__read_remote_message(&private->callback, -1); private 357 lib/cib/cib_remote.c msg = pcmk__remote_message_xml(&private->callback); private 374 lib/cib/cib_remote.c msg = pcmk__remote_message_xml(&private->callback); private 388 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 390 lib/cib/cib_remote.c if (private->passwd == NULL) { private 401 lib/cib/cib_remote.c private->passwd = calloc(1, 1024); private 402 lib/cib/cib_remote.c rc = scanf("%1023s", private->passwd); private 407 lib/cib/cib_remote.c private->passwd = NULL; private 414 lib/cib/cib_remote.c if (private->server == NULL || private->user == NULL) { private 419 lib/cib/cib_remote.c rc = cib_tls_signon(cib, &(private->command), FALSE); private 423 lib/cib/cib_remote.c rc = cib_tls_signon(cib, &(private->callback), TRUE); private 428 lib/cib/cib_remote.c cib_create_op(0, private->callback.token, CRM_OP_REGISTER, NULL, NULL, NULL, 0, NULL); private 430 lib/cib/cib_remote.c pcmk__remote_send_xml(&private->command, hello); private 436 lib/cib/cib_remote.c private->server, private->port, name); private 442 lib/cib/cib_remote.c private->server, private->port, name, pcmk_strerror(rc)); private 475 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 477 lib/cib/cib_remote.c free(private->server); private 478 lib/cib/cib_remote.c free(private->user); private 479 lib/cib/cib_remote.c free(private->passwd); private 481 lib/cib/cib_remote.c free(private); private 500 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 521 lib/cib/cib_remote.c cib_create_op(cib->call_id, private->callback.token, op, host, section, data, call_options, private 529 lib/cib/cib_remote.c pcmk__remote_send_xml(&private->callback, op_msg); private 531 lib/cib/cib_remote.c pcmk__remote_send_xml(&private->command, op_msg); private 553 lib/cib/cib_remote.c rc = pcmk__read_remote_message(&private->command, private 555 lib/cib/cib_remote.c op_reply = pcmk__remote_message_xml(&private->command); 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 621 lib/common/ipc_controld.c struct controld_api_private_s *private = api->api_data; private 623 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 207 lib/common/ipc_pacemakerd.c pacemakerd_api_private_t *private; private 212 lib/common/ipc_pacemakerd.c private = api->api_data; private 213 lib/common/ipc_pacemakerd.c CRM_ASSERT(private != NULL); private 217 lib/common/ipc_pacemakerd.c private->client_uuid); private 222 lib/fencing/st_client.c foreach_notify_entry (stonith_private_t *private, private 226 lib/fencing/st_client.c private->notify_refcnt++; private 227 lib/fencing/st_client.c g_list_foreach(private->notify_list, func, user_data); private 228 lib/fencing/st_client.c private->notify_refcnt--; private 229 lib/fencing/st_client.c if ((private->notify_refcnt == 0) && private 230 lib/fencing/st_client.c private->notify_deletes) { private 231 lib/fencing/st_client.c GList *list_item = private->notify_list; private 233 lib/fencing/st_client.c private->notify_deletes = FALSE; private 241 lib/fencing/st_client.c private->notify_list = private 242 lib/fencing/st_client.c g_list_delete_link(private->notify_list, list_item); private 1276 lib/fencing/st_client.c stonith_private_t *private = stonith->st_private; private 1279 lib/fencing/st_client.c private->op_callback = NULL; private 1280 lib/fencing/st_client.c g_hash_table_destroy(private->stonith_op_callback_table); private 1281 lib/fencing/st_client.c private->stonith_op_callback_table = g_hash_table_new_full(g_direct_hash, g_direct_equal, private 1286 lib/fencing/st_client.c private->op_callback = NULL; private 1289 lib/fencing/st_client.c g_hash_table_remove(private->stonith_op_callback_table, GINT_TO_POINTER(call_id)); private 1310 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1317 lib/fencing/st_client.c private = stonith->st_private; private 1331 lib/fencing/st_client.c blob = g_hash_table_lookup(private->stonith_op_callback_table, GINT_TO_POINTER(call_id)); private 1348 lib/fencing/st_client.c } else if (private->op_callback == NULL && rc != pcmk_ok) { private 1353 lib/fencing/st_client.c if (private->op_callback != NULL) { private 1355 lib/fencing/st_client.c invoke_callback(stonith, call_id, rc, NULL, private->op_callback); private 1406 lib/fencing/st_client.c stonith_private_t *private = st->st_private; private 1408 lib/fencing/st_client.c callback = g_hash_table_lookup(private->stonith_op_callback_table, GINT_TO_POINTER(call_id)); private 1423 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1426 lib/fencing/st_client.c private = st->st_private; private 1443 lib/fencing/st_client.c foreach_notify_entry(private, stonith_send_notification, &blob); private 1593 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1595 lib/fencing/st_client.c private = stonith->st_private; private 1596 lib/fencing/st_client.c crm_trace("Adding callback for %s events (%d)", event, g_list_length(private->notify_list)); private 1602 lib/fencing/st_client.c list_item = g_list_find_custom(private->notify_list, new_client, stonithlib_GCompareFunc); private 1610 lib/fencing/st_client.c private->notify_list = g_list_append(private->notify_list, new_client); private 1614 lib/fencing/st_client.c crm_trace("Callback added (%d)", g_list_length(private->notify_list)); private 1624 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1628 lib/fencing/st_client.c private = stonith->st_private; private 1633 lib/fencing/st_client.c list_item = g_list_find_custom(private->notify_list, new_client, stonithlib_GCompareFunc); private 1640 lib/fencing/st_client.c if (private->notify_refcnt) { private 1642 lib/fencing/st_client.c private->notify_deletes = TRUE; private 1644 lib/fencing/st_client.c private->notify_list = g_list_remove(private->notify_list, list_client); private 1663 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1667 lib/fencing/st_client.c private = stonith->st_private; private 1670 lib/fencing/st_client.c private->op_callback = callback; private 1693 lib/fencing/st_client.c g_hash_table_insert(private->stonith_op_callback_table, GINT_TO_POINTER(call_id), blob); private 1711 lib/fencing/st_client.c stonith_private_t *private = stonith->st_private; private 1713 lib/fencing/st_client.c if (private->stonith_op_callback_table == NULL) { private 1716 lib/fencing/st_client.c return g_hash_table_foreach(private->stonith_op_callback_table, stonith_dump_pending_op, NULL); private 1963 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1966 lib/fencing/st_client.c private = st->st_private; private 1968 lib/fencing/st_client.c while (crm_ipc_ready(private->ipc)) { private 1970 lib/fencing/st_client.c if (crm_ipc_read(private->ipc) > 0) { private 1971 lib/fencing/st_client.c const char *msg = crm_ipc_buffer(private->ipc); private 1976 lib/fencing/st_client.c if (crm_ipc_connected(private->ipc) == FALSE) { private 1998 lib/fencing/st_client.c stonith_private_t *private = stonith->st_private; private 2000 lib/fencing/st_client.c crm_trace("Removing %d callbacks", g_hash_table_size(private->stonith_op_callback_table)); private 2001 lib/fencing/st_client.c g_hash_table_destroy(private->stonith_op_callback_table); private 2003 lib/fencing/st_client.c crm_trace("Destroying %d notification clients", g_list_length(private->notify_list)); private 2004 lib/fencing/st_client.c g_list_free_full(private->notify_list, free); private 2110 lib/fencing/st_client.c stonith_private_t *private = NULL; private 2117 lib/fencing/st_client.c private = calloc(1, sizeof(stonith_private_t)); private 2118 lib/fencing/st_client.c if (private == NULL) { private 2122 lib/fencing/st_client.c new_stonith->st_private = private; private 2124 lib/fencing/st_client.c private->stonith_op_callback_table = g_hash_table_new_full(g_direct_hash, g_direct_equal, private 2126 lib/fencing/st_client.c private->notify_list = NULL; private 2127 lib/fencing/st_client.c private->notify_refcnt = 0; private 2128 lib/fencing/st_client.c private->notify_deletes = FALSE; private 470 lib/lrmd/lrmd_client.c lrmd_private_t *private = NULL; private 474 lib/lrmd/lrmd_client.c private = lrmd->lrmd_private; private 475 lib/lrmd/lrmd_client.c switch (private->type) { private 477 lib/lrmd/lrmd_client.c while (crm_ipc_ready(private->ipc)) { private 478 lib/lrmd/lrmd_client.c if (crm_ipc_read(private->ipc) > 0) { private 479 lib/lrmd/lrmd_client.c const char *msg = crm_ipc_buffer(private->ipc); private 491 lib/lrmd/lrmd_client.c crm_err("Unsupported connection type: %d", private->type);