mjsonrpc 1.0
A lightweight JSON-RPC 2.0 message parser and generator based on cJSON
Loading...
Searching...
No Matches
Data Fields
mjrpc_func_ctx_t Struct Reference

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)
 

Detailed Description

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.

Field Documentation

◆ data

void* mjrpc_func_ctx_t::data

User data pointer passed during method registration.

Definition at line 124 of file mjsonrpc.h.

◆ error_code

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.

◆ error_message

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.


The documentation for this struct was generated from the following file: