lib/dbus/ReadIter: add method GetBool()

This commit is contained in:
Max Kellermann 2023-09-12 09:53:57 +02:00
parent 474b6610fa
commit 481c1b6f2e
1 changed files with 6 additions and 0 deletions

View File

@ -41,6 +41,12 @@ public:
dbus_message_iter_get_basic(&iter, value);
}
bool GetBool() noexcept {
dbus_bool_t value;
GetBasic(&value);
return value;
}
const char *GetString() noexcept {
const char *value;
GetBasic(&value);