src/irc_conn.h
changeset 45 71e65564afd2
parent 37 4fe4a3c4496e
child 48 4841f4398fd2
equal deleted inserted replaced
44:6bd70113e1ed 45:71e65564afd2
    38 struct irc_conn_callbacks {
    38 struct irc_conn_callbacks {
    39     /**
    39     /**
    40      * irc_conn_register has completed.
    40      * irc_conn_register has completed.
    41      */
    41      */
    42     void (*on_registered) (struct irc_conn *conn, void *arg);
    42     void (*on_registered) (struct irc_conn *conn, void *arg);
       
    43 
       
    44     /**
       
    45      * The connection has failed in some way, and can not be considered useable anymore. Sending messages won't work,
       
    46      * and no more messages will be received. The connection should be destroyed, probably from this callback.
       
    47      */
       
    48     void (*on_error) (struct irc_conn *conn, struct error_info *err, void *arg);
    43 };
    49 };
    44 
    50 
    45 /*
    51 /*
    46  * Connection state
    52  * Connection state
    47  */
    53  */