summaryrefslogtreecommitdiffstats
path: root/filescan-utils.h
AgeCommit message (Collapse)AuthorFilesLines
2019-12-04Add 'GetRunningBindingDirPath' functionicefish_8.99.4icefish_8.99.3icefish_8.99.2icefish/8.99.4icefish/8.99.3icefish/8.99.28.99.48.99.38.99.2Jonathan Aillet1-0/+10
Add 'GetRunningBindingDirPath' function that returns the binding directory path (the path to the directory that contains the binding). FYI: - 'Binding directory path' is the path to the directory that contains a binding binding launched by the binder. - 'Binder root directory path' is the path specified at binder launch using '--rootdir' option. If no option is specified, binder root directory is set to the current directory. SPEC-AGL: SPEC-3009 Change-Id: I34b3d17710ebc2bf06541a00ca7f8d7189f6aa18 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2019-12-04Add 'GetAFBRootDirPath' functionJonathan Aillet1-11/+31
Add 'GetAFBRootDirPath' function that replace 'GetBindingDirPath' function as previous 'GetBindingDirPath' was returning 'Binder root directory path' and not 'Binding directory path'. 'GetBindingDirPath' function has been kept to call 'GetAFBRootDirPath' for compatibility issues. FYI: - 'Binding directory path' is the path to the directory that contains the binding. - 'Binder root directory path' is the path specified at binder launch using '--rootdir' option. If no option is specified, binder root directory is set to the current directory. BUG-AGL: SPEC-3009 Change-Id: I3f4bb64f1d67558a291481e0987bd93666535add Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2019-01-04Little code cleaning.Romain Forlot1-3/+3
Rename apiHandle to api. Add a missing parameter to QAfbWebsocketClient::call function comment. Change-Id: I6fb1acd7357fbea3132cd429e9477a1a0b8a4f43 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-12-17Static lib: pass afb-helpers to a static libraryguppy_6.99.3guppy/6.99.36.99.3Clément Bénier1-3/+14
- add afb-timer in helpers: rename ctl-timer from ctl-utilities into afb-timer - use the GNUinstalldirs module to set the destination directories. Change-Id: Ic88105d140edabcc96b091fb23f215db11ccb8c6 Signed-off-by: Clément Bénier <clement.benier@iot.bzh> Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-12-13Fix: use of GetBindingDirPath without dynapiRomain Forlot1-0/+4
For classic binding < 3 without dynapi this fix the error at compile time about conflicting type for this function. This worked on eel and previous version because 'struct dynapi' was declared and available for version 2 but now since binder is in V3 then it isn't the case so function signature is not valid anymore. Change-Id: I135a723d21d70b8c54f4cab1c534210757318ed0 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-12-13Retrieve directory list from environment variablesRomain Forlot1-4/+18
This adds a function able to retrieve from a prefix and suffix an environment variable. This is meant to search config or plugin files from potentially several sources, environment and source code. This tries to get 2 environments variables: - prefix+binderName+suffix (eg: AFT_LOWCAN_CONFIG_PATH) - prefix+suffix (eg: AFT_CONFIG_PATH) Then it returns the one found or both if they exist with the most accurate one (with the binder name) first followed by the other. Change-Id: Ic448ff017e6158bec05895d63688b8968b5c6434 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-12-13Remove unnecessary 'AFB_DEBUG' redefinitionJonathan Aillet1-1/+1
Remove unnecessary 'AFB_DEBUG' redefinition when using app-fw v3. Change-Id: I3b0271442495882e2a10762fe54b2f3f4ebe8e6b Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-12-13Use binding version to handle dynapiJonathan Aillet1-8/+3
Use binding version to define dynamic api debug messages function. It is also cleaner to define binding version directly into repository cmake than into a header like before this commit. Change-Id: Ia14f635a7a2cec05c29f27ee4ce645711a8574a4 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-12-13Correction to include dynamic api correctlyJonathan Aillet1-1/+2
Define the correct version needed by the application framework for dynamic api. Change-Id: Ic0fd504316e2fc086545f0615ec6e83f2b1cae2d Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-12-13Fixed spellingSebastien Douheret1-1/+1
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-12-13Documentate, formating, linting.Romain Forlot1-4/+42
Change-Id: Id77b9de1b847ca26133abd87511de4e78c7d01f7 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-12-13Adapt function to dynamic APIRomain Forlot1-1/+1
A dynamic API being dynamic, you need to pass as parameter on behalf of which API you want to act. If you are using classic v2 API then just pass a NULL pointer value. Change-Id: I9ac6b606ff25c63a05a647e418a7c2bcc4b2a7fe Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-12-13FormatingRomain Forlot1-11/+6
Change-Id: I16ee9154f4f5a7e71af83a22899a94f00e07aa79 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-12-13Prepare for future API-V3Fulup Ar Foll1-2/+11
2018-12-13Concatenate result directly from GetBindingDirPathRomain Forlot1-1/+1
Return non const char pointer. Change-Id: I975b18f72d26c1a2749ca54e4f096271497047dd Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-12-13Only return binding root dir.Romain Forlot1-10/+1
If subdirs path is needed then concatenation as to be done using the rootdir. Change-Id: I50a1eeb1f853ae26995a96e1661ff38cb7959f60 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-12-13More reliable GetBindingDirsPath function.Romain Forlot1-9/+9
Only return a wanted directory path not a complex structure. Change-Id: I5b5a1dea2c55ee6a76dbbbd52c3ebfdd684255e5 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-12-13Retrieve binder rootdir and subfolder pathsRomain Forlot1-1/+11
Change-Id: I064bf4831be40de70dab68b72489c4fdfc69e9c4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-12-13Include afb-utilities from C++ easilyRomain Forlot1-1/+8
Change-Id: Ic1c815b412d372a418c2faa51fea451c9100693c Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-12-13Rename back define variable.Romain Forlot1-2/+2
Change-Id: Ie0d40f08230170ef780c46748889e153618d1c44 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-12-13Fix: set default value if missing defined varRomain Forlot1-0/+4
Change-Id: I93f8546e2cfe7fc11fdf0f956f10429f6c0ad8d0 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-12-13Format and missing header dependenciesRomain Forlot1-4/+8
Change-Id: If5890445bdb6a676ee6c435f50a27caa8ca5850d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-12-13Initializing the repoRomain Forlot1-0/+41
Change-Id: I354a1c136a57e1ec8d511041fbd13a19b730c419 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>