diff options
Diffstat (limited to 'src/lib/dbus/UDisks2.hxx')
-rw-r--r-- | src/lib/dbus/UDisks2.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/dbus/UDisks2.hxx b/src/lib/dbus/UDisks2.hxx index 23d7fe599..b0a068fd1 100644 --- a/src/lib/dbus/UDisks2.hxx +++ b/src/lib/dbus/UDisks2.hxx @@ -21,6 +21,7 @@ #define UDISKS2_HXX #include <string> +#include <functional> #define UDISKS2_PATH "/org/freedesktop/UDisks2" #define UDISKS2_INTERFACE "org.freedesktop.UDisks2" @@ -57,6 +58,14 @@ struct Object { void ParseObject(Object &o, ODBus::ReadMessageIter &&i) noexcept; +/** + * Parse objects from an array/dictionary and invoke the callback for + * each. + */ +void +ParseObjects(ODBus::ReadMessageIter &&i, + std::function<void(Object &&o)> callback); + } // namespace UDisks2 #endif |