Dillo v3.1.1-91-g6d5b3ee3
Loading...
Searching...
No Matches
iowatch.cc
Go to the documentation of this file.
1/*
2 * File: iowatch.cc
3 *
4 * Copyright (C) 2005-2007 Jorge Arellano Cid <jcid@dillo.org>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
10 */
11
16#include <FL/Fl.H>
17#include "iowatch.hh"
18
22void a_IOwatch_add_fd(int fd, int when, Fl_FD_Handler Callback,
23 void *usr_data = 0)
24{
25 if (fd >= 0)
26 Fl::add_fd(fd, when, Callback, usr_data);
27}
28
32void a_IOwatch_remove_fd(int fd, int when)
33{
34 if (fd >= 0)
35 Fl::remove_fd(fd, when);
36}
37
void a_IOwatch_add_fd(int fd, int when, Fl_FD_Handler Callback, void *usr_data=0)
Hook a Callback for a certain activities in a FD.
Definition iowatch.cc:22
void a_IOwatch_remove_fd(int fd, int when)
Remove a Callback for a given FD (or just remove some events)
Definition iowatch.cc:32