diff options
author | Curtis McEnroe | 2018-11-30 18:06:43 -0500 |
---|---|---|
committer | Curtis McEnroe | 2018-11-30 18:06:43 -0500 |
commit | 9d769111aef9a3e6148bf8205c3556cc0c5a46a9 (patch) | |
tree | 608ba62c47d2a139159ae384bf34f870fdcd41fb /chat.h | |
parent | 3d9906b00fee2f7a8b69d0e6a1683e306e31b4e6 (diff) |
Separate ircConnect and ircDisconnect
Diffstat (limited to 'chat.h')
-rw-r--r-- | chat.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chat.h b/chat.h index 912bc90..f0d396d 100644 --- a/chat.h +++ b/chat.h @@ -43,7 +43,7 @@ void selfJoin(const char *join); void eventWait(const char *argv[static 2]); void eventPipe(const char *argv[static 2]); -void eventLoop(int ui, int irc); +void eventLoop(void); struct Tag { size_t id; @@ -100,9 +100,9 @@ void handle(char *line); void input(struct Tag tag, char *line); void inputTab(void); -int ircConnect( - const char *host, const char *port, const char *pass, const char *webPass -); +void ircInit(char *host, char *port, char *pass, char *webPass); +int ircConnect(void); +void ircDisconnect(const char *quit); void ircRead(void); void ircWrite(const char *ptr, size_t len); void ircFmt(const char *format, ...) __attribute__((format(printf, 1, 2))); |