# HG changeset patch # User Myhailo Danylenko # Date 1342961450 -10800 # Node ID a77a8e7ab8ae5cb6f2b8fe7c39ad9c95457ccd62 # Parent eea355fa94cfd8b61cf277cd3387fe38d17b37a5 Use build-time api version diff -r eea355fa94cf -r a77a8e7ab8ae activity.c --- a/activity.c Sun Jul 22 15:45:05 2012 +0300 +++ b/activity.c Sun Jul 22 15:50:50 2012 +0300 @@ -47,9 +47,9 @@ static const gchar *deps[] = { "pep_activity", NULL }; -static module_info_t info_activity_dev = { - .branch = "dev", - .api = 20, +module_info_t info_activity = { + .branch = MCABBER_BRANCH, + .api = MCABBER_API_VERSION, .version = PROJECT_VERSION, .description = DESCRIPTION, .requires = deps, @@ -58,28 +58,6 @@ .next = NULL, }; -static module_info_t info_activity_0_10_1 = { - .branch = "0.10.1", - .api = 1, - .version = PROJECT_VERSION, - .description = DESCRIPTION, - .requires = deps, - .init = activity_init, - .uninit = activity_uninit, - .next = &info_activity_dev, -}; - -module_info_t info_activity = { - .branch = "0.10.0", - .api = 1, - .version = PROJECT_VERSION, - .description = DESCRIPTION, - .requires = deps, - .init = activity_init, - .uninit = activity_uninit, - .next = &info_activity_0_10_1, -}; - // // globals // diff -r eea355fa94cf -r a77a8e7ab8ae geoloc.c --- a/geoloc.c Sun Jul 22 15:45:05 2012 +0300 +++ b/geoloc.c Sun Jul 22 15:50:50 2012 +0300 @@ -47,9 +47,9 @@ static const gchar *deps[] = { "pep_geoloc", NULL }; -static module_info_t info_geoloc_dev = { - .branch = "dev", - .api = 20, +module_info_t info_geoloc = { + .branch = MCABBER_BRANCH, + .api = MCABBER_API_VERSION, .version = PROJECT_VERSION, .description = DESCRIPTION, .requires = deps, @@ -58,17 +58,6 @@ .next = NULL, }; -module_info_t info_geoloc = { - .branch = "0.10.1", - .api = 1, - .version = PROJECT_VERSION, - .description = DESCRIPTION, - .requires = deps, - .init = geoloc_init, - .uninit = geoloc_uninit, - .next = &info_geoloc_dev, -}; - // // globals // diff -r eea355fa94cf -r a77a8e7ab8ae mood.c --- a/mood.c Sun Jul 22 15:45:05 2012 +0300 +++ b/mood.c Sun Jul 22 15:50:50 2012 +0300 @@ -47,9 +47,9 @@ static const gchar *deps[] = { "pep_mood", NULL }; -static module_info_t info_mood_dev = { - .branch = "dev", - .api = 20, +module_info_t info_mood = { + .branch = MCABBER_BRANCH, + .api = MCABBER_API_VERSION, .version = PROJECT_VERSION, .description = DESCRIPTION, .requires = deps, @@ -58,17 +58,6 @@ .next = NULL, }; -module_info_t info_mood = { - .branch = "0.10.1", - .api = 1, - .version = PROJECT_VERSION, - .description = DESCRIPTION, - .requires = deps, - .init = mood_init, - .uninit = mood_uninit, - .next = &info_mood_dev, -}; - // // globals // diff -r eea355fa94cf -r a77a8e7ab8ae pep.c --- a/pep.c Sun Jul 22 15:45:05 2012 +0300 +++ b/pep.c Sun Jul 22 15:50:50 2012 +0300 @@ -35,9 +35,9 @@ #define DESCRIPTION ( PEP_DESCRIPTION ) -static module_info_t info_pep_dev = { - .branch = "dev", - .api = 20, +module_info_t info_pep = { + .branch = MCABBER_BRANCH, + .api = MCABBER_API_VERSION, .version = PROJECT_VERSION, .description = DESCRIPTION, .requires = NULL, @@ -46,28 +46,6 @@ .next = NULL, }; -static module_info_t info_pep_0_10_0 = { - .branch = "0.10.0", - .api = 1, - .version = PROJECT_VERSION, - .description = DESCRIPTION, - .requires = NULL, - .init = pep_init, - .uninit = pep_uninit, - .next = &info_pep_dev, -}; - -module_info_t info_pep = { - .branch = "0.10.1", - .api = 1, - .version = PROJECT_VERSION, - .description = DESCRIPTION, - .requires = NULL, - .init = pep_init, - .uninit = pep_uninit, - .next = &info_pep_0_10_0, -}; - typedef struct pep_handler_struct pep_handler_t; struct pep_handler_struct { diff -r eea355fa94cf -r a77a8e7ab8ae pep_activity.c --- a/pep_activity.c Sun Jul 22 15:45:05 2012 +0300 +++ b/pep_activity.c Sun Jul 22 15:50:50 2012 +0300 @@ -46,9 +46,9 @@ static const gchar *deps[] = { "pep", NULL }; -static module_info_t info_activity_dev = { - .branch = "dev", - .api = 20, +module_info_t info_pep_activity = { + .branch = MCABBER_BRANCH, + .api = MCABBER_API_VERSION, .version = PROJECT_VERSION, .description = DESCRIPTION, .requires = deps, @@ -57,28 +57,6 @@ .next = NULL, }; -static module_info_t info_activity_0_10_1 = { - .branch = "0.10.1", - .api = 1, - .version = PROJECT_VERSION, - .description = DESCRIPTION, - .requires = deps, - .init = pep_activity_init, - .uninit = pep_activity_uninit, - .next = &info_activity_dev, -}; - -module_info_t info_pep_activity = { - .branch = "0.10.0", - .api = 1, - .version = PROJECT_VERSION, - .description = DESCRIPTION, - .requires = deps, - .init = pep_activity_init, - .uninit = pep_activity_uninit, - .next = &info_activity_0_10_1, -}; - // // globals // diff -r eea355fa94cf -r a77a8e7ab8ae pep_geoloc.c --- a/pep_geoloc.c Sun Jul 22 15:45:05 2012 +0300 +++ b/pep_geoloc.c Sun Jul 22 15:50:50 2012 +0300 @@ -49,9 +49,9 @@ static const gchar *deps[] = { "pep", NULL }; -static module_info_t info_geoloc_dev = { - .branch = "dev", - .api = 20, +module_info_t info_pep_geoloc = { + .branch = MCABBER_BRANCH, + .api = MCABBER_API_VERSION, .version = PROJECT_VERSION, .description = DESCRIPTION, .requires = deps, @@ -60,17 +60,6 @@ .next = NULL, }; -module_info_t info_pep_geoloc = { - .branch = "0.10.1", - .api = 1, - .version = PROJECT_VERSION, - .description = DESCRIPTION, - .requires = deps, - .init = pep_geoloc_init, - .uninit = pep_geoloc_uninit, - .next = &info_geoloc_dev, -}; - // // globals // diff -r eea355fa94cf -r a77a8e7ab8ae pep_mood.c --- a/pep_mood.c Sun Jul 22 15:45:05 2012 +0300 +++ b/pep_mood.c Sun Jul 22 15:50:50 2012 +0300 @@ -46,9 +46,9 @@ static const gchar *deps[] = { "pep", NULL }; -static module_info_t info_mood_dev = { - .branch = "dev", - .api = 20, +module_info_t info_pep_mood = { + .branch = MCABBER_BRANCH, + .api = MCABBER_API_VERSION, .version = PROJECT_VERSION, .description = DESCRIPTION, .requires = deps, @@ -57,17 +57,6 @@ .next = NULL, }; -module_info_t info_pep_mood = { - .branch = "0.10.1", - .api = 1, - .version = PROJECT_VERSION, - .description = DESCRIPTION, - .requires = deps, - .init = pep_mood_init, - .uninit = pep_mood_uninit, - .next = &info_mood_dev, -}; - // // globals // diff -r eea355fa94cf -r a77a8e7ab8ae pep_tune.c --- a/pep_tune.c Sun Jul 22 15:45:05 2012 +0300 +++ b/pep_tune.c Sun Jul 22 15:50:50 2012 +0300 @@ -45,9 +45,9 @@ static const gchar *deps[] = { "pep", NULL }; -static module_info_t info_tune_dev = { - .branch = "dev", - .api = 20, +module_info_t info_pep_tune = { + .branch = MCABBER_BRANCH, + .api = MCABBER_API_VERSION, .version = PROJECT_VERSION, .description = DESCRIPTION, .requires = deps, @@ -56,28 +56,6 @@ .next = NULL, }; -static module_info_t info_tune_0_10_0 = { - .branch = "0.10.0", - .api = 1, - .version = PROJECT_VERSION, - .description = DESCRIPTION, - .requires = deps, - .init = pep_tune_init, - .uninit = pep_tune_uninit, - .next = &info_tune_dev, -}; - -module_info_t info_pep_tune = { - .branch = "0.10.1", - .api = 1, - .version = PROJECT_VERSION, - .description = DESCRIPTION, - .requires = deps, - .init = pep_tune_init, - .uninit = pep_tune_uninit, - .next = &info_tune_0_10_0, -}; - // // globals // diff -r eea355fa94cf -r a77a8e7ab8ae tune.c --- a/tune.c Sun Jul 22 15:45:05 2012 +0300 +++ b/tune.c Sun Jul 22 15:50:50 2012 +0300 @@ -44,9 +44,9 @@ static const gchar *deps[] = { "pep_tune", NULL }; -static module_info_t info_tune_dev = { - .branch = "dev", - .api = 20, +module_info_t info_tune = { + .branch = MCABBER_BRANCH, + .api = MCABBER_API_VERSION, .version = PROJECT_VERSION, .description = DESCRIPTION, .requires = deps, @@ -55,28 +55,6 @@ .next = NULL, }; -static module_info_t info_tune_0_10_0 = { - .branch = "0.10.0", - .api = 1, - .version = PROJECT_VERSION, - .description = DESCRIPTION, - .requires = deps, - .init = tune_init, - .uninit = tune_uninit, - .next = &info_tune_dev, -}; - -module_info_t info_tune = { - .branch = "0.10.1", - .api = 1, - .version = PROJECT_VERSION, - .description = DESCRIPTION, - .requires = deps, - .init = tune_init, - .uninit = tune_uninit, - .next = &info_tune_0_10_0, -}; - // // globals //