refactored publish.cpp from C code to C++ code

This commit is contained in:
loki
2021-06-26 13:32:14 +02:00
parent 62662edc8d
commit 27d4f6063f
6 changed files with 165 additions and 150 deletions
+7
View File
@@ -245,6 +245,13 @@ void gamepad(input_t &input, int nr, const gamepad_state_t &gamepad_state);
int alloc_gamepad(input_t &input, int nr);
void free_gamepad(input_t &input, int nr);
#define SERVICE_NAME "Sunshine"
#define SERVICE_TYPE "_nvstream._tcp"
namespace publish {
void start();
}
[[nodiscard]] std::unique_ptr<deinit_t> init();
} // namespace platf