WWW-www.enlightenment.org pushed a commit to branch master. http://git.enlightenment.org/website/www-content.git/commit/?id=de2011699097cbbe8e461faed504cbfc9d9618be
commit de2011699097cbbe8e461faed504cbfc9d9618be Author: Xavi Artigas <[email protected]> Date: Wed Nov 29 02:10:16 2017 -0800 Wiki page porting-guide.md changed with summary [Remove c prefix] by Xavi Artigas --- pages/porting-guide.md.txt | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/pages/porting-guide.md.txt b/pages/porting-guide.md.txt new file mode 100644 index 000000000..317643b34 --- /dev/null +++ b/pages/porting-guide.md.txt @@ -0,0 +1,37 @@ +--- +~~Title: EFL C Porting Guide~~ +--- + +# EFL C Porting Guide # + +## Main Loop ## + +### Timers ### + +Programming guides: [New](develop/guides/c/core/main-loop.md#Timers), [Old](develop/legacy/program_guide/main_loop/timers) + +* Timers are now regular Eo objects created with ``efl_add(EFL_LOOP_TIMER_CLASS, ...)`` and destroyed with ``efl_unref()``. + +* The timer callback is registered with ``efl_event_callback_add(timer_object, EFL_LOOP_TIMER_EVENT_TICK, ...)``. + +* Timers are always periodic. The callback does not return ``ECORE_CALLBACK_RENEW`` or ``ECORE_CALLBACK_CANCEL`` anymore. If you want a one-shot timer, remove it from the callback after it has fired once. + +* ``ecore_timer_interval_set()`` -> ``efl_loop_timer_interval_set()`` + +* ``ecore_timer_pending_get()`` -> ``efl_loop_timer_pending_get()`` + +* ``ecore_timer_reset()`` -> ``efl_loop_timer_reset()`` + +* All ``ecore_timer_*()`` methods have been removed. + +### File Descriptors ### + +Programming guides: [New](develop/guides/c/core/main-loop.md#File_Descriptor_Monitors), [Old](develop/legacy/program_guide/main_loop/file_descriptors) + +* File Descriptors are now regular Eo objects created with ``efl_add(EFL_LOOP_FD_CLASS, ...)`` and destroyed with ``efl_unref()``. + +* Register to FD events with ``efl_event_callback_add()``, possible events are ``EFL_LOOP_FD_EVENT_READ``, ``_WRITE`` and ``_ERROR``. + +* Retrieve the internal FDs through the ``fd`` and ``fd_file`` properties . + +* All ``ecore_main_fd_*()`` methods have been removed. --
