diff options
author | David Härdeman <david@hardeman.nu> | 2020-06-22 10:50:15 +0200 |
---|---|---|
committer | David Härdeman <david@hardeman.nu> | 2020-06-22 10:50:15 +0200 |
commit | 31afd2aaaeb76a12e232eab0fb6a550b73948737 (patch) | |
tree | 7125a54d09904eef6c558a682cff0a7976529fad /systemd.h | |
parent | 41dc97f5d0dbcfe4399656c9aabb597f6366ca23 (diff) |
Make struct cfg global and make the corresponding changes throughout
Diffstat (limited to 'systemd.h')
-rw-r--r-- | systemd.h | 18 |
1 files changed, 5 insertions, 13 deletions
@@ -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 |