Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added InteropDotNet support #107

Merged
merged 1 commit into from
Aug 2, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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