Skip to content

Instantly share code, notes, and snippets.

@rektide
Created February 16, 2013 20:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rektide/4968475 to your computer and use it in GitHub Desktop.
Save rektide/4968475 to your computer and use it in GitHub Desktop.
cannot convert 'ev_loop*' to '__ev_io*'
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)));
};
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*)'
@rektide
Copy link
Author

rektide commented Feb 16, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment