diff options
author | Lennart Poettering <lennart@poettering.net> | 2006-01-10 17:51:06 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2006-01-10 17:51:06 +0000 |
commit | f7a99e90470526bb28cc0c225f96490110094aed (patch) | |
tree | cbcc4f2df6d66e180fd65ee50488545786d094f1 /polyp/module-mmkbd-evdev.c | |
parent | 80ae72ce45dbc23ddc360749924110dcc752491e (diff) |
Merge Pierre's changes
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@445 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/module-mmkbd-evdev.c')
-rw-r--r-- | polyp/module-mmkbd-evdev.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/polyp/module-mmkbd-evdev.c b/polyp/module-mmkbd-evdev.c index 758aaae5..5368af50 100644 --- a/polyp/module-mmkbd-evdev.c +++ b/polyp/module-mmkbd-evdev.c @@ -49,6 +49,17 @@ PA_MODULE_USAGE("device=<evdev device> sink=<sink name>") #define DEFAULT_DEVICE "/dev/input/event0" +/* + * This isn't defined in older kernel headers and there is no way of + * detecting it. + */ +struct _input_id { + __u16 bustype; + __u16 vendor; + __u16 product; + __u16 version; +}; + static const char* const valid_modargs[] = { "device", "sink", @@ -136,7 +147,7 @@ int pa__init(struct pa_core *c, struct pa_module*m) { struct pa_modargs *ma = NULL; struct userdata *u; int version; - struct input_id input_id; + struct _input_id input_id; char name[256]; uint8_t evtype_bitmask[EV_MAX/8 + 1]; assert(c && m); |