Age | Commit message (Collapse) | Author | Files | Lines |
|
Correct a failed request warning message.
Change-Id: Iefdf1cb29af55dc1f4ea098ede032c33fb3b4138
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Auithorize sending empty json to hal-manager 'loaded 'verb and
to hal 'info' verb.
Change-Id: Id664b0335ad80f88392dd24cd910016deaad25e3
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Use structure defined in controller to load verbs into an api using
'HalUtlLoadVerbs' function.
Change-Id: I57aabf9ce2c580fc98b7ea8438cd01083e032ac2
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Change paramters in functions handling hal data structure.
Now, the only thing you need to add/search for/remove something in hal
data structure list is the address of the first element of the list
instead of the address of the whole hal manager data structure.
Change-Id: Iafa7428735c3aa418a6ef6564f9acde8f44e7dfe
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Add device id to response when hal metadata are
asked (with verb 'loaded').
Also handle this metadata when an external hal is
registered (verb 'loaded').
Change-Id: I25fafce13c8a215ed5991cfee2a399d8d6631c47
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Use a local strucuture to store hal manager global data.
Also declare a function that allows to get the first hal data structure in
the list managed by hal manager.
Change-Id: I4b36030435bca506b5ba3a08dfbca039eb02e43e
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Define ping function as a definitive function.
Change-Id: I6c4351d2c829b7e6d89c6e47a0421c872a90e4d4
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Update request success macro used in code to correct compilation error.
Change-Id: I0cb9c07b27000935b01aaaa17d5656f05d4e21ff
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Set external hal status to ready at loading, its a temporary measure
to handle external hal for now.
Change-Id: I248d2b1288af601681f5567f34037ecc8e06c6aa
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Change the field name use to store card path into
controller hal data structure.
Change-Id: I4413a4e5550f3122055db4c6184907d8be407ceb
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
- Change some comments from TODO to TDB.
- Remove 'JAI' from warning messages.
Change-Id: Ib2c39d4e0f0ca34929237ab8ca3d66c9c0d269d0
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Include <afb-definitions.h> from 'app-controller' instead of
<afb/afb-binding.h> and use its definitions.
It allows to migrate from an application framework version to another
with less impact on the code.
Change-Id: I22359cd3fe22145b3d6c551f227be2ba7e1b65d5
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Remove reference to alsa in 4a-hal-manager because 4a-hal-manager won't
communicate with alsa/alsa-core.
Change-Id: Ie6d70e1a962ecbf73b1ee5f31fee78d1e29ac23d
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Set file creation date to 2018 instead of 2016.
Change-Id: I0349bbc1dde097f899d9b38dd28b3891f88020ad
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Implementation of functions that allows to handle
register/unregister external hal.
Change-Id: Idf7ad2ab7dd811195a9c86d3fc194086746e99ef
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Handle the case if some hal info are not available when the data of all
registered hal are requested.
Change-Id: Ia55fcc9ff6e964fe23965cf92bb06533c3d11695
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
In code, use json_object* instead of struct json_object*.
Change-Id: I9b37f30807331b6f85dc7f36242d5c1206093565
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Rename function used to load verbs into a dynamic api from
'HalUtlLoadStaticVerbs' to 'HalUtlLoadVerbs' because it is
used to load not only static verbs.
Change-Id: Idc033ccf0a8e7556e0809e8fa3554d09d0e81d39
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Regroup declaration of variables in 'HalMgrLoaded' function.
Add error info when responding that the request have failed.
Change-Id: Ib25159f37928bd8cc442e9db08b280e93b6b568b
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Instead of receiving all info about api by passing request arg :
{ "option" : "metadata" }
api info will be obtained by passing this request arg :
{ "verbose" : 1 }
Change-Id: I26a14d61ffefbb7f4630f4a3199ee5238008263a
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Change names of some structures fields to match the fileds name
in controller structure.
Change-Id: I579ec53835daa010154982539d09d5a2dcbd28b2
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Pre-version of 4a-hal manager that uses app-fwk DynAPI
and app-controller.
Current version :
- Declare a new API for each HAL (each .json config file
is used to generate one app-controller API) at startup.
- Define verbs that will be provided by this API.
- Provide verb to list and get info of loaded API.
Change-Id: I7bb6e8b7539b1acd5556fd9275a1b536e129332d
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|