| 83 | #endif |
| 84 | |
| 85 | std::vector<DBus::Object::Path> GetRegisteredModules() const |
| 86 | { |
| 87 | using namespace std::string_literals; |
| 88 | |
| 89 | try |
| 90 | { |
| 91 | GVariant *r = proxy->Call(target, "GetRegisteredModules"); |
| 92 | |
| 93 | return glib2::Value::ExtractVector<DBus::Object::Path>(r, 0); |
| 94 | } |
| 95 | catch (const DBus::Proxy::Exception &e) |
| 96 | { |
| 97 | throw Exception("Failed to retrieve registered modules: "s + e.what()); |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | std::string ProtocolLookup(const std::string &enterprise_id) const |
| 102 | { |