Method: SQLAnywhere::API.sqlany_finalize_interface

Defined in:
ext/sqlanywhere.c

.sqlany_finalize_interface(VALUEimp_drh) ⇒ nil

Finalize and free resources associated with the SQL Anywhere C API DLL.

This function will unload the library and uninitialize the supplied
SQLAnywhereInterface structure.

<b>Parameters</b>:
- <tt>VALUE imp_drh</tt> -- An initialized API structure to finalize.

<b>Returns</b>:
- <tt>nil</tt>.

Returns:

  • (nil)


238
239
240
241
242
243
244
245
246
247
248
249
250
# File 'ext/sqlanywhere.c', line 238

static VALUE
static_API_sqlany_finalize_interface(VALUE module, VALUE imp_drh)
{
    imp_drh_st* s_imp_drh;

    Data_Get_Struct(imp_drh, imp_drh_st, s_imp_drh);

    sqlany_finalize_interface(&(s_imp_drh->api));

    free(&(s_imp_drh->api));

    return( Qnil );
}