Ignore:
Timestamp:
2006-11-12T23:06:08Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
16b5f86
Parents:
47d3ac4
Message:

Improved handling of JIDs: Bare JIDs are allowed (*sigh*) and case
insensitivity. Probably not complete yet...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/jabber.h

    r47d3ac4 r0d3f30f  
    5050        JBFLAG_DOES_XEP85 = 2,          /* Set this when the resource seems to support
    5151                                           XEP85 (typing notification shite). */
    52 } jabber_buddy_flag_t;
     52} jabber_buddy_flags_t;
    5353
    5454struct jabber_data
     
    9393struct jabber_buddy
    9494{
    95         char *handle;
     95        char *bare_jid;
    9696        char *full_jid;
    9797        char *resource;
     
    102102       
    103103        time_t last_act;
    104         jabber_buddy_flag_t flags;
     104        jabber_buddy_flags_t flags;
    105105       
    106106        struct jabber_buddy *next;
     
    160160const struct jabber_away_state *jabber_away_state_by_name( char *name );
    161161void jabber_buddy_ask( struct gaim_connection *gc, char *handle );
     162char *jabber_normalize( char *orig );
     163
     164typedef enum
     165{
     166        GET_BUDDY_CREAT = 1,    /* Try to create it, if necessary. */
     167        GET_BUDDY_EXACT = 2,    /* Get an exact message (only makes sense with bare JIDs). */
     168} get_buddy_flags_t;
     169
    162170struct jabber_buddy *jabber_buddy_add( struct gaim_connection *gc, char *full_jid );
    163 struct jabber_buddy *jabber_buddy_by_jid( struct gaim_connection *gc, char *jid );
     171struct jabber_buddy *jabber_buddy_by_jid( struct gaim_connection *gc, char *jid, get_buddy_flags_t flags );
    164172int jabber_buddy_remove( struct gaim_connection *gc, char *full_jid );
    165173int jabber_buddy_remove_bare( struct gaim_connection *gc, char *bare_jid );
Note: See TracChangeset for help on using the changeset viewer.