root/trunk/src/iq.h

Revision 680, 1.4 kB (checked in by jajcus, 3 years ago)

- dates in the copyright header updated

Line 
1 /* $Id: iq.h,v 1.8 2003/01/15 08:04:56 jajcus Exp $ */
2
3 /*
4  *  (C) Copyright 2002-2006 Jacek Konieczny [jajcus(a)jajcus,net]
5  *
6  *  This program is free software; you can redistribute it and/or modify
7  *  it under the terms of the GNU General Public License Version 2 as
8  *  published by the Free Software Foundation.
9  *
10  *  This program is distributed in the hope that it will be useful,
11  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  *  GNU General Public License for more details.
14  *
15  *  You should have received a copy of the GNU General Public License
16  *  along with this program; if not, write to the Free Software
17  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18  */
19
20 #ifndef iq_h
21 #define iq_h
22
23 struct stream_s;
24 void jabber_iq(struct stream_s *s,xmlnode x);
25 void jabber_iq_send_error(struct stream_s *s,const char *was_from,const char *was_to,const char *id,int code,char *string);
26 void jabber_iq_send_result(struct stream_s *s,const char *was_from,const char *was_to,const char *id,xmlnode content);
27
28 typedef void (*IqHandler)(struct stream_s *s,const char *from, const char *to,const char *id,xmlnode n);
29 typedef struct iq_namespace_s{
30         const char *ns;
31         const char *node_name;
32         IqHandler get_handler;
33         IqHandler set_handler;
34 }IqNamespace;
35 extern IqNamespace server_iq_ns[];
36 extern IqNamespace client_iq_ns[];
37
38 #endif
Note: See TracBrowser for help on using the browser.