Symisc UnQLite

An Embeddable NoSQL Database Engine



UnQLite C/C++ API Reference - Foreign function private data.

Syntax


void * unqlite_context_user_data(unqlite_context *pCtx);


Extract foreign function private data.


Description


The unqlite_context_user_data() interface returns a copy of the pointer that was the pUserData parameter (the last parameter) of the unqlite_create_function() that originally registered the application defined function.

This routine accepts as its first argument a pointer to a unqlite_context which mean that it is designed to be invoked only from a foreign function.

This routine must be called from the same thread in which the application-defined function is running.


Parameters


pCtx

Foreign function Call Context.


Return value


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


See also


Installing Foreign Functions.



Symisc Systems
Copyright © Symisc Systems