aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2018-03-23 17:33:11 +0100
committerSebastien Douheret <sebastien.douheret@iot.bzh>2018-03-23 17:34:12 +0100
commit8b250b703aa82e9d45e691149cb00a816c781707 (patch)
treece841f3f70bd2dd0bd9e51f0ba1f14969a0c1abd
parent44f5060de064d3acab585d26d8141df3f0481c6c (diff)
Fixed links and markdown warnings in README.md
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
-rw-r--r--README.md22
1 files changed, 13 insertions, 9 deletions
diff --git a/README.md b/README.md
index 79a218d..f7a433b 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# Controller Utilities
-* Object: Generic Controller Utilities to handle Policy,Small Business Logic, Glue in between components, ...
+* Object: Generic Controller Utilities to handle Policy, Small Business Logic, Glue in between components, ...
* Status: Release Candidate
* Author: Fulup Ar Foll fulup@iot.bzh
* Date : October-2017
@@ -8,12 +8,14 @@
## Usage
1) Add ctl-utilities as a submodule to include in your project
-```
-git submodule add git@github.com:fulup-bzh/ctl-utilities
+
+```bash
+git submodule add https://gerrit.automotivelinux.org/gerrit/apps/app-controller-submodule
```
2) Add ctl-utilities as a static library to your binding
-```
+
+```cmake
# Library dependencies (include updates automatically)
TARGET_LINK_LIBRARIES(${TARGET_NAME}
ctl-utilities
@@ -22,7 +24,8 @@ git submodule add git@github.com:fulup-bzh/ctl-utilities
```
3) Declare your controller config section in your binding
-```
+
+```C
// CtlSectionT syntax:
// key: "section name in config file"
// loadCB: callback to process section
@@ -37,7 +40,8 @@ static CtlSectionT ctlSections[]= {
```
3) Do controller config parsing at binding pre-init
-```
+
+```C
// check if config file exist
const char *dirList= getenv("CTL_CONFIG_PATH");
if (!dirList) dirList=CONTROL_CONFIG_PATH;
@@ -47,9 +51,9 @@ static CtlSectionT ctlSections[]= {
```
4) Exec controller config during binding init
-```
+
+```C
int err = CtlConfigExec (ctlConfig);
```
-For sample usage look at https://github.com/fulup-bzh/ctl-utilities
-
+For sample usage look at https://gerrit.automotivelinux.org/gerrit/gitweb?p=apps/app-controller-submodule.git