Refactor keymap code to avoid duplication ("Daniel P. Berrange")
commit15a868dc4e7a982f9d684a0231938602757c0c25
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 6 Mar 2009 20:27:10 +0000 (6 20:27 +0000)
committerMark McLoughlin <markmc@redhat.com>
Fri, 11 Sep 2009 10:37:31 +0000 (11 11:37 +0100)
tree8531640e64ddd99376fec8db2fbd6fe1c5452020
parent37beb4aa5dd10764a492d76822f2d7ec04b33fd0
Refactor keymap code to avoid duplication ("Daniel P. Berrange")

Each of the graphical frontends #include a .c file, for keymap code
resulting in duplicated definitions & duplicated compiled code. A
couple of small changes allowed this to be sanitized, so instead of
doing a #include "keymaps.c", duplicating all code, we can have a
shared keymaps.h file, and only compile code once. This allows the
next patch to move the VncState struct out into a header file without
causing clashing definitions.

(cherry picked from commit 0483755a4d1fd61fe9c284166f67ae08af8d858b)

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Fedora-patch: 03-display-keymaps.patch
Makefile
curses.c
curses_keys.h
keymaps.c
keymaps.h [new file with mode: 0644]
sdl.c
sdl_keysym.h
vnc.c
vnc_keysym.h