Ecore poller: Fix tests.
authorTom Hacohen <tom@stosb.com>
Tue, 16 Feb 2016 15:43:46 +0000 (15:43 +0000)
committerTom Hacohen <tom@stosb.com>
Tue, 16 Feb 2016 15:43:50 +0000 (15:43 +0000)
Very confusing, we have:
poller_poller_interval_set and poller_poll_interval_set.

Thanks to herdsman for reporting.

src/lib/ecore/Ecore_Legacy.h

index 90d5248..ab9df2d 100644 (file)
@@ -49,6 +49,25 @@ EAPI Ecore_Poller *ecore_poller_add(Ecore_Poller_Type type, int interval, Ecore_
 EAPI void *ecore_poller_del(Ecore_Poller *poller);
 
 /**
+ * @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);
+
+/**
  * @}
  */