Error Codes

Status codes returned by all API functions.

TI_OK

Operation succeeded.

TI_ERR_INVALID_ARG

Invalid argument (NULL pointer, out of range, etc.).

TI_ERR_NOT_CONNECTED

Not connected to the server.

TI_ERR_TIMEOUT

Operation timed out.

TI_ERR_BUFFER_TOO_SMALL

The caller-provided buffer is too small. Call ti_last_error() to get the required size.

TI_ERR_SERVER

The server returned an error.

TI_ERR_INTERNAL

Internal error (out of memory, thread error, etc.).

ti_client_t

Client handle (opaque pointer).

Created with ti_create(); must be released with ti_destroy() when no longer needed. The internal structure is not exposed; all operations are performed through the functions declared in this header.