include/irc.h
changeset 0 586472add385
child 6 7eb12be31bb5
equal deleted inserted replaced
-1:000000000000 0:586472add385
       
     1 /**
       
     2  *  $Id: irc.h 51 2008-01-10 00:19:39Z mbroeker $
       
     3  * $URL: http://localhost/svn/c/mcbot/trunk/include/irc.h $
       
     4  *
       
     5  */
       
     6 
       
     7 #ifndef IRC_H
       
     8 #define IRC_H
       
     9 
       
    10 #define IRC_GENERAL_ERROR -50
       
    11 #define   IRC_LOGIN_ERROR -51
       
    12 #define IRC_CONNECT_ERROR -52
       
    13 
       
    14 struct Message {
       
    15     FILE *stream;
       
    16     char *nick;
       
    17     char *user;
       
    18     char *email;
       
    19     char *command;
       
    20     char *channel;
       
    21     char *line;
       
    22 };
       
    23 
       
    24 typedef struct Message MSG;
       
    25 
       
    26 FILE *irc_connect (char *, unsigned int);
       
    27 int irc_login (FILE *, char *, char *);
       
    28 char *irc_parsemessage (const char *, MSG *);
       
    29 #endif