|
mjsonrpc 1.0
A lightweight JSON-RPC 2.0 message parser and generator based on cJSON
|
Context structure passed to RPC method callback functions. More...
#include <mjsonrpc.h>
Data Fields | |
| void * | data |
| User data pointer passed during method registration. | |
| int32_t | error_code |
| Error code to be set by the method implementation (0 = no error) | |
| char * | error_message |
| Error message to be set by the method implementation (will be freed automatically) | |
Context structure passed to RPC method callback functions.
This structure provides context information and error handling capabilities to RPC method implementations.
Definition at line 121 of file mjsonrpc.h.
| void* mjrpc_func_ctx_t::data |
User data pointer passed during method registration.
Definition at line 124 of file mjsonrpc.h.
| int32_t mjrpc_func_ctx_t::error_code |
Error code to be set by the method implementation (0 = no error)
Definition at line 127 of file mjsonrpc.h.
| char* mjrpc_func_ctx_t::error_message |
Error message to be set by the method implementation (will be freed automatically)
Definition at line 130 of file mjsonrpc.h.