Ignore:
Timestamp:
2006-10-10T12:05:42Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
8eb10c9
Parents:
6a1128d
Message:

Added resource selection (based on priority or time of last message) to
budd_by_jid(), added a full_jid property to easily address that resource
without having to rebuild the full JID every time and implemented typing
notification shite.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/jabber.h

    r6a1128d ra21a8ac  
    3232typedef enum
    3333{
    34         JFLAG_STREAM_STARTED = 1,       /* Set when we detected the beginning of the stream and want to do auth. */
     34        JFLAG_STREAM_STARTED = 1,       /* Set when we detected the beginning of the stream
     35                                           and want to do auth. */
    3536        JFLAG_AUTHENTICATED = 2,        /* Set when we're successfully authenticatd. */
    36         JFLAG_STREAM_RESTART = 4,       /* Set when we want to restart the stream (after SASL or TLS). */
    37         JFLAG_WAIT_SESSION = 8,         /* Set if we sent a <session> tag and need a reply before we continue. */
     37        JFLAG_STREAM_RESTART = 4,       /* Set when we want to restart the stream (after
     38                                           SASL or TLS). */
     39        JFLAG_WAIT_SESSION = 8,         /* Set if we sent a <session> tag and need a reply
     40                                           before we continue. */
    3841        JFLAG_WAIT_BIND = 16,           /* ... for <bind> tag. */
     42        JFLAG_WANT_TYPING = 32,         /* Set if we ever sent a typing notification, this
     43                                           activates all JEP-85 related code. */
    3944} jabber_flags_t;
     45
     46typedef enum
     47{
     48        JBFLAG_PROBED_JEP85 = 1,        /* Set this when we sent our probe packet to make
     49                                           sure it gets sent only once. */
     50        JBFLAG_DOES_JEP85 = 2,          /* Set this when the resource seems to support
     51                                           JEP85 (typing notification shite). */
     52} jabber_buddy_flag_t;
    4053
    4154struct jabber_data
     
    8194{
    8295        char *handle;
     96        char *full_jid;
    8397        char *resource;
    8498       
Note: See TracChangeset for help on using the changeset viewer.