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 ); } |
Discuss this page in DocCommentXchange. Send feedback about this page using email. |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |