fixed murphy plugin get reply
authorKevron Rees <tripzero.kev@gmail.com>
Mon, 18 Mar 2013 18:12:36 +0000 (11:12 -0700)
committerKevron Rees <tripzero.kev@gmail.com>
Mon, 18 Mar 2013 18:12:36 +0000 (11:12 -0700)
CMakeLists.txt
plugins/murphyplugin/CMakeLists.txt
plugins/murphyplugin/murphysource.cpp

index f790ec2..0e3a081 100644 (file)
@@ -23,6 +23,7 @@ option(database_plugin "Database plugins" OFF)
 option(qt_bindings "AMB Qt DBus bindings" OFF)
 option(opencvlux_plugin "OpenCV Lux plugin" OFF)
 option(gpsd_plugin "gpsd location plugin" OFF)
+option(murphy_plugin "murphy policy framework plugin" OFF)
 
 if(opencvlux_plugin)
    message(STATUS "OpenCV Lux plugin enabled")
index 47b9bfd..407ab83 100644 (file)
@@ -1,3 +1,5 @@
+if(murphy_plugin)
+
 include(CheckIncludeFiles)
 include(FindPkgConfig)
 
@@ -28,3 +30,5 @@ set_target_properties(murphysourceplugin PROPERTIES PREFIX "")
 target_link_libraries(murphysourceplugin amb ${MURPHY_COMMON_LIBRARIES} -L${CMAKE_CURRENT_BINARY_DIR}/lib ${link_libraries})
 
 install(TARGETS murphysourceplugin LIBRARY DESTINATION lib/automotive-message-broker)
+
+endif(murphy_plugin)
index 3af5df1..fca92f4 100644 (file)
@@ -353,6 +353,7 @@ void MurphySource::getPropertyAsync(AsyncPropertyReply *reply)
     if (murphyProperties.find(reply->property) != murphyProperties.end()) {
         AbstractPropertyType *prop = murphyProperties[reply->property];
         reply->value = prop;
+               reply->success = true;
         reply->completed(reply);
     }
 }