diff options
author | dequis <dx@dxzone.com.ar> | 2015-02-21 03:18:21 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2015-04-28 10:47:48 -0300 |
commit | 40cfbc54088702d4887ccfb761eafe65b4376d59 (patch) | |
tree | 58f9e7290c934eee6ea3506033923279643cd455 /protocols/jabber/jabber.h | |
parent | 1493c4b7eff51e231c65f7728c0cf84ca45cf837 (diff) |
hipchat: Basic implementation: Auth, profile and mention names
This is enough to log in with their usernames, make 'chat add' based
groupchat joins slightly more smooth, and see mention names as nicks.
All the MUC list stuff is left out intentionally since that's not as
stable as I wish.
Diffstat (limited to 'protocols/jabber/jabber.h')
-rw-r--r-- | protocols/jabber/jabber.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/protocols/jabber/jabber.h b/protocols/jabber/jabber.h index 6a329a06..8416e1a7 100644 --- a/protocols/jabber/jabber.h +++ b/protocols/jabber/jabber.h @@ -235,6 +235,10 @@ struct jabber_transfer { #define XMLNS_BYTESTREAMS "http://jabber.org/protocol/bytestreams" /* XEP-0065 */ #define XMLNS_IBB "http://jabber.org/protocol/ibb" /* XEP-0047 */ +/* Hipchat protocol extensions*/ +#define XMLNS_HIPCHAT "http://hipchat.com" +#define XMLNS_HIPCHAT_PROFILE "http://hipchat.com/protocol/profile" + /* jabber.c */ void jabber_connect(struct im_connection *ic); @@ -249,6 +253,7 @@ int jabber_remove_from_roster(struct im_connection *ic, char *handle); xt_status jabber_iq_query_features(struct im_connection *ic, char *bare_jid); xt_status jabber_iq_query_server(struct im_connection *ic, char *jid, char *xmlns); void jabber_iq_version_send(struct im_connection *ic, struct jabber_buddy *bud, void *data); +int jabber_iq_disco_server(struct im_connection *ic); /* si.c */ int jabber_si_handle_request(struct im_connection *ic, struct xt_node *node, struct xt_node *sinode); @@ -341,4 +346,9 @@ void jabber_chat_pkt_presence(struct im_connection *ic, struct jabber_buddy *bud void jabber_chat_pkt_message(struct im_connection *ic, struct jabber_buddy *bud, struct xt_node *node); void jabber_chat_invite(struct groupchat *c, char *who, char *message); +/* hipchat.c */ +int jabber_get_hipchat_profile(struct im_connection *ic); +xt_status jabber_parse_hipchat_profile(struct im_connection *ic, struct xt_node *node, struct xt_node *orig); +xt_status hipchat_handle_success(struct im_connection *ic, struct xt_node *node); + #endif |