aboutsummaryrefslogtreecommitdiffstats
path: root/binding
AgeCommit message (Collapse)AuthorFilesLines
2019-11-14fix(iiodevices-binding.c): use afb_event_is_valid to check eventicefish_8.99.5icefish_8.99.4icefish_8.99.3icefish_8.99.2icefish_8.99.1icefish/8.99.5icefish/8.99.4icefish/8.99.3icefish/8.99.2icefish/8.99.18.99.58.99.48.99.38.99.28.99.1Li Xiaoming1-1/+1
it will fix error of make: agl-service-iiodevices/binding/iiodevices-binding.c:103:15: error: ‘e->event’ is a pointer; did you mean to use ‘->’? if (!e->event.closure) { free(e); return NULL; } Bug-AGL: SPEC-2807 Change-Id: Id74ddff09b660e9dcdab046caf4770e31bfff39b Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
2019-04-08iiodevices-binding: Use-after-free fixedhalibut_8.0.6halibut_8.0.5halibut_8.0.4halibut_8.0.3halibut_8.0.2halibut_8.0.1halibut_8.0.0halibut_7.99.3halibut_7.99.2halibut_7.99.1halibut/8.0.6halibut/8.0.5halibut/8.0.4halibut/8.0.3halibut/8.0.2halibut/8.0.1halibut/8.0.0halibut/7.99.3halibut/7.99.2halibut/7.99.18.0.68.0.58.0.48.0.38.0.28.0.18.0.07.99.37.99.27.99.1halibutClément Bénier1-1/+1
- call afb req fail before free client Change-Id: I8e5157a6ede435541bbfe0f05e3db4dfd1f37dd9 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2018-10-12iiodevices: add afb_req_failClément Bénier1-4/+16
add afb_req_fail when a request is not desired Change-Id: Ifacf7203cf503229689db195c7844a73a4b1de13 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2018-10-12set_channel: no next channel when it doesn't existClément Bénier1-2/+21
in set_channel, when channel does not exist, next_channel has to be set to NULL Change-Id: I512691126200b2a1cc5041b1d2855087b8da1895 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2018-06-29Remove useless code and declare iio_infos in C codeClément Bénier2-9/+9
- Remove treat_iio_infos function that is no used at all in source code. - it's really not a good idea to define static variable in header file (causing redefinition each time header file is included), so move static definition of iio_infos in C code. Change-Id: I66c6c5593c9d10581b49ce5f2a9b2f4952584259 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh> Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2018-06-22string copy: use n copy(snprintf, strncpy)cle©mentbeénier1-13/+16
Change-Id: Ie543eb9628d2632427dd2d6ca215c92358d5920e Signed-off-by: cle©mentbeénier <clement.benier@iot.bzh>
2018-06-21read static infos: improve read static infos for channelsclement benier1-15/+53
gather all same static infos and add suffix for different values between channels. Change-Id: I48d3b01667b829411efa39405347d6e396211431 Signed-off-by: clement benier <clement.benier@iot.bzh>
2018-06-21add client_sub structure: split channel_fd structure into channel and client_subclement benier1-239/+252
Change-Id: I1bd0cea12128ac3d78d6f4c4ee472cd74e69469d Signed-off-by: clement benier <clement.benier@iot.bzh>
2018-06-21context_set vs uid: remove json key uid and set context for afb_reqclement benier1-39/+12
Remove the uid json argument and using afb_req_context_set/get to identify client session. Change-Id: Ib57f4443d20f4ee7cec9db17b6c6b81d6ca0e24c Signed-off-by: clement benier <clement.benier@iot.bzh>
2018-06-21binding iiodevices: handles 3 iiodevicesClément Bénier5-175/+656
handle accel, magn et anglvel iiodevices args key indicates the desired coordinates at subcription frequency can be also specified at subscription Example for subscription: - iiodevices subscribe { "event": "accel", "uid": "1", "args": "xyz", "frequency": "0.1" } - iiodevices subscribe { "event": "magn", "uid": "1", "args": "xz", "frequency": "0.1" } Change-Id: I7f300f56b5d69506434f31fbb6e552c7afdf7489 Signed-off-by: Clément Bénier <clement.benier@iot.bzh> Signed-off-by: clement benier <clement.benier@iot.bzh>
2018-06-21initial commit: draft work in progressClément Bénier2-0/+209
Change-Id: I8c0c17c66a484df9bc152046466d80224cf65498 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>