Skip to content

Commit

Permalink
Added InteropDotNet support
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyAkinshin committed Jul 18, 2014
1 parent 67949df commit 44e11dd
Show file tree
Hide file tree
Showing 24 changed files with 1,331 additions and 672 deletions.
2 changes: 1 addition & 1 deletion src/Tesseract.Tests/BaseApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class BaseApiTests
[Test]
public void GetVersion_Is302()
{
var version = Interop.TessApi.GetVersion();
var version = Interop.TessApi.Native.GetVersion();
Assert.That(version, Is.EqualTo("3.02"));
}
}
Expand Down
383 changes: 203 additions & 180 deletions src/Tesseract/Interop/BaseApi.cs

Large diffs are not rendered by default.

323 changes: 170 additions & 153 deletions src/Tesseract/Interop/LeptonicaApi.cs

Large diffs are not rendered by default.

264 changes: 0 additions & 264 deletions src/Tesseract/Interop/WindowsLibraryLoader.cs

This file was deleted.

15 changes: 15 additions & 0 deletions src/Tesseract/InteropDotNet/ILibraryLoaderLogic.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright (c) 2014 Andrey Akinshin
// Project URL: https://github.com/AndreyAkinshin/InteropDotNet
// Distributed under the MIT License: http://opensource.org/licenses/MIT
using System;

namespace InteropDotNet
{
internal interface ILibraryLoaderLogic
{
IntPtr LoadLibrary(string fileName);
bool FreeLibrary(IntPtr libraryHandle);
IntPtr GetProcAddress(IntPtr libraryHandle, string functionName);
string FixUpLibraryName(string fileName);
}
}
Loading

0 comments on commit 44e11dd

Please sign in to comment.