Skip to content

Commit

Permalink
use only native FPC types in the application facing API
Browse files Browse the repository at this point in the history
  • Loading branch information
prof7bit committed Nov 20, 2016
1 parent d9bb2fc commit 398ebc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hidapi.pas
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ interface
THidDevice = object
function Write(const Data; Length: SizeInt): SizeInt;
function Read(out Data; Length: SizeInt): SizeInt;
function ReadTimeout(out Data; Length: SizeInt; Millis: cint): SizeInt;
function ReadTimeout(out Data; Length: SizeInt; Millis: Integer): SizeInt;
function SetNonBlocking(NonBlock: Integer): Integer;
function SendFeatureReport(const Data; Length: SizeInt): SizeInt;
function GetFeatureReport(out Data; Length: SizeInt): SizeInt;
Expand Down Expand Up @@ -180,7 +180,7 @@ function THidDevice.Read(out Data; Length: SizeInt): SizeInt;
Result := hid_read(@Self, @Data, Length);
end;

function THidDevice.ReadTimeout(out Data; Length: SizeInt; Millis: cint): SizeInt;
function THidDevice.ReadTimeout(out Data; Length: SizeInt; Millis: Integer): SizeInt;
begin
Result := hid_read_timeout(@Self, @Data, Length, Millis);
end;
Expand Down

0 comments on commit 398ebc3

Please sign in to comment.