Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106196295
D46992.id146049.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
914 B
Referenced Files
None
Subscribers
None
D46992.id146049.diff
View Options
diff --git a/lib/libusb/libusb.3 b/lib/libusb/libusb.3
--- a/lib/libusb/libusb.3
+++ b/lib/libusb/libusb.3
@@ -220,6 +220,11 @@
Get the device contained by devh.
Returns NULL on error.
.Pp
+.Ft libusb_device *
+.Fn libusb_get_parent "libusb_device *dev"
+Get dev's parent device.
+Returns NULL if the device has no parent (i.e. is a root device).
+.Pp
.Ft int
.Fn libusb_get_configuration "libusb_device_handle *devh" "int *config"
Returns the value of the current configuration.
diff --git a/lib/libusb/libusb10.c b/lib/libusb/libusb10.c
--- a/lib/libusb/libusb10.c
+++ b/lib/libusb/libusb10.c
@@ -3,6 +3,7 @@
*
* Copyright (c) 2009 Sylvestre Gallon. All rights reserved.
* Copyright (c) 2009-2023 Hans Petter Selasky
+ * Copyright (c) 2024 Aymeric Wibo
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 27, 11:52 PM (7 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15618719
Default Alt Text
D46992.id146049.diff (914 B)
Attached To
Mode
D46992: libusb: implement `libusb_get_parent`
Attached
Detach File
Event Timeline
Log In to Comment