changed time and sequence types from struct (*) to *
authorKevron Rees <kevron.m.rees@intel.com>
Tue, 10 Sep 2013 17:52:08 +0000 (10:52 -0700)
committerKevron Rees <kevron.m.rees@intel.com>
Tue, 10 Sep 2013 17:54:04 +0000 (10:54 -0700)
plugins/dbus/abstractdbusinterface.cpp

index bfb6bee..cabaa53 100644 (file)
@@ -305,8 +305,8 @@ void AbstractDBusInterface::updateValue(AbstractProperty *property)
        g_variant_builder_init(&builder, G_VARIANT_TYPE_DICTIONARY);
 
        g_variant_builder_add(&builder, "{sv}", property->name().c_str(), val);
-       g_variant_builder_add(&builder, "{sv}", std::string(property->name() + "Sequence").c_str(), g_variant_new("(i)", property->sequence()));
-       g_variant_builder_add(&builder, "{sv}", "Time", g_variant_new("(d)", mTime) );
+       g_variant_builder_add(&builder, "{sv}", std::string(property->name() + "Sequence").c_str(), g_variant_new("i", property->sequence()));
+       g_variant_builder_add(&builder, "{sv}", "Time", g_variant_new("d", mTime) );
 
        GError *error2 = NULL;
 
@@ -381,7 +381,7 @@ GVariant* AbstractDBusInterface::getProperty(GDBusConnection* connection, const
                }
                double time = objectMap[objectPath]->time();
 
-               GVariant* value = g_variant_new("(d)", time);
+               GVariant* value = g_variant_new("d", time);
                return value;
        }
 
@@ -403,7 +403,7 @@ GVariant* AbstractDBusInterface::getProperty(GDBusConnection* connection, const
 
                int sequence = theProperty->sequence();
 
-               GVariant* value = g_variant_new("(i)", sequence);
+               GVariant* value = g_variant_new("i", sequence);
                return value;
        }