MySQL 9.0.0
Source Code Documentation
|
#include "xcom/pax_msg.h"
Go to the source code of this file.
Typedefs | |
typedef struct xcom_input_request * | xcom_input_request_ptr |
typedef void(* | xcom_input_reply_function_ptr) (void *reply_arg, pax_msg *payload) |
The function type that XCom will use to reply to a request. More... | |
Functions | |
xcom_input_request_ptr | xcom_input_request_new (app_data_ptr a, xcom_input_reply_function_ptr reply_function, void *reply_arg) |
Creates a new XCom request. More... | |
void | xcom_input_request_free (xcom_input_request_ptr request) |
Frees the given request and its payload. More... | |
void | xcom_input_request_set_next (xcom_input_request_ptr request, xcom_input_request_ptr next) |
Links request to the list of requests next . More... | |
xcom_input_request_ptr | xcom_input_request_extract_next (xcom_input_request_ptr request) |
Unlinks request from its list. More... | |
app_data_ptr | xcom_input_request_extract_app_data (xcom_input_request_ptr request) |
Extract the given request's payload. More... | |
void | xcom_input_request_reply (xcom_input_request_ptr request, pax_msg *payload) |
Replies to the request using the strategy chosen by the request's origin. More... | |
typedef void(* xcom_input_reply_function_ptr) (void *reply_arg, pax_msg *payload) |
The function type that XCom will use to reply to a request.
typedef struct xcom_input_request* xcom_input_request_ptr |
app_data_ptr xcom_input_request_extract_app_data | ( | xcom_input_request_ptr | request | ) |
Extract the given request's payload.
Transfers ownership of the result to the caller.
request | the request from which to extract the payload |
xcom_input_request_ptr xcom_input_request_extract_next | ( | xcom_input_request_ptr | request | ) |
Unlinks request
from its list.
request | the request to unlink |
void xcom_input_request_free | ( | xcom_input_request_ptr | request | ) |
Frees the given request and its payload.
request | the request to free |
xcom_input_request_ptr xcom_input_request_new | ( | app_data_ptr | a, |
xcom_input_reply_function_ptr | reply_function, | ||
void * | reply_arg | ||
) |
Creates a new XCom request.
Takes ownership of a
.
a | the request's app_data payload |
reply_function | the function used to reply to the request |
reply_arg | opaque argument to the reply_function |
xcom_input_request_ptr | if successful |
NULL | if unsuccessful |
void xcom_input_request_reply | ( | xcom_input_request_ptr | request, |
pax_msg * | payload | ||
) |
Replies to the request using the strategy chosen by the request's origin.
request | the request to reply to |
payload | the payload of the reply |
void xcom_input_request_set_next | ( | xcom_input_request_ptr | request, |
xcom_input_request_ptr | next | ||
) |
Links request
to the list of requests next
.
request | the request to link |
next | the list to be linked to |