libpurple/protocols/jabber/jingle/rawudp.h

branch
maiku.vv
changeset 26147
791ee9c9a75e
child 26154
78fa18d44718
equal deleted inserted replaced
26146:1548768e23dd 26147:791ee9c9a75e
1 /**
2 * @file rawudp.h
3 *
4 * purple
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 as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
19 */
20
21 #ifndef JINGLE_RAWUDP_H
22 #define JINGLE_RAWUDP_H
23
24 #include <glib.h>
25 #include <glib-object.h>
26
27 #include "transport.h"
28
29 G_BEGIN_DECLS
30
31 #define JINGLE_TYPE_RAWUDP (jingle_rawudp_get_type())
32 #define JINGLE_RAWUDP(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), JINGLE_TYPE_RAWUDP, JingleRawUdp))
33 #define JINGLE_RAWUDP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), JINGLE_TYPE_RAWUDP, JingleRawUdpClass))
34 #define JINGLE_IS_RAWUDP(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), JINGLE_TYPE_RAWUDP))
35 #define JINGLE_IS_RAWUDP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), JINGLE_TYPE_RAWUDP))
36 #define JINGLE_RAWUDP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), JINGLE_TYPE_RAWUDP, JingleRawUdpClass))
37
38 /** @copydoc _JingleRawUdp */
39 typedef struct _JingleRawUdp JingleRawUdp;
40 /** @copydoc _JingleRawUdpClass */
41 typedef struct _JingleRawUdpClass JingleRawUdpClass;
42 /** @copydoc _JingleRawUdpPrivate */
43 typedef struct _JingleRawUdpPrivate JingleRawUdpPrivate;
44
45 /** The rawudp class */
46 struct _JingleRawUdpClass
47 {
48 JingleTransportClass parent_class; /**< The parent class. */
49
50 xmlnode *(*to_xml) (JingleTransport *transport, xmlnode *content, JingleActionType action);
51 JingleTransport *(*parse) (xmlnode *transport);
52 };
53
54 /** The rawudp class's private data */
55 struct _JingleRawUdp
56 {
57 JingleTransport parent; /**< The parent of this object. */
58 JingleRawUdpPrivate *priv; /**< The private data of this object. */
59 };
60
61 #ifdef __cplusplus
62 extern "C" {
63 #endif
64
65 /**
66 * Gets the rawudp class's GType
67 *
68 * @return The rawudp class's GType.
69 */
70 GType jingle_rawudp_get_type(void);
71
72 JingleRawUdp *jingle_rawudp_create(guint generation, const gchar *id, const gchar *ip, guint port);
73
74 #ifdef __cplusplus
75 }
76 #endif
77
78 G_END_DECLS
79
80 #endif /* JINGLE_RAWUDP_H */
81

mercurial