source: mainline/uspace/lib/c/include/io/cons_event.h@ cd1e3fc0

Last change on this file since cd1e3fc0 was d7f7a4a, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 3 years ago

Replace some license headers with SPDX identifier

Headers are replaced using tools/transorm-copyright.sh only
when it can be matched verbatim with the license header used
throughout most of the codebase.

  • Property mode set to 100644
File size: 597 bytes
Line 
1/*
2 * SPDX-FileCopyrightText: 2013 Jiri Svoboda
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7/** @addtogroup libc
8 * @{
9 */
10/** @file
11 */
12
13#ifndef _LIBC_IO_CONS_EVENT_H_
14#define _LIBC_IO_CONS_EVENT_H_
15
16#include <adt/list.h>
17#include <io/kbd_event.h>
18#include <io/pos_event.h>
19
20typedef enum {
21 /** Key event */
22 CEV_KEY,
23 /** Position event */
24 CEV_POS
25} cons_event_type_t;
26
27/** Console event structure. */
28typedef struct {
29 /** List handle */
30 link_t link;
31
32 /** Event type */
33 cons_event_type_t type;
34
35 union {
36 kbd_event_t key;
37 pos_event_t pos;
38 } ev;
39} cons_event_t;
40
41#endif
42
43/** @}
44 */
Note: See TracBrowser for help on using the repository browser.