示例#1
0
static void dbiw_atexit()
{
#if USE_DEPRECATED_DBI_API
	dbi_shutdown();
#else
	if (DBI_INSTANCE)
	{
		dbi_inst foo = DBI_INSTANCE;
		DBI_INSTANCE = NULL;
		dbi_shutdown_r(foo);
	}
#endif
}
示例#2
0
void
gnc_module_finalize_backend_dbi (void)
{
#if HAVE_LIBDBI_R
    if (dbi_instance)
    {
        dbi_shutdown_r (dbi_instance);
        dbi_instance = nullptr;
    }
#else
    dbi_shutdown ();
#endif
}
示例#3
0
void dbi_shutdown() {
	dbi_shutdown_r(dbi_inst_legacy);
}
示例#4
0
void swd::database::disconnect() {
    dbi_conn_close(conn_);
#if defined(HAVE_DBI_NEW)
    dbi_shutdown_r(instance_);
#endif
}