diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-06-12 15:15:06 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-06-12 23:59:08 +0900 |
commit | 538bdb48d8c5ea9c7b3802708b049824fab23d02 (patch) | |
tree | 4615f9a67b3a468a4e334f58894c02fb0350f50c /src/libudev/libudev-device-internal.h | |
parent | 56fa3682b99b355166f6529e7eb2760528b56297 (diff) | |
download | systemd-538bdb48d8c5ea9c7b3802708b049824fab23d02.tar.gz |
libudev: hide definition of struct udev_device
Diffstat (limited to 'src/libudev/libudev-device-internal.h')
-rw-r--r-- | src/libudev/libudev-device-internal.h | 33 |
1 files changed, 2 insertions, 31 deletions
diff --git a/src/libudev/libudev-device-internal.h b/src/libudev/libudev-device-internal.h index 2be49c9892..cd6c2a5bc5 100644 --- a/src/libudev/libudev-device-internal.h +++ b/src/libudev/libudev-device-internal.h @@ -4,36 +4,7 @@ #include "libudev.h" #include "sd-device.h" -#include "libudev-list-internal.h" - -/** - * udev_device: - * - * Opaque object representing one kernel sys device. - */ -struct udev_device { - struct udev *udev; - - /* real device object */ - sd_device *device; - - /* legacy */ - unsigned n_ref; - - struct udev_device *parent; - bool parent_set; - - struct udev_list *properties; - uint64_t properties_generation; - struct udev_list *tags; - uint64_t tags_generation; - struct udev_list *devlinks; - uint64_t devlinks_generation; - bool properties_read:1; - bool tags_read:1; - bool devlinks_read:1; - struct udev_list *sysattrs; - bool sysattrs_read; -}; +struct udev_device; struct udev_device *udev_device_new(struct udev *udev, sd_device *device); +sd_device *udev_device_get_sd_device(struct udev_device *udev_device); |