summaryrefslogtreecommitdiffstats
path: root/src/platform-info-binding.c
AgeCommit message (Collapse)AuthorFilesLines
2020-11-10Add device monitoring feature (hotplug device detection)Farshid Monhaseri1-33/+100
Changes: - Implement libudev 'monitor' interface to detect hotplug devices. - Forward udev rules as AFB 'subscribe' args to udev_monitoring objects. - Filter retrieved property fields through 'mask' argument from 'subscribe' args. - Generate detached threads (event loop) and data context for each client, so every user can subscribe for device events with their own udev rules and receive their desired device parameters. Bug-AGL: SPEC-3512 Signed-off-by: Farshid Monhaseri <monhaseri.f@gmail.com> Change-Id: I0fc007d9707deaf39d21147aa8240fde302f5f9e
2019-04-02Fix: api userdata pointer releasedRomain Forlot1-1/+1
The json_object given to afb_req_success is released so and as it's the userdata or a subpart, we need to increment the json_object reference count. Change-Id: I9ee3fa5f613cd80c1f2374a545dec247c0a52cd8 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2019-03-29Test directory existenceRomain Forlot1-1/+6
Missing testing the readdir returned value. Bug-AGL: SPEC-2288 Change-Id: I38691f2604ed4a13ff90e53dd5303e8ddcba7cf1 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-11-28First simple platform-info API implementationguppy_6.99.2guppy/6.99.26.99.2Romain Forlot1-0/+125
Bug-AGL: SPEC-1917 Change-Id: I300155302c9d69c6549ddabc6af53e2ad55eb18d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>