Make do_start/do_stop protected instead of public.
[oweals/dinit.git] / src / service-listener.h
1 #ifndef SERVICE_LISTENER_H
2 #define SERVICE_LISTENER_H
3
4 #include "service-constants.h"
5
6 class service_record;
7
8 // Interface for listening to services
9 class service_listener
10 {
11     public:
12     
13     // An event occurred on the service being observed.
14     // Listeners must not be added or removed during event notification.
15     virtual void service_event(service_record * service, service_event_t event) noexcept = 0;
16 };
17
18 #endif