Skip to content

Commit

Permalink
Fix namings
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruslan Balanukhin committed Aug 25, 2022
1 parent 8082dc6 commit 8bcb209
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace FFmpeg.AutoGen.Bindings.DynamicallyLoaded;

public abstract class FunctionLocatorBase : IFunctionLocator
public abstract class FunctionResolverBase : IFunctionResolver
{
public static readonly Dictionary<string, string[]> LibraryDependenciesMap =
new()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace FFmpeg.AutoGen.Bindings.DynamicallyLoaded;

public static class FunctionLoaderFactory
public static class FunctionResolverFactory
{
public static PlatformID GetPlatformId()
{
Expand All @@ -19,16 +19,16 @@ public static PlatformID GetPlatformId()
#endif
}

public static IFunctionLocator Create()
public static IFunctionResolver Create()
{
switch (GetPlatformId())
{
case PlatformID.MacOSX:
return new MacFunctionLocator();
return new MacFunctionResolver();
case PlatformID.Unix:
return new LinuxFunctionLocator();
return new LinuxFunctionResolver();
case PlatformID.Win32NT:
return new WindowsFunctionLocator();
return new WindowsFunctionResolver();
default:
throw new PlatformNotSupportedException();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace FFmpeg.AutoGen
/// <summary>
/// Supports loading functions from native libraries. Provides a more flexible alternative to P/Invoke.
/// </summary>
public interface IFunctionLocator
public interface IFunctionResolver
{

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace FFmpeg.AutoGen.Bindings.DynamicallyLoaded.Native;

public class LinuxFunctionLocator : FunctionLocatorBase
public class LinuxFunctionResolver : FunctionResolverBase
{
private const string Libdl = "libdl.so.2";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace FFmpeg.AutoGen.Bindings.DynamicallyLoaded.Native;

public class MacFunctionLocator : FunctionLocatorBase
public class MacFunctionResolver : FunctionResolverBase
{
private const string Libdl = "libdl";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace FFmpeg.AutoGen.Bindings.DynamicallyLoaded.Native;

public class WindowsFunctionLocator : FunctionLocatorBase
public class WindowsFunctionResolver : FunctionResolverBase
{
private const string Kernel32 = "kernel32";

Expand Down

0 comments on commit 8bcb209

Please sign in to comment.