if (!strcmp(name, "Devices")) {
char* path;
- GVariantIter iter;
+ GVariantIter *iter;
g_variant_get(value, "ao", &iter);
- while (g_variant_iter_loop(&iter, "o", &path)) {
+ while (g_variant_iter_loop(iter, "o", &path)) {
g_dbus_proxy_new_for_bus(G_BUS_TYPE_SYSTEM, G_DBUS_PROXY_FLAGS_NONE,
NULL,
/* GDBusInterfaceInfo */
OnDeviceProxyCreatedThunk, data);
}
- g_variant_iter_free(&iter);
+ g_variant_iter_free(iter);
} else {
picojson::value::object property_updated;
property_updated["cmd"] = picojson::value("AdapterUpdated");