From 31afd2aaaeb76a12e232eab0fb6a550b73948737 Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Mon, 22 Jun 2020 10:50:15 +0200 Subject: Make struct cfg global and make the corresponding changes throughout --- systemd.h | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) (limited to 'systemd.h') diff --git a/systemd.h b/systemd.h index ccf63dd..d455044 100644 --- a/systemd.h +++ b/systemd.h @@ -1,22 +1,14 @@ #ifndef foosystemdhfoo #define foosystemdhfoo -char *systemd_service_object_path(struct cfg *cfg, const char *service); +char *systemd_object_path(const char *service); -void systemd_delete(struct cfg *cfg); +void systemd_delete(); -bool systemd_service_running(struct cfg *cfg, struct server *server); +bool systemd_service_running(struct server *server); -bool systemd_service_stop(struct cfg *cfg, struct server *server); +bool systemd_service_stop(struct server *server); -bool systemd_service_start(struct cfg *cfg, struct server *server); - -/* -void idle_refdump(struct idle *idle); - -void idle_delete(struct cfg *cfg, struct server *server); - -void idle_init(struct cfg *cfg, struct server *server); -*/ +bool systemd_service_start(struct server *server); #endif -- cgit v1.2.3