Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/jabber.h

    r0e4c3dd r5ebff60  
    7777} jabber_chat_flags_t;
    7878
    79 typedef enum {
    80         JSUB_NONE = 0,
    81         JSUB_GTALK,
    82         JSUB_FACEBOOK,
    83         JSUB_HIPCHAT,
    84 } jabber_subproto_t;
    85 
    86 typedef 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 
    9379struct jabber_data {
    9480        struct im_connection *ic;
     
    10288        struct xt_parser *xt;
    10389        jabber_flags_t flags;
    104         jabber_subproto_t subproto;
    10590
    10691        char *username;         /* USERNAME@server */
     
    250235#define XMLNS_IBB          "http://jabber.org/protocol/ibb"                      /* XEP-0047 */
    251236
    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 
    257237/* jabber.c */
    258238void jabber_connect(struct im_connection *ic);
     
    264244int jabber_get_roster(struct im_connection *ic);
    265245int jabber_get_vcard(struct im_connection *ic, char *bare_jid);
    266 int jabber_iq_disco_muc(struct im_connection *ic, char *muc_server);
    267246int jabber_add_to_roster(struct im_connection *ic, const char *handle, const char *name, const char *group);
    268247int jabber_remove_from_roster(struct im_connection *ic, char *handle);
     
    270249xt_status jabber_iq_query_server(struct im_connection *ic, char *jid, char *xmlns);
    271250void jabber_iq_version_send(struct im_connection *ic, struct jabber_buddy *bud, void *data);
    272 int jabber_iq_disco_server(struct im_connection *ic);
    273251
    274252/* si.c */
     
    328306void jabber_error_free(struct jabber_error *err);
    329307gboolean jabber_set_me(struct im_connection *ic, const char *me);
    330 char *jabber_get_bare_jid(char *jid);
    331308
    332309extern const struct jabber_away_state jabber_away_state_list[];
     
    364341void jabber_chat_invite(struct groupchat *c, char *who, char *message);
    365342
    366 /* hipchat.c */
    367 int jabber_get_hipchat_profile(struct im_connection *ic);
    368 xt_status jabber_parse_hipchat_profile(struct im_connection *ic, struct xt_node *node, struct xt_node *orig);
    369 xt_status hipchat_handle_success(struct im_connection *ic, struct xt_node *node);
    370 xt_status jabber_parse_muc_list(struct im_connection *ic, struct xt_node *node, struct xt_node *orig);
    371 
    372343#endif
Note: See TracChangeset for help on using the changeset viewer.