Skip to content

Commit 2d11197

Browse files
committed
Try generic library names again
1 parent 45cf48d commit 2d11197

4 files changed

Lines changed: 15 additions & 3 deletions

File tree

Rubjerg.Graphviz/Constants.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using System;
2+
using System.Runtime.InteropServices;
3+
4+
namespace Rubjerg.Graphviz;
5+
6+
internal static class Constants
7+
{
8+
public const string GvcLib = "gvc";
9+
public const string CGraphLib = "cgraph";
10+
public const string XDotLib = "xdot";
11+
public const string GraphvizWrapperLib = "GraphvizWrapper";
12+
}

Rubjerg.Graphviz/ForeignFunctionInterface.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
namespace Rubjerg.Graphviz;
55

66
using static Marshaling;
7-
using static NativeLibraryNames;
7+
using static Constants;
88

99
/// <summary>
1010
/// Graphviz is thread unsafe, so we wrap all function calls inside a lock to make sure we don't run into

Rubjerg.Graphviz/Marshaling.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace Rubjerg.Graphviz;
77

8-
using static NativeLibraryNames;
8+
using static Constants;
99

1010
internal static class Marshaling
1111
{

Rubjerg.Graphviz/XDotFFI.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
namespace Rubjerg.Graphviz;
55

66
using static Marshaling;
7-
using static NativeLibraryNames;
7+
using static Constants;
88

99
/// <summary>
1010
/// See https://graphviz.org/docs/outputs/canon/#xdot

0 commit comments

Comments
 (0)