char-device: Prepare to move functions to methods

Move structure declaration at the end.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
Frediano Ziglio 2020-03-05 18:45:17 +00:00 committed by Frediano Ziglio
parent 2b11c917dc
commit 26e6d15551

View File

@ -44,14 +44,6 @@ struct RedCharDevicePrivate;
#define RedCharDeviceClientOpaque RedClient
#endif
/* 'SpiceCharDeviceState' name is used for consistency with what spice-char.h exports */
struct SpiceCharDeviceState: public GObject
{
RedCharDevicePrivate *priv;
void ref() { g_object_ref(this); }
void unref() { g_object_unref(this); }
};
struct RedCharDeviceClass: public GObjectClass
{
/*
@ -247,6 +239,14 @@ SpiceCharDeviceInstance *red_char_device_get_device_instance(RedCharDevice *dev)
SpiceCharDeviceInterface *spice_char_device_get_interface(SpiceCharDeviceInstance *instance);
/* 'SpiceCharDeviceState' name is used for consistency with what spice-char.h exports */
struct SpiceCharDeviceState: public GObject
{
RedCharDevicePrivate *priv;
void ref() { g_object_ref(this); }
void unref() { g_object_unref(this); }
};
SPICE_END_DECLS
#endif /* CHAR_DEVICE_H_ */