#include <qobject.h>
#include <qtimer.h>
#endif
+#include <avahi-common/timeval.h>
#include "qt-watch.h"
class AvahiWatch : public QObject
delete t;
}
-static AvahiPoll qt_poll;
-
const AvahiPoll* avahi_qt_poll_get(void)
{
- qt_poll.userdata=0;
- qt_poll.watch_new = q_watch_new;
- qt_poll.watch_free = q_watch_free;
- qt_poll.watch_update = q_watch_update;
- qt_poll.watch_get_events = q_watch_get_events;
-
- qt_poll.timeout_new = q_timeout_new;
- qt_poll.timeout_free = q_timeout_free;
- qt_poll.timeout_update = q_timeout_update;
+ static const AvahiPoll qt_poll = {
+ NULL,
+ q_watch_new,
+ q_watch_update,
+ q_watch_get_events,
+ q_watch_free,
+ q_timeout_new,
+ q_timeout_update,
+ q_timeout_free
+ };
+
return &qt_poll;
}