7 |
|
#ifndef _Display_hpp_ |
8 |
|
#define _Display_hpp_ |
9 |
|
|
10 |
< |
#include <posix.hpp> |
10 |
> |
#include <threads.hpp> |
11 |
|
#include <truck.hpp> |
12 |
|
|
13 |
|
#include <queue> |
68 |
|
inline std::string GetData() const { return std::string(reinterpret_cast<const char *>(data), length); } |
69 |
|
}; |
70 |
|
std::queue<Packet> keyActivity; |
71 |
+ |
Pthreads::Thread thread; |
72 |
|
|
73 |
|
inline Packet Communicate(Packet::Command command) { return Communicate_(command, 0, reinterpret_cast<const uint8_t *>(NULL)); } |
74 |
|
template <typename Arg0> |
121 |
|
friend std::ostream &operator<<(std::ostream &output, const Packet &packet); |
122 |
|
friend void operator<<(int fd, const Display::Packet &packet); |
123 |
|
friend void operator>>(int fd, Display::Packet &packet); |
124 |
+ |
friend void Communicate(Display *display); |
125 |
|
}; |
126 |
|
|
127 |
|
template <typename Arg0> |