From b63664988fb8895830cb628df513a2ec07328aa5 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 3 Jun 2018 12:19:14 +0200 Subject: [PATCH] lib/dbus/Types: support DBUS_TYPE_DICT_ENTRY --- src/lib/dbus/Types.hxx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/lib/dbus/Types.hxx b/src/lib/dbus/Types.hxx index fc1db3440..f3bcae6b8 100644 --- a/src/lib/dbus/Types.hxx +++ b/src/lib/dbus/Types.hxx @@ -69,6 +69,16 @@ struct ArrayTypeTraits { typedef TemplateString::InsertBefore TypeAsString; }; +template +struct DictEntryTypeTraits { + static constexpr int TYPE = DBUS_TYPE_DICT_ENTRY; + + typedef TemplateString::Concat, + typename KeyT::TypeAsString, + typename ValueT::TypeAsString, + TemplateString::CharAsString> TypeAsString; +}; + using VariantTypeTraits = BasicTypeTraits; template