*/
/**
- * @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);
-
-/**
* @}
*/
* @{
*/
+#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.
*/
EAPI void *ecore_poller_del(Ecore_Poller *poller);
-#include "ecore_poller.eo.legacy.h"
-
/**
* @}
*/
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 {
[[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)*;