service-listener.h 425 B

123456789101112131415161718
  1. #ifndef SERVICE_LISTENER_H
  2. #define SERVICE_LISTENER_H
  3. #include "service-constants.h"
  4. class service_record;
  5. // Interface for listening to services
  6. class service_listener
  7. {
  8. public:
  9. // An event occurred on the service being observed.
  10. // Listeners must not be added or removed during event notification.
  11. virtual void service_event(service_record * service, service_event_t event) noexcept = 0;
  12. };
  13. #endif