diff --git a/windows/git2.dll b/windows/git2.dll new file mode 100644 index 0000000..c4f54e1 Binary files /dev/null and b/windows/git2.dll differ diff --git a/windows/git2.exp b/windows/git2.exp new file mode 100644 index 0000000..b563e1c Binary files /dev/null and b/windows/git2.exp differ diff --git a/windows/git2.lib b/windows/git2.lib new file mode 100644 index 0000000..a3e8264 Binary files /dev/null and b/windows/git2.lib differ diff --git a/windows/git2.pdb b/windows/git2.pdb new file mode 100644 index 0000000..2cbfa76 Binary files /dev/null and b/windows/git2.pdb differ diff --git a/windows/tariffcalculator.pas b/windows/tariffcalculator.pas new file mode 100644 index 0000000..639ee6f --- /dev/null +++ b/windows/tariffcalculator.pas @@ -0,0 +1,35 @@ +unit TariffCalculator; + +{$mode ObjFPC}{$H+} + +interface + +uses + SysUtils, CTypes; + +type + // Can't use the class directly, so it is treated as an opaque handle. + // THandle is guaranteed to have the right size, even on other platforms. + TariffCalculatorHandle = THandle; + +function NewTariffCalculator: TariffCalculatorHandle; stdcall; +procedure DeleteTariffCalculator(handle: TariffCalculatorHandle); stdcall; + +function InitGitLibrary: cint32; stdcall; +function ShutdownGitLibrary: cint32; stdcall; +function CloneRepository(var url; var local_path) : cint32; stdcall; + +implementation + +const + DLLName = 'CalculatorCInterface.dll'; + +function NewTariffCalculator: TariffCalculatorHandle; stdcall; external DLLName; +procedure DeleteTariffCalculator(handle: TariffCalculatorHandle); stdcall; external DLLName; + +function InitGitLibrary: cint32; stdcall; external DLLName; +function ShutdownGitLibrary: cint32; stdcall; external DLLName; +function CloneRepository(var url; var local_path) : cint32; stdcall; external DLLName; + +end. +