changeset 13688:428f86e1fd27

[gaim-migrate @ 16091] SF Patch #1464437 "1. A sample plugin ID with a comment explaining its purpose 2. One tiny comment alignment fix." committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Mon, 24 Apr 2006 20:41:15 +0000
parents 22ac7f523fc9
children 5fb687f9965c
files plugins/simple.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/simple.c	Mon Apr 24 20:37:00 2006 +0000
+++ b/plugins/simple.c	Mon Apr 24 20:41:15 2006 +0000
@@ -3,6 +3,9 @@
 #include "plugin.h"
 #include "version.h"
 
+/** Plugin id : type-author-name (to guarantee uniqueness) */
+#define SIMPLE_PLUGIN_ID "core-ewarmenhoven-simple"
+
 static gboolean
 plugin_load(GaimPlugin *plugin)
 {
@@ -30,7 +33,7 @@
 	NULL,                                             /**< dependencies   */
 	GAIM_PRIORITY_DEFAULT,                            /**< priority       */
 
-	NULL,                                             /**< id             */
+	SIMPLE_PLUGIN_ID,                                 /**< id             */
 	N_("Simple Plugin"),                              /**< name           */
 	VERSION,                                          /**< version        */
 	                                                  /**  summary        */
@@ -38,7 +41,7 @@
 	                                                  /**  description    */
 	N_("Tests to see that most things are working."),
 	"Eric Warmenhoven <eric@warmenhoven.org>",        /**< author         */
-	GAIM_WEBSITE,                                          /**< homepage       */
+	GAIM_WEBSITE,                                     /**< homepage       */
 
 	plugin_load,                                      /**< load           */
 	plugin_unload,                                    /**< unload         */