Symisc Systems

Libcox C/C++ API Reference - Foreign Command private data


Star Follow @symisc

Syntax

void * libcox_context_user_data(libcox_context *pCtx);


Extract foreign command private data.

Description

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.


Parameters

pCtx

Foreign command call context.


Return value

A copy of the pointer untouched or NULL if no private data were associated within this command.


See also

libcox_register_command.