Commit afc5370c8638a3157f05a3cdea8452c545d1f44f

Ran Benita 2021-02-27T22:12:08

doc: add note on variants in rule names Fixes: https://github.com/xkbcommon/libxkbcommon/issues/208 Signed-off-by: Ran Benita <ran@unusedvar.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/xkbcommon/xkbcommon.h b/xkbcommon/xkbcommon.h
index 0fd0318..f52dcfa 100644
--- a/xkbcommon/xkbcommon.h
+++ b/xkbcommon/xkbcommon.h
@@ -355,6 +355,9 @@ struct xkb_rule_names {
      * A comma separated list of variants, one per layout, which may
      * modify or augment the respective layout in various ways.
      *
+     * Generally, should either be empty or have the same number of values
+     * as the number of layouts. You may use empty values as in "intl,,neo".
+     *
      * If NULL or the empty string "", and a default value is also used
      * for the layout, a default value is used.  Otherwise no variant is
      * used.