Use build-time api version
authorMyhailo Danylenko <isbear@ukrpost.net>
Sun, 22 Jul 2012 15:37:10 +0300
changeset 22 cbae62eecb1d
parent 21 66ece9145926
child 23 66455f258c64
Use build-time api version
marking.c
--- a/marking.c	Thu Jun 30 16:13:59 2011 +0300
+++ b/marking.c	Sun Jul 22 15:37:10 2012 +0300
@@ -38,9 +38,9 @@
 
 #define DESCRIPTION ( "Actions on multiple marked buddies\nProvides commands /mark and /marked" )
 
-static module_info_t info_marking_dev = {
-	.branch      = "dev",
-	.api         = 20,
+module_info_t info_marking = {
+	.branch      = MCABBER_BRANCH,
+	.api         = MCABBER_API_VERSION,
 	.version     = PROJECT_VERSION,
 	.description = DESCRIPTION,
 	.requires    = NULL,
@@ -49,17 +49,6 @@
 	.next        = NULL,
 };
 
-module_info_t info_marking = {
-	.branch      = "0.10.1",
-	.api         = 1,
-	.version     = PROJECT_VERSION,
-	.description = DESCRIPTION,
-	.requires    = NULL,
-	.init        = marking_init,
-	.uninit      = marking_uninit,
-	.next        = &info_marking_dev,
-};
-
 #ifdef MCABBER_API_HAVE_CMD_ID
 static gpointer mark_cmid   = NULL;
 static gpointer marked_cmid = NULL;