From 3b1d755efdf118e69618ace3b71537d4736e9aaa Mon Sep 17 00:00:00 2001 From: Davin McCall Date: Sun, 31 Dec 2017 20:02:41 +0000 Subject: [PATCH] Make do_start/do_stop protected instead of public. --- src/service.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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; -- 2.25.1