Changeset 3ddb7477 for protocols/user.h


Ignore:
Timestamp:
2010-03-26T12:14:37Z (15 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
ebaebfe
Parents:
ba7d16f
Message:

One total mess that doesn't do much yet, but reorganised some stuff and
untying the IRC and the core parts a little bit. Lots of work left to do.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • protocols/user.h

    rba7d16f r3ddb7477  
    2323  Suite 330, Boston, MA  02111-1307  USA
    2424*/
     25
    2526#ifndef __USER_H__
    2627#define __USER_H__
    2728
    28 typedef struct __USER
     29struct __USER
    2930{
    30         char *nick;
    31         char *user;
    32         char *host;
    33         char *realname;
    34        
     31        struct im_connection *ic;
     32        char *handle;
     33        char *fullname;
     34        char *group;
     35
    3536        char *away;
    36         char *status_msg; /* Non-IRC extension, but nice on IM. */
    37        
    38         char is_private;
    39         char online;
    40        
    41         char *handle;
    42         char *group;
    43         struct im_connection *ic;
    44 
    45         char *sendbuf;
    46         time_t last_typing_notice;
    47         int sendbuf_len;
    48         guint sendbuf_timer;
    49         int sendbuf_flags;
    50        
    51         void (*send_handler) ( irc_t *irc, struct __USER *u, char *msg, int flags );
    52        
    53         struct __USER *next;
     37        char *status_msg;
    5438} user_t;
    5539
    56 user_t *user_add( struct irc *irc, char *nick );
    57 int user_del( irc_t *irc, char *nick );
    58 G_MODULE_EXPORT user_t *user_find( irc_t *irc, char *nick );
    59 G_MODULE_EXPORT user_t *user_findhandle( struct im_connection *ic, const char *handle );
    60 void user_rename( irc_t *irc, char *oldnick, char *newnick );
    61 
    6240#endif /* __USER_H__ */
Note: See TracChangeset for help on using the changeset viewer.