module version sanity check -> make sure module versions match EXACTLY.

if compile time headers (module version) does not match e's version
then modules likely may fail; to work right - so make sure they match
exactly (for release purposes)
This commit is contained in:
Carsten Haitzler 2013-10-30 12:07:42 +09:00
parent 410c2a398d
commit 7f78ae9e53
1 changed files with 2 additions and 2 deletions

View File

@ -351,11 +351,11 @@ e_module_new(const char *name)
m->error = 1;
goto init_done;
}
if (m->api->version < E_MODULE_API_VERSION)
if (m->api->version != E_MODULE_API_VERSION)
{
snprintf(body, sizeof(body),
_("Module API Error<br>Error initializing Module: %s<br>"
"It requires a minimum module API version of: %i.<br>"
"It requires a module API version of: %i.<br>"
"The module API advertized by Enlightenment is: %i.<br>"),
_(m->api->name), m->api->version, E_MODULE_API_VERSION);