Created
February 16, 2013 20:03
-
-
Save rektide/4968475 to your computer and use it in GitHub Desktop.
cannot convert 'ev_loop*' to '__ev_io*'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LINE 790: static dbus_bool_t addWatch(DBusWatch *watch, void *data) { | |
ev_io* io = new ev_io(); | |
ev_io_init(io, watchCallback, dbus_watch_get_unix_fd(watch), EV_READ | EV_WRITE); | |
io->data = watch; | |
dbus_watch_set_data(watch, io, freeWatchData); | |
configureWatch(watch); | |
ev_io_start(ev_default_loop(0), io); | |
return true; | |
}; | |
LINE 800: static void removeWatch(DBusWatch *watch, void *data) { | |
ev_io_stop(ev_default_loop(0), static_cast<ev_io*>(dbus_watch_get_data(watch))); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Waf: Entering directory `/home/rektide/archive/node-dbus/build' | |
[1/2] cxx: dbus.cc -> build/Release/dbus_1.o | |
../dbus.cc: In static member function 'static dbus_bool_t DBusConnectionWrap::addWatch(DBusWatch*, void*)': | |
../dbus.cc:792:82: error: invalid conversion from 'void (*)(ev_loop*, __ev_io*, int)' to '__ev_io_cb {aka void (*)(__ev_io*, int)}' [-fpermissive] | |
In file included from /usr/local/include/node/node.h:280:0, | |
from ../dbus.cc:3: | |
/usr/local/include/node/ev-emul.h:145:20: error: initializing argument 2 of 'void __ev_io_init(__ev_io*, __ev_io_cb, int, int)' [-fpermissive] | |
../dbus.cc:796:37: error: cannot convert 'ev_loop*' to '__ev_io*' for argument '1' to 'void __ev_io_start(__ev_io*)' | |
../dbus.cc: In static member function 'static void DBusConnectionWrap::removeWatch(DBusWatch*, void*)': | |
../dbus.cc:801:81: error: cannot convert 'ev_loop*' to '__ev_io*' for argument '1' to 'void __ev_io_stop(__ev_io*)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/rossburton/node-dbus is the source repo