Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/usertune.c @ 32456:3caef255ad47
Convert jabber prpl to use accessor functions purple_connection_get_protocol_data() and purple_connection_set_protocol_data().
author | andrew.victor@mxit.com |
---|---|
date | Tue, 30 Aug 2011 19:11:26 +0000 |
parents | c585572e80dd |
children | 2ec94166be43 |
comparison
equal
deleted
inserted
replaced
32455:cf796628b2c0 | 32456:3caef255ad47 |
---|---|
115 jabber_pep_register_handler("http://jabber.org/protocol/tune", jabber_tune_cb); | 115 jabber_pep_register_handler("http://jabber.org/protocol/tune", jabber_tune_cb); |
116 } | 116 } |
117 | 117 |
118 void jabber_tune_set(PurpleConnection *gc, const PurpleJabberTuneInfo *tuneinfo) { | 118 void jabber_tune_set(PurpleConnection *gc, const PurpleJabberTuneInfo *tuneinfo) { |
119 xmlnode *publish, *tunenode; | 119 xmlnode *publish, *tunenode; |
120 JabberStream *js = gc->proto_data; | 120 JabberStream *js = purple_connection_get_protocol_data(gc); |
121 | 121 |
122 publish = xmlnode_new("publish"); | 122 publish = xmlnode_new("publish"); |
123 xmlnode_set_attrib(publish,"node","http://jabber.org/protocol/tune"); | 123 xmlnode_set_attrib(publish,"node","http://jabber.org/protocol/tune"); |
124 tunenode = xmlnode_new_child(xmlnode_new_child(publish, "item"), "tune"); | 124 tunenode = xmlnode_new_child(xmlnode_new_child(publish, "item"), "tune"); |
125 xmlnode_set_namespace(tunenode, "http://jabber.org/protocol/tune"); | 125 xmlnode_set_namespace(tunenode, "http://jabber.org/protocol/tune"); |