Ecore poller: Fix Eolian warnings.
authorTom Hacohen <tom@stosb.com>
Tue, 16 Feb 2016 14:00:46 +0000 (14:00 +0000)
committerTom Hacohen <tom@stosb.com>
Tue, 16 Feb 2016 14:00:46 +0000 (14:00 +0000)
This includes either migrating types to eolian, fixing namespace or
importing extra types.

src/lib/ecore/Ecore_Common.h
src/lib/ecore/Ecore_Legacy.h
src/lib/ecore/ecore_poller.eo

index 8e704ca..fe2c5c9 100644 (file)
@@ -2588,43 +2588,6 @@ EAPI double ecore_throttle_get(void);
  */
 
 /**
- * @enum _Ecore_Poller_Type
- * Defines the frequency of ticks for the poller.
- */
-enum _Ecore_Poller_Type    /* Poller types */
-{
-   ECORE_POLLER_CORE = 0 /**< The core poller interval */
-};
-typedef enum _Ecore_Poller_Type Ecore_Poller_Type;
-
-/*
- * @since 1.8
- */
-
-typedef Eo    Ecore_Poller; /**< A handle for pollers */
-
-#define _ECORE_POLLER_EO_CLASS_TYPE
-
-/**
- * @brief Sets the time(in seconds) between ticks for the given poller type.
- * @param type The poller type to adjust.
- * @param poll_time The time(in seconds) between ticks of the timer.
- *
- * This will adjust the time between ticks of the given timer type defined by
- * @p type to the time period defined by @p poll_time.
- */
-EAPI void ecore_poller_poll_interval_set(Ecore_Poller_Type type, double poll_time);
-
-/**
- * @brief Gets the time(in seconds) between ticks for the given poller type.
- * @param type The poller type to query.
- * @return The time in seconds between ticks of the poller timer.
- *
- * This will get the time between ticks of the specified poller timer.
- */
-EAPI double ecore_poller_poll_interval_get(Ecore_Poller_Type type);
-
-/**
  * @}
  */
 
index b457b97..90d5248 100644 (file)
@@ -8,6 +8,8 @@ extern "C" {
  * @{
  */
 
+#include "ecore_poller.eo.legacy.h"
+
 /**
  * @brief Creates a poller to call the given function at a particular tick interval.
  * @param type The ticker type to attach the poller to. Must be ECORE_POLLER_CORE.
@@ -46,8 +48,6 @@ EAPI Ecore_Poller *ecore_poller_add(Ecore_Poller_Type type, int interval, Ecore_
  */
 EAPI void *ecore_poller_del(Ecore_Poller *poller);
 
-#include "ecore_poller.eo.legacy.h"
-
 /**
  * @}
  */
index 4dad584..0c647bb 100644 (file)
@@ -1,5 +1,12 @@
 type @extern Ecore_Task_Cb: __undefined_type;
 
+enum Ecore.Poller_Type
+{
+   [[Defines the frequency of ticks for the poller.]]
+   legacy: ecore_poller;
+   core = 0 [[The core poller interval]]
+}
+
 class Ecore.Poller (Eo.Base)
 {
    methods {
@@ -7,7 +14,7 @@ class Ecore.Poller (Eo.Base)
          [[Constructor with parameters for Ecore Poller.]]
          legacy: null;
          params {
-            @in type: Ecore_Poller_Type;
+            @in type: Ecore.Poller_Type;
             @in interval: int;
             @in func: Ecore_Task_Cb;
             @in data: const(void)*;