r16200 - gnucash/trunk - Do not register qof backend modules on first load, #433779.

Andreas Köhler andi5 at cvs.gnucash.org
Fri Jun 22 09:31:35 EDT 2007


Author: andi5
Date: 2007-06-22 09:31:29 -0400 (Fri, 22 Jun 2007)
New Revision: 16200
Trac: http://svn.gnucash.org/trac/changeset/16200

Modified:
   gnucash/trunk/lib/libqof/backend/file/qof-backend-qsf.h
   gnucash/trunk/lib/libqof/backend/file/qsf-backend.c
   gnucash/trunk/lib/libqof/qof/qofbackend.c
   gnucash/trunk/src/backend/file/gnc-backend-file.c
   gnucash/trunk/src/backend/file/gnc-backend-file.h
   gnucash/trunk/src/backend/postgres/PostgresBackend.c
   gnucash/trunk/src/backend/postgres/PostgresBackend.h
Log:
Do not register qof backend modules on first load, #433779.

Qof backend modules used to call qof_backend_register_provider() and
g_module_make_resident() directly in g_module_check_init(), i.e. they
could not be unloaded after the gnucash module crawler detected them.
Probably after the renaming of libgnc-backend-file the QSF backend
module started to register itself before the gnc file backend, spitting
a validation error on virtually every data file load.

So g_module_check_init() has been renamed to qof_backend_module_init()
and is now called by qof_load_backend_library().




More information about the gnucash-patches mailing list