apps/app-afb-helpers-submodule.git
6 years agoFixed spelling 79/13979/2
Sebastien Douheret [Tue, 15 May 2018 12:32:33 +0000 (14:32 +0200)]
Fixed spelling

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoMore secure way to use strncat and strncpy
Romain Forlot [Thu, 17 May 2018 00:28:48 +0000 (02:28 +0200)]
More secure way to use strncat and strncpy

This ensure not data will be written out of bound
of the destination variable buffer

Change-Id: I4d736855f085fc5f728258c5928fed7191df46b4
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoFix: compile errors depending API version
Romain Forlot [Tue, 15 May 2018 12:23:29 +0000 (14:23 +0200)]
Fix: compile errors depending API version

Change-Id: I9c1476ab35f9bf70322ad4cd81ab0790e4d0724b
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agowrap-json: Fix warnings 47/13947/1
jobol [Mon, 14 May 2018 12:25:37 +0000 (14:25 +0200)]
wrap-json: Fix warnings

Signed-off-by: jobol <jose.bollo@iot.bzh>
6 years agowrap-json: Update the documentation 43/13943/1
jobol [Mon, 14 May 2018 10:17:26 +0000 (12:17 +0200)]
wrap-json: Update the documentation

Signed-off-by: jobol <jose.bollo@iot.bzh>
6 years agowrap-json: Accept null as valid base64 41/13941/1
jobol [Mon, 14 May 2018 09:36:22 +0000 (11:36 +0200)]
wrap-json: Accept null as valid base64

Signed-off-by: jobol <jose.bollo@iot.bzh>
6 years agowrap-json: Record result of tests 39/13939/1
jobol [Mon, 14 May 2018 09:23:23 +0000 (11:23 +0200)]
wrap-json: Record result of tests

Signed-off-by: jobol <jose.bollo@iot.bzh>
6 years agowrap-json: Fix bug decoding empty base64 37/13937/1
jobol [Mon, 14 May 2018 09:19:34 +0000 (11:19 +0200)]
wrap-json: Fix bug decoding empty base64

The function 'decode_base64' was buggy because
it freed 2 times the pointer 'result'.
This came from the fact realloc frees the
pointer and return NULL when the size if 0.

Signed-off-by: jobol <jose.bollo@iot.bzh>
6 years agowrap-json: Improve base64 en-de-coding 35/13935/1
jobol [Mon, 14 May 2018 08:13:59 +0000 (10:13 +0200)]
wrap-json: Improve base64 en-de-coding

The optional characters '*' and '?' weren't managed
so the packing of y/Y base64 wasn't really entire.

Signed-off-by: jobol <jose.bollo@iot.bzh>
6 years agoFix: wrong searchPath parameter
Romain Forlot [Fri, 11 May 2018 08:50:03 +0000 (10:50 +0200)]
Fix: wrong searchPath parameter

Change initialization parts of the function to be clearer
and ensure that at least searchPath has been correctly passed

Change-Id: Ic055e2c244b261b33960072f51193fcbbd48c222
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoDocumentate, formating, linting.
Romain Forlot [Wed, 9 May 2018 10:57:09 +0000 (12:57 +0200)]
Documentate, formating, linting.

Change-Id: Id77b9de1b847ca26133abd87511de4e78c7d01f7
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoAdapt function to dynamic API
Romain Forlot [Wed, 9 May 2018 10:56:47 +0000 (12:56 +0200)]
Adapt function to dynamic API

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>
6 years agoFormating
Romain Forlot [Wed, 9 May 2018 09:59:19 +0000 (11:59 +0200)]
Formating

Change-Id: I16ee9154f4f5a7e71af83a22899a94f00e07aa79
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoMake CURL Wrapping functions optional 07/13807/12
Romain Forlot [Wed, 18 Apr 2018 09:49:42 +0000 (11:49 +0200)]
Make CURL Wrapping functions optional

Search CURL package in your system and add it
if found. This will add a libcurl to be linked
with the target.

Change-Id: Ie4a720fd11de97abead7a92a7fb18b5c8af21ec5
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoAdd new function to retrieve HTTP response code 05/13805/10
Romain Forlot [Tue, 17 Apr 2018 15:00:04 +0000 (17:00 +0200)]
Add new function to retrieve HTTP response code

Change-Id: I1d01c95d6418646ef9d2f8f4b07210a33b10c117
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoPOST using unescaped arguments 03/13803/9
Romain Forlot [Wed, 4 Apr 2018 16:53:56 +0000 (18:53 +0200)]
POST using unescaped arguments

Add the ability to make a POST request without
urlencode the arguments. This will only concatenate
them instead.
You can also specify the used separator.

Change-Id: Icb61a5a20771a89e89159132365d86ee4c982d1c
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoMerge "Added a Qt's websocket client to AFB into helpers"
Romain Forlot [Wed, 18 Apr 2018 08:55:31 +0000 (08:55 +0000)]
Merge "Added a Qt's websocket client to AFB into helpers"

6 years agoAdded a Qt's websocket client to AFB into helpers 97/13797/2
Loïc Collignon [Tue, 17 Apr 2018 13:27:14 +0000 (15:27 +0200)]
Added a Qt's websocket client to AFB into helpers

This add a single Qt class to serve as a client
to Application Framework Binder.
It's optional, not enabled by default.
To enable you have to set AFB_HELPERS_QTWSCLIENT
to ON.

Change-Id: Ia0759a95688e48183e6661082693c410a575b14b
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
6 years agoFix GCC < v7 warning on maybe unitialized variable 99/13799/1
Romain Forlot [Tue, 17 Apr 2018 14:44:46 +0000 (16:44 +0200)]
Fix GCC < v7 warning on maybe unitialized variable

Initialization done under a switch case statement within a "for"
loop which throw warning with GCC v6.

Change-Id: I47b51598cc68943bab6f98bd87b7ba6f40caeafc
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agowrap-json: Add base64 byte buffer support 77/13777/1
jobol [Fri, 13 Apr 2018 07:43:54 +0000 (09:43 +0200)]
wrap-json: Add base64 byte buffer support

Signed-off-by: jobol <jose.bollo@iot.bzh>
6 years agoRename cmake target accordingly to the git repo
Romain Forlot [Wed, 4 Apr 2018 16:53:09 +0000 (18:53 +0200)]
Rename cmake target accordingly to the git repo

Change-Id: I7e05205fe392884c25d1370564cad61119894754
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoAdds a CURL wrapper library to help using libcurl
Romain Forlot [Tue, 3 Apr 2018 13:47:42 +0000 (15:47 +0200)]
Adds a CURL wrapper library to help using libcurl

Change-Id: If73bab16a5d4a5258f730c599630bd5fa8e5684f
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoLinting/Fix: remove warning int/size_t conversion
Romain Forlot [Tue, 3 Apr 2018 13:46:38 +0000 (15:46 +0200)]
Linting/Fix: remove warning int/size_t conversion

Change-Id: I831bac418f5c12c9a747b08ea8be72dcbe1d4ea3
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoFix memory leak
Romain Forlot [Fri, 8 Dec 2017 19:11:34 +0000 (20:11 +0100)]
Fix memory leak

Change-Id: Ia02a639ea9210ed7961a88c91ff9e4cd1a732416
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoAvoid memory collision.
Romain Forlot [Mon, 4 Dec 2017 16:35:21 +0000 (17:35 +0100)]
Avoid memory collision.

Change-Id: I805a725d6b9477fcb690d7c2c7cbb6bb4f112dfb
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoAdd gitreview 4.99.3 eel/4.99.3 eel_4.99.3
Romain Forlot [Thu, 9 Nov 2017 08:40:04 +0000 (09:40 +0100)]
Add gitreview

Change-Id: I63e63cf1cc4545a4090a005629508a654e4a72d1
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoFix to support pre-V3 DynAPI
Fulup Ar Foll [Tue, 24 Oct 2017 20:19:06 +0000 (22:19 +0200)]
Fix to support pre-V3 DynAPI

7 years agoPrepare for future API-V3
Fulup Ar Foll [Mon, 23 Oct 2017 16:05:33 +0000 (18:05 +0200)]
Prepare for future API-V3

7 years agoMisc Fix/Cleaning
Romain Forlot [Thu, 14 Sep 2017 17:35:39 +0000 (19:35 +0200)]
Misc Fix/Cleaning

- Correct size type ssize_t to test
- Remove free() statement because memory don't issued from a malloc
causing exception
- Remove redundant break statement after a return.

Change-Id: I47824dd5cf7afe68cd32e1c3e94e69f31d802995
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoConcatenate result directly from GetBindingDirPath
Romain Forlot [Sat, 9 Sep 2017 15:39:57 +0000 (17:39 +0200)]
Concatenate result directly from GetBindingDirPath

Return non const char pointer.

Change-Id: I975b18f72d26c1a2749ca54e4f096271497047dd
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoFix: mismatching function signature.
Romain Forlot [Sat, 9 Sep 2017 14:02:45 +0000 (16:02 +0200)]
Fix: mismatching function signature.

Change-Id: I5d3c8b34a4e42c867fe1e3eccd96aaa2cc9c5ca6
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoOnly return binding root dir.
Romain Forlot [Fri, 8 Sep 2017 15:21:40 +0000 (17:21 +0200)]
Only return binding root dir.

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>
7 years agoMore reliable GetBindingDirsPath function.
Romain Forlot [Fri, 8 Sep 2017 09:53:44 +0000 (11:53 +0200)]
More reliable GetBindingDirsPath function.

Only return a wanted directory path not a complex
structure.

Change-Id: I5b5a1dea2c55ee6a76dbbbd52c3ebfdd684255e5
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoAdding JSON library for CPP and its docs
Romain Forlot [Tue, 5 Sep 2017 11:58:32 +0000 (13:58 +0200)]
Adding JSON library for CPP and its docs

Change-Id: I3ae419ea586256bd9fff084f42966abf0f3491dd
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoRetrieve binder rootdir and subfolder paths
Romain Forlot [Mon, 4 Sep 2017 12:37:09 +0000 (14:37 +0200)]
Retrieve binder rootdir and subfolder paths

Change-Id: I064bf4831be40de70dab68b72489c4fdfc69e9c4
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoReduce scope for some variables
Romain Forlot [Mon, 4 Sep 2017 12:35:48 +0000 (14:35 +0200)]
Reduce scope for some variables

Change-Id: Ic89421054a83709eec6afaa22dbb4373bcff9b19
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoInclude afb-utilities from C++ easily
Romain Forlot [Thu, 31 Aug 2017 10:48:47 +0000 (12:48 +0200)]
Include afb-utilities from C++ easily

Change-Id: Ic1c815b412d372a418c2faa51fea451c9100693c
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoRename back define variable.
Romain Forlot [Wed, 30 Aug 2017 08:32:38 +0000 (10:32 +0200)]
Rename back define variable.

Change-Id: Ie0d40f08230170ef780c46748889e153618d1c44
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agofix strncat funct
Ronan Le Martret [Tue, 29 Aug 2017 14:09:07 +0000 (16:09 +0200)]
fix strncat funct

I: Statement might be overflowing a buffer in strncat. Common mistake:
  BAD: strncat(buffer,charptr,sizeof(buffer)) is wrong, it takes the left over size as 3rd argument
  GOOD: strncat(buffer,charptr,sizeof(buffer)-strlen(buffer)-1)

Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
7 years agoMD linting
Romain Forlot [Tue, 29 Aug 2017 08:47:25 +0000 (10:47 +0200)]
MD linting

Change-Id: Iea7fb484aa13d4cba0e27bef06592218710f7c8a
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoFix: set default value if missing defined var
Romain Forlot [Tue, 29 Aug 2017 08:47:16 +0000 (10:47 +0200)]
Fix: set default value if missing defined var

Change-Id: I93f8546e2cfe7fc11fdf0f956f10429f6c0ad8d0
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoFormat and missing header dependencies
Romain Forlot [Tue, 22 Aug 2017 17:03:05 +0000 (19:03 +0200)]
Format and missing header dependencies

Change-Id: If5890445bdb6a676ee6c435f50a27caa8ca5850d
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoRemove audio-bindings dependencies
Romain Forlot [Tue, 22 Aug 2017 16:49:59 +0000 (18:49 +0200)]
Remove audio-bindings dependencies

Change-Id: Iad5c51cca8a659ca3c77dd63ce7920e0f54faf63
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoInitializing the repo
Romain Forlot [Tue, 22 Aug 2017 16:42:17 +0000 (18:42 +0200)]
Initializing the repo

Change-Id: I354a1c136a57e1ec8d511041fbd13a19b730c419
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
7 years agoInitial commit
Forlot Romain [IoT.bzh] [Tue, 22 Aug 2017 16:11:58 +0000 (18:11 +0200)]
Initial commit