Mercurial > pidgin
view libpurple/protocols/jabber/pep.c @ 17838:2f67cb504a51
Implemented publishing events
author | Andreas Monitzer <pidgin@monitzer.com> |
---|---|
date | Wed, 06 Jun 2007 01:37:28 +0000 |
parents | a75079eae085 |
children | 0370da969e8a |
line wrap: on
line source
/* * purple - Jabber Protocol Plugin * * Copyright (C) 2007, Andreas Monitzer <andy@monitzer.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ #include "pep.h" #include "iq.h" void jabber_pep_init(JabberStream *js) { } void jabber_handle_event(JabberMessage *jm) { /* this may be called even when the own server doesn't support pep! */ } void jabber_pep_publish(JabberStream *js, xmlnode *publish) { JabberIq *iq = jabber_iq_new(js, JABBER_IQ_SET); xmlnode *pubsub = xmlnode_new("pubsub"); xmlnode_set_namespace(pubsub, "http://jabber.org/protocol/pubsub"); xmlnode_insert_child(pubsub, publish); xmlnode_insert_child(iq->node, pubsub); jabber_iq_send(iq); }