X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=fd%2Ffd.h;fp=fd%2Ffd.h;h=0000000000000000000000000000000000000000;hb=80e6cb10e8dff4104b24dc591d54ae387b9551d0;hp=29cad35f3e0d4b4dc01725847eee20cf6a5f4202;hpb=aa5cb9218724b9d3ee190b9b9c236991b8aca411;p=tinc diff --git a/fd/fd.h b/fd/fd.h deleted file mode 100644 index 29cad35f..00000000 --- a/fd/fd.h +++ /dev/null @@ -1,46 +0,0 @@ -/* - fd.h -- I/O and event multiplexing - - Copyright (C) 2003-2004 Guus Sliepen , - - 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 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - - $Id$ -*/ - -#ifndef __FD_H__ -#define __FD_H__ - -struct fd; - -typedef bool (*fd_handler_t)(struct fd *); - -typedef struct fd { - int fd; - fd_handler_t read; - fd_handler_t write; - fd_handler_t error; - void *data; -} fd_t; - -extern bool fd_init(void); -extern bool fd_exit(void); -extern bool fd_add(struct fd *fd); -extern bool fd_del(struct fd *fd); -extern bool fd_mod(struct fd *fd); -extern bool fd_run(void); -extern void fd_stop(void); - -#endif