view src/IO/ @ 35:d9e7b35430de

Updated copyright lines
author jcid
date Mon, 05 Nov 2007 21:25:14 +0100
parents 6ee11bf9e3ea
children 2590fc2b3e39
line wrap: on
line source
 * File:
 * Copyright (C) 2005-2007 Jorge Arellano Cid <>
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3 of the License, or
 * (at your option) any later version.

// Simple ADT for watching file descriptor activity

#include <fltk/run.h>
#include "iowatch.hh"

using namespace fltk;

// Hook a Callback for a certain activities in a FD
void a_IOwatch_add_fd(int fd, int when, FileHandler Callback, void *usr_data=0)
   add_fd(fd, when, Callback, usr_data);

// Remove a Callback for a given FD (or just remove some events)
void a_IOwatch_remove_fd(int fd, int when)
   remove_fd(fd, when);