summaryrefslogtreecommitdiff
path: root/src/examples/eolian_cxx/eolian_cxx_callbacks_01.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/eolian_cxx/eolian_cxx_callbacks_01.cc')
-rw-r--r--src/examples/eolian_cxx/eolian_cxx_callbacks_01.cc27
1 files changed, 14 insertions, 13 deletions
diff --git a/src/examples/eolian_cxx/eolian_cxx_callbacks_01.cc b/src/examples/eolian_cxx/eolian_cxx_callbacks_01.cc
index 2c64784..8c41c0e 100644
--- a/src/examples/eolian_cxx/eolian_cxx_callbacks_01.cc
+++ b/src/examples/eolian_cxx/eolian_cxx_callbacks_01.cc
@@ -27,20 +27,21 @@ void
27example_callbacks() 27example_callbacks()
28{ 28{
29 int count = 0; 29 int count = 0;
30 efl::ecore::poller poller 30 efl::ecore::poller poller(
31 (ECORE_POLLER_CORE, 1, 31 poller.ecore_poller_constructor(ECORE_POLLER_CORE, 1,
32 [&count, &poller] 32 [&count, &poller]
33 { 33 {
34 if (++count == 5) 34 if (++count == 5)
35 { 35 {
36 std::cout << std::endl; 36 std::cout << std::endl;
37 ecore_main_loop_quit(); 37 ecore_main_loop_quit();
38 return false; 38 return false;
39 } 39 }
40 poller.interval_set(2*poller.interval_get()); 40 poller.interval_set(2*poller.interval_get());
41 std::cout << "."<< std::flush; 41 std::cout << "." << std::flush;
42 return true; 42 return true;
43 }); 43 })
44 );
44 ::ecore_main_loop_begin(); 45 ::ecore_main_loop_begin();
45} 46}
46 47