X-Git-Url: http://git.pk910.de/?p=TransparentIRC.git;a=blobdiff_plain;f=src%2FIOHandler.h;h=8bc2a37426913a924e1f56f52f4520b6843c88db;hp=7d33ce23f9ee070b37be8129e8e0acd5863290bc;hb=4fdc419424dd18df5807ed4218a84fa38e1dd6f6;hpb=1f2baa2e7b90ea83c5a0c93598e22e5063fc6d95 diff --git a/src/IOHandler.h b/src/IOHandler.h index 7d33ce2..8bc2a37 100644 --- a/src/IOHandler.h +++ b/src/IOHandler.h @@ -57,6 +57,7 @@ struct IOBuffer { struct IODescriptor { int fd; + FILE *file; enum IOType type; enum IOStatus state; struct timeval timeout; @@ -80,6 +81,7 @@ struct IOEvent { }; struct IODescriptor *iohandler_add(int sockfd, enum IOType type, iohandler_callback *callback); +struct IODescriptor *iohandler_file(FILE *file, iohandler_callback *callback); struct IODescriptor *iohandler_timer(struct timeval timeout, iohandler_callback *callback); struct IODescriptor *iohandler_connect(const char *hostname, unsigned int port, const char *bind, iohandler_callback *callback); struct IODescriptor *iohandler_listen(const char *hostname, unsigned int port, iohandler_callback *callback);