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 518 lib/cib/cib_file.c private->flags = 0; private 520 lib/cib/cib_file.c cib_set_file_flags(private, cib_file_flag_live); private 523 lib/cib/cib_file.c private->filename = strdup(cib_location); private 594 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 596 lib/cib/cib_file.c if (private->filename == NULL) { private 599 lib/cib/cib_file.c rc = load_file_cib(private->filename); private 604 lib/cib/cib_file.c private->filename, name); private 610 lib/cib/cib_file.c private->filename, name, pcmk_strerror(rc)); private 709 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 716 lib/cib/cib_file.c if (pcmk_is_set(private->flags, cib_file_flag_dirty)) { private 719 lib/cib/cib_file.c if (pcmk_is_set(private->flags, cib_file_flag_live)) { private 720 lib/cib/cib_file.c if (cib_file_write_live(private->filename) < 0) { private 726 lib/cib/cib_file.c gboolean do_bzip = pcmk__ends_with_ext(private->filename, ".bz2"); private 728 lib/cib/cib_file.c if (write_xml_file(in_mem_cib, private->filename, do_bzip) <= 0) { private 734 lib/cib/cib_file.c crm_info("Wrote CIB to %s", private->filename); private 735 lib/cib/cib_file.c cib_clear_file_flags(private, cib_file_flag_dirty); private 737 lib/cib/cib_file.c crm_err("Could not write CIB to %s", private->filename); private 757 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 759 lib/cib/cib_file.c free(private->filename); private 761 lib/cib/cib_file.c free(private); private 815 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 875 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 588 lib/common/ipc_controld.c struct controld_api_private_s *private = api->api_data; private 590 lib/common/ipc_controld.c return private->replies_expected; private 102 lib/common/ipc_pacemakerd.c struct pacemakerd_api_private_s *private = NULL; private 110 lib/common/ipc_pacemakerd.c private = api->api_data; private 111 lib/common/ipc_pacemakerd.c private->state = pcmk_pacemakerd_state_invalid; private 115 lib/common/ipc_pacemakerd.c private->client_uuid = pcmk__getpid_s(); private 131 lib/common/ipc_pacemakerd.c struct pacemakerd_api_private_s *private = NULL; private 136 lib/common/ipc_pacemakerd.c private = api->api_data; private 137 lib/common/ipc_pacemakerd.c private->state = pcmk_pacemakerd_state_invalid; private 145 lib/common/ipc_pacemakerd.c struct pacemakerd_api_private_s *private = NULL; private 150 lib/common/ipc_pacemakerd.c private = api->api_data; private 151 lib/common/ipc_pacemakerd.c private->state = pcmk_pacemakerd_state_invalid; private 253 lib/common/ipc_pacemakerd.c pacemakerd_api_private_t *private; private 261 lib/common/ipc_pacemakerd.c private = api->api_data; private 262 lib/common/ipc_pacemakerd.c CRM_ASSERT(private != NULL); private 266 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 145 lib/common/ipc_schedulerd.c schedulerd_api_private_t *private; private 153 lib/common/ipc_schedulerd.c private = api->api_data; private 154 lib/common/ipc_schedulerd.c CRM_ASSERT(private != NULL); private 158 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 867 lib/fencing/st_client.c stonith_private_t *private = stonith->st_private; private 870 lib/fencing/st_client.c private->op_callback = NULL; private 871 lib/fencing/st_client.c g_hash_table_destroy(private->stonith_op_callback_table); private 872 lib/fencing/st_client.c private->stonith_op_callback_table = pcmk__intkey_table(stonith_destroy_op_callback); private 875 lib/fencing/st_client.c private->op_callback = NULL; private 878 lib/fencing/st_client.c pcmk__intkey_table_remove(private->stonith_op_callback_table, call_id); private 925 lib/fencing/st_client.c stonith_private_t *private = NULL; private 932 lib/fencing/st_client.c private = stonith->st_private; private 950 lib/fencing/st_client.c cb_info = pcmk__intkey_table_lookup(private->stonith_op_callback_table, private 961 lib/fencing/st_client.c } else if ((private->op_callback == NULL) && !pcmk__result_ok(&result)) { private 970 lib/fencing/st_client.c if (private->op_callback != NULL) { private 973 lib/fencing/st_client.c private->op_callback); private 1028 lib/fencing/st_client.c stonith_private_t *private = st->st_private; private 1030 lib/fencing/st_client.c callback = pcmk__intkey_table_lookup(private->stonith_op_callback_table, private 1046 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1049 lib/fencing/st_client.c private = st->st_private; private 1066 lib/fencing/st_client.c foreach_notify_entry(private, stonith_send_notification, &blob); private 1213 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1215 lib/fencing/st_client.c private = stonith->st_private; private 1216 lib/fencing/st_client.c crm_trace("Adding callback for %s events (%d)", event, g_list_length(private->notify_list)); private 1222 lib/fencing/st_client.c list_item = g_list_find_custom(private->notify_list, new_client, stonithlib_GCompareFunc); private 1230 lib/fencing/st_client.c private->notify_list = g_list_append(private->notify_list, new_client); private 1234 lib/fencing/st_client.c crm_trace("Callback added (%d)", g_list_length(private->notify_list)); private 1256 lib/fencing/st_client.c stonith_private_t *private = stonith->st_private; private 1259 lib/fencing/st_client.c foreach_notify_entry(private, del_notify_entry, stonith); private 1271 lib/fencing/st_client.c list_item = g_list_find_custom(private->notify_list, new_client, stonithlib_GCompareFunc); private 1278 lib/fencing/st_client.c if (private->notify_refcnt) { private 1280 lib/fencing/st_client.c private->notify_deletes = TRUE; private 1282 lib/fencing/st_client.c private->notify_list = g_list_remove(private->notify_list, list_client); private 1301 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1305 lib/fencing/st_client.c private = stonith->st_private; private 1308 lib/fencing/st_client.c private->op_callback = callback; private 1336 lib/fencing/st_client.c pcmk__intkey_table_insert(private->stonith_op_callback_table, call_id, private 1355 lib/fencing/st_client.c stonith_private_t *private = stonith->st_private; private 1357 lib/fencing/st_client.c if (private->stonith_op_callback_table == NULL) { private 1360 lib/fencing/st_client.c return g_hash_table_foreach(private->stonith_op_callback_table, stonith_dump_pending_op, NULL); private 1653 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1656 lib/fencing/st_client.c private = st->st_private; private 1658 lib/fencing/st_client.c while (crm_ipc_ready(private->ipc)) { private 1660 lib/fencing/st_client.c if (crm_ipc_read(private->ipc) > 0) { private 1661 lib/fencing/st_client.c const char *msg = crm_ipc_buffer(private->ipc); private 1666 lib/fencing/st_client.c if (crm_ipc_connected(private->ipc) == FALSE) { private 1688 lib/fencing/st_client.c stonith_private_t *private = stonith->st_private; private 1690 lib/fencing/st_client.c crm_trace("Removing %d callbacks", g_hash_table_size(private->stonith_op_callback_table)); private 1691 lib/fencing/st_client.c g_hash_table_destroy(private->stonith_op_callback_table); private 1693 lib/fencing/st_client.c crm_trace("Destroying %d notification clients", g_list_length(private->notify_list)); private 1694 lib/fencing/st_client.c g_list_free_full(private->notify_list, free); private 1819 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1826 lib/fencing/st_client.c private = calloc(1, sizeof(stonith_private_t)); private 1827 lib/fencing/st_client.c if (private == NULL) { private 1831 lib/fencing/st_client.c new_stonith->st_private = private; private 1833 lib/fencing/st_client.c private->stonith_op_callback_table = pcmk__intkey_table(stonith_destroy_op_callback); private 1834 lib/fencing/st_client.c private->notify_list = NULL; private 1835 lib/fencing/st_client.c private->notify_refcnt = 0; private 1836 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);