[examples] - renamed example inputs so they can be better handled by mime type
authorKevron Rees <kevron.m.rees@intel.com>
Tue, 6 Jan 2015 19:01:54 +0000 (11:01 -0800)
committerKevron Rees <kevron.m.rees@intel.com>
Tue, 6 Jan 2015 19:01:54 +0000 (11:01 -0800)
16 files changed:
examples/CMakeLists.txt
examples/bluemonkey/bluemonkeyconfig.in.json [moved from examples/bluemonkey/bluemonkeyconfig.in with 100% similarity]
examples/cangenconfig.in.json [moved from examples/cangenconfig.in with 100% similarity]
examples/configwheel.in.json [moved from examples/configwheel.in with 100% similarity]
examples/databaselogging.in.json [new file with mode: 0644]
examples/databasesource.in.json [moved from examples/databasesource.in with 100% similarity]
examples/dbusconfig.in.json [moved from examples/dbusconfig.in with 100% similarity]
examples/exampleconfig.in.json [moved from examples/exampleconfig.in with 100% similarity]
examples/gpsnmea.in.json [moved from examples/gpsnmea.in with 100% similarity]
examples/obdsourceconfig.in.json [moved from examples/obdsourceconfig.in with 100% similarity]
examples/opencvdbusconfig.in.json [moved from examples/opencvdbusconfig.in with 100% similarity]
examples/opencvluxconfig.in.json [moved from examples/opencvluxconfig.in with 100% similarity]
examples/qtmainloopconfig.in.json [moved from examples/qtmainloopconfig.in with 100% similarity]
examples/testsourceconfig.in.json [moved from examples/testsourceconfig.in with 100% similarity]
examples/websocketsink2.in.json [moved from examples/websocketsink2.in with 100% similarity]
examples/websocketsource2.in.json [moved from examples/websocketsource2.in with 100% similarity]

index 54cea0b..fe01e0a 100644 (file)
@@ -1,21 +1,22 @@
 set(amb_examples configwheel databasesource dbusconfig exampleconfig
-        gpsnmea obdsourceconfig opencvluxconfig opencvdbusconfig qtmainloopconfig websocketsink2 websocketsource2
-        testsourceconfig bluemonkey/bluemonkeyconfig)
+               gpsnmea obdsourceconfig opencvluxconfig opencvdbusconfig qtmainloopconfig websocketsink2 websocketsource2
+               testsourceconfig bluemonkey/bluemonkeyconfig)
 
-configure_file (${CMAKE_CURRENT_SOURCE_DIR}/configwheel.in ${CMAKE_CURRENT_SOURCE_DIR}/configwheel @ONLY)
-configure_file (${CMAKE_CURRENT_SOURCE_DIR}/databasesource.in ${CMAKE_CURRENT_SOURCE_DIR}/databasesource @ONLY)
-configure_file (${CMAKE_CURRENT_SOURCE_DIR}/dbusconfig.in ${CMAKE_CURRENT_SOURCE_DIR}/dbusconfig @ONLY)
-configure_file (${CMAKE_CURRENT_SOURCE_DIR}/exampleconfig.in ${CMAKE_CURRENT_SOURCE_DIR}/exampleconfig @ONLY)
-configure_file (${CMAKE_CURRENT_SOURCE_DIR}/gpsnmea.in ${CMAKE_CURRENT_SOURCE_DIR}/gpsnmea @ONLY)
-configure_file (${CMAKE_CURRENT_SOURCE_DIR}/obdsourceconfig.in ${CMAKE_CURRENT_SOURCE_DIR}/obdsourceconfig @ONLY)
-configure_file (${CMAKE_CURRENT_SOURCE_DIR}/opencvluxconfig.in ${CMAKE_CURRENT_SOURCE_DIR}/opencvluxconfig @ONLY)
-configure_file (${CMAKE_CURRENT_SOURCE_DIR}/opencvdbusconfig.in ${CMAKE_CURRENT_SOURCE_DIR}/opencvdbusconfig @ONLY)
-configure_file (${CMAKE_CURRENT_SOURCE_DIR}/qtmainloopconfig.in ${CMAKE_CURRENT_SOURCE_DIR}/qtmainloopconfig @ONLY)
-configure_file (${CMAKE_CURRENT_SOURCE_DIR}/websocketsink2.in ${CMAKE_CURRENT_SOURCE_DIR}/websocketsink2 @ONLY)
-configure_file (${CMAKE_CURRENT_SOURCE_DIR}/websocketsource2.in ${CMAKE_CURRENT_SOURCE_DIR}/websocketsource2 @ONLY)
-configure_file (${CMAKE_CURRENT_SOURCE_DIR}/testsourceconfig.in ${CMAKE_CURRENT_SOURCE_DIR}/testsourceconfig @ONLY)
-configure_file (${CMAKE_CURRENT_SOURCE_DIR}/cangenconfig.in ${CMAKE_CURRENT_SOURCE_DIR}/cangenconfig @ONLY)
-configure_file (${CMAKE_CURRENT_SOURCE_DIR}/bluemonkey/bluemonkeyconfig.in ${CMAKE_CURRENT_SOURCE_DIR}/bluemonkey/bluemonkeyconfig @ONLY)
+configure_file (${CMAKE_CURRENT_SOURCE_DIR}/configwheel.in.json ${CMAKE_CURRENT_SOURCE_DIR}/configwheel @ONLY)
+configure_file (${CMAKE_CURRENT_SOURCE_DIR}/databasesource.in.json ${CMAKE_CURRENT_SOURCE_DIR}/databasesource @ONLY)
+configure_file (${CMAKE_CURRENT_SOURCE_DIR}/databaselogging.in.json ${CMAKE_CURRENT_SOURCE_DIR}/databaselogging @ONLY)
+configure_file (${CMAKE_CURRENT_SOURCE_DIR}/dbusconfig.in.json ${CMAKE_CURRENT_SOURCE_DIR}/dbusconfig @ONLY)
+configure_file (${CMAKE_CURRENT_SOURCE_DIR}/exampleconfig.in.json ${CMAKE_CURRENT_SOURCE_DIR}/exampleconfig @ONLY)
+configure_file (${CMAKE_CURRENT_SOURCE_DIR}/gpsnmea.in.json ${CMAKE_CURRENT_SOURCE_DIR}/gpsnmea @ONLY)
+configure_file (${CMAKE_CURRENT_SOURCE_DIR}/obdsourceconfig.in.json ${CMAKE_CURRENT_SOURCE_DIR}/obdsourceconfig @ONLY)
+configure_file (${CMAKE_CURRENT_SOURCE_DIR}/opencvluxconfig.in.json ${CMAKE_CURRENT_SOURCE_DIR}/opencvluxconfig @ONLY)
+configure_file (${CMAKE_CURRENT_SOURCE_DIR}/opencvdbusconfig.in.json ${CMAKE_CURRENT_SOURCE_DIR}/opencvdbusconfig @ONLY)
+configure_file (${CMAKE_CURRENT_SOURCE_DIR}/qtmainloopconfig.in.json ${CMAKE_CURRENT_SOURCE_DIR}/qtmainloopconfig @ONLY)
+configure_file (${CMAKE_CURRENT_SOURCE_DIR}/websocketsink2.in.json ${CMAKE_CURRENT_SOURCE_DIR}/websocketsink2 @ONLY)
+configure_file (${CMAKE_CURRENT_SOURCE_DIR}/websocketsource2.in.json ${CMAKE_CURRENT_SOURCE_DIR}/websocketsource2 @ONLY)
+configure_file (${CMAKE_CURRENT_SOURCE_DIR}/testsourceconfig.in.json ${CMAKE_CURRENT_SOURCE_DIR}/testsourceconfig @ONLY)
+configure_file (${CMAKE_CURRENT_SOURCE_DIR}/cangenconfig.in.json ${CMAKE_CURRENT_SOURCE_DIR}/cangenconfig @ONLY)
+configure_file (${CMAKE_CURRENT_SOURCE_DIR}/bluemonkey/bluemonkeyconfig.in.json ${CMAKE_CURRENT_SOURCE_DIR}/bluemonkey/bluemonkeyconfig @ONLY)
 
 install (FILES ${amb_examples} DESTINATION /etc/ambd/examples)
 
diff --git a/examples/databaselogging.in.json b/examples/databaselogging.in.json
new file mode 100644 (file)
index 0000000..1f76e0f
--- /dev/null
@@ -0,0 +1,28 @@
+{
+       "sources" : [
+               {
+                       "name" : "ExampleSouce",
+                       "path" : "@PLUGIN_INSTALL_PATH@/examplesourceplugin.so",
+                       "delay" : "1000"
+               },
+               {
+                       "name" : "Database Source",
+                       "path" : "@PLUGIN_INSTALL_PATH@/databasesinkplugin.so",
+                       "properties" : "{ 'properties' : ['VehicleSpeed','EngineSpeed'] }",
+                       "startOnLoad" : "true",
+                       "databaseFile" : "/tmp/storage",
+                       "frequency" : "1",
+                       "bufferLength" : "1"
+               }
+       ],
+       "sinks": [
+               {
+                       "name" : "ExampleSink",
+                       "path" : "@PLUGIN_INSTALL_PATH@/examplesinkplugin.so"
+               },
+               {
+                       "path" : "@PLUGIN_INSTALL_PATH@/dbussinkplugin.so"
+               }
+       ]
+}
+
similarity index 100%
rename from examples/gpsnmea.in
rename to examples/gpsnmea.in.json