• Home
  • Raw
  • Download

Lines Matching refs:input

38 udev_seat_create(struct udev_input *input,
42 udev_seat_get_named(struct udev_input *input, const char *seat_name);
78 struct udev_input *input, in device_added() argument
90 if (!streq(device_seat, input->seat_id)) in device_added()
105 seat = udev_seat_get_named(input, seat_name); in device_added()
117 seat = udev_seat_create(input, device_seat, seat_name); in device_added()
126 log_info(&input->base, in device_added()
132 log_info(&input->base, in device_added()
148 device_removed(struct udev_device *udev_device, struct udev_input *input) in device_removed() argument
155 list_for_each(seat, &input->base.seat_list, base.link) { in device_removed()
168 udev_input_add_devices(struct udev_input *input, struct udev *udev) in udev_input_add_devices() argument
193 log_debug(&input->base, in udev_input_add_devices()
201 if (device_added(device, input, NULL) < 0) { in udev_input_add_devices()
217 struct udev_input *input = data; in evdev_udev_handler() local
221 udev_device = udev_monitor_receive_device(input->udev_monitor); in evdev_udev_handler()
233 device_added(udev_device, input, NULL); in evdev_udev_handler()
235 device_removed(udev_device, input); in evdev_udev_handler()
242 udev_input_remove_devices(struct udev_input *input) in udev_input_remove_devices() argument
247 list_for_each_safe(seat, tmp, &input->base.seat_list, base.link) { in udev_input_remove_devices()
260 struct udev_input *input = (struct udev_input*)libinput; in udev_input_disable() local
262 if (!input->udev_monitor) in udev_input_disable()
265 udev_monitor_unref(input->udev_monitor); in udev_input_disable()
266 input->udev_monitor = NULL; in udev_input_disable()
267 libinput_remove_source(&input->base, input->udev_monitor_source); in udev_input_disable()
268 input->udev_monitor_source = NULL; in udev_input_disable()
270 udev_input_remove_devices(input); in udev_input_disable()
276 struct udev_input *input = (struct udev_input*)libinput; in udev_input_enable() local
277 struct udev *udev = input->udev; in udev_input_enable()
280 if (input->udev_monitor || !input->seat_id) in udev_input_enable()
283 input->udev_monitor = udev_monitor_new_from_netlink(udev, "udev"); in udev_input_enable()
284 if (!input->udev_monitor) { in udev_input_enable()
290 udev_monitor_filter_add_match_subsystem_devtype(input->udev_monitor, in udev_input_enable()
293 if (udev_monitor_enable_receiving(input->udev_monitor)) { in udev_input_enable()
295 udev_monitor_unref(input->udev_monitor); in udev_input_enable()
296 input->udev_monitor = NULL; in udev_input_enable()
300 fd = udev_monitor_get_fd(input->udev_monitor); in udev_input_enable()
301 input->udev_monitor_source = libinput_add_fd(&input->base, in udev_input_enable()
304 input); in udev_input_enable()
305 if (!input->udev_monitor_source) { in udev_input_enable()
306 udev_monitor_unref(input->udev_monitor); in udev_input_enable()
307 input->udev_monitor = NULL; in udev_input_enable()
311 if (udev_input_add_devices(input, udev) < 0) { in udev_input_enable()
320 udev_input_destroy(struct libinput *input) in udev_input_destroy() argument
322 struct udev_input *udev_input = (struct udev_input*)input; in udev_input_destroy()
324 if (input == NULL) in udev_input_destroy()
339 udev_seat_create(struct udev_input *input, in udev_seat_create() argument
347 libinput_seat_init(&seat->base, &input->base, in udev_seat_create()
355 udev_seat_get_named(struct udev_input *input, const char *seat_name) in udev_seat_get_named() argument
359 list_for_each(seat, &input->base.seat_list, base.link) { in udev_seat_get_named()
372 struct udev_input *input = (struct udev_input *)libinput; in udev_device_change_seat() local
378 device_removed(udev_device, input); in udev_device_change_seat()
379 rc = device_added(udev_device, input, seat_name); in udev_device_change_seat()
397 struct udev_input *input; in libinput_udev_create_context() local
402 input = zalloc(sizeof *input); in libinput_udev_create_context()
404 if (libinput_init(&input->base, interface, in libinput_udev_create_context()
406 libinput_unref(&input->base); in libinput_udev_create_context()
407 free(input); in libinput_udev_create_context()
411 input->udev = udev_ref(udev); in libinput_udev_create_context()
413 return &input->base; in libinput_udev_create_context()
420 struct udev_input *input = (struct udev_input*)libinput; in libinput_udev_assign_seat() local
436 if (input->seat_id != NULL) in libinput_udev_assign_seat()
446 input->seat_id = safe_strdup(seat_id); in libinput_udev_assign_seat()
448 if (udev_input_enable(&input->base) < 0) in libinput_udev_assign_seat()