mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-21 20:26:45 +00:00
input: switch InputOption to use XF86OptionRec storage.
Use the same struct for both InputOption and XF86OptionRec so we don't need to convert to and fro the two in the config backends. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Dan Nicholson <dbn.lists@gmail.com> Reviewed-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
parent
16ac78a53c
commit
c39c8d3428
10 changed files with 59 additions and 43 deletions
|
|
@ -68,6 +68,7 @@
|
|||
#include "exglobals.h"
|
||||
#include "eventstr.h"
|
||||
#include "inpututils.h"
|
||||
#include "optionstr.h"
|
||||
|
||||
#include <string.h> /* InputClassMatches */
|
||||
#ifdef HAVE_FNMATCH_H
|
||||
|
|
@ -908,7 +909,7 @@ NewInputDeviceRequest (InputOption *options, InputAttributes *attrs,
|
|||
if (!pInfo)
|
||||
return BadAlloc;
|
||||
|
||||
nt_list_for_each_entry(option, options, next) {
|
||||
nt_list_for_each_entry(option, options, list.next) {
|
||||
if (strcasecmp(input_option_get_key(option), "driver") == 0) {
|
||||
if (pInfo->driver) {
|
||||
rval = BadRequest;
|
||||
|
|
@ -946,7 +947,7 @@ NewInputDeviceRequest (InputOption *options, InputAttributes *attrs,
|
|||
}
|
||||
}
|
||||
|
||||
nt_list_for_each_entry(option, options, next) {
|
||||
nt_list_for_each_entry(option, options, list.next) {
|
||||
/* Copy option key/value strings from the provided list */
|
||||
pInfo->options = xf86AddNewOption(pInfo->options,
|
||||
input_option_get_key(option),
|
||||
|
|
|
|||
Loading…
Reference in a new issue