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 78 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 80 lib/cib/cib_remote.c return private->callback.tcp_socket; private 93 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 98 lib/cib/cib_remote.c pcmk__remote_send_xml(&private->callback, notify_msg); private 107 lib/cib/cib_remote.c cib_remote_opaque_t *private = NULL; private 114 lib/cib/cib_remote.c private = calloc(1, sizeof(cib_remote_opaque_t)); private 116 lib/cib/cib_remote.c if (private == NULL) { private 122 lib/cib/cib_remote.c cib->variant_opaque = private; private 124 lib/cib/cib_remote.c pcmk__str_update(&private->server, server); private 125 lib/cib/cib_remote.c pcmk__str_update(&private->user, user); private 126 lib/cib/cib_remote.c pcmk__str_update(&private->passwd, passwd); private 128 lib/cib/cib_remote.c private->port = port; private 129 lib/cib/cib_remote.c private->encrypted = encrypted; private 147 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 150 lib/cib/cib_remote.c if (private->encrypted) { private 151 lib/cib/cib_remote.c if (private->command.tls_session) { private 152 lib/cib/cib_remote.c gnutls_bye(*(private->command.tls_session), GNUTLS_SHUT_RDWR); private 153 lib/cib/cib_remote.c gnutls_deinit(*(private->command.tls_session)); private 154 lib/cib/cib_remote.c gnutls_free(private->command.tls_session); private 157 lib/cib/cib_remote.c if (private->callback.tls_session) { private 158 lib/cib/cib_remote.c gnutls_bye(*(private->callback.tls_session), GNUTLS_SHUT_RDWR); private 159 lib/cib/cib_remote.c gnutls_deinit(*(private->callback.tls_session)); private 160 lib/cib/cib_remote.c gnutls_free(private->callback.tls_session); private 162 lib/cib/cib_remote.c private->command.tls_session = NULL; private 163 lib/cib/cib_remote.c private->callback.tls_session = NULL; private 172 lib/cib/cib_remote.c if (private->command.tcp_socket) { private 173 lib/cib/cib_remote.c shutdown(private->command.tcp_socket, SHUT_RDWR); /* no more receptions */ private 174 lib/cib/cib_remote.c close(private->command.tcp_socket); private 176 lib/cib/cib_remote.c if (private->callback.tcp_socket) { private 177 lib/cib/cib_remote.c shutdown(private->callback.tcp_socket, SHUT_RDWR); /* no more receptions */ private 178 lib/cib/cib_remote.c close(private->callback.tcp_socket); private 180 lib/cib/cib_remote.c private->command.tcp_socket = 0; private 181 lib/cib/cib_remote.c private->callback.tcp_socket = 0; private 183 lib/cib/cib_remote.c free(private->command.buffer); private 184 lib/cib/cib_remote.c free(private->callback.buffer); private 185 lib/cib/cib_remote.c private->command.buffer = NULL; private 186 lib/cib/cib_remote.c private->callback.buffer = NULL; private 194 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 210 lib/cib/cib_remote.c rc = pcmk__connect_remote(private->server, private->port, 0, NULL, private 214 lib/cib/cib_remote.c private->server, private->port, pcmk_rc_str(rc), rc); private 218 lib/cib/cib_remote.c if (private->encrypted) { private 239 lib/cib/cib_remote.c crm_err("Session creation for %s:%d failed", private->server, private->port); private 255 lib/cib/cib_remote.c crm_xml_add(login, "user", private->user); private 256 lib/cib/cib_remote.c crm_xml_add(login, "password", private->passwd); private 319 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 321 lib/cib/cib_remote.c rc = pcmk__read_remote_message(&private->command, -1); private 323 lib/cib/cib_remote.c free(private->command.buffer); private 324 lib/cib/cib_remote.c private->command.buffer = NULL; private 338 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 344 lib/cib/cib_remote.c rc = pcmk__read_remote_message(&private->callback, -1); private 346 lib/cib/cib_remote.c msg = pcmk__remote_message_xml(&private->callback); private 363 lib/cib/cib_remote.c msg = pcmk__remote_message_xml(&private->callback); private 377 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 379 lib/cib/cib_remote.c if (private->passwd == NULL) { private 380 lib/cib/cib_remote.c if (private->out == NULL) { private 384 lib/cib/cib_remote.c pcmk__text_prompt("Password", false, &(private->passwd)); private 386 lib/cib/cib_remote.c private->out->prompt("Password", false, &(private->passwd)); private 390 lib/cib/cib_remote.c if (private->server == NULL || private->user == NULL) { private 395 lib/cib/cib_remote.c rc = cib_tls_signon(cib, &(private->command), FALSE); private 399 lib/cib/cib_remote.c rc = cib_tls_signon(cib, &(private->callback), TRUE); private 404 lib/cib/cib_remote.c cib_create_op(0, private->callback.token, CRM_OP_REGISTER, NULL, NULL, NULL, 0, NULL); private 406 lib/cib/cib_remote.c pcmk__remote_send_xml(&private->command, hello); private 412 lib/cib/cib_remote.c private->server, private->port, name); private 418 lib/cib/cib_remote.c private->server, private->port, name, pcmk_strerror(rc)); private 451 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 453 lib/cib/cib_remote.c free(private->server); private 454 lib/cib/cib_remote.c free(private->user); private 455 lib/cib/cib_remote.c free(private->passwd); private 457 lib/cib/cib_remote.c free(private); private 476 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 497 lib/cib/cib_remote.c cib_create_op(cib->call_id, private->callback.token, op, host, section, data, call_options, private 505 lib/cib/cib_remote.c pcmk__remote_send_xml(&private->callback, op_msg); private 507 lib/cib/cib_remote.c pcmk__remote_send_xml(&private->command, op_msg); private 529 lib/cib/cib_remote.c rc = pcmk__read_remote_message(&private->command, private 531 lib/cib/cib_remote.c op_reply = pcmk__remote_message_xml(&private->command); private 617 lib/cib/cib_remote.c cib_remote_opaque_t *private; private 623 lib/cib/cib_remote.c private = cib->variant_opaque; private 624 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 163 lib/common/ipc_controld.c struct controld_api_private_s *private = api->api_data; private 189 lib/common/ipc_controld.c if (private->replies_expected > 0) { private 190 lib/common/ipc_controld.c private->replies_expected--; private 291 lib/common/ipc_controld.c struct controld_api_private_s *private = NULL; private 297 lib/common/ipc_controld.c private = api->api_data; private 305 lib/common/ipc_controld.c private->client_uuid); private 320 lib/common/ipc_controld.c struct controld_api_private_s *private = api->api_data; private 322 lib/common/ipc_controld.c private->replies_expected++; private 584 lib/common/ipc_controld.c struct controld_api_private_s *private = api->api_data; private 586 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 217 lib/common/ipc_pacemakerd.c pacemakerd_api_private_t *private; private 225 lib/common/ipc_pacemakerd.c private = api->api_data; private 226 lib/common/ipc_pacemakerd.c CRM_ASSERT(private != NULL); private 230 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 143 lib/common/ipc_schedulerd.c schedulerd_api_private_t *private; private 151 lib/common/ipc_schedulerd.c private = api->api_data; private 152 lib/common/ipc_schedulerd.c CRM_ASSERT(private != NULL); private 156 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 849 lib/fencing/st_client.c stonith_private_t *private = stonith->st_private; private 852 lib/fencing/st_client.c private->op_callback = NULL; private 853 lib/fencing/st_client.c g_hash_table_destroy(private->stonith_op_callback_table); private 854 lib/fencing/st_client.c private->stonith_op_callback_table = pcmk__intkey_table(stonith_destroy_op_callback); private 857 lib/fencing/st_client.c private->op_callback = NULL; private 860 lib/fencing/st_client.c pcmk__intkey_table_remove(private->stonith_op_callback_table, call_id); private 907 lib/fencing/st_client.c stonith_private_t *private = NULL; private 914 lib/fencing/st_client.c private = stonith->st_private; private 932 lib/fencing/st_client.c cb_info = pcmk__intkey_table_lookup(private->stonith_op_callback_table, private 943 lib/fencing/st_client.c } else if ((private->op_callback == NULL) && !pcmk__result_ok(&result)) { private 952 lib/fencing/st_client.c if (private->op_callback != NULL) { private 955 lib/fencing/st_client.c private->op_callback); private 1010 lib/fencing/st_client.c stonith_private_t *private = st->st_private; private 1012 lib/fencing/st_client.c callback = pcmk__intkey_table_lookup(private->stonith_op_callback_table, private 1028 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1031 lib/fencing/st_client.c private = st->st_private; private 1048 lib/fencing/st_client.c foreach_notify_entry(private, stonith_send_notification, &blob); private 1195 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1197 lib/fencing/st_client.c private = stonith->st_private; private 1198 lib/fencing/st_client.c crm_trace("Adding callback for %s events (%d)", event, g_list_length(private->notify_list)); private 1204 lib/fencing/st_client.c list_item = g_list_find_custom(private->notify_list, new_client, stonithlib_GCompareFunc); private 1212 lib/fencing/st_client.c private->notify_list = g_list_append(private->notify_list, new_client); private 1216 lib/fencing/st_client.c crm_trace("Callback added (%d)", g_list_length(private->notify_list)); private 1238 lib/fencing/st_client.c stonith_private_t *private = stonith->st_private; private 1241 lib/fencing/st_client.c foreach_notify_entry(private, del_notify_entry, stonith); private 1253 lib/fencing/st_client.c list_item = g_list_find_custom(private->notify_list, new_client, stonithlib_GCompareFunc); private 1260 lib/fencing/st_client.c if (private->notify_refcnt) { private 1262 lib/fencing/st_client.c private->notify_deletes = TRUE; private 1264 lib/fencing/st_client.c private->notify_list = g_list_remove(private->notify_list, list_client); private 1283 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1287 lib/fencing/st_client.c private = stonith->st_private; private 1290 lib/fencing/st_client.c private->op_callback = callback; private 1318 lib/fencing/st_client.c pcmk__intkey_table_insert(private->stonith_op_callback_table, call_id, private 1337 lib/fencing/st_client.c stonith_private_t *private = stonith->st_private; private 1339 lib/fencing/st_client.c if (private->stonith_op_callback_table == NULL) { private 1342 lib/fencing/st_client.c return g_hash_table_foreach(private->stonith_op_callback_table, stonith_dump_pending_op, NULL); private 1621 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1624 lib/fencing/st_client.c private = st->st_private; private 1626 lib/fencing/st_client.c while (crm_ipc_ready(private->ipc)) { private 1628 lib/fencing/st_client.c if (crm_ipc_read(private->ipc) > 0) { private 1629 lib/fencing/st_client.c const char *msg = crm_ipc_buffer(private->ipc); private 1634 lib/fencing/st_client.c if (crm_ipc_connected(private->ipc) == FALSE) { private 1656 lib/fencing/st_client.c stonith_private_t *private = stonith->st_private; private 1658 lib/fencing/st_client.c crm_trace("Removing %d callbacks", g_hash_table_size(private->stonith_op_callback_table)); private 1659 lib/fencing/st_client.c g_hash_table_destroy(private->stonith_op_callback_table); private 1661 lib/fencing/st_client.c crm_trace("Destroying %d notification clients", g_list_length(private->notify_list)); private 1662 lib/fencing/st_client.c g_list_free_full(private->notify_list, free); private 1765 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1772 lib/fencing/st_client.c private = calloc(1, sizeof(stonith_private_t)); private 1773 lib/fencing/st_client.c if (private == NULL) { private 1777 lib/fencing/st_client.c new_stonith->st_private = private; private 1779 lib/fencing/st_client.c private->stonith_op_callback_table = pcmk__intkey_table(stonith_destroy_op_callback); private 1780 lib/fencing/st_client.c private->notify_list = NULL; private 1781 lib/fencing/st_client.c private->notify_refcnt = 0; private 1782 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);