| 1 |
/* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 |
#pragma once |
| 3 |
|
| 4 |
#include "sd-forward.h" |
| 5 |
|
| 6 |
typedef enum MonitorNetlinkGroup { |
| 7 |
MONITOR_GROUP_NONE, |
| 8 |
MONITOR_GROUP_KERNEL, |
| 9 |
MONITOR_GROUP_UDEV, |
| 10 |
_MONITOR_NETLINK_GROUP_MAX, |
| 11 |
_MONITOR_NETLINK_GROUP_INVALID = -EINVAL, |
| 12 |
} MonitorNetlinkGroup; |
| 13 |
|
| 14 |
int device_monitor_new_full(sd_device_monitor **ret, MonitorNetlinkGroup group, int fd); |
| 15 |
int device_monitor_get_address(sd_device_monitor *m, union sockaddr_union *ret); |
| 16 |
int device_monitor_allow_unicast_sender(sd_device_monitor *m, sd_device_monitor *sender); |
| 17 |
int device_monitor_send(sd_device_monitor *m, const union sockaddr_union *destination, sd_device *device); |