Lines Matching full:probe

14 // When an interface passes a probe, also save its D-Bus path with it.
53 lg2::debug("Found probe match on {PATH} {IFACE}", "PATH", path, in probeDbus()
62 // default probe entry point, iterates a list looking for specific types to
63 // call specific probe functions
73 probe::probe_type_codes lastCommand = probe::probe_type_codes::FALSE_T; in doProbe()
76 for (const auto& probe : probeCommand) in doProbe() local
78 probe::FoundProbeTypeT probeType = probe::findProbeType(probe); in doProbe()
83 case probe::probe_type_codes::FALSE_T: in doProbe()
88 case probe::probe_type_codes::TRUE_T: in doProbe()
93 case probe::probe_type_codes::MATCH_ONE: in doProbe()
95 // set current value to last, this probe type shouldn't in doProbe()
101 /*case probe::probe_type_codes::AND: in doProbe()
103 case probe::probe_type_codes::OR: in doProbe()
107 case probe::probe_type_codes::FOUND: in doProbe()
109 if (!std::regex_search(probe, match, command)) in doProbe()
111 lg2::error("found probe syntax error {JSON}", "JSON", in doProbe()
112 probe); in doProbe()
132 if (!std::regex_search(probe, match, command)) in doProbe()
134 lg2::error("dbus probe syntax error {JSON}", "JSON", probe); in doProbe()
153 auto findStart = probe.find('('); in doProbe()
159 std::string probeInterface = probe.substr(0, findStart); in doProbe()
166 if (lastCommand == probe::probe_type_codes::AND) in doProbe()
170 else if (lastCommand == probe::probe_type_codes::OR) in doProbe()
180 lastCommand = probeType.value_or(probe::probe_type_codes::FALSE_T); in doProbe()
183 // probe passed, but empty device in doProbe()
201 namespace probe namespace
221 FoundProbeTypeT findProbeType(const std::string& probe) in findProbeType() argument
236 if (probe.find(probeType->first) != std::string::npos) in findProbeType()
245 } // namespace probe