Changes in protocols/jabber/jabber.h [5ebff60:0e4c3dd]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/jabber.h
r5ebff60 r0e4c3dd 77 77 } jabber_chat_flags_t; 78 78 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 79 93 struct jabber_data { 80 94 struct im_connection *ic; … … 88 102 struct xt_parser *xt; 89 103 jabber_flags_t flags; 104 jabber_subproto_t subproto; 90 105 91 106 char *username; /* USERNAME@server */ … … 235 250 #define XMLNS_IBB "http://jabber.org/protocol/ibb" /* XEP-0047 */ 236 251 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 237 257 /* jabber.c */ 238 258 void jabber_connect(struct im_connection *ic); … … 244 264 int jabber_get_roster(struct im_connection *ic); 245 265 int jabber_get_vcard(struct im_connection *ic, char *bare_jid); 266 int jabber_iq_disco_muc(struct im_connection *ic, char *muc_server); 246 267 int jabber_add_to_roster(struct im_connection *ic, const char *handle, const char *name, const char *group); 247 268 int jabber_remove_from_roster(struct im_connection *ic, char *handle); … … 249 270 xt_status jabber_iq_query_server(struct im_connection *ic, char *jid, char *xmlns); 250 271 void jabber_iq_version_send(struct im_connection *ic, struct jabber_buddy *bud, void *data); 272 int jabber_iq_disco_server(struct im_connection *ic); 251 273 252 274 /* si.c */ … … 306 328 void jabber_error_free(struct jabber_error *err); 307 329 gboolean jabber_set_me(struct im_connection *ic, const char *me); 330 char *jabber_get_bare_jid(char *jid); 308 331 309 332 extern const struct jabber_away_state jabber_away_state_list[]; … … 341 364 void jabber_chat_invite(struct groupchat *c, char *who, char *message); 342 365 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 343 372 #endif
Note: See TracChangeset
for help on using the changeset viewer.