summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Peter Korsgaard [Tue, 23 May 2017 07:58:16 +0000 (09:58 +0200)]
keymap-gen: add support for generating output for C++
Designated initializers ([index] = value,) are not available in C++:
https://gcc.gnu.org/onlinedocs/gcc/Designated-Inits.html
So add a custom stdc++ output format which outputs all array entries instead
of the "sparse" C variant.
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Daniel P. Berrange [Wed, 26 Apr 2017 10:38:30 +0000 (11:38 +0100)]
Fix message when seeing unknown map
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Daniel P. Berrange [Wed, 26 Apr 2017 10:34:15 +0000 (11:34 +0100)]
Fix incompatibility with older argparse
With older argparse (circa 2.7.4 vintage), using set_defaults
to set a function on the main parser prevents it from ever
calling the functions set on the sub-parser.
We registered this default function so that we could get help
usage with argparse on python 3.x, since it doesn't print
error by default if no sub-parser command is given (but 2.x
does).
To workaround this, we instead check for 'func' attribute
existing on the parsed args. This is a no-op for python 2.x
since it already printed a usage message by default.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Pavel Grunt [Thu, 9 Mar 2017 10:47:51 +0000 (10:47 +0000)]
Merge branch 'master' into 'master'
keymap-gen: Import sys
See merge request !1
Pavel Grunt [Wed, 8 Mar 2017 13:22:11 +0000 (14:22 +0100)]
keymap-gen: Import sys
It is used in usage()
Daniel P. Berrange [Fri, 3 Mar 2017 12:21:24 +0000 (12:21 +0000)]
Add ability to generate Perl POD docs for key map names & values
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Daniel P. Berrange [Wed, 15 Feb 2017 18:45:05 +0000 (18:45 +0000)]
Fix xorg kbd mapping generator
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Daniel P. Berrange [Wed, 15 Feb 2017 18:14:26 +0000 (18:14 +0000)]
Print help message if no sub-command is given
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Daniel P. Berrange [Wed, 15 Feb 2017 18:13:51 +0000 (18:13 +0000)]
Use print_function in python 2
To allow portability with py3 use the print_function. This
requires python >= 2.6.0
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Daniel P. Berrange [Wed, 15 Feb 2017 18:13:06 +0000 (18:13 +0000)]
Don't call next() method in CSV reader
The next() method was renamed in python3. Simply avoid calling
it to ensure portability
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Daniel P. Berrange [Wed, 15 Feb 2017 14:57:24 +0000 (14:57 +0000)]
Use correct generator class for glib2
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Daniel P. Berrange [Wed, 15 Feb 2017 14:53:17 +0000 (14:53 +0000)]
Use guint16 / unsigned short for C data types
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Daniel P. Berrange [Wed, 15 Feb 2017 14:35:41 +0000 (14:35 +0000)]
Add missing X11 map field
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Daniel P. Berrange [Wed, 15 Feb 2017 14:19:28 +0000 (14:19 +0000)]
Initial import of code
The data/keymaps.csv file is taken from the latest SPICE-GTK
repository. All contributions from this original file in both
SPICE-GTK and GTK-VNC repos were made under Red Hat copyright.
Red Hat grants permission to relicense to dual GPL2 or 3-clause
BSD.
The data/keymap-gen tool is a brand new file.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>