Add support for lazy loading of giomodules
authorAlexander Larsson <alexl@redhat.com>
Tue, 12 Jan 2010 10:36:12 +0000 (11:36 +0100)
committerAlexander Larsson <alexl@redhat.com>
Tue, 12 Jan 2010 15:31:29 +0000 (16:31 +0100)
commit488bede191081f035f24f7c3e55a86bc8ee2d7ae
tree9ee5cb241e03e67726837b28346707bc64248d6a
parent6aa1aef5562b2db9777ad17183427dbbb88599b2
Add support for lazy loading of giomodules

Adds an optional query method to giomodules which should return all
possible extension points the module may implement.

Then we add a new call g_io_modules_scan_all_in_directory() similar to
g_io_modules_load_all_in_directory() that doesn't return all loaded
modules, thus allowing lazy loading.

In g_io_modules_scan_all_in_directory we look for an optional
giomodule.cache file and use the information in that to avoid
loading modules until they are needed for an extension point.
gio/gio.symbols
gio/giomodule.c
gio/giomodule.h