Lines Matching defs:device_file
88 get_kbd_layout_type(char *device_file, int *kbd_type, int *kbd_layout)
93 if ((fd = open(device_file, O_RDONLY | O_NONBLOCK)) < 0) {
94 HAL_DEBUG(("Cannot open %s: %s", device_file, strerror(errno)));
102 if (strstr(device_file, "hid") != NULL) {
111 device_file, strerror(errno)));
116 device_file, strerror(errno)));
280 char *device_file;
291 if ((device_file = getenv("HAL_PROP_INPUT_DEVICE")) == NULL) {
308 HAL_DEBUG(("Doing probe-xkb for %s (udi=%s)", device_file, udi));
310 if (get_kbd_layout_type(device_file, &kbd_type, &kbd_layout)) {
318 if ((kbd_layout == 0) && (strstr(device_file, "hid") != NULL)) {