libpurple/protocols/jabber/jingle/rtp.c

branch
soc.2013.gobjectification.plugins
changeset 36889
4dfe09057bed
parent 36692
324db2a53c4c
child 36951
6e23992964ed
--- a/libpurple/protocols/jabber/jingle/rtp.c	Sat Oct 12 16:42:04 2013 +0530
+++ b/libpurple/protocols/jabber/jingle/rtp.c	Sat Oct 12 17:43:23 2013 +0530
@@ -72,28 +72,7 @@
 	PROP_SSRC,
 };
 
-GType
-jingle_rtp_get_type()
-{
-	static GType type = 0;
-
-	if (type == 0) {
-		static const GTypeInfo info = {
-			sizeof(JingleRtpClass),
-			NULL,
-			NULL,
-			(GClassInitFunc) jingle_rtp_class_init,
-			NULL,
-			NULL,
-			sizeof(JingleRtp),
-			0,
-			(GInstanceInitFunc) jingle_rtp_init,
-			NULL
-		};
-		type = g_type_register_static(JINGLE_TYPE_CONTENT, "JingleRtp", &info, 0);
-	}
-	return type;
-}
+PURPLE_DEFINE_TYPE(JingleRtp, jingle_rtp, JINGLE_TYPE_CONTENT);
 
 static void
 jingle_rtp_class_init (JingleRtpClass *klass)

mercurial