private 497 lib/cib/cib_file.c cib_file_opaque_t *private = NULL; private 500 lib/cib/cib_file.c private = calloc(1, sizeof(cib_file_opaque_t)); private 501 lib/cib/cib_file.c CRM_ASSERT((cib != NULL) && (private != NULL)); private 504 lib/cib/cib_file.c cib->variant_opaque = private; private 509 lib/cib/cib_file.c private->flags = 0; private 511 lib/cib/cib_file.c cib_set_file_flags(private, cib_file_flag_live); private 514 lib/cib/cib_file.c private->filename = strdup(cib_location); private 585 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 587 lib/cib/cib_file.c if (private->filename == NULL) { private 590 lib/cib/cib_file.c rc = load_file_cib(private->filename); private 595 lib/cib/cib_file.c private->filename, name); private 601 lib/cib/cib_file.c private->filename, name, pcmk_strerror(rc)); private 700 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 707 lib/cib/cib_file.c if (pcmk_is_set(private->flags, cib_file_flag_dirty)) { private 710 lib/cib/cib_file.c if (pcmk_is_set(private->flags, cib_file_flag_live)) { private 711 lib/cib/cib_file.c if (cib_file_write_live(private->filename) < 0) { private 717 lib/cib/cib_file.c gboolean do_bzip = pcmk__ends_with_ext(private->filename, ".bz2"); private 719 lib/cib/cib_file.c if (write_xml_file(in_mem_cib, private->filename, do_bzip) <= 0) { private 725 lib/cib/cib_file.c crm_info("Wrote CIB to %s", private->filename); private 726 lib/cib/cib_file.c cib_clear_file_flags(private, cib_file_flag_dirty); private 728 lib/cib/cib_file.c crm_err("Could not write CIB to %s", private->filename); private 748 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 750 lib/cib/cib_file.c free(private->filename); private 752 lib/cib/cib_file.c free(private); private 806 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 866 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 112 lib/cib/cib_remote.c private = calloc(1, sizeof(cib_remote_opaque_t)); private 115 lib/cib/cib_remote.c cib->variant_opaque = private; private 118 lib/cib/cib_remote.c private->server = strdup(server); private 122 lib/cib/cib_remote.c private->user = strdup(user); private 126 lib/cib/cib_remote.c private->passwd = strdup(passwd); private 129 lib/cib/cib_remote.c private->port = port; private 130 lib/cib/cib_remote.c private->encrypted = encrypted; private 148 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 151 lib/cib/cib_remote.c if (private->encrypted) { private 152 lib/cib/cib_remote.c if (private->command.tls_session) { private 153 lib/cib/cib_remote.c gnutls_bye(*(private->command.tls_session), GNUTLS_SHUT_RDWR); private 154 lib/cib/cib_remote.c gnutls_deinit(*(private->command.tls_session)); private 155 lib/cib/cib_remote.c gnutls_free(private->command.tls_session); private 158 lib/cib/cib_remote.c if (private->callback.tls_session) { private 159 lib/cib/cib_remote.c gnutls_bye(*(private->callback.tls_session), GNUTLS_SHUT_RDWR); private 160 lib/cib/cib_remote.c gnutls_deinit(*(private->callback.tls_session)); private 161 lib/cib/cib_remote.c gnutls_free(private->callback.tls_session); private 163 lib/cib/cib_remote.c private->command.tls_session = NULL; private 164 lib/cib/cib_remote.c private->callback.tls_session = NULL; private 173 lib/cib/cib_remote.c if (private->command.tcp_socket) { private 174 lib/cib/cib_remote.c shutdown(private->command.tcp_socket, SHUT_RDWR); /* no more receptions */ private 175 lib/cib/cib_remote.c close(private->command.tcp_socket); private 177 lib/cib/cib_remote.c if (private->callback.tcp_socket) { private 178 lib/cib/cib_remote.c shutdown(private->callback.tcp_socket, SHUT_RDWR); /* no more receptions */ private 179 lib/cib/cib_remote.c close(private->callback.tcp_socket); private 181 lib/cib/cib_remote.c private->command.tcp_socket = 0; private 182 lib/cib/cib_remote.c private->callback.tcp_socket = 0; private 184 lib/cib/cib_remote.c free(private->command.buffer); private 185 lib/cib/cib_remote.c free(private->callback.buffer); private 186 lib/cib/cib_remote.c private->command.buffer = NULL; private 187 lib/cib/cib_remote.c private->callback.buffer = NULL; private 195 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 211 lib/cib/cib_remote.c rc = pcmk__connect_remote(private->server, private->port, 0, NULL, private 215 lib/cib/cib_remote.c private->server, private->port, pcmk_rc_str(rc), rc); private 219 lib/cib/cib_remote.c if (private->encrypted) { private 240 lib/cib/cib_remote.c crm_err("Session creation for %s:%d failed", private->server, private->port); private 256 lib/cib/cib_remote.c crm_xml_add(login, "user", private->user); private 257 lib/cib/cib_remote.c crm_xml_add(login, "password", private->passwd); private 320 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 322 lib/cib/cib_remote.c rc = pcmk__read_remote_message(&private->command, -1); private 324 lib/cib/cib_remote.c free(private->command.buffer); private 325 lib/cib/cib_remote.c private->command.buffer = NULL; private 339 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 345 lib/cib/cib_remote.c rc = pcmk__read_remote_message(&private->callback, -1); private 347 lib/cib/cib_remote.c msg = pcmk__remote_message_xml(&private->callback); private 364 lib/cib/cib_remote.c msg = pcmk__remote_message_xml(&private->callback); private 378 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 380 lib/cib/cib_remote.c if (private->passwd == NULL) { private 381 lib/cib/cib_remote.c if (private->out == NULL) { private 385 lib/cib/cib_remote.c pcmk__text_prompt("Password", false, &(private->passwd)); private 387 lib/cib/cib_remote.c private->out->prompt("Password", false, &(private->passwd)); private 391 lib/cib/cib_remote.c if (private->server == NULL || private->user == NULL) { private 396 lib/cib/cib_remote.c rc = cib_tls_signon(cib, &(private->command), FALSE); private 400 lib/cib/cib_remote.c rc = cib_tls_signon(cib, &(private->callback), TRUE); private 405 lib/cib/cib_remote.c cib_create_op(0, private->callback.token, CRM_OP_REGISTER, NULL, NULL, NULL, 0, NULL); private 407 lib/cib/cib_remote.c pcmk__remote_send_xml(&private->command, hello); private 413 lib/cib/cib_remote.c private->server, private->port, name); private 419 lib/cib/cib_remote.c private->server, private->port, name, pcmk_strerror(rc)); private 452 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 454 lib/cib/cib_remote.c free(private->server); private 455 lib/cib/cib_remote.c free(private->user); private 456 lib/cib/cib_remote.c free(private->passwd); private 458 lib/cib/cib_remote.c free(private); private 477 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 498 lib/cib/cib_remote.c cib_create_op(cib->call_id, private->callback.token, op, host, section, data, call_options, private 506 lib/cib/cib_remote.c pcmk__remote_send_xml(&private->callback, op_msg); private 508 lib/cib/cib_remote.c pcmk__remote_send_xml(&private->command, op_msg); private 530 lib/cib/cib_remote.c rc = pcmk__read_remote_message(&private->command, private 532 lib/cib/cib_remote.c op_reply = pcmk__remote_message_xml(&private->command); private 618 lib/cib/cib_remote.c cib_remote_opaque_t *private; private 624 lib/cib/cib_remote.c private = cib->variant_opaque; private 625 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 223 lib/fencing/st_client.c foreach_notify_entry (stonith_private_t *private, private 227 lib/fencing/st_client.c private->notify_refcnt++; private 228 lib/fencing/st_client.c g_list_foreach(private->notify_list, func, user_data); private 229 lib/fencing/st_client.c private->notify_refcnt--; private 230 lib/fencing/st_client.c if ((private->notify_refcnt == 0) && private 231 lib/fencing/st_client.c private->notify_deletes) { private 232 lib/fencing/st_client.c GList *list_item = private->notify_list; private 234 lib/fencing/st_client.c private->notify_deletes = FALSE; private 242 lib/fencing/st_client.c private->notify_list = private 243 lib/fencing/st_client.c g_list_delete_link(private->notify_list, list_item); private 1269 lib/fencing/st_client.c stonith_private_t *private = stonith->st_private; private 1272 lib/fencing/st_client.c private->op_callback = NULL; private 1273 lib/fencing/st_client.c g_hash_table_destroy(private->stonith_op_callback_table); private 1274 lib/fencing/st_client.c private->stonith_op_callback_table = pcmk__intkey_table(stonith_destroy_op_callback); private 1277 lib/fencing/st_client.c private->op_callback = NULL; private 1280 lib/fencing/st_client.c pcmk__intkey_table_remove(private->stonith_op_callback_table, call_id); private 1301 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1308 lib/fencing/st_client.c private = stonith->st_private; private 1322 lib/fencing/st_client.c blob = pcmk__intkey_table_lookup(private->stonith_op_callback_table, private 1339 lib/fencing/st_client.c } else if (private->op_callback == NULL && rc != pcmk_ok) { private 1344 lib/fencing/st_client.c if (private->op_callback != NULL) { private 1346 lib/fencing/st_client.c invoke_callback(stonith, call_id, rc, NULL, private->op_callback); private 1397 lib/fencing/st_client.c stonith_private_t *private = st->st_private; private 1399 lib/fencing/st_client.c callback = pcmk__intkey_table_lookup(private->stonith_op_callback_table, private 1415 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1418 lib/fencing/st_client.c private = st->st_private; private 1435 lib/fencing/st_client.c foreach_notify_entry(private, stonith_send_notification, &blob); private 1585 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1587 lib/fencing/st_client.c private = stonith->st_private; private 1588 lib/fencing/st_client.c crm_trace("Adding callback for %s events (%d)", event, g_list_length(private->notify_list)); private 1594 lib/fencing/st_client.c list_item = g_list_find_custom(private->notify_list, new_client, stonithlib_GCompareFunc); private 1602 lib/fencing/st_client.c private->notify_list = g_list_append(private->notify_list, new_client); private 1606 lib/fencing/st_client.c crm_trace("Callback added (%d)", g_list_length(private->notify_list)); private 1616 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1620 lib/fencing/st_client.c private = stonith->st_private; private 1625 lib/fencing/st_client.c list_item = g_list_find_custom(private->notify_list, new_client, stonithlib_GCompareFunc); private 1632 lib/fencing/st_client.c if (private->notify_refcnt) { private 1634 lib/fencing/st_client.c private->notify_deletes = TRUE; private 1636 lib/fencing/st_client.c private->notify_list = g_list_remove(private->notify_list, list_client); private 1655 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1659 lib/fencing/st_client.c private = stonith->st_private; private 1662 lib/fencing/st_client.c private->op_callback = callback; private 1685 lib/fencing/st_client.c pcmk__intkey_table_insert(private->stonith_op_callback_table, call_id, private 1704 lib/fencing/st_client.c stonith_private_t *private = stonith->st_private; private 1706 lib/fencing/st_client.c if (private->stonith_op_callback_table == NULL) { private 1709 lib/fencing/st_client.c return g_hash_table_foreach(private->stonith_op_callback_table, stonith_dump_pending_op, NULL); private 1956 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1959 lib/fencing/st_client.c private = st->st_private; private 1961 lib/fencing/st_client.c while (crm_ipc_ready(private->ipc)) { private 1963 lib/fencing/st_client.c if (crm_ipc_read(private->ipc) > 0) { private 1964 lib/fencing/st_client.c const char *msg = crm_ipc_buffer(private->ipc); private 1969 lib/fencing/st_client.c if (crm_ipc_connected(private->ipc) == FALSE) { private 1991 lib/fencing/st_client.c stonith_private_t *private = stonith->st_private; private 1993 lib/fencing/st_client.c crm_trace("Removing %d callbacks", g_hash_table_size(private->stonith_op_callback_table)); private 1994 lib/fencing/st_client.c g_hash_table_destroy(private->stonith_op_callback_table); private 1996 lib/fencing/st_client.c crm_trace("Destroying %d notification clients", g_list_length(private->notify_list)); private 1997 lib/fencing/st_client.c g_list_free_full(private->notify_list, free); private 2100 lib/fencing/st_client.c stonith_private_t *private = NULL; private 2107 lib/fencing/st_client.c private = calloc(1, sizeof(stonith_private_t)); private 2108 lib/fencing/st_client.c if (private == NULL) { private 2112 lib/fencing/st_client.c new_stonith->st_private = private; private 2114 lib/fencing/st_client.c private->stonith_op_callback_table = pcmk__intkey_table(stonith_destroy_op_callback); private 2115 lib/fencing/st_client.c private->notify_list = NULL; private 2116 lib/fencing/st_client.c private->notify_refcnt = 0; private 2117 lib/fencing/st_client.c private->notify_deletes = FALSE; private 477 lib/lrmd/lrmd_client.c lrmd_private_t *private = NULL; private 481 lib/lrmd/lrmd_client.c private = lrmd->lrmd_private; private 482 lib/lrmd/lrmd_client.c switch (private->type) { private 484 lib/lrmd/lrmd_client.c while (crm_ipc_ready(private->ipc)) { private 485 lib/lrmd/lrmd_client.c if (crm_ipc_read(private->ipc) > 0) { private 486 lib/lrmd/lrmd_client.c const char *msg = crm_ipc_buffer(private->ipc); private 499 lib/lrmd/lrmd_client.c private->type);