include(FindPkgConfig)
set(PROJECT_NAME "automotive-message-broker")
-set(PROJECT_VERSION "0.10.9")
+set(PROJECT_VERSION "0.10.8")
set(PROJECT_CODENAME "challenger")
add_definitions(-DPROJECT_VERSION="${PROJECT_VERSION}")
About the Git Tree:
master is expected to be unstable and may not even compile. If you want something more stable, checkout one of the
-release branches (ie, 0.9.0, 0.10.0, etc)
+release branches (ie, 0.9.0, 0.10, etc)
To build:
g_dbus_connection_emit_signal(mConnection, NULL, mObjectPath.c_str(), mInterfaceName.c_str(), string(property->name() + "Changed").c_str(), tuple_variant, &error);
- g_free(params);
- g_variant_unref(val);
-
if(error)
{
DebugOut(DebugOut::Error)<<error->message<<endl;
}
+
+ /// Send PropertiesChanged signal
+
+ GVariantBuilder builder;
+ g_variant_builder_init(&builder, G_VARIANT_TYPE_DICTIONARY);
+
+ g_variant_builder_add(&builder, "{sv}", property->name().c_str(), val);
+
+ GError *error2 = NULL;
+
+ g_dbus_connection_emit_signal(mConnection, NULL, mObjectPath.c_str(), "org.freedesktop.DBus.Properties", "PropertiesChanged", g_variant_new("(sa{sv}as)",
+ mInterfaceName.c_str(),
+ &builder, NULL), &error2);
+ g_variant_unref(val);
+
}
std::list<AbstractDBusInterface *> AbstractDBusInterface::getObjectsForProperty(string property, Zone::Type zone)