sd-device-monitor: remove device_monitor_disconnect()
It is not necessary to be exposed anymore.
This commit is contained in:
@@ -16,7 +16,6 @@ typedef enum MonitorNetlinkGroup {
|
||||
} MonitorNetlinkGroup;
|
||||
|
||||
int device_monitor_new_full(sd_device_monitor **ret, MonitorNetlinkGroup group, int fd);
|
||||
int device_monitor_disconnect(sd_device_monitor *m);
|
||||
int device_monitor_get_address(sd_device_monitor *m, union sockaddr_union *ret);
|
||||
int device_monitor_allow_unicast_sender(sd_device_monitor *m, sd_device_monitor *sender);
|
||||
int device_monitor_get_fd(sd_device_monitor *m);
|
||||
|
||||
@@ -125,13 +125,6 @@ _public_ int sd_device_monitor_set_receive_buffer_size(sd_device_monitor *m, siz
|
||||
return fd_set_rcvbuf(m->sock, size, false);
|
||||
}
|
||||
|
||||
int device_monitor_disconnect(sd_device_monitor *m) {
|
||||
assert(m);
|
||||
|
||||
m->sock = safe_close(m->sock);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int device_monitor_get_fd(sd_device_monitor *m) {
|
||||
assert(m);
|
||||
|
||||
@@ -442,7 +435,7 @@ static sd_device_monitor *device_monitor_free(sd_device_monitor *m) {
|
||||
assert(m);
|
||||
|
||||
(void) sd_device_monitor_detach_event(m);
|
||||
(void) device_monitor_disconnect(m);
|
||||
m->sock = safe_close(m->sock);
|
||||
|
||||
uid_range_free(m->mapped_userns_uid_range);
|
||||
free(m->description);
|
||||
|
||||
Reference in New Issue
Block a user