aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2018-03-23 17:33:11 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2018-12-13 15:02:54 +0100
commitdd2bc60e7d691eeaf9d2c0a5c206d7fe2fde12e0 (patch)
treece841f3f70bd2dd0bd9e51f0ba1f14969a0c1abd
parent183119616ceadfeb7168fdd0ef3484bb80a7ab7f (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