Hermes 0.7.0
Linux game streaming host
Loading...
Searching...
No Matches
globals.h
Go to the documentation of this file.
1
5#pragma once
6
7// local includes
8#include "entry_handler.h"
9#include "thread_pool.h"
10
15
19extern bool display_cursor;
20
21
25namespace mail {
26#define MAIL(x) \
27 constexpr auto x = std::string_view { \
28 #x \
29 }
30
34 extern safe::mail_t man;
35
36 // Global mail
37 MAIL(shutdown);
38 MAIL(broadcast_shutdown);
39 MAIL(video_packets);
40 MAIL(audio_packets);
41 MAIL(switch_display);
42
43 // Local mail
44 MAIL(touch_port);
45 MAIL(idr);
46 MAIL(invalidate_ref_frames);
47 MAIL(gamepad_feedback);
48 MAIL(hdr);
49#undef MAIL
50
51} // namespace mail
Declarations for entry handling functions.
thread_pool_util::ThreadPool task_pool
A thread pool for processing tasks.
Definition globals.cpp:9
bool display_cursor
A boolean flag to indicate whether the cursor should be displayed.
Definition globals.cpp:10
Handles process-wide communication.
Definition globals.h:25
safe::mail_t man
A process-wide communication mechanism.
Definition globals.cpp:8
Declarations for the thread pool system.