Elementary: Conform header split.
authorDaniel Zaoui <daniel.zaoui@samsung.com>
Sun, 28 Apr 2013 06:57:48 +0000 (09:57 +0300)
committerDaniel Zaoui <daniel.zaoui@samsung.com>
Sun, 28 Apr 2013 06:57:48 +0000 (09:57 +0300)
src/lib/elm_conform.h
src/lib/elm_conform_eo.h [new file with mode: 0644]
src/lib/elm_conform_legacy.h [new file with mode: 0644]

index cf073c3..a491b95 100644 (file)
  * @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 (file)
index 0000000..1ceb3c4
--- /dev/null
@@ -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 (file)
index 0000000..e47991a
--- /dev/null
@@ -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);
+