# HG changeset patch # User Mikael Berthe # Date 1268478013 -3600 # Node ID 53b0091ecd472c16bd0991fc8ee517922c23c7cd # Parent ad87c711de845396846e8c38b780788f68c7bb0f Update modules to the new API scheme diff -r ad87c711de84 -r 53b0091ecd47 clock/clock.c --- a/clock/clock.c Tue Mar 09 22:17:15 2010 +0100 +++ b/clock/clock.c Sat Mar 13 12:00:13 2010 +0100 @@ -35,10 +35,15 @@ /* Module description */ module_info_t info_clock = { - .mcabber_version = "0.10.0", - .requires = NULL, - .init = clock_init, - .uninit = clock_uninit, + .branch = MCABBER_BRANCH, + .api = MCABBER_API_VERSION, + .version = "1.00", + .description = "Simple clock module\n" + "Uses the 'info' option to display the time.", + .requires = NULL, + .init = clock_init, + .uninit = clock_uninit, + .next = NULL, }; static guint srcno = 0; diff -r ad87c711de84 -r 53b0091ecd47 comment/comment.c --- a/comment/comment.c Tue Mar 09 22:17:15 2010 +0100 +++ b/comment/comment.c Sat Mar 13 12:00:13 2010 +0100 @@ -26,10 +26,15 @@ /* Module description */ module_info_t info_comment = { - .mcabber_version = "0.10.0", - .requires = NULL, - .init = comment_init, - .uninit = comment_uninit, + .branch = MCABBER_BRANCH, + .api = MCABBER_API_VERSION, + .version = "1.00", + .description = "Comment (no-op) pseudo-command\n" + "(Pretty useless!)", + .requires = NULL, + .init = comment_init, + .uninit = comment_uninit, + .next = NULL, }; static void do_comment(char *args) diff -r ad87c711de84 -r 53b0091ecd47 extsay/extsay.c --- a/extsay/extsay.c Tue Mar 09 22:17:15 2010 +0100 +++ b/extsay/extsay.c Sat Mar 13 12:00:13 2010 +0100 @@ -34,10 +34,17 @@ /* Module description */ module_info_t info_extsay = { - .mcabber_version = "0.10.0", - .requires = NULL, - .init = extsay_init, - .uninit = extsay_uninit, + .branch = MCABBER_BRANCH, + .api = MCABBER_API_VERSION, + .version = "0.01", + .description = "Use external editor to send a message\n" + "WARNING: use at your own risk - " + "mcabber is stuck while you write a message, " + "this is not recommended!", + .requires = NULL, + .init = extsay_init, + .uninit = extsay_uninit, + .next = NULL, }; // XXX Not very clean, internal function...