Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/jabber.h

    r5ebff60 r0e4c3dd  
    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 */
     
    235250#define XMLNS_IBB          "http://jabber.org/protocol/ibb"                      /* XEP-0047 */
    236251
     252/* Hipchat protocol extensions*/
     253#define XMLNS_HIPCHAT         "http://hipchat.com"
     254#define XMLNS_HIPCHAT_PROFILE "http://hipchat.com/protocol/profile"
     255#define XMLNS_HIPCHAT_MUC     "http://hipchat.com/protocol/muc#room"
     256
    237257/* jabber.c */
    238258void jabber_connect(struct im_connection *ic);
     
    244264int jabber_get_roster(struct im_connection *ic);
    245265int jabber_get_vcard(struct im_connection *ic, char *bare_jid);
     266int jabber_iq_disco_muc(struct im_connection *ic, char *muc_server);
    246267int jabber_add_to_roster(struct im_connection *ic, const char *handle, const char *name, const char *group);
    247268int jabber_remove_from_roster(struct im_connection *ic, char *handle);
     
    249270xt_status jabber_iq_query_server(struct im_connection *ic, char *jid, char *xmlns);
    250271void jabber_iq_version_send(struct im_connection *ic, struct jabber_buddy *bud, void *data);
     272int jabber_iq_disco_server(struct im_connection *ic);
    251273
    252274/* si.c */
     
    306328void jabber_error_free(struct jabber_error *err);
    307329gboolean jabber_set_me(struct im_connection *ic, const char *me);
     330char *jabber_get_bare_jid(char *jid);
    308331
    309332extern const struct jabber_away_state jabber_away_state_list[];
     
    341364void jabber_chat_invite(struct groupchat *c, char *who, char *message);
    342365
     366/* hipchat.c */
     367int jabber_get_hipchat_profile(struct im_connection *ic);
     368xt_status jabber_parse_hipchat_profile(struct im_connection *ic, struct xt_node *node, struct xt_node *orig);
     369xt_status hipchat_handle_success(struct im_connection *ic, struct xt_node *node);
     370xt_status jabber_parse_muc_list(struct im_connection *ic, struct xt_node *node, struct xt_node *orig);
     371
    343372#endif
Note: See TracChangeset for help on using the changeset viewer.