pass: resmon: Add uevent-based resource monitor 66/172666/4
authorChanwoo Choi <cw00.choi@samsung.com>
Tue, 13 Feb 2018 06:31:06 +0000 (15:31 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 16 Mar 2018 06:19:37 +0000 (15:19 +0900)
commite038674ba7b2182badbe09058840e7b77581caab
tree14fe127d253007e2005203a5446dab4cfbca5c6f
parent3e49c76563cae271e9073675f3da0f5394c28fee
pass: resmon: Add uevent-based resource monitor

Resource-Monitor provides two monitoring method as following:
- Timer-based resource monitor like polling method. There are both oneshot
  and periodic timer and it requires the interval as the mandatory.
- Uevent-based resource monitor like interrupt method. It notifies the result
  of monitoring when receiving the uevent from Kernel.

Add the support of uevent-based resource monitor which uses the libudev.h
library in order to handle the uevent from kernel.

[Function description]
- Uevent-based resource monitor
int pass_resmon_register_uevent()
int pass_resmon_unregister_uevent()

Change-Id: I3c9362298f5e096600989d5aaa2c6720346b9c5c
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
CMakeLists.txt
packaging/pass.spec
src/pass/pass-resmon-internal.h
src/pass/pass-resmon-source.c
src/pass/pass-resmon.c
src/pass/pass-resmon.h
src/pass/pass.h