Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
UpdateLoop.cxx
1
35#include "dcc/UpdateLoop.hxx"
36#include "utils/Singleton.hxx"
37
38namespace dcc {
39
40void packet_processor_notify_update(PacketSource* source, unsigned code) {
41 Singleton<UpdateLoopBase>::instance()->notify_update(source, code);
42}
43
45bool packet_processor_add_refresh_source(
46 PacketSource *source, unsigned priority)
47{
48 return Singleton<UpdateLoopBase>::instance()->add_refresh_source(
49 source, priority);
50}
51
53void packet_processor_remove_refresh_source(PacketSource* source) {
54 Singleton<UpdateLoopBase>::instance()->remove_refresh_source(source);
55}
56
57UpdateLoopBase::~UpdateLoopBase() {}
58
59}
60
61//DEFINE_SINGLETON_INSTANCE(dcc::UpdateLoopBase);
static T * instance()
Definition Singleton.hxx:77