Ignore:
Timestamp:
2015-02-21T06:10:54Z (9 years ago)
Author:
dequis <dx@…>
Children:
75ad761
Parents:
5ebff60
git-author:
dequis <dx@…> (19-07-14 04:51:58)
git-committer:
dequis <dx@…> (21-02-15 06:10:54)
Message:

Add the concept of jabber sub-protocols

Currently including: jabber (none), gtalk, facebook, hipchat.

They provide a default server field and an oauth service definition.

Also the "account tag guesses" become subprotocol guesses

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/jabber.h

    r5ebff60 r7733b8c  
    7777} jabber_chat_flags_t;
    7878
     79typedef enum {
     80        JSUB_NONE = 0,
     81        JSUB_GTALK,
     82        JSUB_FACEBOOK,
     83        JSUB_HIPCHAT,
     84} jabber_subproto_t;
     85
     86typedef struct {
     87        const char *name;
     88        jabber_subproto_t id;
     89        const struct oauth2_service *oauth2_service;
     90        const char *server;
     91} jabber_subproto_desc_t;
     92
    7993struct jabber_data {
    8094        struct im_connection *ic;
     
    88102        struct xt_parser *xt;
    89103        jabber_flags_t flags;
     104        jabber_subproto_t subproto;
    90105
    91106        char *username;         /* USERNAME@server */
Note: See TracChangeset for help on using the changeset viewer.