#include "remoting/host/linux/ei_event_watcher_glib.h"
#include <unistd.h>
#include "base/check.h"
#include "base/memory/raw_ptr.h"
#include "third_party/libei/cipd/include/libei.h"
namespace remoting {
constexpr GSourceFuncs EiEventWatcherGlib::kWatchSourceFuncs;
EiEventWatcherGlib::EiEventWatcherGlib(
int fd,
ei* ei,
EiEventWatcherGlib::EiEventHandler* handler)
: … { … }
EiEventWatcherGlib::~EiEventWatcherGlib() { … }
void EiEventWatcherGlib::StartProcessingEvents() { … }
void EiEventWatcherGlib::StopProcessingEvents() { … }
gboolean EiEventWatcherGlib::WatchSourcePrepare(GSource* source,
gint* timeout_ms) { … }
gboolean EiEventWatcherGlib::WatchSourceCheck(GSource* source) { … }
gboolean EiEventWatcherGlib::WatchSourceDispatch(GSource* source,
GSourceFunc unused_func,
gpointer data) { … }
void EiEventWatcherGlib::WatchSourceFinalize(GSource* source) { … }
bool EiEventWatcherGlib::Prepare() { … }
void EiEventWatcherGlib::Dispatch() { … }
}