diff options
author | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2018-03-23 17:33:11 +0100 |
---|---|---|
committer | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2018-03-23 17:34:12 +0100 |
commit | 8b250b703aa82e9d45e691149cb00a816c781707 (patch) | |
tree | ce841f3f70bd2dd0bd9e51f0ba1f14969a0c1abd | |
parent | 44f5060de064d3acab585d26d8141df3f0481c6c (diff) |
Fixed links and markdown warnings in README.md
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
-rw-r--r-- | README.md | 22 |
1 files changed, 13 insertions, 9 deletions
@@ -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 |