Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 » SQL Anywhere Server - Programming » SQL Anywhere Data Access APIs » SQL Anywhere External Function API » External function prototypes


extfn_use_new_api method

To notify the database server that the external library is written using the external function call API, your external library must export the following function:

a_sql_uint32 extfn_use_new_api( );

The function returns an unsigned 32-bit integer. The returned value must be the API version number, EXTFN_API_VERSION, defined in extfnapi.h. A return value of 0 means that the old API is being used.


If the function is not exported by the library, the database server assumes that the old API is in use. The new API must be used for all Unix platforms and for all 64-bit platforms, including 64-bit Windows.

A typical implementation of this function follows:

a_sql_uint32 extfn_use_new_api( void )
    return( EXTFN_API_VERSION );
See also