summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)AuthorFilesLines
2012-03-27Add new context APIDaniel Stone1-1/+73
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-27Make build non-recursiveRan Benita1-1/+0
Unify all the different Makefile.am into a single short top level one (the test/Makefile.am file is left intact though). This makes the build system simpler to look and should encourage unifying more currently-disparate code. Some further motivation can be found in this page: http://www.flameeyes.eu/autotools-mythbuster/automake/nonrecursive.html Signed-off-by: Ran Benita <ran234@gmail.com>
2012-03-27Define our own NoSymbol value and use itRan Benita1-0/+2
Since we have our own xkb_keysym_t type, it makes sense to have our own NoSymbol value instead of the one from X11/X.h. Signed-off-by: Ran Benita <ran234@gmail.com>
2012-03-27Mention xkb_state_new can return NULLRan Benita1-1/+2
in the header comments. Signed-off-by: Ran Benita <ran234@gmail.com>
2012-03-27Move doxygen comment before enum itemGuillem Jover1-7/+7
Signed-off-by: Guillem Jover <guillem@hadrons.org>
2012-03-27Remove internal API from xkbcommon.hDaniel Stone1-342/+51
And move it to XKBcomminint.h. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-27Remove hardcoded legacy modifier masksDaniel Stone1-11/+0
Use the xkb_state_mod_* and xkb_map_mod_* API instead. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-27Remove unused changes structsDaniel Stone1-63/+0
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-27Remove unused members of xkb_stateDaniel Stone1-24/+9
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-27Add enum xkb_key_direction instead of boolDaniel Stone1-1/+7
Use XKB_KEY_UP instead of 0 and XKB_KEY_DOWN instead of 1. Signed-off-by: Daniel Stone <daniel@fooishbar.org> Reported-by: Ran Benita <ran234@gmail.com>
2012-03-27Add state serialisation APIDaniel Stone1-0/+47
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-22Rename keymap allocation APIDaniel Stone1-15/+64
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-22Add LED state APIDaniel Stone1-0/+36
And also convert state.c to use the state API for mods and groups, rather than testing the state members directly. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-22Fix documentation bugs with mod/group state APIDaniel Stone1-2/+2
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-21Round out new state APIDaniel Stone1-1/+116
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-21Add new state APIDaniel Stone1-2/+41
Add new API to deal with xkb_state objects, including xkb_state_update_key, which runs the XKB action machinery internally to calculate what exactly happens to the state when a given key is pressed or released. The canonical way to deal with keys is now: struct xkb_state *state = xkb_state_new(xkb); xkb_keysym_t *syms; int num_syms; xkb_state_update_key(state, key, is_down); num_syms = xkb_key_get_syms(state, key, &syms); More state handling API, including a way to get at or ignore preserved modifiers, is on its way. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-14Convert interp action from xkb_any_action to xkb_actionDaniel Stone1-2/+2
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-14Remove component listing codeDaniel Stone1-16/+0
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-14Remove unused control membersDaniel Stone1-6/+0
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-14Add a tiny bit of documentation to xkbcommon.hDaniel Stone1-2/+2
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-13Add xkb_key_get_syms APIDaniel Stone1-8/+12
(And a slight cosmetic header reformatting.) Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-10Remove half-implemented radio groupsDaniel Stone1-2/+0
It looks like this could never have worked anyway, what with num_rg always being 0 everywhere. Remove it. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-10Remove indirect XkbCM* and XkbSM* macrosDaniel Stone1-23/+14
The XkbKey* macros used to work through XkbCM* and XkbSM* variants, for the xkb_map and xkb_server_map respectively; the latter versions weren't used by anyone at all, so just bin them and make the macros work directly. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-09Clean up xkb_keysym_to_string messageDaniel Stone1-3/+0
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-09Introduce xkb_keysym_t typeDaniel Stone1-4/+5
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-09Remove atom functions from public APIDaniel Stone1-9/+0
They're no longer needed since we don't expose any atoms in the published API anymore. As a result, we don't need to support external atom implementations either. Result! Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-09Stringify public name typesDaniel Stone1-5/+5
Ensure that all names under xkb_desc are strings, rather than atoms. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-09Remove geometry support, againDaniel Stone1-241/+0
It still parses geometry, but happily throws it away. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-03-09Remove KcCGST names from the mapDaniel Stone1-7/+0
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-02-15Raise keycode range to 32 bitsDaniel Stone1-2/+2
\o/ Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-02-15Introduce xkb_keycode_t for keycodesDaniel Stone1-29/+35
And use it consistently everywhere, including with a special long-safe internal keycode type, to ease the transition to large keycodes. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-02-15Move include path from X11/extensions/ to xkbcommon/Daniel Stone2-1/+1
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2011-12-16Add xkbc_free_keymap helperPekka Paalanen1-0/+3
Which just calls XkbcFreeKeyboard with the only arguments you'd ever pass it. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com> Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2011-01-29Rename XkbcInternAtom() to xkb_intern_atom() and exportKristian Høgsberg1-0/+3
Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
2010-12-18config: include: use nobase_include_HEADERSGaetan Nadon1-2/+1
Slightly simpler. Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-10-20Restore compatible action structsKristian Høgsberg1-61/+42
This unbreaks the X server code to serialize an xkb_desc, but loses the 32 bit vmod fields. Needs some work...
2010-10-20Use flex for generating the scanner, add support for parsing from stringsKristian Høgsberg1-0/+3
Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
2010-10-19Add struct xkb_stateKristian Høgsberg1-0/+36
2010-10-08Don't return a static buffer in public APIKristian Høgsberg1-6/+2
2010-10-08Pull in XKB_COMMON_* version of modifier masksKristian Høgsberg1-0/+12
This way we can use libxkbcommon without having to include X.h.
2010-09-03Remove libxkbfile dependency for real this timeKristian Høgsberg1-18/+0
2010-08-29Use const char * in struct xkb_rule_namesKristian Høgsberg1-5/+5
2010-08-25Pull in a few #defines from libxkbfile and lower kbproto requirementKristian Høgsberg1-0/+18
2010-07-02Drop Bool typeKristian Høgsberg1-6/+2
It's a nightmare trying to avoid double definitions.
2010-07-02Get rid of a few unused #defines in public headerKristian Høgsberg1-5/+1
2010-07-02Rename XkbRMLVOSet to struct xkb_rule_namesKristian Høgsberg1-3/+3
2010-07-02Move private structs and defines to private headersKristian Høgsberg1-128/+0
2010-07-02Rename public entry points to lowercase and underscoreKristian Høgsberg1-10/+10
2010-07-02Compile with -fvisibility=hidden when possibleKristian Høgsberg1-8/+8
2010-07-02Pull in enough structs and defines from XKBstr.h to only need XKB.hKristian Høgsberg1-122/+473
We want to move away from sharing implementation structs and let libX11 and libxkbcommon use each their own set of structs.