Data Structures | |
struct | CMrpc_options |
Defines | |
#define | CMrpc_set_option(X, OPT) ((X)->flags |= (OPT)) |
#define | CMrpc_clear_option(X, OPT) ((X)->flags &= ~(OPT)) |
#define | CMrpc_call_cleanup_function (0x1) |
#define | CMrpc_async_call (0x1) |
Typedefs | |
typedef void(* | CMrpc_HandlerFunc )(void *in_param_msg, void *out_param_msg, CMrpc_options options) |
typedef void(* | CMrpc_OnewayHandlerFunc )(void *in_param_msg, CMrpc_options options) |
typedef void(* | CMrpc_HandlerCleanupFunc )(CManager cm, void *out_msg) |
Functions | |
int | CMrpc_register_rpc_handler (CManager cm, const char *rpc_name, CMrpc_HandlerFunc func, CMrpc_OnewayHandlerFunc oneway_func, CMrpc_HandlerCleanupFunc cleanup_func) |
int | CMrpc_unregister_rpc (const char *rpc_name) |
Variables | |
typedef | CMrpc_options_t |
|
Options manipulation for the CMrpc_options struct. The set and clear functions are shortcuts to change the flags member of the struct. call_cleanup_function indicates that there is a cleanup function for the handler that should be called after the handler completes and any data is returned to the caller. |
|
Type of handler cleanup functions. A handler cleanup function is run after the handler function has been executed and the data returned to the caller. Typically, these free up temporary memory allocated by the handler or release other resources.
|
|
Type of most RPC handler functions. The in_param and out_param structures must be cast to user types (which themselves must already have been registered) before use.
|
|
Type of "one-way" functions, which are RPC calls for which the caller does not expect a reply.
|
|
Used from server-side (i.e. CMrpc assumes that if you use this function in a process, you intend for that process to receive RPC requests). Registers the given function and, if desired, cleanup function as handlers for the given rpc name.
|
|
Removes the registration information for the named RPC.
|