From 8722c51306ed0718d51264d280f6a7734738c381 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 5 Jun 2023 23:33:47 +0200 Subject: [PATCH] lib/dbus/AppendIter: add Append(int32_t), Append(int64_t) --- src/lib/dbus/AppendIter.hxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/lib/dbus/AppendIter.hxx b/src/lib/dbus/AppendIter.hxx index 2f2fcb523..19c173b08 100644 --- a/src/lib/dbus/AppendIter.hxx +++ b/src/lib/dbus/AppendIter.hxx @@ -50,6 +50,14 @@ public: 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, const void *value, int n_elements) {