Stéphane Marchesin | ae37e6c | 2014-08-08 18:19:40 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2014 The Chromium OS Authors. All rights reserved. |
| 3 | * Use of this source code is governed by a BSD-style license that can be |
| 4 | * found in the LICENSE file. |
| 5 | */ |
| 6 | |
| 7 | #ifndef INPUT_H |
| 8 | #define INPUT_H |
| 9 | |
| 10 | #include <linux/input.h> |
David Sodman | 8ef2006 | 2015-01-06 09:23:40 -0800 | [diff] [blame] | 11 | |
David Sodman | bf3f284 | 2014-11-12 08:26:58 -0800 | [diff] [blame] | 12 | #include "term.h" |
Stéphane Marchesin | ae37e6c | 2014-08-08 18:19:40 -0700 | [diff] [blame] | 13 | |
Stéphane Marchesin | ae37e6c | 2014-08-08 18:19:40 -0700 | [diff] [blame] | 14 | int input_init(); |
| 15 | void input_close(); |
Dominik Behr | d711267 | 2016-01-20 16:59:34 -0800 | [diff] [blame] | 16 | void input_add_fds(fd_set* read_set, fd_set* exception_set, int *maxfd); |
Dominik Behr | 44e07e6 | 2016-01-13 19:43:57 -0800 | [diff] [blame] | 17 | void input_dispatch_io(fd_set* read_set, fd_set* exception_set); |
Dominik Behr | 5239cca | 2016-01-21 18:22:04 -0800 | [diff] [blame] | 18 | int input_add(const char* devname); |
| 19 | void input_remove(const char* devname); |
Dominik Behr | d2cc4d2 | 2016-01-29 17:31:52 -0800 | [diff] [blame] | 20 | int input_check_lid_state(void); |
Stéphane Marchesin | ae37e6c | 2014-08-08 18:19:40 -0700 | [diff] [blame] | 21 | |
| 22 | #endif |