diff options
Diffstat (limited to 'server/cursor-channel.h')
-rw-r--r-- | server/cursor-channel.h | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/server/cursor-channel.h b/server/cursor-channel.h index 0f2b43da..8b3bc17f 100644 --- a/server/cursor-channel.h +++ b/server/cursor-channel.h @@ -19,14 +19,40 @@ # define CURSOR_CHANNEL_H_ #include "common-graphics-channel.h" +#include "red-parse-qxl.h" + +G_BEGIN_DECLS + +#define TYPE_CURSOR_CHANNEL cursor_channel_get_type() + +#define CURSOR_CHANNEL(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), TYPE_CURSOR_CHANNEL, CursorChannel)) +#define CURSOR_CHANNEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), TYPE_CURSOR_CHANNEL, CursorChannelClass)) +#define IS_CURSOR_CHANNEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), TYPE_CURSOR_CHANNEL)) +#define IS_CURSOR_CHANNEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), TYPE_CURSOR_CHANNEL)) +#define CURSOR_CHANNEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), TYPE_CURSOR_CHANNEL, CursorChannelClass)) -#define CURSOR_CHANNEL(channel) ((CursorChannel*)channel) /** * This type it's a RedChannel class which implement cursor (mouse) * movements. * A pointer to CursorChannel can be converted to a RedChannel. */ typedef struct CursorChannel CursorChannel; +typedef struct CursorChannelClass CursorChannelClass; +typedef struct CursorChannelPrivate CursorChannelPrivate; + +struct CursorChannel +{ + CommonGraphicsChannel parent; + + CursorChannelPrivate *priv; +}; + +struct CursorChannelClass +{ + CommonGraphicsChannelClass parent_class; +}; + +GType cursor_channel_get_type(void) G_GNUC_CONST; /** * Create CursorChannel. @@ -48,7 +74,7 @@ CursorChannel* cursor_channel_new (RedsState *server, QXLInstance */ void cursor_channel_disconnect (CursorChannel *cursor); void cursor_channel_reset (CursorChannel *cursor); -void cursor_channel_init (CursorChannel *cursor); +void cursor_channel_do_init (CursorChannel *cursor); void cursor_channel_process_cmd (CursorChannel *cursor, RedCursorCmd *cursor_cmd); void cursor_channel_set_mouse_mode(CursorChannel *cursor, uint32_t mode); @@ -70,4 +96,6 @@ void cursor_channel_connect (CursorChannel *cursor, RedClien */ void cursor_channel_client_migrate(RedChannelClient *client); +G_END_DECLS + #endif /* CURSOR_CHANNEL_H_ */ |