Symisc Vedis

An Embeddable Datastore Engine



Vedis C/C++ API Reference - Foreign Command private data.

Syntax

void * vedis_context_user_data(vedis_context *pCtx);


Extract foreign command private data.


Description


The vedis_context_user_data() interface returns a copy of the pointer that was the pUserData parameter (the last parameter) of the vedis_register_command() that originally registered the application defined command.

This routine accepts as its first argument a pointer to a vedis_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


vedis_register_command.



Symisc Systems
Copyright © Symisc Systems