diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-12-29 14:41:25 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-12-29 14:41:25 +0000 |
commit | b897894d81184417f5d88b5bea8ef7f2b7da728d (patch) | |
tree | 0803f4d3437ad0e439cf5af882b0b49aaad65e20 /irc.h | |
download | sircbot-b897894d81184417f5d88b5bea8ef7f2b7da728d.tar.bz2 sircbot-b897894d81184417f5d88b5bea8ef7f2b7da728d.tar.xz |
initial commit
Diffstat (limited to 'irc.h')
-rw-r--r-- | irc.h | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -0,0 +1,24 @@ +/* + * Copyright (c) Natanael Copa 2009, 2010 + * GPL-2 + * + */ + +#ifndef IRC_H +#define IRC_H + +struct irc_session { + int fd; + const char *server; + const char *nick; + int last_pong; +}; + +struct irc_session *irc_connect(const char* server, int port, const char *nick, + const char *pass); +int irc_send(struct irc_session *s, const char *command, const char *args); +int irc_send_chan(struct irc_session *s, const char *chan, const char *msg); +int irc_send_ping(struct irc_session *s); +int irc_close(struct irc_session *s, const char *msg); + +#endif /* IRC_H */ |