src/irc_net.h
changeset 47 7d4094eb3117
parent 44 6bd70113e1ed
child 48 4841f4398fd2
equal deleted inserted replaced
46:0c13bca53ae1 47:7d4094eb3117
    56  * @param err used to return extended error information
    56  * @param err used to return extended error information
    57  */
    57  */
    58 err_t irc_net_create (struct irc_net **net, const struct irc_net_info *info, struct error_info *err);
    58 err_t irc_net_create (struct irc_net **net, const struct irc_net_info *info, struct error_info *err);
    59 
    59 
    60 /**
    60 /**
       
    61  * Destroy an irc_net state without closing anything cleanly. This destroys the irc_conn, if any, and any irc_chans as
       
    62  * well.
       
    63  */
       
    64 void irc_net_destroy (struct irc_net *net);
       
    65 
       
    66 /**
    61  * Create a new irc_chan and add it to our channel list.
    67  * Create a new irc_chan and add it to our channel list.
    62  *
    68  *
    63  * If we are connected and registered, JOIN the channel right away, otherwise, join it once we register.
    69  * If we are connected and registered, JOIN the channel right away, otherwise, join it once we register.
    64  */
    70  */
    65 struct irc_chan* irc_net_add_chan (struct irc_net *net, const struct irc_chan_info *info);
    71 struct irc_chan* irc_net_add_chan (struct irc_net *net, const struct irc_chan_info *info);