Mark both array and module as const as we'll not modify them anyhow
inside this function.
Also mark this function as pure, so gcc will know how to optimize
multiple calls of it. Not that important for this function, but
doesn't hurt either.
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@43918
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
EAPI void eina_module_list_load(Eina_Array *list) EINA_ARG_NONNULL(1);
EAPI void eina_module_list_unload(Eina_Array *list) EINA_ARG_NONNULL(1);
EAPI void eina_module_list_flush(Eina_Array *list) EINA_ARG_NONNULL(1);
-EAPI Eina_Module * eina_module_find(Eina_Array *array, char *module) EINA_ARG_NONNULL(1, 2);
+EAPI Eina_Module * eina_module_find(const Eina_Array *array, const char *module) EINA_ARG_NONNULL(1, 2) EINA_PURE;
/**
* @}
* If the element is found return the module else NULL.
*/
EAPI Eina_Module *
-eina_module_find(Eina_Array *array, char *module)
+eina_module_find(const Eina_Array *array, const char *module)
{
unsigned int i;
Eina_Array_Iterator iterator;