* From double to triple indirection for the get_device_list function. Reported by Jurassic Pork on forum.

(cherry picked from commit 018593270b)
This commit is contained in:
marcoonthegit 2023-10-07 16:40:41 +02:00
parent 49c96f4629
commit ae468b132b

View File

@ -768,6 +768,7 @@ type
end;
plibusb_device=^libusb_device;
pplibusb_device=^plibusb_device;
libusb_device = record
{undefined structure}
end;
@ -1143,7 +1144,7 @@ function libusb_error_name(errcode:integer):pansichar;LIBUSB_CALL;external libus
function libusb_setlocale(const locale:pansichar):integer;LIBUSB_CALL;external libusb1;
function libusb_strerror(errcode:libusb_error):pansichar;LIBUSB_CALL;external libusb1;
function libusb_get_device_list(ctx:plibusb_context;var list:plibusb_device):ssize_t;LIBUSB_CALL;external libusb1;
function libusb_get_device_list(ctx:plibusb_context;var list:pplibusb_device):ssize_t;LIBUSB_CALL;external libusb1;
procedure libusb_free_device_list(list:plibusb_device;unref_devices:integer);LIBUSB_CALL;external libusb1;
function libusb_ref_device(dev:plibusb_device):plibusb_device;LIBUSB_CALL;external libusb1;
procedure libusb_unref_device(dev:plibusb_device);LIBUSB_CALL;external libusb1;