aboutsummaryrefslogtreecommitdiff
path: root/unix.h
diff options
context:
space:
mode:
Diffstat (limited to 'unix.h')
-rw-r--r--unix.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/unix.h b/unix.h
index 57d1cfc..50511b1 100644
--- a/unix.h
+++ b/unix.h
@@ -10,9 +10,14 @@
#include <stdio.h>
+
// takes filename, returns socket fd
// or -1 on failure.
int unix_setup(char sockname[]);
+// reads a message from unix socket on fd,
+// and sends it to irc on the channel chname.
+int unix_handle(int fd, char chname[]);
+
#endif // unix_h_INCLUDED