Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
ui/vc: move VCChardev declaration at the top
To allow easier refactoring in following patches.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20230830093843.3531473-13-marcandre.lureau@redhat.com>
  • Loading branch information
elmarco committed Sep 4, 2023
1 parent 6657e41 commit 8c63667
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ui/console.c
Expand Up @@ -127,6 +127,12 @@ struct QemuConsole {
QTAILQ_ENTRY(QemuConsole) next;
};

struct VCChardev {
Chardev parent;
QemuConsole *console;
};
typedef struct VCChardev VCChardev;

struct DisplayState {
QEMUTimer *gui_timer;
uint64_t last_update;
Expand Down Expand Up @@ -1051,12 +1057,6 @@ void console_select(unsigned int index)
}
}

struct VCChardev {
Chardev parent;
QemuConsole *console;
};
typedef struct VCChardev VCChardev;

#define TYPE_CHARDEV_VC "chardev-vc"
DECLARE_INSTANCE_CHECKER(VCChardev, VC_CHARDEV,
TYPE_CHARDEV_VC)
Expand Down

0 comments on commit 8c63667

Please sign in to comment.