Lines Matching full:probe
16 // When an interface passes a probe, also save its D-Bus path with it.
55 lg2::debug("Found probe match on {PATH} {IFACE}", "PATH", path, in probeDbus()
64 // default probe entry point, iterates a list looking for specific types to
65 // call specific probe functions
75 probe::probe_type_codes lastCommand = probe::probe_type_codes::FALSE_T; in doProbe()
78 for (const auto& probe : probeCommand) in doProbe() local
80 probe::FoundProbeTypeT probeType = probe::findProbeType(probe); in doProbe()
85 case probe::probe_type_codes::FALSE_T: in doProbe()
90 case probe::probe_type_codes::TRUE_T: in doProbe()
95 case probe::probe_type_codes::MATCH_ONE: in doProbe()
97 // set current value to last, this probe type shouldn't in doProbe()
103 /*case probe::probe_type_codes::AND: in doProbe()
105 case probe::probe_type_codes::OR: in doProbe()
109 case probe::probe_type_codes::FOUND: in doProbe()
111 if (!std::regex_search(probe, match, command)) in doProbe()
114 << "found probe syntax error " << probe << "\n"; in doProbe()
133 if (!std::regex_search(probe, match, command)) in doProbe()
135 std::cerr << "dbus probe syntax error " << probe << "\n"; in doProbe()
152 auto findStart = probe.find('('); in doProbe()
158 std::string probeInterface = probe.substr(0, findStart); in doProbe()
165 if (lastCommand == probe::probe_type_codes::AND) in doProbe()
169 else if (lastCommand == probe::probe_type_codes::OR) in doProbe()
179 lastCommand = probeType.value_or(probe::probe_type_codes::FALSE_T); in doProbe()
182 // probe passed, but empty device in doProbe()
200 namespace probe namespace
220 FoundProbeTypeT findProbeType(const std::string& probe) in findProbeType() argument
236 if (probe.find(probeType->first) != std::string::npos) in findProbeType()
245 } // namespace probe