/*
* Copyright (c) 2012 Novell, Inc.
+ * Copyright (c) 2016 SUSE LLC
*
* All Rights Reserved.
*
const char* TypeInfo<dbus_uint32_t>::signature = "u";
+ const char* TypeInfo<dbus_uint64_t>::signature = "t";
const char* TypeInfo<string>::signature = "s";
}
+ Hihi&
+ operator>>(Hihi& hihi, dbus_uint64_t& data)
+ {
+ if (hihi.get_type() != DBUS_TYPE_UINT64)
+ throw MarshallingException();
+
+ dbus_message_iter_get_basic(hihi.top(), &data);
+ dbus_message_iter_next(hihi.top());
+
+ return hihi;
+ }
+
+
+ Hoho&
+ operator<<(Hoho& hoho, dbus_uint64_t data)
+ {
+ if (!dbus_message_iter_append_basic(hoho.top(), DBUS_TYPE_UINT64, &data))
+ throw FatalException();
+
+ return hoho;
+ }
+
+
Hihi&
operator>>(Hihi& hihi, time_t& data)
{
/*
* Copyright (c) 2012 Novell, Inc.
+ * Copyright (c) 2016 SUSE LLC
*
* All Rights Reserved.
*
template <typename Type> struct TypeInfo {};
template <> struct TypeInfo<dbus_uint32_t> { static const char* signature; };
+ template <> struct TypeInfo<dbus_uint64_t> { static const char* signature; };
template <> struct TypeInfo<string> { static const char* signature; };
Hihi& operator>>(Hihi& hihi, dbus_uint32_t& data);
Hoho& operator<<(Hoho& hoho, dbus_uint32_t data);
+ Hihi& operator>>(Hihi& hihi, dbus_uint64_t& data);
+ Hoho& operator<<(Hoho& hoho, dbus_uint64_t data);
+
Hihi& operator>>(Hihi& hihi, time_t& data);
Hoho& operator<<(Hoho& hoho, time_t data);