marking.c
changeset 10 b84d72957c06
parent 2 30b66610f86a
child 11 f7c76b2c9900
--- a/marking.c	Mon Feb 15 18:40:52 2010 +0200
+++ b/marking.c	Thu Mar 04 19:52:21 2010 +0200
@@ -21,7 +21,6 @@
  */
 
 #include <glib.h>
-#include <gmodule.h>
 #include <string.h>
 
 #include <mcabber/hbuf.h>
@@ -30,6 +29,17 @@
 #include <mcabber/compl.h>
 #include <mcabber/utils.h>
 #include <mcabber/logprint.h>
+#include <mcabber/modules.h>
+
+static void marking_init   (void);
+static void marking_uninit (void);
+
+module_info_t info_marking = {
+	.mcabber_version = "0.10.0",
+	.requires        = NULL,
+	.init            = marking_init,
+	.uninit          = marking_uninit,
+};
 
 static GSList *marked_jids = NULL;
 
@@ -170,15 +180,13 @@
 	free_arg_lst (args);
 }
 
-gchar *g_module_check_init (GModule *module)
+static void marking_init (void)
 {
 	cmd_add ("mark", "", 0, COMPL_JID, do_mark, NULL);
 	cmd_add ("marked", "", 0, COMPL_CMD, do_marked, NULL);
-
-	return NULL;
 }
 
-void g_module_unload (GModule *module)
+static void marking_uninit (void)
 {
 	cmd_del ("mark");
 	cmd_del ("marked");