libevdevxx 0.4.0
A C++ wrapper for libevdev.
Loading...
Searching...
No Matches
ReadStatus.hpp
Go to the documentation of this file.
1/*
2 * libevdevxx - a C++ wrapper for libevdev
3 *
4 * Copyright (C) 2021-2023 Daniel K. O.
5 * SPDX-License-Identifier: MIT
6 */
7
8
9#ifndef LIBEVDEVXX_READ_STATUS_HPP
10#define LIBEVDEVXX_READ_STATUS_HPP
11
12
13#include <cerrno>
14#include <iosfwd>
15#include <string>
16
17#include <libevdev/libevdev.h>
18
19
20namespace evdev {
21
22
23 enum ReadStatus : int {
24 success = LIBEVDEV_READ_STATUS_SUCCESS,
25 dropped = LIBEVDEV_READ_STATUS_SYNC,
26 again = -EAGAIN
27 };
28
29
30 std::string
32
33
34 int
36
37
38 std::ostream&
39 operator <<(std::ostream& out,
40 ReadStatus st);
41
42
43} // namespace evdev
44
45
46#endif
The namespace of libevdevxx.
Definition: AbsInfo.hpp:20
int to_errno(ReadStatus st)
std::string to_string(const AbsInfo &info)
std::ostream & operator<<(std::ostream &out, const AbsInfo &info)
ReadStatus
Definition: ReadStatus.hpp:23
@ dropped
Definition: ReadStatus.hpp:25
@ again
Definition: ReadStatus.hpp:26
@ success
Definition: ReadStatus.hpp:24