aboutsummaryrefslogblamecommitdiffstats
path: root/irc.h
blob: 54199837e631c7c83b76ced6cd95db266e65991c (plain) (tree)
1
2
3
4
5
6
7
8
9


                      





             
                                                                  
                                                                   


                                                             
                                             

      
#ifndef _LIBIRC_IRC_H_
#define _LIBIRC_IRC_H_

struct user {
 char *nick;
 char *user;
 char *host;
};

int runit(int fd,void (*line_handler)(),void (*extra_handler)()) ;
int runem(int *fd,void (*line_handler)(),void (*extra_handler)()) ;
int ircConnect(char *serv,char *port,char *nick,char *user) ;
int serverConnect(char *serv,char *port) ;
char **line_cutter(int fd,char *line,struct user *user) ;
void irc_handler(struct shit *me,char *line);

#endif