diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2014-01-29 11:16:51 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2014-02-04 10:53:59 +1000 |
commit | 2fc38d1e299587d25ca8225051e0ea9403164b15 (patch) | |
tree | 7b5dcf7a2d6b54bd3ad5e2e97456b153bde9a587 /include | |
parent | 6307d60dd592f4b438f880d02bde9fd8d50ae264 (diff) | |
download | xserver-2fc38d1e299587d25ca8225051e0ea9403164b15.tar.gz |
xkb: add a call to init an XkbRMLVOSet from const chars
Just forcing everything to const char* is not helpful, compiler warnings are
supposed to warn about broken code. Forcing everything to const when it
clearly isn't less than ideal.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/xkbrules.h | 10 | ||||
-rw-r--r-- | include/xkbsrv.h | 8 |
2 files changed, 13 insertions, 5 deletions
diff --git a/include/xkbrules.h b/include/xkbrules.h index 956eade0b..ab5b4b266 100644 --- a/include/xkbrules.h +++ b/include/xkbrules.h @@ -30,11 +30,11 @@ /***====================================================================***/ typedef struct _XkbRMLVOSet { - const char *rules; - const char *model; - const char *layout; - const char *variant; - const char *options; + char *rules; + char *model; + char *layout; + char *variant; + char *options; } XkbRMLVOSet; typedef struct _XkbRF_VarDefs { diff --git a/include/xkbsrv.h b/include/xkbsrv.h index 0b9ca06d9..e79979927 100644 --- a/include/xkbsrv.h +++ b/include/xkbsrv.h @@ -738,6 +738,14 @@ extern _X_EXPORT void XkbClearAllLatchesAndLocks(DeviceIntPtr /* dev */ , XkbEventCausePtr /* cause */ ); +extern _X_EXPORT void XkbInitRules(XkbRMLVOSet * /* rmlvo */, + const char * /* rules */, + const char * /* model */, + const char * /* layout */, + const char * /* variant */, + const char * /* options */ + ) ; + extern _X_EXPORT void XkbGetRulesDflts(XkbRMLVOSet * /* rmlvo */ ); |