[ekg2-commit] ekg2: jogger.c (HEAD) [peres]
CVS commit
cvs w toxygen.net
Sob, 5 Maj 2007, 12:23:57 CEST
Module name: ekg2
Changes by: peres 2007-05-05 12:23:55
Modified files:
jogger.c
Log message:
Displaying match data version.
Index: jogger.c
===================================================================
RCS file: /home/cvs/ekg2/plugins/jogger/jogger.c,v
diff -d -u -r1.7 -r1.8
--- jogger.c 5 May 2007 09:01:53 -0000 1.7
+++ jogger.c 5 May 2007 10:23:55 -0000 1.8
@@ -26,6 +26,8 @@
#include <ekg/xmalloc.h>
#include <ekg/vars.h>
+#define JOGGER_DATE "2007-05-04"
+
static int jogger_theme_init(void);
int jogger_plugin_init(int prio);
static int jogger_plugin_destroy(void);
@@ -170,6 +172,12 @@
return 0;
}
+static QUERY(jogger_print_version) {
+ print("jogger_version", JOGGER_DATE);
+
+ return 0;
+}
+
static int jogger_theme_init(void) {
#ifndef NO_DEFAULT_THEME
format_add("jogger_noentry", _("%> (%1) No thread with id %2 found."), 1);
@@ -180,6 +188,7 @@
format_add("jogger_comment_added", _("%)%| (%1) Your comment was added to entry %c%2%n."), 1);
format_add("jogger_modified", _("%>%| (%1) Subscribed entry has been modified: %c%2%n."), 1);
format_add("jogger_published", _("%)%| (%1) Your new entry has been published as: %c%2%n."), 1);
+ format_add("jogger_version", _("%> Jogger plugin match data dated %g%1%n."), 1);
#endif
return 0;
}
@@ -196,7 +205,8 @@
int jogger_plugin_init(int prio) {
jogger_plugin.params = jogger_plugin_vars;
-
+
+ query_connect_id(&jogger_plugin, PLUGIN_PRINT_VERSION, jogger_print_version, NULL);
query_connect_id(&jogger_plugin, PROTOCOL_VALIDATE_UID, jogger_validate_uid, NULL);
query_connect_id(&jogger_plugin, PROTOCOL_STATUS, jogger_statuschanged, NULL);
query_connect_id(&jogger_plugin, PROTOCOL_DISCONNECTED, jogger_statuscleanup, NULL);
Więcej informacji o liście dyskusyjnej ekg2-commit