Sunshine latest
Self-hosted game stream host for Moonlight.
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#ifdef _WIN32
22 // Declare global singleton used for NVIDIA control panel modifications
24
29#endif
30
34namespace mail {
35#define MAIL(x) \
36 constexpr auto x = std::string_view { \
37 #x \
38 }
39
43 extern safe::mail_t man;
44
45 // Global mail
46 MAIL(shutdown);
47 MAIL(broadcast_shutdown);
48 MAIL(video_packets);
49 MAIL(audio_packets);
50 MAIL(switch_display);
51
52 // Local mail
53 MAIL(touch_port);
54 MAIL(idr);
55 MAIL(invalidate_ref_frames);
56 MAIL(gamepad_feedback);
57 MAIL(hdr);
58#undef MAIL
59
60} // namespace mail
Definition nvprefs_interface.h:12
Definition thread_pool.h:17
Declarations for entry handling functions.
thread_pool_util::ThreadPool task_pool
A thread pool for processing tasks.
Definition globals.cpp:9
nvprefs::nvprefs_interface nvprefs_instance
A global singleton used for NVIDIA control panel modifications.
Definition globals.cpp:13
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:34
safe::mail_t man
A process-wide communication mechanism.
Definition globals.cpp:8
Declarations for nvidia preferences interface.
Declarations for the thread pool system.