Restore the start menu shortcut as a proper launcher for the UI and service
This commit is contained in:
15
src/main.h
15
src/main.h
@@ -40,6 +40,8 @@ int
|
||||
write_file(const char *path, const std::string_view &contents);
|
||||
std::uint16_t
|
||||
map_port(int port);
|
||||
void
|
||||
launch_ui();
|
||||
|
||||
// namespaces
|
||||
namespace mail {
|
||||
@@ -73,4 +75,17 @@ namespace lifetime {
|
||||
get_argv();
|
||||
} // namespace lifetime
|
||||
|
||||
#ifdef _WIN32
|
||||
namespace service_ctrl {
|
||||
bool
|
||||
is_service_running();
|
||||
|
||||
bool
|
||||
start_service();
|
||||
|
||||
bool
|
||||
wait_for_ui_ready();
|
||||
} // namespace service_ctrl
|
||||
#endif
|
||||
|
||||
#endif // SUNSHINE_MAIN_H
|
||||
|
||||
Reference in New Issue
Block a user