aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Collignon <loic.collignon@iot.bzh>2018-02-08 11:06:33 +0100
committerLoïc Collignon <loic.collignon@iot.bzh>2018-02-08 11:17:04 +0100
commit91e32ea5d46e6f7f50a0f0bdbd1d7e8f513fc3bf (patch)
treec7b25fe982a6bbe51937f54ac15235152e247c9f
parentf0c76b5866a264020d132bebde248613daabbbc6 (diff)
Change-Id: I7103241843736e1a5747253781485afa457a64d0 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
-rw-r--r--CMakeLists.txt (renamed from ll-database-binding/CMakeLists.txt)0
-rw-r--r--README.md38
-rw-r--r--conf.d/cmake/FindBerkeleyDB.cmake (renamed from ll-database-binding/conf.d/cmake/FindBerkeleyDB.cmake)0
-rw-r--r--conf.d/cmake/FindGDBM.cmake (renamed from ll-database-binding/conf.d/cmake/FindGDBM.cmake)0
-rw-r--r--conf.d/cmake/config.cmake (renamed from ll-database-binding/conf.d/cmake/config.cmake)2
-rw-r--r--conf.d/wgt/config.xml.in (renamed from ll-database-binding/conf.d/wgt/config.xml.in)0
-rw-r--r--htdocs/persistence/AFB-websock.js (renamed from ll-database-binding/htdocs/persistence/AFB-websock.js)0
-rw-r--r--htdocs/persistence/binding-debug.css (renamed from ll-database-binding/htdocs/persistence/binding-debug.css)0
-rw-r--r--htdocs/persistence/index.html (renamed from ll-database-binding/htdocs/persistence/index.html)0
-rw-r--r--htdocs/persistence/persistence-binding.js (renamed from ll-database-binding/htdocs/persistence/persistence-binding.js)0
-rw-r--r--ll-database-binding/.gitmodules3
-rw-r--r--ll-database-binding/README.md38
-rw-r--r--src/CMakeLists.txt (renamed from ll-database-binding/src/CMakeLists.txt)0
-rw-r--r--src/export.map (renamed from ll-database-binding/src/export.map)0
-rw-r--r--src/persistence-binding.c (renamed from ll-database-binding/src/persistence-binding.c)0
15 files changed, 38 insertions, 43 deletions
diff --git a/ll-database-binding/CMakeLists.txt b/CMakeLists.txt
index 56ab411..56ab411 100644
--- a/ll-database-binding/CMakeLists.txt
+++ b/CMakeLists.txt
diff --git a/README.md b/README.md
index 1d1a1e8..fb420dc 100644
--- a/README.md
+++ b/README.md
@@ -1,2 +1,38 @@
-# agl-service-data-persistence
+# Database Binding
+This binding provide a database API with key/value semantics.
+The backend is currently a Berkeley DB.
+
+## Verbs
+* **insert**:
+ This verb insert a key/value pair in the database.
+ If the key already exist, the verb fails.
+
+* **update**:
+ This verb update an existing record.
+ If the key doesn't exist, the verb fails.
+
+* **delete**:
+ This verb remove an existing key/value pair from the database.
+ If no matching record is found, the verb fails.
+
+* **read**:
+ This verb get the value associated with the specified key.
+ If no matching record is found, the verb fails.
+
+## Arguments
+* The **read** and **delete** verbs need only a **key** to work:
+```
+{
+ "key": "mykey"
+}
+```
+
+* The **insert** and **update** verbs need a **key** and a **value** to work:
+```
+{
+ "key": "mykey",
+ "value": "my value"
+}
+```
+The **value** can be any valid json.
diff --git a/ll-database-binding/conf.d/cmake/FindBerkeleyDB.cmake b/conf.d/cmake/FindBerkeleyDB.cmake
index 1f94785..1f94785 100644
--- a/ll-database-binding/conf.d/cmake/FindBerkeleyDB.cmake
+++ b/conf.d/cmake/FindBerkeleyDB.cmake
diff --git a/ll-database-binding/conf.d/cmake/FindGDBM.cmake b/conf.d/cmake/FindGDBM.cmake
index abc9987..abc9987 100644
--- a/ll-database-binding/conf.d/cmake/FindGDBM.cmake
+++ b/conf.d/cmake/FindGDBM.cmake
diff --git a/ll-database-binding/conf.d/cmake/config.cmake b/conf.d/cmake/config.cmake
index a698e70..5f59f66 100644
--- a/ll-database-binding/conf.d/cmake/config.cmake
+++ b/conf.d/cmake/config.cmake
@@ -31,7 +31,7 @@ set(PROJECT_LANGUAGES,"C")
# Where are stored default templates files from submodule or subtree app-templates in your project tree
# relative to the root project directory
-set(PROJECT_APP_TEMPLATES_DIR "../conf.d/app-templates")
+set(PROJECT_APP_TEMPLATES_DIR "conf.d/app-templates")
# Where are stored your external libraries for your project. This is 3rd party library that you don't maintain
# but used and must be built and linked.
diff --git a/ll-database-binding/conf.d/wgt/config.xml.in b/conf.d/wgt/config.xml.in
index bbd3212..bbd3212 100644
--- a/ll-database-binding/conf.d/wgt/config.xml.in
+++ b/conf.d/wgt/config.xml.in
diff --git a/ll-database-binding/htdocs/persistence/AFB-websock.js b/htdocs/persistence/AFB-websock.js
index 08a7ffe..08a7ffe 100644
--- a/ll-database-binding/htdocs/persistence/AFB-websock.js
+++ b/htdocs/persistence/AFB-websock.js
diff --git a/ll-database-binding/htdocs/persistence/binding-debug.css b/htdocs/persistence/binding-debug.css
index f41c940..f41c940 100644
--- a/ll-database-binding/htdocs/persistence/binding-debug.css
+++ b/htdocs/persistence/binding-debug.css
diff --git a/ll-database-binding/htdocs/persistence/index.html b/htdocs/persistence/index.html
index 50999d9..50999d9 100644
--- a/ll-database-binding/htdocs/persistence/index.html
+++ b/htdocs/persistence/index.html
diff --git a/ll-database-binding/htdocs/persistence/persistence-binding.js b/htdocs/persistence/persistence-binding.js
index 9b5550c..9b5550c 100644
--- a/ll-database-binding/htdocs/persistence/persistence-binding.js
+++ b/htdocs/persistence/persistence-binding.js
diff --git a/ll-database-binding/.gitmodules b/ll-database-binding/.gitmodules
deleted file mode 100644
index e07cae1..0000000
--- a/ll-database-binding/.gitmodules
+++ /dev/null
@@ -1,3 +0,0 @@
-[submodule "conf.d/app-templates"]
- path = conf.d/app-templates
- url = https://gerrit.automotivelinux.org/gerrit/p/apps/app-templates.git
diff --git a/ll-database-binding/README.md b/ll-database-binding/README.md
deleted file mode 100644
index fb420dc..0000000
--- a/ll-database-binding/README.md
+++ /dev/null
@@ -1,38 +0,0 @@
-
-# Database Binding
-This binding provide a database API with key/value semantics.
-The backend is currently a Berkeley DB.
-
-## Verbs
-* **insert**:
- This verb insert a key/value pair in the database.
- If the key already exist, the verb fails.
-
-* **update**:
- This verb update an existing record.
- If the key doesn't exist, the verb fails.
-
-* **delete**:
- This verb remove an existing key/value pair from the database.
- If no matching record is found, the verb fails.
-
-* **read**:
- This verb get the value associated with the specified key.
- If no matching record is found, the verb fails.
-
-## Arguments
-* The **read** and **delete** verbs need only a **key** to work:
-```
-{
- "key": "mykey"
-}
-```
-
-* The **insert** and **update** verbs need a **key** and a **value** to work:
-```
-{
- "key": "mykey",
- "value": "my value"
-}
-```
-The **value** can be any valid json.
diff --git a/ll-database-binding/src/CMakeLists.txt b/src/CMakeLists.txt
index fc65420..fc65420 100644
--- a/ll-database-binding/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
diff --git a/ll-database-binding/src/export.map b/src/export.map
index ee2f413..ee2f413 100644
--- a/ll-database-binding/src/export.map
+++ b/src/export.map
diff --git a/ll-database-binding/src/persistence-binding.c b/src/persistence-binding.c
index b6ec8d1..b6ec8d1 100644
--- a/ll-database-binding/src/persistence-binding.c
+++ b/src/persistence-binding.c