summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@samsung.com>2013-04-28 09:57:48 +0300
committerDaniel Zaoui <daniel.zaoui@samsung.com>2013-04-28 09:57:48 +0300
commit6c522dc5d330f3f72a7fb218c770e18d543c5f08 (patch)
tree06ad74e79ffff235ba2f608c4e79d758e56b0f5e
parent75c67434d6a0e159808057b65e1fdadc0255aed0 (diff)
downloadelementary-6c522dc5d330f3f72a7fb218c770e18d543c5f08.tar.gz
Elementary: Conform header split.
-rw-r--r--src/lib/elm_conform.h30
-rw-r--r--src/lib/elm_conform_eo.h10
-rw-r--r--src/lib/elm_conform_legacy.h13
3 files changed, 29 insertions, 24 deletions
diff --git a/src/lib/elm_conform.h b/src/lib/elm_conform.h
index cf073c316..a491b951b 100644
--- a/src/lib/elm_conform.h
+++ b/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/src/lib/elm_conform_eo.h b/src/lib/elm_conform_eo.h
new file mode 100644
index 000000000..1ceb3c4d6
--- /dev/null
+++ b/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/src/lib/elm_conform_legacy.h b/src/lib/elm_conform_legacy.h
new file mode 100644
index 000000000..e47991a4f
--- /dev/null
+++ b/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);
+