On 2014-12-11 at 11:49, Gerd Hoffmann wrote:
Create sdl2.h header file, in preparation for sdl2 code splitup.
Populate it with sdl2_console struct (renamed from sdl2_state).

Signed-off-by: Gerd Hoffmann <kra...@redhat.com>
---
  include/ui/sdl2.h | 11 ++++++++++
  ui/sdl2.c         | 63 ++++++++++++++++++++++++-------------------------------
  2 files changed, 38 insertions(+), 36 deletions(-)
  create mode 100644 include/ui/sdl2.h

diff --git a/include/ui/sdl2.h b/include/ui/sdl2.h
new file mode 100644
index 0000000..7f91a75
--- /dev/null
+++ b/include/ui/sdl2.h
@@ -0,0 +1,11 @@
+struct sdl2_console {
+    DisplayChangeListener dcl;
+    DisplaySurface *surface;
+    SDL_Texture *texture;
+    SDL_Window *real_window;
+    SDL_Renderer *real_renderer;
+    int idx;
+    int last_vm_running; /* per console for caption reasons */
+    int x, y;
+    int hidden;
+};

Is there a reason why you did not use include guards?

Max

Reply via email to