[geany/geany] c35ded: Rename internal plugin_init() to avoid confusion with plugins entry point

Colomban Wendling git-noreply at xxxxx
Mon Oct 20 14:18:05 UTC 2014


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Mon, 20 Oct 2014 14:18:05 UTC
Commit:      c35dedf35f95511d0e4f9fd204ddee5dddd1a409
             https://github.com/geany/geany/commit/c35dedf35f95511d0e4f9fd204ddee5dddd1a409

Log Message:
-----------
Rename internal plugin_init() to avoid confusion with plugins entry point


Modified Paths:
--------------
    src/plugins.c

Modified: src/plugins.c
10 lines changed, 5 insertions(+), 5 deletions(-)
===================================================================
@@ -582,7 +582,7 @@ static gint cmp_plugin_names(gconstpointer a, gconstpointer b)
 
 
 static void
-plugin_init(Plugin *plugin)
+plugin_load(Plugin *plugin)
 {
 	GeanyPlugin **p_geany_plugin;
 	PluginCallback *callbacks;
@@ -645,12 +645,12 @@ plugin_init(Plugin *plugin)
 
 
 /* Load and optionally init a plugin.
- * init_plugin decides whether the plugin's plugin_init() function should be called or not. If it is
+ * load_plugin decides whether the plugin's plugin_init() function should be called or not. If it is
  * called, the plugin will be started, if not the plugin will be read only (for the list of
  * available plugins in the plugin manager).
  * When add_to_list is set, the plugin will be added to the plugin manager's plugin_list. */
 static Plugin*
-plugin_new(const gchar *fname, gboolean init_plugin, gboolean add_to_list)
+plugin_new(const gchar *fname, gboolean load_plugin, gboolean add_to_list)
 {
 	Plugin *plugin;
 	GModule *module;
@@ -758,8 +758,8 @@ plugin_new(const gchar *fname, gboolean init_plugin, gboolean add_to_list)
 	plugin->public.info = &plugin->info;
 	plugin->public.priv = plugin;
 
-	if (init_plugin)
-		plugin_init(plugin);
+	if (load_plugin)
+		plugin_load(plugin);
 
 	if (add_to_list)
 		plugin_list = g_list_prepend(plugin_list, plugin);



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list