libevdevxx 0.5.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) 2025 Daniel K. O.
5 * SPDX-License-Identifier: MIT
6 */
7
8#ifndef LIBEVDEVXX_READ_STATUS_HPP
9#define LIBEVDEVXX_READ_STATUS_HPP
10
11#include <cerrno>
12#include <iosfwd>
13#include <string>
14
15#include <libevdev/libevdev.h>
16
17
18namespace evdev {
19
20 enum ReadStatus : int {
21 success = LIBEVDEV_READ_STATUS_SUCCESS,
22 dropped = LIBEVDEV_READ_STATUS_SYNC,
23 again = -EAGAIN
24 };
25
26
27 std::string
29
30
31 int
33
34
35 std::ostream&
36 operator <<(std::ostream& out,
37 ReadStatus st);
38
39} // namespace evdev
40
41#endif
The namespace of libevdevxx.
Definition AbsInfo.hpp:18
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:20
@ dropped
Definition ReadStatus.hpp:22
@ again
Definition ReadStatus.hpp:23
@ success
Definition ReadStatus.hpp:21