| 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"); |