aboutsummaryrefslogtreecommitdiff
path: root/unix.h
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2022-10-31 19:14:39 +0000
committerubq323 <ubq323@ubq323.website>2022-10-31 19:14:39 +0000
commit65fc26be19594c91b3af57c548c2e5c7307457f2 (patch)
treeed1857b7e5ac903896ecd8b6d1f43314748da584 /unix.h
parent1dc90feaf9d7db3c0e5d8233a5d60c46ee236c1c (diff)
multiple channels are now supported
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