diff --git a/server/smartcard-channel-client.c b/server/smartcard-channel-client.c index a665e933..daa20ffc 100644 --- a/server/smartcard-channel-client.c +++ b/server/smartcard-channel-client.c @@ -20,8 +20,6 @@ #include "smartcard-channel-client.h" -G_DEFINE_TYPE(SmartCardChannelClient, smart_card_channel_client, RED_TYPE_CHANNEL_CLIENT) - struct SmartCardChannelClientPrivate { RedCharDeviceSmartcard *smartcard; @@ -33,6 +31,9 @@ struct SmartCardChannelClientPrivate * or was it explicitly malloced */ }; +G_DEFINE_TYPE_WITH_PRIVATE(SmartCardChannelClient, smart_card_channel_client, + RED_TYPE_CHANNEL_CLIENT) + typedef struct RedErrorItem { RedPipeItem base; VSCMsgHeader vheader; @@ -84,8 +85,6 @@ static void smart_card_channel_client_class_init(SmartCardChannelClientClass *kl { GObjectClass *object_class = G_OBJECT_CLASS(klass); - g_type_class_add_private(klass, sizeof(SmartCardChannelClientPrivate)); - RedChannelClientClass *client_class = RED_CHANNEL_CLIENT_CLASS(klass); client_class->alloc_recv_buf = smartcard_channel_client_alloc_msg_rcv_buf; client_class->release_recv_buf = smartcard_channel_client_release_msg_rcv_buf;