MCPcopy Create free account
hub / github.com/Alexays/Waybar / getStringProperty

Function getStringProperty

src/modules/bluetooth.cpp:64–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64auto getStringProperty(GDBusProxy* proxy, const char* property_name) -> std::string {
65 auto property_value = getOptionalStringProperty(proxy, property_name);
66 if (!property_value.has_value()) {
67 spdlog::error("getStringProperty() failed: doesn't have property {}", property_name);
68 }
69 return property_value.value_or("");
70}
71
72auto getUcharProperty(GDBusProxy* proxy, const char* property_name) -> unsigned char {
73 auto gvar = g_dbus_proxy_get_cached_property(proxy, property_name);

Callers 2

getDevicePropertiesMethod · 0.85

Calls 1

Tested by

no test coverage detected