aboutsummaryrefslogtreecommitdiff
path: root/src/zenutil/include
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2025-01-10 10:11:04 +0100
committerDan Engelbrecht <[email protected]>2025-01-10 10:11:04 +0100
commit9c101d0bdd3c3ada0d263dd57116931af9bcad88 (patch)
treef7bc41a96338902323d076fdb0225cac2e428ac0 /src/zenutil/include
parentget home folder (diff)
downloadzen-9c101d0bdd3c3ada0d263dd57116931af9bcad88.tar.xz
zen-9c101d0bdd3c3ada0d263dd57116931af9bcad88.zip
remove ServiceLevel
Diffstat (limited to 'src/zenutil/include')
-rw-r--r--src/zenutil/include/zenutil/service.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/zenutil/include/zenutil/service.h b/src/zenutil/include/zenutil/service.h
index d914c31a0..53c3483aa 100644
--- a/src/zenutil/include/zenutil/service.h
+++ b/src/zenutil/include/zenutil/service.h
@@ -16,7 +16,6 @@ enum class ServiceLevel
struct ServiceSpec
{
- ServiceLevel ServiceLevel = ServiceLevel::CurrentUser;
std::filesystem::path ExecutablePath;
std::string CommandLineOptions;
std::string DisplayName;
@@ -35,9 +34,6 @@ enum class ServiceStatus
Resuming
};
-std::string_view ToString(ServiceLevel Level);
-std::optional<ServiceLevel> FromString(const std::string& Level);
-
struct ServiceInfo
{
ServiceStatus Status;
@@ -47,8 +43,9 @@ struct ServiceInfo
std::string_view ToString(ServiceStatus Status);
std::error_code InstallService(std::string_view ServiceName, const ServiceSpec& Spec);
-std::error_code UninstallService(std::string_view ServiceName, ServiceLevel Level);
+std::error_code UninstallService(std::string_view ServiceName);
std::error_code QueryInstalledService(std::string_view ServiceName, ServiceInfo& OutInfo);
-std::error_code StartService(std::string_view ServiceName, ServiceLevel Level);
-std::error_code StopService(std::string_view ServiceName, ServiceLevel Level);
+std::error_code StartService(std::string_view ServiceName);
+std::error_code StopService(std::string_view ServiceName);
+
} // namespace zen