private 1484 cib/callbacks.c cib_client_status_callback(const char *node, const char *client, const char *status, void *private) private 72 cib/callbacks.h const char *status, void *private); private 33 crmd/crmd_callbacks.h void *private); private 383 crmd/heartbeat.c crmd_ha_status_callback(const char *node, const char *status, void *private) private 415 crmd/heartbeat.c crmd_client_status_callback(const char *node, const char *client, const char *status, void *private) private 103 include/crm/cluster.h void (*hb_dispatch) (HA_Message * msg, void *private); private 500 include/crm/lrmd.h void *private; private 368 include/crm/stonith-ng.h void *private; private 479 lib/cib/cib_file.c cib_file_opaque_t *private = NULL; private 482 lib/cib/cib_file.c private = calloc(1, sizeof(cib_file_opaque_t)); private 483 lib/cib/cib_file.c CRM_ASSERT((cib != NULL) && (private != NULL)); private 486 lib/cib/cib_file.c cib->variant_opaque = private; private 491 lib/cib/cib_file.c private->flags = 0; private 493 lib/cib/cib_file.c set_bit(private->flags, cib_flag_live); private 496 lib/cib/cib_file.c private->filename = strdup(cib_location); private 567 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 569 lib/cib/cib_file.c if (private->filename == NULL) { private 572 lib/cib/cib_file.c rc = load_file_cib(private->filename); private 576 lib/cib/cib_file.c crm_debug("%s: Opened connection to local file '%s'", name, private->filename); private 582 lib/cib/cib_file.c name, private->filename, pcmk_strerror(rc)); private 682 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 689 lib/cib/cib_file.c if (is_set(private->flags, cib_flag_dirty)) { private 692 lib/cib/cib_file.c if (is_set(private->flags, cib_flag_live)) { private 693 lib/cib/cib_file.c if (cib_file_write_live(private->filename) < 0) { private 699 lib/cib/cib_file.c gboolean do_bzip = crm_ends_with_ext(private->filename, ".bz2"); private 701 lib/cib/cib_file.c if (write_xml_file(in_mem_cib, private->filename, do_bzip) <= 0) { private 707 lib/cib/cib_file.c crm_info("Wrote CIB to %s", private->filename); private 708 lib/cib/cib_file.c clear_bit(private->flags, cib_flag_dirty); private 710 lib/cib/cib_file.c crm_err("Could not write CIB to %s", private->filename); private 730 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 732 lib/cib/cib_file.c free(private->filename); private 734 lib/cib/cib_file.c free(private); private 788 lib/cib/cib_file.c cib_file_opaque_t *private = cib->variant_opaque; private 847 lib/cib/cib_file.c set_bit(private->flags, cib_flag_dirty); private 89 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 91 lib/cib/cib_remote.c return private->callback.tcp_socket; private 104 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 109 lib/cib/cib_remote.c crm_remote_send(&private->callback, notify_msg); private 118 lib/cib/cib_remote.c cib_remote_opaque_t *private = NULL; private 121 lib/cib/cib_remote.c private = calloc(1, sizeof(cib_remote_opaque_t)); 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 205 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 222 lib/cib/cib_remote.c sock = crm_remote_tcp_connect(private->server, private->port); private 224 lib/cib/cib_remote.c crm_perror(LOG_ERR, "remote tcp connection to %s:%d failed", private->server, private 225 lib/cib/cib_remote.c private->port); private 231 lib/cib/cib_remote.c if (private->encrypted) { private 244 lib/cib/cib_remote.c crm_err("Session creation for %s:%d failed", private->server, private->port); private 260 lib/cib/cib_remote.c crm_xml_add(login, "user", private->user); private 261 lib/cib/cib_remote.c crm_xml_add(login, "password", private->passwd); private 325 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 327 lib/cib/cib_remote.c crm_remote_recv(&private->command, -1, &disconnected); private 329 lib/cib/cib_remote.c free(private->command.buffer); private 330 lib/cib/cib_remote.c private->command.buffer = NULL; private 343 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 350 lib/cib/cib_remote.c crm_remote_recv(&private->callback, -1, &disconnected); private 352 lib/cib/cib_remote.c msg = crm_remote_parse_buffer(&private->callback); private 369 lib/cib/cib_remote.c msg = crm_remote_parse_buffer(&private->callback); private 383 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 385 lib/cib/cib_remote.c if (private->passwd == NULL) { private 396 lib/cib/cib_remote.c private->passwd = calloc(1, 1024); private 397 lib/cib/cib_remote.c rc = scanf("%1023s", private->passwd); private 403 lib/cib/cib_remote.c private->passwd = NULL; private 410 lib/cib/cib_remote.c if (private->server == NULL || private->user == NULL) { private 415 lib/cib/cib_remote.c rc = cib_tls_signon(cib, &(private->command), FALSE); private 419 lib/cib/cib_remote.c rc = cib_tls_signon(cib, &(private->callback), TRUE); private 424 lib/cib/cib_remote.c cib_create_op(0, private->callback.token, CRM_OP_REGISTER, NULL, NULL, NULL, 0, NULL); private 426 lib/cib/cib_remote.c crm_remote_send(&private->command, hello); private 431 lib/cib/cib_remote.c crm_notice("%s: Opened connection to %s:%d", name, private->server, private->port); private 437 lib/cib/cib_remote.c name, private->server, private->port, pcmk_strerror(rc)); private 470 lib/cib/cib_remote.c cib_remote_opaque_t *private = cib->variant_opaque; private 472 lib/cib/cib_remote.c free(private->server); private 473 lib/cib/cib_remote.c free(private->user); private 474 lib/cib/cib_remote.c free(private->passwd); private 476 lib/cib/cib_remote.c free(private); private 496 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 crm_remote_send(&private->callback, op_msg); private 531 lib/cib/cib_remote.c crm_remote_send(&private->command, op_msg); private 552 lib/cib/cib_remote.c crm_remote_recv(&private->command, remaining_time * 1000, &disconnected); private 553 lib/cib/cib_remote.c op_reply = crm_remote_parse_buffer(&private->command); private 192 lib/fencing/st_client.c native = stonith->private; private 1708 lib/fencing/st_client.c stonith_private_t *native = stonith->private; private 1736 lib/fencing/st_client.c stonith_private_t *native = stonith->private; private 1829 lib/fencing/st_client.c stonith_private_t *native = stonith->private; private 1859 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1861 lib/fencing/st_client.c private = stonith->private; private 1862 lib/fencing/st_client.c crm_trace("Adding callback for %s events (%d)", event, g_list_length(private->notify_list)); private 1868 lib/fencing/st_client.c list_item = g_list_find_custom(private->notify_list, new_client, stonithlib_GCompareFunc); private 1876 lib/fencing/st_client.c private->notify_list = g_list_append(private->notify_list, new_client); private 1880 lib/fencing/st_client.c crm_trace("Callback added (%d)", g_list_length(private->notify_list)); private 1890 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1894 lib/fencing/st_client.c private = stonith->private; private 1899 lib/fencing/st_client.c list_item = g_list_find_custom(private->notify_list, new_client, stonithlib_GCompareFunc); private 1906 lib/fencing/st_client.c private->notify_list = g_list_remove(private->notify_list, list_client); private 1964 lib/fencing/st_client.c stonith_private_t *private = st->private; private 1966 lib/fencing/st_client.c callback = g_hash_table_lookup(private->stonith_op_callback_table, GINT_TO_POINTER(call_id)); private 1993 lib/fencing/st_client.c stonith_private_t *private = NULL; private 1996 lib/fencing/st_client.c CRM_CHECK(stonith->private != NULL, return -EINVAL); private 1997 lib/fencing/st_client.c private = stonith->private; private 2000 lib/fencing/st_client.c private->op_callback = callback; private 2023 lib/fencing/st_client.c g_hash_table_insert(private->stonith_op_callback_table, GINT_TO_POINTER(call_id), blob); private 2032 lib/fencing/st_client.c stonith_private_t *private = stonith->private; private 2035 lib/fencing/st_client.c private->op_callback = NULL; private 2036 lib/fencing/st_client.c g_hash_table_destroy(private->stonith_op_callback_table); private 2037 lib/fencing/st_client.c private->stonith_op_callback_table = g_hash_table_new_full(g_direct_hash, g_direct_equal, private 2042 lib/fencing/st_client.c private->op_callback = NULL; private 2045 lib/fencing/st_client.c g_hash_table_remove(private->stonith_op_callback_table, GINT_TO_POINTER(call_id)); private 2062 lib/fencing/st_client.c stonith_private_t *private = stonith->private; private 2064 lib/fencing/st_client.c if (private->stonith_op_callback_table == NULL) { private 2067 lib/fencing/st_client.c return g_hash_table_foreach(private->stonith_op_callback_table, stonith_dump_pending_op, NULL); private 2073 lib/fencing/st_client.c stonith_private_t *private = NULL; private 2078 lib/fencing/st_client.c CRM_CHECK(stonith->private != NULL, return); private 2080 lib/fencing/st_client.c private = stonith->private; private 2094 lib/fencing/st_client.c blob = g_hash_table_lookup(private->stonith_op_callback_table, GINT_TO_POINTER(call_id)); private 2111 lib/fencing/st_client.c } else if (private->op_callback == NULL && rc != pcmk_ok) { private 2116 lib/fencing/st_client.c if (private->op_callback != NULL) { private 2118 lib/fencing/st_client.c invoke_callback(stonith, call_id, rc, NULL, private->op_callback); private 2240 lib/fencing/st_client.c stonith_private_t *native = stonith->private; private 2343 lib/fencing/st_client.c stonith_private_t *private = NULL; private 2346 lib/fencing/st_client.c private = st->private; private 2348 lib/fencing/st_client.c while (crm_ipc_ready(private->ipc)) { private 2350 lib/fencing/st_client.c if (crm_ipc_read(private->ipc) > 0) { private 2351 lib/fencing/st_client.c const char *msg = crm_ipc_buffer(private->ipc); private 2356 lib/fencing/st_client.c if (crm_ipc_connected(private->ipc) == FALSE) { private 2372 lib/fencing/st_client.c stonith_private_t *private = NULL; private 2375 lib/fencing/st_client.c private = st->private; private 2392 lib/fencing/st_client.c g_list_foreach(private->notify_list, stonith_send_notification, &blob); private 2423 lib/fencing/st_client.c stonith_private_t *private = stonith->private; private 2425 lib/fencing/st_client.c crm_trace("Removing %d callbacks", g_hash_table_size(private->stonith_op_callback_table)); private 2426 lib/fencing/st_client.c g_hash_table_destroy(private->stonith_op_callback_table); private 2428 lib/fencing/st_client.c crm_trace("Destroying %d notification clients", g_list_length(private->notify_list)); private 2429 lib/fencing/st_client.c g_list_free_full(private->notify_list, free); private 2431 lib/fencing/st_client.c free(stonith->private); private 2455 lib/fencing/st_client.c stonith_private_t *private = NULL; private 2458 lib/fencing/st_client.c private = calloc(1, sizeof(stonith_private_t)); private 2459 lib/fencing/st_client.c new_stonith->private = private; private 2461 lib/fencing/st_client.c private->stonith_op_callback_table = g_hash_table_new_full(g_direct_hash, g_direct_equal, private 2463 lib/fencing/st_client.c private->notify_list = NULL; private 237 lib/lrmd/lrmd_client.c lrmd_private_t *native = lrmd->private; private 300 lib/lrmd/lrmd_client.c lrmd_private_t *native = lrmd->private; private 325 lib/lrmd/lrmd_client.c lrmd_private_t *native = lrmd->private; private 338 lib/lrmd/lrmd_client.c lrmd_private_t *native = lrmd->private; private 405 lib/lrmd/lrmd_client.c lrmd_private_t *native = lrmd->private; private 430 lib/lrmd/lrmd_client.c lrmd_private_t *private = NULL; private 434 lib/lrmd/lrmd_client.c private = lrmd->private; private 435 lib/lrmd/lrmd_client.c switch (private->type) { private 437 lib/lrmd/lrmd_client.c while (crm_ipc_ready(private->ipc)) { private 438 lib/lrmd/lrmd_client.c if (crm_ipc_read(private->ipc) > 0) { private 439 lib/lrmd/lrmd_client.c const char *msg = crm_ipc_buffer(private->ipc); private 451 lib/lrmd/lrmd_client.c crm_err("Unsupported connection type: %d", private->type); private 491 lib/lrmd/lrmd_client.c lrmd_private_t *native = lrmd->private; private 512 lib/lrmd/lrmd_client.c lrmd_private_t *native = lrmd->private; private 564 lib/lrmd/lrmd_client.c lrmd_private_t *native = lrmd->private; private 649 lib/lrmd/lrmd_client.c lrmd_private_t *native = lrmd->private; private 708 lib/lrmd/lrmd_client.c lrmd_private_t *native = lrmd->private; private 730 lib/lrmd/lrmd_client.c lrmd_private_t *native = lrmd->private; private 757 lib/lrmd/lrmd_client.c lrmd_private_t *native = lrmd->private; private 797 lib/lrmd/lrmd_client.c lrmd_private_t *native = lrmd->private; private 865 lib/lrmd/lrmd_client.c lrmd_private_t *native = lrmd->private; private 880 lib/lrmd/lrmd_client.c lrmd_private_t *native = lrmd->private; private 898 lib/lrmd/lrmd_client.c lrmd_private_t *native = lrmd->private; private 961 lib/lrmd/lrmd_client.c lrmd_private_t *native = lrmd->private; private 1105 lib/lrmd/lrmd_client.c lrmd_private_t *native = lrmd->private; private 1121 lib/lrmd/lrmd_client.c lrmd_private_t *native = lrmd->private; private 1193 lib/lrmd/lrmd_client.c lrmd_private_t *native = lrmd->private; private 1215 lib/lrmd/lrmd_client.c lrmd_private_t *native = lrmd->private; private 1273 lib/lrmd/lrmd_client.c lrmd_private_t *native = lrmd->private; private 1299 lib/lrmd/lrmd_client.c lrmd_private_t *native = lrmd->private; private 1334 lib/lrmd/lrmd_client.c lrmd_private_t *native = lrmd->private; private 1356 lib/lrmd/lrmd_client.c lrmd_private_t *native = lrmd->private; private 1390 lib/lrmd/lrmd_client.c lrmd_private_t *native = lrmd->private; private 1533 lib/lrmd/lrmd_client.c lrmd_private_t *native = lrmd->private; private 1541 lib/lrmd/lrmd_client.c lrmd_private_t *native = lrmd->private; private 1550 lib/lrmd/lrmd_client.c lrmd_private_t *native = lrmd->private; private 1832 lib/lrmd/lrmd_client.c new_lrmd->private = pvt; private 1859 lib/lrmd/lrmd_client.c lrmd_private_t *native = new_lrmd->private; private 1890 lib/lrmd/lrmd_client.c if (lrmd->private) { private 1891 lib/lrmd/lrmd_client.c lrmd_private_t *native = lrmd->private; private 1902 lib/lrmd/lrmd_client.c free(lrmd->private);