35#ifndef _DCC_UPDATELOOP_HXX_
36#define _DCC_UPDATELOOP_HXX_
52void packet_processor_notify_update(PacketSource *source,
unsigned code);
64bool packet_processor_add_refresh_source(
65 PacketSource *source,
unsigned priority = 0);
68void packet_processor_remove_refresh_source(PacketSource *source);
81 virtual void notify_update(
PacketSource *source,
unsigned code) = 0;
82 virtual bool add_refresh_source(
84 virtual void remove_refresh_source(
PacketSource *source) = 0;
Abstract class for streams of DCC packets.
Base class for implementing update loops.
static constexpr unsigned EXCLUSIVE_MIN_PRIORITY
Priority value for exclusive sources.
static constexpr unsigned ESTOP_PRIORITY
Priority value to be used for global emergency stop packet source.
static constexpr unsigned PROGRAMMING_PRIORITY
Priority value to be used for service mode programming source.