MCPcopy Create free account
hub / github.com/OpenVPN/openvpn3-linux / AttachedService

Method AttachedService

src/log/log-service.cpp:64–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62
63
64AttachedService::AttachedService(DBus::Connection::Ptr conn,
65 DBus::Object::Manager::Ptr obj_mgr,
66 LogService::Logger::Ptr logr,
67 DBus::Signals::SubscriptionManager::Ptr submgr,
68 LogTag::Ptr tag,
69 const std::string &busname,
70 const std::string &interface)
71 : logtag(tag),
72 src_target(DBus::Signals::Target::Create(busname, "", interface)),
73 connection(conn), object_mgr(obj_mgr), log(logr)
74{
75 log_handler = Signals::ReceiveLog::Create(
76 submgr,
77 src_target,
78 [&](Events::Log logevent)
79 {
80 process_log_event(logevent);
81 });
82
83 status_handler = Signals::ReceiveStatusChange::Create(
84 submgr,
85 src_target,
86 [&](const std::string &sender,
87 const DBus::Object::Path &path,
88 const std::string &interface,
89 Events::Status statusev)
90 {
91 process_statuschg_event(sender, path, interface, statusev);
92 });
93}
94
95
96AttachedService::~AttachedService() noexcept

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected