Product Documentation

FairCom DB API for C

Previous Topic

Next Topic

ctdbExecJsonAction

ctdbExecJsonAction() executes the JSON Action request with the user-defined JSON string and returns the JSON string with the JSON Action response. If the provided buffer is not large enough, error VBSZ_ERR is returned, and the required buffer size is populated in the outputSize parameter.

Declaration

CTDBRET ctdbExecJsonAction(CTHANDLE Handle,const char *input, char *output, size_t *outputSize);

Description

  • Handle - Active ctdb Handle.
  • input - specifies the JSON string being sent in the request.
  • output - specifies the JSON string once it has been returned in the response.
  • outputSize - specifies the size of the JSON string that was returned.

For best performance, the caller should avoid providing output buffers that are too small.

Return Values

Value

Symbolic Constant

Explanation

0

CTDBRET_OK

Successful operation.

153

VBSZ_ERR

Output buffer too small.

See c-tree Plus Error Codes for a complete listing of valid c-tree Plus error values.

TOCIndex