summaryrefslogtreecommitdiffstats
path: root/src/platform-info-binding.h
diff options
context:
space:
mode:
authorFarshid Monhaseri <monhaseri.f@gmail.com>2020-11-10 13:05:37 +0330
committerFarshid Monhaseri <monhaseri.f@gmail.com>2020-11-10 09:55:46 +0000
commit172db50c33beeb53f8e75c115699179be880b960 (patch)
treeeb0b124e43cf409c4b12b72a4df1e12d3219936d /src/platform-info-binding.h
parente40da34d561aa802ea8f1d8f5bf7b5898f84b083 (diff)
Add device monitoring feature (hotplug device detection)
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
Diffstat (limited to 'src/platform-info-binding.h')
-rw-r--r--src/platform-info-binding.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/platform-info-binding.h b/src/platform-info-binding.h
index 183fa86..8943080 100644
--- a/src/platform-info-binding.h
+++ b/src/platform-info-binding.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2016, 2018 "IoT.bzh"
+ * Copyright (C) 2016, 2018, 2020 "IoT.bzh"
*
* Author "Romain Forlot" <romain.forlot@iot.bzh>
*
@@ -23,5 +23,3 @@ struct key_search_t {
afb_api_t api;
json_object **result;
};
-
-json_object *platform_info;