export useful function.
authorbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 29 Mar 2010 18:44:42 +0000 (18:44 +0000)
committerbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 29 Mar 2010 18:44:42 +0000 (18:44 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/edje@47562 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/Edje.h
src/lib/edje_external.c

index cf58ee6..e3eb125 100644 (file)
@@ -547,7 +547,8 @@ extern "C" {
    EAPI Eina_Bool edje_external_param_string_get(const Eina_List *params, const char *key, const char **ret);
    EAPI Eina_Bool edje_external_param_bool_get(const Eina_List *params, const char *key, Eina_Bool *ret);
    EAPI const Edje_External_Param_Info *edje_external_param_info_get(const char *type_name);
-   
+   EAPI const Edje_External_Type *edje_external_type_get(const char *type_name);
+
    /* edje_module.c */
    EAPI Eina_Bool edje_module_load(const char *module);
    EAPI const Eina_List *edje_available_modules_get(void);
index 92ee40c..496ba31 100644 (file)
@@ -404,6 +404,18 @@ edje_external_param_bool_get(const Eina_List *params, const char *key, Eina_Bool
    return EINA_FALSE;
 }
 
+/**
+ * Get the array of parameters information about a type given its name.
+ *
+ * @note the type names and other strings are static, that means they
+ *       @b NOT translated. One must use
+ *       Edje_External_Type::translate() to translate those.
+ *
+ * @return the NULL terminated array, or @c NULL if type is unknown or
+ *         it does not have any parameter information.
+ *
+ * @see edje_external_type_get()
+ */
 EAPI const Edje_External_Param_Info *
 edje_external_param_info_get(const char *type_name)
 {
@@ -415,6 +427,12 @@ edje_external_param_info_get(const char *type_name)
    return type->parameters_info;
 }
 
+EAPI const Edje_External_Type *
+edje_external_type_get(const char *type_name)
+{
+   return eina_hash_find(type_registry, type_name);
+}
+
 void
 _edje_external_init()
 {