api 378 daemons/controld/controld_execd_state.c lrmd_t *api = NULL; api 380 daemons/controld/controld_execd_state.c rc = lrmd__new(&api, NULL, NULL, 0); api 384 daemons/controld/controld_execd_state.c api->cmds->set_callback(api, lrm_op_callback); api 385 daemons/controld/controld_execd_state.c lrm_state->conn = api; api 578 daemons/controld/controld_execd_state.c lrmd_t *api = NULL; api 580 daemons/controld/controld_execd_state.c rc = lrmd__new(&api, lrm_state->node_name, server, port); api 587 daemons/controld/controld_execd_state.c lrm_state->conn = api; api 588 daemons/controld/controld_execd_state.c api->cmds->set_callback(api, remote_lrm_op_callback); api 589 daemons/controld/controld_execd_state.c lrmd_internal_set_proxy_callback(api, lrm_state, crmd_remote_proxy_cb); api 162 daemons/controld/controld_schedulerd.c scheduler_event_callback(pcmk_ipc_api_t *api, enum pcmk_ipc_event event_type, api 111 include/crm/common/ipc.h typedef void (*pcmk_ipc_callback_t)(pcmk_ipc_api_t *api, api 116 include/crm/common/ipc.h int pcmk_new_ipc_api(pcmk_ipc_api_t **api, enum pcmk_ipc_server server); api 118 include/crm/common/ipc.h void pcmk_free_ipc_api(pcmk_ipc_api_t *api); api 120 include/crm/common/ipc.h int pcmk_connect_ipc(pcmk_ipc_api_t *api, enum pcmk_ipc_dispatch dispatch_type); api 122 include/crm/common/ipc.h void pcmk_disconnect_ipc(pcmk_ipc_api_t *api); api 124 include/crm/common/ipc.h int pcmk_poll_ipc(pcmk_ipc_api_t *api, int timeout_ms); api 126 include/crm/common/ipc.h void pcmk_dispatch_ipc(pcmk_ipc_api_t *api); api 128 include/crm/common/ipc.h void pcmk_register_ipc_callback(pcmk_ipc_api_t *api, pcmk_ipc_callback_t cb, api 131 include/crm/common/ipc.h const char *pcmk_ipc_name(pcmk_ipc_api_t *api, bool for_log); api 133 include/crm/common/ipc.h bool pcmk_ipc_is_connected(pcmk_ipc_api_t *api); api 135 include/crm/common/ipc.h int pcmk_ipc_purge_node(pcmk_ipc_api_t *api, const char *node_name, api 91 include/crm/common/ipc_controld.h int pcmk_controld_api_reprobe(pcmk_ipc_api_t *api, const char *target_node, api 93 include/crm/common/ipc_controld.h int pcmk_controld_api_node_info(pcmk_ipc_api_t *api, uint32_t nodeid); api 94 include/crm/common/ipc_controld.h int pcmk_controld_api_fail(pcmk_ipc_api_t *api, const char *target_node, api 98 include/crm/common/ipc_controld.h int pcmk_controld_api_refresh(pcmk_ipc_api_t *api, const char *target_node, api 103 include/crm/common/ipc_controld.h int pcmk_controld_api_ping(pcmk_ipc_api_t *api, const char *node_name); api 104 include/crm/common/ipc_controld.h int pcmk_controld_api_list_nodes(pcmk_ipc_api_t *api); api 105 include/crm/common/ipc_controld.h unsigned int pcmk_controld_api_replies_expected(pcmk_ipc_api_t *api); api 66 include/crm/common/ipc_pacemakerd.h int pcmk_pacemakerd_api_ping(pcmk_ipc_api_t *api, const char *ipc_name); api 67 include/crm/common/ipc_pacemakerd.h int pcmk_pacemakerd_api_shutdown(pcmk_ipc_api_t *api, const char *ipc_name); api 58 include/crm/common/ipc_schedulerd.h int pcmk_schedulerd_api_graph(pcmk_ipc_api_t *api, xmlNode *cib, char **ref); api 22 include/crm/lrmd_internal.h int lrmd__new(lrmd_t **api, const char *nodename, const char *server, int port); api 137 lib/common/crmcommon_private.h int (*new_data)(pcmk_ipc_api_t *api); api 161 lib/common/crmcommon_private.h int (*post_connect)(pcmk_ipc_api_t *api); api 172 lib/common/crmcommon_private.h bool (*reply_expected)(pcmk_ipc_api_t *api, xmlNode *request); api 183 lib/common/crmcommon_private.h bool (*dispatch)(pcmk_ipc_api_t *api, xmlNode *msg); api 191 lib/common/crmcommon_private.h void (*post_disconnect)(pcmk_ipc_api_t *api); api 217 lib/common/crmcommon_private.h int pcmk__send_ipc_request(pcmk_ipc_api_t *api, xmlNode *request); api 220 lib/common/crmcommon_private.h void pcmk__call_ipc_callback(pcmk_ipc_api_t *api, api 47 lib/common/ipc_client.c pcmk_new_ipc_api(pcmk_ipc_api_t **api, enum pcmk_ipc_server server) api 49 lib/common/ipc_client.c if (api == NULL) { api 53 lib/common/ipc_client.c *api = calloc(1, sizeof(pcmk_ipc_api_t)); api 54 lib/common/ipc_client.c if (*api == NULL) { api 58 lib/common/ipc_client.c (*api)->server = server; api 59 lib/common/ipc_client.c if (pcmk_ipc_name(*api, false) == NULL) { api 60 lib/common/ipc_client.c pcmk_free_ipc_api(*api); api 61 lib/common/ipc_client.c *api = NULL; api 65 lib/common/ipc_client.c (*api)->ipc_size_max = 0; api 73 lib/common/ipc_client.c (*api)->ipc_size_max = 512 * 1024; // 512KB api 77 lib/common/ipc_client.c (*api)->cmds = pcmk__controld_api_methods(); api 87 lib/common/ipc_client.c (*api)->cmds = pcmk__pacemakerd_api_methods(); api 91 lib/common/ipc_client.c (*api)->cmds = pcmk__schedulerd_api_methods(); api 93 lib/common/ipc_client.c (*api)->ipc_size_max = 5 * 1024 * 1024; // 5MB api 96 lib/common/ipc_client.c if ((*api)->cmds == NULL) { api 97 lib/common/ipc_client.c pcmk_free_ipc_api(*api); api 98 lib/common/ipc_client.c *api = NULL; api 102 lib/common/ipc_client.c (*api)->ipc = crm_ipc_new(pcmk_ipc_name(*api, false), api 103 lib/common/ipc_client.c (*api)->ipc_size_max); api 104 lib/common/ipc_client.c if ((*api)->ipc == NULL) { api 105 lib/common/ipc_client.c pcmk_free_ipc_api(*api); api 106 lib/common/ipc_client.c *api = NULL; api 111 lib/common/ipc_client.c if ((*api)->cmds->new_data != NULL) { api 112 lib/common/ipc_client.c if ((*api)->cmds->new_data(*api) != pcmk_rc_ok) { api 113 lib/common/ipc_client.c pcmk_free_ipc_api(*api); api 114 lib/common/ipc_client.c *api = NULL; api 118 lib/common/ipc_client.c crm_trace("Created %s API IPC object", pcmk_ipc_name(*api, true)); api 123 lib/common/ipc_client.c free_daemon_specific_data(pcmk_ipc_api_t *api) api 125 lib/common/ipc_client.c if ((api != NULL) && (api->cmds != NULL)) { api 126 lib/common/ipc_client.c if ((api->cmds->free_data != NULL) && (api->api_data != NULL)) { api 127 lib/common/ipc_client.c api->cmds->free_data(api->api_data); api 128 lib/common/ipc_client.c api->api_data = NULL; api 130 lib/common/ipc_client.c free(api->cmds); api 131 lib/common/ipc_client.c api->cmds = NULL; api 145 lib/common/ipc_client.c pcmk__call_ipc_callback(pcmk_ipc_api_t *api, enum pcmk_ipc_event event_type, api 148 lib/common/ipc_client.c if ((api != NULL) && (api->cb != NULL)) { api 149 lib/common/ipc_client.c api->cb(api, event_type, status, event_data, api->user_data); api 164 lib/common/ipc_client.c pcmk_ipc_api_t *api = user_data; api 166 lib/common/ipc_client.c crm_info("Disconnected from %s IPC API", pcmk_ipc_name(api, true)); api 169 lib/common/ipc_client.c if ((api->cmds != NULL) && (api->cmds->post_disconnect != NULL)) { api 170 lib/common/ipc_client.c api->cmds->post_disconnect(api); api 174 lib/common/ipc_client.c pcmk__call_ipc_callback(api, pcmk_ipc_event_disconnect, CRM_EX_DISCONNECT, api 182 lib/common/ipc_client.c api->ipc = NULL; api 183 lib/common/ipc_client.c api->mainloop_io = NULL; api 185 lib/common/ipc_client.c if (api->free_on_disconnect) { api 189 lib/common/ipc_client.c free_daemon_specific_data(api); api 191 lib/common/ipc_client.c free(api); api 201 lib/common/ipc_client.c pcmk_free_ipc_api(pcmk_ipc_api_t *api) api 205 lib/common/ipc_client.c if (api == NULL) { api 208 lib/common/ipc_client.c crm_debug("Releasing %s IPC API", pcmk_ipc_name(api, true)); api 210 lib/common/ipc_client.c if (api->ipc != NULL) { api 211 lib/common/ipc_client.c if (api->mainloop_io != NULL) { api 221 lib/common/ipc_client.c free_on_disconnect = api->free_on_disconnect = true; api 223 lib/common/ipc_client.c pcmk_disconnect_ipc(api); // Frees api if free_on_disconnect is true api 226 lib/common/ipc_client.c free_daemon_specific_data(api); api 228 lib/common/ipc_client.c free(api); api 242 lib/common/ipc_client.c pcmk_ipc_name(pcmk_ipc_api_t *api, bool for_log) api 244 lib/common/ipc_client.c if (api == NULL) { api 247 lib/common/ipc_client.c switch (api->server) { api 282 lib/common/ipc_client.c pcmk_ipc_is_connected(pcmk_ipc_api_t *api) api 284 lib/common/ipc_client.c return (api != NULL) && crm_ipc_connected(api->ipc); api 298 lib/common/ipc_client.c call_api_dispatch(pcmk_ipc_api_t *api, xmlNode *message) api 301 lib/common/ipc_client.c if ((api->cmds != NULL) && (api->cmds->dispatch != NULL)) { api 302 lib/common/ipc_client.c return api->cmds->dispatch(api, message); api 324 lib/common/ipc_client.c dispatch_ipc_data(const char *buffer, pcmk_ipc_api_t *api) api 331 lib/common/ipc_client.c pcmk_ipc_name(api, true)); api 338 lib/common/ipc_client.c pcmk_ipc_name(api, true)); api 342 lib/common/ipc_client.c more = call_api_dispatch(api, msg); api 367 lib/common/ipc_client.c pcmk_ipc_api_t *api = user_data; api 369 lib/common/ipc_client.c CRM_CHECK(api != NULL, return 0); api 370 lib/common/ipc_client.c dispatch_ipc_data(buffer, api); api 393 lib/common/ipc_client.c pcmk_poll_ipc(pcmk_ipc_api_t *api, int timeout_ms) api 398 lib/common/ipc_client.c if ((api == NULL) || (api->dispatch_type != pcmk_ipc_dispatch_poll)) { api 401 lib/common/ipc_client.c pollfd.fd = crm_ipc_get_fd(api->ipc); api 423 lib/common/ipc_client.c pcmk_dispatch_ipc(pcmk_ipc_api_t *api) api 425 lib/common/ipc_client.c if (api == NULL) { api 428 lib/common/ipc_client.c while (crm_ipc_ready(api->ipc) > 0) { api 429 lib/common/ipc_client.c if (crm_ipc_read(api->ipc) > 0) { api 430 lib/common/ipc_client.c dispatch_ipc_data(crm_ipc_buffer(api->ipc), api); api 437 lib/common/ipc_client.c connect_with_main_loop(pcmk_ipc_api_t *api) api 446 lib/common/ipc_client.c rc = pcmk__add_mainloop_ipc(api->ipc, G_PRIORITY_DEFAULT, api, api 447 lib/common/ipc_client.c &callbacks, &(api->mainloop_io)); api 452 lib/common/ipc_client.c pcmk_ipc_name(api, true)); api 461 lib/common/ipc_client.c connect_without_main_loop(pcmk_ipc_api_t *api) api 465 lib/common/ipc_client.c if (!crm_ipc_connect(api->ipc)) { api 467 lib/common/ipc_client.c crm_ipc_close(api->ipc); api 471 lib/common/ipc_client.c pcmk_ipc_name(api, true)); api 484 lib/common/ipc_client.c pcmk_connect_ipc(pcmk_ipc_api_t *api, enum pcmk_ipc_dispatch dispatch_type) api 488 lib/common/ipc_client.c if (api == NULL) { api 493 lib/common/ipc_client.c if (api->ipc == NULL) { api 494 lib/common/ipc_client.c api->ipc = crm_ipc_new(pcmk_ipc_name(api, false), api 495 lib/common/ipc_client.c api->ipc_size_max); api 496 lib/common/ipc_client.c if (api->ipc == NULL) { api 502 lib/common/ipc_client.c if (crm_ipc_connected(api->ipc)) { api 503 lib/common/ipc_client.c crm_trace("Already connected to %s IPC API", pcmk_ipc_name(api, true)); api 507 lib/common/ipc_client.c api->dispatch_type = dispatch_type; api 510 lib/common/ipc_client.c rc = connect_with_main_loop(api); api 515 lib/common/ipc_client.c rc = connect_without_main_loop(api); api 522 lib/common/ipc_client.c if ((api->cmds != NULL) && (api->cmds->post_connect != NULL)) { api 523 lib/common/ipc_client.c rc = api->cmds->post_connect(api); api 525 lib/common/ipc_client.c crm_ipc_close(api->ipc); api 543 lib/common/ipc_client.c pcmk_disconnect_ipc(pcmk_ipc_api_t *api) api 545 lib/common/ipc_client.c if ((api == NULL) || (api->ipc == NULL)) { api 548 lib/common/ipc_client.c switch (api->dispatch_type) { api 551 lib/common/ipc_client.c mainloop_io_t *mainloop_io = api->mainloop_io; api 554 lib/common/ipc_client.c api->mainloop_io = NULL; api 555 lib/common/ipc_client.c api->ipc = NULL; api 565 lib/common/ipc_client.c crm_ipc_t *ipc = api->ipc; api 568 lib/common/ipc_client.c api->ipc = NULL; api 571 lib/common/ipc_client.c api->free_on_disconnect = false; api 574 lib/common/ipc_client.c ipc_post_disconnect(api); api 593 lib/common/ipc_client.c pcmk_register_ipc_callback(pcmk_ipc_api_t *api, pcmk_ipc_callback_t cb, api 596 lib/common/ipc_client.c if (api == NULL) { api 599 lib/common/ipc_client.c api->cb = cb; api 600 lib/common/ipc_client.c api->user_data = user_data; api 616 lib/common/ipc_client.c pcmk__send_ipc_request(pcmk_ipc_api_t *api, xmlNode *request) api 622 lib/common/ipc_client.c if ((api == NULL) || (api->ipc == NULL) || (request == NULL)) { api 628 lib/common/ipc_client.c if ((api->dispatch_type == pcmk_ipc_dispatch_sync) api 629 lib/common/ipc_client.c && (api->cmds != NULL) api 630 lib/common/ipc_client.c && (api->cmds->reply_expected != NULL) api 631 lib/common/ipc_client.c && (api->cmds->reply_expected(api, request))) { api 636 lib/common/ipc_client.c rc = crm_ipc_send(api->ipc, request, flags, 0, &reply); api 646 lib/common/ipc_client.c bool more = call_api_dispatch(api, reply); api 651 lib/common/ipc_client.c rc = crm_ipc_read(api->ipc); api 661 lib/common/ipc_client.c rc = dispatch_ipc_data(crm_ipc_buffer(api->ipc), api); api 698 lib/common/ipc_client.c create_purge_node_request(pcmk_ipc_api_t *api, const char *node_name, api 704 lib/common/ipc_client.c switch (api->server) { api 720 lib/common/ipc_client.c pcmk_ipc_name(api, false), client, NULL); api 747 lib/common/ipc_client.c pcmk_ipc_purge_node(pcmk_ipc_api_t *api, const char *node_name, uint32_t nodeid) api 752 lib/common/ipc_client.c if (api == NULL) { api 759 lib/common/ipc_client.c request = create_purge_node_request(api, node_name, nodeid); api 763 lib/common/ipc_client.c rc = pcmk__send_ipc_request(api, request); api 767 lib/common/ipc_client.c pcmk_ipc_name(api, true), node_name, (unsigned long) nodeid, rc); api 32 lib/common/ipc_controld.c new_data(pcmk_ipc_api_t *api) api 36 lib/common/ipc_controld.c api->api_data = calloc(1, sizeof(struct controld_api_private_s)); api 38 lib/common/ipc_controld.c if (api->api_data == NULL) { api 42 lib/common/ipc_controld.c private = api->api_data; api 68 lib/common/ipc_controld.c post_connect(pcmk_ipc_api_t *api) api 73 lib/common/ipc_controld.c struct controld_api_private_s *private = api->api_data; api 81 lib/common/ipc_controld.c rc = pcmk__send_ipc_request(api, hello); api 85 lib/common/ipc_controld.c pcmk_ipc_name(api, true), pcmk_rc_str(rc), rc); api 87 lib/common/ipc_controld.c crm_debug("Sent IPC hello to %s", pcmk_ipc_name(api, true)); api 144 lib/common/ipc_controld.c reply_expected(pcmk_ipc_api_t *api, xmlNode *request) api 161 lib/common/ipc_controld.c dispatch(pcmk_ipc_api_t *api, xmlNode *reply) api 163 lib/common/ipc_controld.c struct controld_api_private_s *private = api->api_data; api 251 lib/common/ipc_controld.c pcmk__call_ipc_callback(api, pcmk_ipc_event_reply, status, &reply_data); api 288 lib/common/ipc_controld.c create_controller_request(pcmk_ipc_api_t *api, const char *op, api 294 lib/common/ipc_controld.c if (api == NULL) { api 297 lib/common/ipc_controld.c private = api->api_data; api 310 lib/common/ipc_controld.c send_controller_request(pcmk_ipc_api_t *api, xmlNode *request, api 318 lib/common/ipc_controld.c rc = pcmk__send_ipc_request(api, request); api 320 lib/common/ipc_controld.c struct controld_api_private_s *private = api->api_data; api 351 lib/common/ipc_controld.c pcmk_controld_api_reprobe(pcmk_ipc_api_t *api, const char *target_node, api 358 lib/common/ipc_controld.c if (api == NULL) { api 365 lib/common/ipc_controld.c pcmk_ipc_name(api, true), crm_str(target_node), api 368 lib/common/ipc_controld.c request = create_controller_request(api, CRM_OP_REPROBE, router_node, api 370 lib/common/ipc_controld.c rc = send_controller_request(api, request, true); api 386 lib/common/ipc_controld.c pcmk_controld_api_node_info(pcmk_ipc_api_t *api, uint32_t nodeid) api 391 lib/common/ipc_controld.c request = create_controller_request(api, CRM_OP_NODE_INFO, NULL, NULL); api 399 lib/common/ipc_controld.c rc = send_controller_request(api, request, true); api 414 lib/common/ipc_controld.c pcmk_controld_api_ping(pcmk_ipc_api_t *api, const char *node_name) api 419 lib/common/ipc_controld.c request = create_controller_request(api, CRM_OP_PING, node_name, NULL); api 423 lib/common/ipc_controld.c rc = send_controller_request(api, request, true); api 437 lib/common/ipc_controld.c pcmk_controld_api_list_nodes(pcmk_ipc_api_t *api) api 442 lib/common/ipc_controld.c request = create_controller_request(api, PCMK__CONTROLD_CMD_NODES, NULL, api 445 lib/common/ipc_controld.c rc = send_controller_request(api, request, true); api 453 lib/common/ipc_controld.c controller_resource_op(pcmk_ipc_api_t *api, const char *op, api 463 lib/common/ipc_controld.c if (api == NULL) { api 506 lib/common/ipc_controld.c request = create_controller_request(api, op, router_node, msg_data); api 507 lib/common/ipc_controld.c rc = send_controller_request(api, request, true); api 529 lib/common/ipc_controld.c pcmk_controld_api_fail(pcmk_ipc_api_t *api, api 536 lib/common/ipc_controld.c pcmk_ipc_name(api, true), crm_str(rsc_id), crm_str(rsc_long_id), api 538 lib/common/ipc_controld.c return controller_resource_op(api, CRM_OP_LRM_FAIL, target_node, api 560 lib/common/ipc_controld.c pcmk_controld_api_refresh(pcmk_ipc_api_t *api, const char *target_node, api 567 lib/common/ipc_controld.c pcmk_ipc_name(api, true), crm_str(rsc_id), crm_str(rsc_long_id), api 569 lib/common/ipc_controld.c return controller_resource_op(api, CRM_OP_LRM_DELETE, target_node, api 582 lib/common/ipc_controld.c pcmk_controld_api_replies_expected(pcmk_ipc_api_t *api) api 584 lib/common/ipc_controld.c struct controld_api_private_s *private = api->api_data; api 67 lib/common/ipc_pacemakerd.c new_data(pcmk_ipc_api_t *api) api 71 lib/common/ipc_pacemakerd.c api->api_data = calloc(1, sizeof(struct pacemakerd_api_private_s)); api 73 lib/common/ipc_pacemakerd.c if (api->api_data == NULL) { api 77 lib/common/ipc_pacemakerd.c private = api->api_data; api 96 lib/common/ipc_pacemakerd.c post_connect(pcmk_ipc_api_t *api) api 100 lib/common/ipc_pacemakerd.c if (api->api_data == NULL) { api 103 lib/common/ipc_pacemakerd.c private = api->api_data; api 110 lib/common/ipc_pacemakerd.c post_disconnect(pcmk_ipc_api_t *api) api 114 lib/common/ipc_pacemakerd.c if (api->api_data == NULL) { api 117 lib/common/ipc_pacemakerd.c private = api->api_data; api 124 lib/common/ipc_pacemakerd.c reply_expected(pcmk_ipc_api_t *api, xmlNode *request) api 137 lib/common/ipc_pacemakerd.c dispatch(pcmk_ipc_api_t *api, xmlNode *reply) api 194 lib/common/ipc_pacemakerd.c pcmk__call_ipc_callback(api, pcmk_ipc_event_reply, status, &reply_data); api 215 lib/common/ipc_pacemakerd.c do_pacemakerd_api_call(pcmk_ipc_api_t *api, const char *ipc_name, const char *task) api 221 lib/common/ipc_pacemakerd.c if (api == NULL) { api 225 lib/common/ipc_pacemakerd.c private = api->api_data; api 233 lib/common/ipc_pacemakerd.c rc = pcmk__send_ipc_request(api, cmd); api 247 lib/common/ipc_pacemakerd.c pcmk_pacemakerd_api_ping(pcmk_ipc_api_t *api, const char *ipc_name) api 249 lib/common/ipc_pacemakerd.c return do_pacemakerd_api_call(api, ipc_name, CRM_OP_PING); api 253 lib/common/ipc_pacemakerd.c pcmk_pacemakerd_api_shutdown(pcmk_ipc_api_t *api, const char *ipc_name) api 255 lib/common/ipc_pacemakerd.c return do_pacemakerd_api_call(api, ipc_name, CRM_OP_QUIT); api 29 lib/common/ipc_schedulerd.c new_data(pcmk_ipc_api_t *api) api 33 lib/common/ipc_schedulerd.c api->api_data = calloc(1, sizeof(struct schedulerd_api_private_s)); api 35 lib/common/ipc_schedulerd.c if (api->api_data == NULL) { api 39 lib/common/ipc_schedulerd.c private = api->api_data; api 55 lib/common/ipc_schedulerd.c post_connect(pcmk_ipc_api_t *api) api 57 lib/common/ipc_schedulerd.c if (api->api_data == NULL) { api 65 lib/common/ipc_schedulerd.c reply_expected(pcmk_ipc_api_t *api, xmlNode *request) api 78 lib/common/ipc_schedulerd.c dispatch(pcmk_ipc_api_t *api, xmlNode *reply) api 121 lib/common/ipc_schedulerd.c pcmk__call_ipc_callback(api, pcmk_ipc_event_reply, status, &reply_data); api 141 lib/common/ipc_schedulerd.c do_schedulerd_api_call(pcmk_ipc_api_t *api, const char *task, xmlNode *cib, char **ref) api 147 lib/common/ipc_schedulerd.c if (!pcmk_ipc_is_connected(api)) { api 151 lib/common/ipc_schedulerd.c private = api->api_data; api 159 lib/common/ipc_schedulerd.c rc = pcmk__send_ipc_request(api, cmd); api 175 lib/common/ipc_schedulerd.c pcmk_schedulerd_api_graph(pcmk_ipc_api_t *api, xmlNode *cib, char **ref) api 177 lib/common/ipc_schedulerd.c return do_schedulerd_api_call(api, CRM_OP_PECALC, cib, ref); api 2214 lib/lrmd/lrmd_client.c lrmd__new(lrmd_t **api, const char *nodename, const char *server, int port) api 2218 lib/lrmd/lrmd_client.c if (api == NULL) { api 2221 lib/lrmd/lrmd_client.c *api = NULL; api 2225 lib/lrmd/lrmd_client.c *api = calloc(1, sizeof(lrmd_t)); api 2226 lib/lrmd/lrmd_client.c if (*api == NULL) { api 2232 lib/lrmd/lrmd_client.c lrmd_api_delete(*api); api 2233 lib/lrmd/lrmd_client.c *api = NULL; api 2236 lib/lrmd/lrmd_client.c (*api)->lrmd_private = pvt; api 2241 lib/lrmd/lrmd_client.c (*api)->cmds = calloc(1, sizeof(lrmd_api_operations_t)); api 2243 lib/lrmd/lrmd_client.c if ((pvt->remote == NULL) || ((*api)->cmds == NULL)) { api 2244 lib/lrmd/lrmd_client.c lrmd_api_delete(*api); api 2245 lib/lrmd/lrmd_client.c *api = NULL; api 2250 lib/lrmd/lrmd_client.c (*api)->cmds->connect = lrmd_api_connect; api 2251 lib/lrmd/lrmd_client.c (*api)->cmds->connect_async = lrmd_api_connect_async; api 2252 lib/lrmd/lrmd_client.c (*api)->cmds->is_connected = lrmd_api_is_connected; api 2253 lib/lrmd/lrmd_client.c (*api)->cmds->poke_connection = lrmd_api_poke_connection; api 2254 lib/lrmd/lrmd_client.c (*api)->cmds->disconnect = lrmd_api_disconnect; api 2255 lib/lrmd/lrmd_client.c (*api)->cmds->register_rsc = lrmd_api_register_rsc; api 2256 lib/lrmd/lrmd_client.c (*api)->cmds->unregister_rsc = lrmd_api_unregister_rsc; api 2257 lib/lrmd/lrmd_client.c (*api)->cmds->get_rsc_info = lrmd_api_get_rsc_info; api 2258 lib/lrmd/lrmd_client.c (*api)->cmds->get_recurring_ops = lrmd_api_get_recurring_ops; api 2259 lib/lrmd/lrmd_client.c (*api)->cmds->set_callback = lrmd_api_set_callback; api 2260 lib/lrmd/lrmd_client.c (*api)->cmds->get_metadata = lrmd_api_get_metadata; api 2261 lib/lrmd/lrmd_client.c (*api)->cmds->exec = lrmd_api_exec; api 2262 lib/lrmd/lrmd_client.c (*api)->cmds->cancel = lrmd_api_cancel; api 2263 lib/lrmd/lrmd_client.c (*api)->cmds->list_agents = lrmd_api_list_agents; api 2264 lib/lrmd/lrmd_client.c (*api)->cmds->list_ocf_providers = lrmd_api_list_ocf_providers; api 2265 lib/lrmd/lrmd_client.c (*api)->cmds->list_standards = lrmd_api_list_standards; api 2266 lib/lrmd/lrmd_client.c (*api)->cmds->exec_alert = lrmd_api_exec_alert; api 2267 lib/lrmd/lrmd_client.c (*api)->cmds->get_metadata_params = lrmd_api_get_metadata_params; api 2282 lib/lrmd/lrmd_client.c lrmd_api_delete(*api); api 2283 lib/lrmd/lrmd_client.c *api = NULL; api 2293 lib/lrmd/lrmd_client.c lrmd_api_delete(*api); api 2294 lib/lrmd/lrmd_client.c *api = NULL; api 2304 lib/lrmd/lrmd_client.c lrmd_t *api = NULL; api 2306 lib/lrmd/lrmd_client.c CRM_ASSERT(lrmd__new(&api, NULL, NULL, 0) == pcmk_rc_ok); api 2307 lib/lrmd/lrmd_client.c return api; api 2313 lib/lrmd/lrmd_client.c lrmd_t *api = NULL; api 2315 lib/lrmd/lrmd_client.c CRM_ASSERT(lrmd__new(&api, nodename, server, port) == pcmk_rc_ok); api 2316 lib/lrmd/lrmd_client.c return api; api 83 lib/pacemaker/pcmk_cluster_queries.c event_done(data_t *data, pcmk_ipc_api_t *api) api 85 lib/pacemaker/pcmk_cluster_queries.c pcmk_disconnect_ipc(api); api 245 lib/pacemaker/pcmk_cluster_queries.c pcmk_ipc_api_t *api = NULL; api 248 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk_new_ipc_api(&api, server); api 249 lib/pacemaker/pcmk_cluster_queries.c if (api == NULL) { api 251 lib/pacemaker/pcmk_cluster_queries.c pcmk_ipc_name(api, true), api 257 lib/pacemaker/pcmk_cluster_queries.c pcmk_register_ipc_callback(api, cb, data); api 259 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk_connect_ipc(api, pcmk_ipc_dispatch_main); api 262 lib/pacemaker/pcmk_cluster_queries.c pcmk_ipc_name(api, true), api 268 lib/pacemaker/pcmk_cluster_queries.c return api; api 568 maint/gnulib/lib/parse-datetime.y %define api.pure api 261 tools/crm_resource.c controller_event_callback(pcmk_ipc_api_t *api, enum pcmk_ipc_event event_type, api 276 tools/crm_resource.c pcmk_disconnect_ipc(api); api 279 tools/crm_resource.c if ((pcmk_controld_api_replies_expected(api) == 0) api 283 tools/crm_resource.c pcmk_disconnect_ipc(api);