libevdevxx 0.5.3
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 [[nodiscard]]
28 std::string
30
31
32 std::ostream&
33 operator <<(std::ostream& out,
34 ReadStatus st);
35
36} // namespace evdev
37
38#endif
The namespace of libevdevxx.
Definition AbsInfo.hpp:18
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