/usr/include/Eris-1.3/Eris/PollGlibFD.h is in liberis-1.3-dev 1.3.23-6ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | #ifndef ERIS_POLL_GLIB_FD_H
#define ERIS_POLL_GLIB_FD_H
#include <skstream/skstream.h>
namespace Eris
{
class PollGlibFD
{
public:
PollGlibFD(GSource *source, const basic_socket_stream *str, gushort events)
: _source(source)
{
_fd.fd = str->getSocket();
_fd.events = events;
_fd.revents = 0;
g_source_add_poll(source, &_fd);
}
~PollGlibFD()
{
g_source_remove_poll(_source, &_fd);
}
gboolean check() { return (_fd.events & _fd.revents) != 0;}
void setEvents(gushort events) {_fd.events = events;}
gushort getEvents(gushort events) {return _fd.events;}
private:
GPollFD _fd;
GSource *_source;
};
} // namespace Eris
#endif // ERIS_POLL_GLIB_FD_H
|