--- a/CMakeLists.txt Thu Mar 04 19:52:21 2010 +0200
+++ b/CMakeLists.txt Sun Mar 14 22:15:02 2010 +0200
@@ -16,6 +16,7 @@
cmake_minimum_required(VERSION 2.6)
project(marking C)
+set(PROJECT_VERSION "0.0.1")
## User settable options
@@ -38,8 +39,9 @@
${marking_BINARY_DIR})
## Packaging information
+configure_file(config.h.in config.h)
set(CPACK_PACKAGE_NAME libmcabber-marking)
-set(CPACK_PACKAGE_VERSION "0.0.1")
+set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
set(CPACK_PACKAGE_VENDOR "IsBear")
set(CPACK_PACKAGE_CONTACT "Myhailo Danylenko <isbear@ukrpost.net>")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Mcabber module to do commands with multiple contacts")
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/config.h.in Sun Mar 14 22:15:02 2010 +0200
@@ -0,0 +1,8 @@
+
+#ifndef LOCAL_CONFIG_H
+#define LOCAL_CONFIG_H
+
+#define PROJECT_VERSION ( "${PROJECT_VERSION}" )
+
+#endif
+
--- a/marking.c Thu Mar 04 19:52:21 2010 +0200
+++ b/marking.c Sun Mar 14 22:15:02 2010 +0200
@@ -31,14 +31,33 @@
#include <mcabber/logprint.h>
#include <mcabber/modules.h>
+#include "config.h"
+
static void marking_init (void);
static void marking_uninit (void);
+#define DESCRIPTION ( "Actions on multiple marked buddies\nProvides commands /mark and /marked" )
+
+static module_info_t info_marking_experimental = {
+ .branch = "experimental",
+ .api = 5,
+ .version = PROJECT_VERSION,
+ .description = DESCRIPTION,
+ .requires = NULL,
+ .init = marking_init,
+ .uninit = marking_uninit,
+ .next = NULL,
+};
+
module_info_t info_marking = {
- .mcabber_version = "0.10.0",
- .requires = NULL,
- .init = marking_init,
- .uninit = marking_uninit,
+ .branch = "dev",
+ .api = 4,
+ .version = PROJECT_VERSION,
+ .description = DESCRIPTION,
+ .requires = NULL,
+ .init = marking_init,
+ .uninit = marking_uninit,
+ .next = &info_marking_experimental,
};
static GSList *marked_jids = NULL;