renamed api to match better the repo name and the feature provided.
authorLoïc Collignon <loic.collignon@iot.bzh>
Tue, 19 Dec 2017 16:14:33 +0000 (17:14 +0100)
committerLoïc Collignon <loic.collignon@iot.bzh>
Tue, 19 Dec 2017 16:14:33 +0000 (17:14 +0100)
Change-Id: I688950d9da5b3db903815a2869767d00df66b6cf
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
ll-database-binding/conf.d/cmake/config.cmake
ll-database-binding/conf.d/wgt/config.xml.in
ll-database-binding/src/CMakeLists.txt
ll-database-binding/src/persistence-binding.c [moved from ll-database-binding/src/ll-database-binding.c with 99% similarity]

index 37f7e76..b1bcde1 100644 (file)
@@ -18,7 +18,7 @@
 
 # Project Info
 # ------------------
 
 # Project Info
 # ------------------
-set(PROJECT_NAME ll-database)
+set(PROJECT_NAME persistence-binding)
 set(PROJECT_VERSION "0.1")
 set(PROJECT_PRETTY_NAME "Low Level Database Binding")
 set(PROJECT_DESCRIPTION "")
 set(PROJECT_VERSION "0.1")
 set(PROJECT_PRETTY_NAME "Low Level Database Binding")
 set(PROJECT_DESCRIPTION "")
index 9209494..bbd3212 100644 (file)
@@ -11,9 +11,9 @@
     <param name="urn:AGL:permission::system:run-by-default" value="required" />
   </feature>
   <feature name="urn:AGL:widget:provided-api">
     <param name="urn:AGL:permission::system:run-by-default" value="required" />
   </feature>
   <feature name="urn:AGL:widget:provided-api">
-     <param name="ll-database" value="ws" />
+     <param name="persistence" value="ws" />
   </feature>     
   <feature name="urn:AGL:widget:required-api">
   </feature>     
   <feature name="urn:AGL:widget:required-api">
-    <param name="lib/afb-ll-database-binding.so" value="local" />
+    <param name="lib/afb-persistence-binding.so" value="local" />
   </feature>
 </widget>
   </feature>
 </widget>
index cea11a3..95a481a 100644 (file)
@@ -1,4 +1,4 @@
-PROJECT_TARGET_ADD(ll-database-binding)
+PROJECT_TARGET_ADD(persistence-binding)
 
 find_package(GDBM)
 if(DB_FOUND)
 
 find_package(GDBM)
 if(DB_FOUND)
@@ -8,11 +8,16 @@ else(DB_FOUND)
 endif(DB_FOUND)
 include_directories(${DB_INCLUDE_DIR})
 
 endif(DB_FOUND)
 include_directories(${DB_INCLUDE_DIR})
 
-add_library(ll-database-binding MODULE ll-database-binding.c)
-target_link_libraries(ll-database-binding ${DB_LIBRARY})
+add_library(persistence-binding MODULE persistence-binding.c)
+target_link_libraries(persistence-binding ${DB_LIBRARY})
 
 
-set_target_properties(ll-database-binding PROPERTIES
+set_target_properties(persistence-binding PROPERTIES
         PREFIX "afb-"
         LABELS "BINDING"
         LINK_FLAGS ${BINDINGS_LINK_FLAG}
         OUTPUT_NAME ${TARGET_NAME})
         PREFIX "afb-"
         LABELS "BINDING"
         LINK_FLAGS ${BINDINGS_LINK_FLAG}
         OUTPUT_NAME ${TARGET_NAME})
+
+install(TARGETS persistence-binding
+    RUNTIME DESTINATION bin
+    ARCHIVE DESTINATION lib
+    LIBRARY DESTINATION lib)
\ No newline at end of file
@@ -459,7 +459,7 @@ static const afb_verb_v2 ll_database_binding_verbs[]= {
 };
 
 const struct afb_binding_v2 afbBindingV2 = {
 };
 
 const struct afb_binding_v2 afbBindingV2 = {
-       .api = "ll-database",
+       .api = "persistence",
        .specification = NULL,
        .verbs = ll_database_binding_verbs,
        .preinit = NULL,
        .specification = NULL,
        .verbs = ll_database_binding_verbs,
        .preinit = NULL,