From bc7feadb88e8a2633e1d5c68a5bd091f0f6dbce6 Mon Sep 17 00:00:00 2001 From: Daniel Zaoui Date: Sun, 28 Apr 2013 09:57:48 +0300 Subject: [PATCH] Elementary: Conform header split. --- legacy/elementary/src/lib/elm_conform.h | 30 ++++--------------- legacy/elementary/src/lib/elm_conform_eo.h | 10 +++++++ .../elementary/src/lib/elm_conform_legacy.h | 13 ++++++++ 3 files changed, 29 insertions(+), 24 deletions(-) create mode 100644 legacy/elementary/src/lib/elm_conform_eo.h create mode 100644 legacy/elementary/src/lib/elm_conform_legacy.h diff --git a/legacy/elementary/src/lib/elm_conform.h b/legacy/elementary/src/lib/elm_conform.h index cf073c316a..a491b951bb 100644 --- a/legacy/elementary/src/lib/elm_conform.h +++ b/legacy/elementary/src/lib/elm_conform.h @@ -45,35 +45,17 @@ * @ref conformant_example */ -#define ELM_OBJ_CONFORMANT_CLASS elm_obj_conformant_class_get() - -const Eo_Class *elm_obj_conformant_class_get(void) EINA_CONST; - -extern EAPI Eo_Op ELM_OBJ_CONFORMANT_BASE_ID; - -enum -{ - ELM_OBJ_CONFORMANT_SUB_ID_LAST -}; - /** * @addtogroup Conformant * @{ */ -/** - * Add a new conformant widget to the given parent Elementary - * (container) object. - * - * @param parent The parent object. - * @return A new conformant widget handle or @c NULL, on errors. - * - * This function inserts a new conformant widget on the canvas. - * - * @ingroup Conformant - */ -EAPI Evas_Object *elm_conformant_add(Evas_Object *parent); - +#ifdef EFL_EO_API_SUPPORT +#include "elm_conform_eo.h" +#endif +#ifndef EFL_NOLEGACY_API_SUPPORT +#include "elm_conform_legacy.h" +#endif /** * @} */ diff --git a/legacy/elementary/src/lib/elm_conform_eo.h b/legacy/elementary/src/lib/elm_conform_eo.h new file mode 100644 index 0000000000..1ceb3c4d6b --- /dev/null +++ b/legacy/elementary/src/lib/elm_conform_eo.h @@ -0,0 +1,10 @@ +#define ELM_OBJ_CONFORMANT_CLASS elm_obj_conformant_class_get() + +const Eo_Class *elm_obj_conformant_class_get(void) EINA_CONST; + +extern EAPI Eo_Op ELM_OBJ_CONFORMANT_BASE_ID; + +enum +{ + ELM_OBJ_CONFORMANT_SUB_ID_LAST +}; diff --git a/legacy/elementary/src/lib/elm_conform_legacy.h b/legacy/elementary/src/lib/elm_conform_legacy.h new file mode 100644 index 0000000000..e47991a4fa --- /dev/null +++ b/legacy/elementary/src/lib/elm_conform_legacy.h @@ -0,0 +1,13 @@ +/** + * Add a new conformant widget to the given parent Elementary + * (container) object. + * + * @param parent The parent object. + * @return A new conformant widget handle or @c NULL, on errors. + * + * This function inserts a new conformant widget on the canvas. + * + * @ingroup Conformant + */ +EAPI Evas_Object *elm_conformant_add(Evas_Object *parent); +