]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/libsystemd/sd-device/device-monitor-private.h
Merge pull request #7411 from joergsteffens/tapechanger
[thirdparty/systemd.git] / src / libsystemd / sd-device / device-monitor-private.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 #include "sd-device.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 = -1,
12 } MonitorNetlinkGroup;
13
14 int device_monitor_new_full(sd_device_monitor **ret, MonitorNetlinkGroup group, int fd);
15 int device_monitor_disconnect(sd_device_monitor *m);
16 int device_monitor_allow_unicast_sender(sd_device_monitor *m, sd_device_monitor *sender);
17 int device_monitor_enable_receiving(sd_device_monitor *m);
18 int device_monitor_get_fd(sd_device_monitor *m);
19 int device_monitor_send_device(sd_device_monitor *m, sd_device_monitor *destination, sd_device *device);
20 int device_monitor_receive_device(sd_device_monitor *m, sd_device **ret);