void * libcox_context_user_data(libcox_context *pCtx);
Extract foreign command private data.
The libcox_context_user_data() interface returns a copy of the pointer that was the pUserData parameter (the last parameter) of the libcox_register_command() that originally registered the application defined command.
This routine accepts as its first argument a pointer to a libcox_context which mean that it is designed to be invoked only from a foreign command.
This routine must be called from the same thread in which the application-defined function is running.
Foreign command call context.
A copy of the pointer untouched or NULL if no private data were associated within this command.