X-Git-Url: https://git.llucax.com/software/eventxx.git/blobdiff_plain/17a6987e376600cc0294bd285606848e4d35b771..251b04e775d59064ba0f539a441833400573d2c6:/test/mixed-way.cpp diff --git a/test/mixed-way.cpp b/test/mixed-way.cpp index d9517a2..daea2e6 100644 --- a/test/mixed-way.cpp +++ b/test/mixed-way.cpp @@ -2,14 +2,12 @@ #include #include -using eventxx::dispatcher; - struct handler { - dispatcher& d; + eventxx::dispatcher& d; int i; - handler(dispatcher& d): d(d), i(0) {} - void operator() (int signum, short event) + handler(eventxx::dispatcher& d): d(d), i(0) {} + void operator() (int signum, eventxx::type event) { if (i < 5) std::cout << "keep going...\n"; else @@ -28,7 +26,7 @@ void sighandler(int signum, short event, void* data) int main() { - dispatcher d; + eventxx::dispatcher d; handler h(d); eventxx::csignal sigev(SIGINT, sighandler, &h.i); eventxx::signal< handler > e(SIGINT, h);