static void lwqq_channel_class_init (LwqqChannelClass *self_class) { GObjectClass *object_class = G_OBJECT_CLASS (self_class); TpBaseChannelClass* base_class = TP_BASE_CHANNEL_CLASS(self_class); g_type_class_add_private (self_class, sizeof (LwqqChannelPrivate)); object_class->finalize = (void (*) (GObject *object)) lwqq_channel_finalize; base_class->channel_type = TP_IFACE_CHANNEL_TYPE_TEXT; base_class->target_handle_type = TP_HANDLE_TYPE_CONTACT; base_class->interfaces = im_channel_interfaces; base_class->close = im_channel_close; base_class->fill_immutable_properties = fill_immutable_properties; tp_message_mixin_init_dbus_properties(object_class); }
static void fetion_im_channel_class_init (FetionImChannelClass *klass) { GObjectClass *object_class = (GObjectClass *) klass; TpBaseChannelClass *base_class = (TpBaseChannelClass *) klass; g_type_class_add_private (klass, sizeof (FetionImChannelPrivate)); object_class->constructor = constructor; object_class->set_property = set_property; object_class->get_property = get_property; object_class->finalize = finalize; base_class->channel_type = TP_IFACE_CHANNEL_TYPE_TEXT; base_class->target_handle_type = TP_HANDLE_TYPE_CONTACT; base_class->interfaces = fetion_im_channel_interfaces; base_class->close = fetion_im_channel_close; base_class->fill_immutable_properties = fetion_im_channel_fill_immutable_properties; tp_message_mixin_init_dbus_properties (object_class); }