#include <settingsd/glib_traits.hpp>
#include <settingsd/unique_ptr.hpp>
+#include <cstring>
#include <string>
#include <algorithm>
#include <stdexcept>
gchar * fname = nullptr;
GVariant * fvalue = nullptr;
+ JsonReader * const reader = d.reader.get();
/**
* @todo Refactor this GVariant dictionary iteration code.
* the "Alternates" field is an array of
* strings.
*/
- supplied_field = json_reader_get_string_value(reader);
+ supplied_field =
+ json_reader_get_string_value(reader);
}
json_reader_end_member(reader);
- if (supplied_field == nullptr)
+ if (supplied_field == nullptr) {
+ }
}
}
"PropertyChanged",
tech_path);
}
+ }
// Register the Agent implementation responsible for handling input
// requests for secure and hidden networks.
+ agent_.object_path());
}
- GError * error = nullptr;
-
unique_ptr<GVariant> const ret(
call_method("RegisterAgent",
g_variant_new("(o)",
error));
if (ret == nullptr) {
- unique_ptr<GError> const safe_error(error);
+ safe_error.reset(error);
throw std::runtime_error(
std::string("Unable to register agent: ") + error->message);