Ignore:
Timestamp:
2006-10-09T18:19:05Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
a21a8ac
Parents:
861c199
Message:

The module now keeps track of all resources available for a buddy. This
means the buddy won't show up offline when one resource goes down (while
there are still others available). It also remembers away state
information for every separate resource. Later this system will be used
to keep track of client capability information (Typing notices, yay...)
and who knows what else.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/jabber.h

    r861c199 r6a1128d  
    6161       
    6262        GHashTable *node_cache;
     63        GHashTable *buddies;
    6364};
    6465
     
    7576        struct xt_node *node;
    7677        jabber_cache_event func;
     78};
     79
     80struct jabber_buddy
     81{
     82        char *handle;
     83        char *resource;
     84       
     85        int priority;
     86        struct jabber_away_state *away_state;
     87        char *away_message;
     88       
     89        time_t last_act;
     90        int flags;
     91       
     92        struct jabber_buddy *next;
    7793};
    7894
     
    104120const struct jabber_away_state *jabber_away_state_by_name( char *name );
    105121void jabber_buddy_ask( struct gaim_connection *gc, char *handle );
     122struct jabber_buddy *jabber_buddy_add( struct gaim_connection *gc, char *full_jid );
     123struct jabber_buddy *jabber_buddy_by_jid( struct gaim_connection *gc, char *jid );
     124int jabber_buddy_remove( struct gaim_connection *gc, char *full_jid );
    106125
    107126extern const struct jabber_away_state jabber_away_state_list[];
Note: See TracChangeset for help on using the changeset viewer.