summaryrefslogtreecommitdiff
path: root/xkbcommon
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2013-03-01 23:47:59 -0800
committerDaniel Stone <daniel@fooishbar.org>2013-03-19 10:54:23 +0000
commit40c46ecd5b3fdb1d92c7b1745b374184509311cd (patch)
tree89fbaaba5d91402d58cc3ce2c4ece88fee13b90f /xkbcommon
parent22ba1fa1a63ba230a8435c50571e7b759d7426ed (diff)
Allow NULL rmlvo for xkb_keymap_new_from_names
Previously we allowed you to pass a names struct with five NULL members, but not just pass NULL for the struct itself. This was pretty dumb. :( Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'xkbcommon')
-rw-r--r--xkbcommon/xkbcommon.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/xkbcommon/xkbcommon.h b/xkbcommon/xkbcommon.h
index cdc021b..ad758b8 100644
--- a/xkbcommon/xkbcommon.h
+++ b/xkbcommon/xkbcommon.h
@@ -681,7 +681,9 @@ enum xkb_keymap_compile_flags {
* keymaps.
*
* @param context The context in which to create the keymap.
- * @param names The RMLVO names to use.
+ * @param names The RMLVO names to use. In xkbcommon versions prior
+ * to 0.2.1, this field must be non-NULL. In later
+ * versions, passing NULL will use the default keymap.
* @param flags Optional flags for the keymap, or 0.
*
* @returns A keymap compiled according to the RMLVO names, or NULL if