/soc/2012/sanket/statscollector-2.x.y: 589cd61a27d8: Main C file...
Sanket Agarwal
sanket at soc.pidgin.im
Tue Jul 10 00:36:21 EDT 2012
Changeset: 589cd61a27d888c09ca41cd94f29463945506d49
Author: Sanket Agarwal <sanket at soc.pidgin.im>
Date: 2012-05-12 09:00 +0000
Branch: soc.2012.statscollector
URL: http://hg.pidgin.im/soc/2012/sanket/statscollector-2.x.y/rev/589cd61a27d8
Description:
Main C file containing the Plugin logic.x
diffstat:
pidgin/plugins/statscollector.c | 63 +++++++++++++++++++++++++++++++++++++++++
1 files changed, 63 insertions(+), 0 deletions(-)
diffs (68 lines):
diff --git a/pidgin/plugins/statscollector.c b/pidgin/plugins/statscollector.c
new file mode 100644
--- /dev/null
+++ b/pidgin/plugins/statscollector.c
@@ -0,0 +1,63 @@
+#define PURPLE_PLUGINS
+
+#include <glib.h>
+
+#include "notify.h"
+#include "plugin.h"
+#include "version.h"
+
+#include "internal.h"
+
+#include <gtkplugin.h>
+
+static gboolean
+plugin_load(PurplePlugin *plugin) {
+ purple_notify_message(plugin, PURPLE_NOTIFY_MSG_INFO, "Hello World!",
+ "This is the Status Message 4! plugin :)", NULL, NULL, NULL);
+
+ return TRUE;
+}
+
+static PurplePluginInfo info =
+{
+ PURPLE_PLUGIN_MAGIC,
+ PURPLE_MAJOR_VERSION, /**< major version */
+ PURPLE_MINOR_VERSION, /**< minor version */
+ PURPLE_PLUGIN_STANDARD, /**< type */
+ PIDGIN_PLUGIN_TYPE, /**< ui_requirement */
+ 0, /**< flags */
+ NULL, /**< dependencies */
+ PURPLE_PRIORITY_DEFAULT, /**< priority */
+ "statscollector", /**< id */
+ N_("Statistics collection"), /**< name */
+ DISPLAY_VERSION, /**< version */
+ N_("Automated collection of statistics for "
+ "pidgin.im "), /**< summary */
+ N_("Collects statistics about usage of pidgin at "
+ "regular intervales and sends this usage "
+ "information to pidgin.im for collection "
+ " and display"), /**< description */
+ "Sanket Agarwal <sanket at sanketagarwal.com>", /**< author */
+ PURPLE_WEBSITE, /**< homepage */
+ plugin_load, /**< load */
+ NULL, /**< unload */
+ NULL, /**< destroy */
+ NULL, /**< ui_info */
+ NULL, /**< extra_info */
+ NULL, /**< prefs_info */
+ NULL, /**< actions */
+
+ /* padding */
+ NULL,
+ NULL,
+ NULL,
+ NULL
+};
+
+static void
+init_plugin(PurplePlugin *plugin)
+{
+}
+
+PURPLE_INIT_PLUGIN(statscollector, init_plugin, info)
+
More information about the Commits
mailing list