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