mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-11 10:40:45 +00:00
smartcard-channel-client: Update usage of GObject private structures
This finished the work of 90ff154b36
(cfr "Update usage of GObject private structures").
Removes last call to g_type_class_add_private.
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
This commit is contained in:
parent
9a605dcc67
commit
fd72b94965
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user