From: Davin McCall Date: Sun, 31 Dec 2017 20:02:41 +0000 (+0000) Subject: Make do_start/do_stop protected instead of public. X-Git-Tag: v0.07~17 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3b1d755efdf118e69618ace3b71537d4736e9aaa;p=oweals%2Fdinit.git Make do_start/do_stop protected instead of public. --- diff --git a/src/service.h b/src/service.h index b9f6c6a..4ecaf67 100644 --- a/src/service.h +++ b/src/service.h @@ -444,6 +444,12 @@ class service_record // Started state reached bool process_started() noexcept; + // Called on transition of desired state from stopped to started (or unpinned stop) + void do_start() noexcept; + + // Called on transition of desired state from started to stopped (or unpinned start) + void do_stop() noexcept; + public: service_record(service_set *set, string name) @@ -492,13 +498,7 @@ class service_record void execute_transition() noexcept; void do_propagation() noexcept; - - // Called on transition of desired state from stopped to started (or unpinned stop) - void do_start() noexcept; - // Called on transition of desired state from started to stopped (or unpinned start) - void do_stop() noexcept; - // Console is available. void acquired_console() noexcept;