# HG changeset patch # User Myhailo Danylenko # Date 1342958590 -10800 # Node ID 1e64659fe32eca5d329fb896df84e9656f51c8be # Parent 62e97e4f562c93eb1866a81fecaa003ad62ed921 Switch to build-time api version diff -r 62e97e4f562c -r 1e64659fe32e avatar.c --- a/avatar.c Thu May 10 00:50:00 2012 +0300 +++ b/avatar.c Sun Jul 22 15:03:10 2012 +0300 @@ -59,9 +59,9 @@ "Provides command /avatar" ) static const gchar *deps[] = { "pep", NULL }; -static module_info_t info_avatar_dev = { - .branch = "dev", - .api = 20, +module_info_t info_avatar = { + .branch = MCABBER_BRANCH, + .api = MCABBER_API_VERSION, .version = PROJECT_VERSION, .description = DESCRIPTION, .requires = deps, @@ -70,28 +70,6 @@ .next = NULL, }; -module_info_t info_avatar_0_10_0 = { - .branch = "0.10.0", - .api = 1, - .version = PROJECT_VERSION, - .description = DESCRIPTION, - .requires = deps, - .init = avatar_init, - .uninit = avatar_uninit, - .next = &info_avatar_dev, -}; - -module_info_t info_avatar = { - .branch = "0.10.1", - .api = 1, - .version = PROJECT_VERSION, - .description = DESCRIPTION, - .requires = deps, - .init = avatar_init, - .uninit = avatar_uninit, - .next = &info_avatar_0_10_0, -}; - // globals #define NS_AVATAR_DATA ( "urn:xmpp:avatar:data" )