added session manager and support for an external login system
[TransparentIRC.git] / src / IOHandler.h
index 7d33ce23f9ee070b37be8129e8e0acd5863290bc..8bc2a37426913a924e1f56f52f4520b6843c88db 100644 (file)
@@ -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);