+ static GType type = 0;
+ if (type == 0)
+ {
+ static const GTypeInfo info =
+ {
+ sizeof (RdpClass),
+ NULL,
+ NULL,
+ (GClassInitFunc)rdp_class_init,
+ NULL,
+ NULL,
+ sizeof (Rdp),
+ 0,
+ rdp_init
+ };
+ type = g_type_register_static (GRAMMAR_TYPE, "RdpType", &info, 0);
+ }
+ return type;