libpurple/protocols/jabber/jingle/rawudp.c

branch
soc.2013.gobjectification.plugins
changeset 36889
4dfe09057bed
parent 34935
686fa55b0deb
child 36951
6e23992964ed
equal deleted inserted replaced
36888:f47341bdfdde 36889:4dfe09057bed
102 102
103 candidate->rem_known = FALSE; 103 candidate->rem_known = FALSE;
104 return candidate; 104 return candidate;
105 } 105 }
106 106
107 GType 107 PURPLE_DEFINE_TYPE(JingleRawUdp, jingle_rawudp, JINGLE_TYPE_TRANSPORT);
108 jingle_rawudp_get_type()
109 {
110 static GType type = 0;
111
112 if (type == 0) {
113 static const GTypeInfo info = {
114 sizeof(JingleRawUdpClass),
115 NULL,
116 NULL,
117 (GClassInitFunc) jingle_rawudp_class_init,
118 NULL,
119 NULL,
120 sizeof(JingleRawUdp),
121 0,
122 (GInstanceInitFunc) jingle_rawudp_init,
123 NULL
124 };
125 type = g_type_register_static(JINGLE_TYPE_TRANSPORT, "JingleRawUdp", &info, 0);
126 }
127 return type;
128 }
129 108
130 static void 109 static void
131 jingle_rawudp_class_init (JingleRawUdpClass *klass) 110 jingle_rawudp_class_init (JingleRawUdpClass *klass)
132 { 111 {
133 GObjectClass *gobject_class = (GObjectClass*)klass; 112 GObjectClass *gobject_class = (GObjectClass*)klass;

mercurial