sd-device: add sd_device_monitor_get_event_source()

This commit is contained in:
Yu Watanabe
2018-11-10 22:53:00 +09:00
parent e29a9fcb29
commit bf7712b63e
3 changed files with 8 additions and 0 deletions
+1
View File
@@ -659,6 +659,7 @@ global:
sd_device_monitor_attach_event;
sd_device_monitor_detach_event;
sd_device_monitor_get_event;
sd_device_monitor_get_event_source;
sd_device_monitor_start;
sd_device_monitor_stop;
@@ -272,6 +272,12 @@ _public_ sd_event *sd_device_monitor_get_event(sd_device_monitor *m) {
return m->event;
}
_public_ sd_event_source *sd_device_monitor_get_event_source(sd_device_monitor *m) {
assert_return(m, NULL);
return m->event_source;
}
int device_monitor_enable_receiving(sd_device_monitor *m) {
int r;