| 99 | } |
| 100 | |
| 101 | std::string ProtocolLookup(const std::string &enterprise_id) const |
| 102 | { |
| 103 | using namespace std::string_literals; |
| 104 | |
| 105 | try |
| 106 | { |
| 107 | GVariant *r = proxy->Call(target, |
| 108 | "ProtocolLookup", |
| 109 | glib2::Value::CreateTupleWrapped(enterprise_id)); |
| 110 | |
| 111 | return glib2::Value::Extract<std::string>(r, 0); |
| 112 | } |
| 113 | catch (const DBus::Proxy::Exception &e) |
| 114 | { |
| 115 | throw Exception("Error during protocol lookup: "s + e.what()); |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | std::string RunChecks(const std::string &protocol, |
| 120 | const std::string &request) const |