mirror of
https://github.com/systemd/systemd.git
synced 2025-01-26 14:04:03 +03:00
libudev: rename enumerate function
This commit is contained in:
parent
95d90c4fe0
commit
6b12bdb624
@ -21,7 +21,7 @@ udev_device_get_action
|
|||||||
udev_device_get_driver
|
udev_device_get_driver
|
||||||
udev_device_get_devnum
|
udev_device_get_devnum
|
||||||
udev_device_get_seqnum
|
udev_device_get_seqnum
|
||||||
udev_devices_enumerate
|
udev_enumerate_devices
|
||||||
udev_monitor_new_from_socket
|
udev_monitor_new_from_socket
|
||||||
udev_monitor_new_from_netlink
|
udev_monitor_new_from_netlink
|
||||||
udev_monitor_enable_receiving
|
udev_monitor_enable_receiving
|
||||||
|
@ -130,7 +130,7 @@ static int devices_call(struct udev *udev, const char *devpath,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* udev_devices_enumerate:
|
* udev_enumerate_devices:
|
||||||
* @udev_device: udev device
|
* @udev_device: udev device
|
||||||
* @cb: function to be called for every property found
|
* @cb: function to be called for every property found
|
||||||
* @data: data to be passed to the function
|
* @data: data to be passed to the function
|
||||||
@ -142,7 +142,7 @@ static int devices_call(struct udev *udev, const char *devpath,
|
|||||||
*
|
*
|
||||||
* Returns: the number of properties passed to the caller, or a negative value on error
|
* Returns: the number of properties passed to the caller, or a negative value on error
|
||||||
**/
|
**/
|
||||||
int udev_devices_enumerate(struct udev *udev, const char *subsystem,
|
int udev_enumerate_devices(struct udev *udev, const char *subsystem,
|
||||||
int (*cb)(struct udev *udev,
|
int (*cb)(struct udev *udev,
|
||||||
const char *devpath, const char *subsystem, const char *name, void *data),
|
const char *devpath, const char *subsystem, const char *name, void *data),
|
||||||
void *data)
|
void *data)
|
||||||
|
@ -63,7 +63,7 @@ extern dev_t udev_device_get_devnum(struct udev_device *udev_device);
|
|||||||
extern const char *udev_device_get_action(struct udev_device *udev_device);
|
extern const char *udev_device_get_action(struct udev_device *udev_device);
|
||||||
extern unsigned long long int udev_device_get_seqnum(struct udev_device *udev_device);
|
extern unsigned long long int udev_device_get_seqnum(struct udev_device *udev_device);
|
||||||
|
|
||||||
extern int udev_devices_enumerate(struct udev *udev, const char *subsystem,
|
extern int udev_enumerate_devices(struct udev *udev, const char *subsystem,
|
||||||
int (*cb)(struct udev *udev,
|
int (*cb)(struct udev *udev,
|
||||||
const char *devpath, const char *subsystem, const char *name, void *data),
|
const char *devpath, const char *subsystem, const char *name, void *data),
|
||||||
void *data);
|
void *data);
|
||||||
|
@ -98,7 +98,7 @@ static int test_enumerate(struct udev *udev, const char *subsystem)
|
|||||||
{
|
{
|
||||||
int count;
|
int count;
|
||||||
|
|
||||||
count = udev_devices_enumerate(udev, subsystem, devices_enum_cb, NULL);
|
count = udev_enumerate_devices(udev, subsystem, devices_enum_cb, NULL);
|
||||||
printf("found %i devices\n\n", count);
|
printf("found %i devices\n\n", count);
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user