lib/dbus/AppendIter: add Append(int32_t), Append(int64_t)

This commit is contained in:
Max Kellermann 2023-06-05 23:33:47 +02:00
parent 80104eb6d5
commit 8722c51306

View File

@ -50,6 +50,14 @@ public:
return AppendBasic(DBUS_TYPE_UINT64, &value); return AppendBasic(DBUS_TYPE_UINT64, &value);
} }
AppendMessageIter &Append(const int32_t &value) {
return AppendBasic(DBUS_TYPE_INT32, &value);
}
AppendMessageIter &Append(const int64_t &value) {
return AppendBasic(DBUS_TYPE_INT64, &value);
}
AppendMessageIter &AppendFixedArray(int element_type, AppendMessageIter &AppendFixedArray(int element_type,
const void *value, const void *value,
int n_elements) { int n_elements) {