]>
git.proxmox.com Git - systemd.git/blob - src/libsystemd/sd-device/device-enumerator-private.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
6 int device_enumerator_scan_devices(sd_device_enumerator
*enumeartor
);
7 int device_enumerator_scan_subsystems(sd_device_enumerator
*enumeartor
);
8 int device_enumerator_add_device(sd_device_enumerator
*enumerator
, sd_device
*device
);
9 int device_enumerator_add_match_is_initialized(sd_device_enumerator
*enumerator
);
10 int device_enumerator_add_match_parent_incremental(sd_device_enumerator
*enumerator
, sd_device
*parent
);
11 sd_device
*device_enumerator_get_first(sd_device_enumerator
*enumerator
);
12 sd_device
*device_enumerator_get_next(sd_device_enumerator
*enumerator
);
13 sd_device
**device_enumerator_get_devices(sd_device_enumerator
*enumerator
, size_t *ret_n_devices
);
15 #define FOREACH_DEVICE_AND_SUBSYSTEM(enumerator, device) \
16 for (device = device_enumerator_get_first(enumerator); \
18 device = device_enumerator_get_next(enumerator))