diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2020-12-06 19:01:21 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2020-12-06 19:01:21 (GMT) |
commit | aa7cbdda718efd7ec41f0ce580847a0d0c31cfd3 (patch) | |
tree | 1216e62254397446f039a6fe26bd12ba65f68321 /src/plugins/pglist.h | |
parent | 333e68541e376a7b86703fad8e917f71c0f243d0 (diff) |
Extended the plugin API to notify several stages of loading.
Diffstat (limited to 'src/plugins/pglist.h')
-rw-r--r-- | src/plugins/pglist.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/plugins/pglist.h b/src/plugins/pglist.h index ccf854f..d6c539d 100644 --- a/src/plugins/pglist.h +++ b/src/plugins/pglist.h @@ -107,8 +107,11 @@ GPluginModule **get_all_plugins_for_action(PluginAction, size_t *); /* DPS_PG_MANAGEMENT */ -#define notify_native_loaded \ - process_all_plugins_for(PGA_NATIVE_LOADED, g_plugin_module_notify_native_loaded, NULL) +#define notify_native_plugins_loaded() \ + process_all_plugins_for(PGA_NATIVE_PLUGINS_LOADED, g_plugin_module_notify_plugins_loaded, NULL) + +#define notify_plugins_loaded() \ + process_all_plugins_for(PGA_PLUGINS_LOADED, g_plugin_module_notify_plugins_loaded, NULL) #define build_type_instance(t) \ process_plugins_while_null(PGA_TYPE_BUILDING, g_plugin_module_build_type_instance, t) |