Sharp.Augeas/CodeLiturgy.Augeas/Augeas.cs

29 lines
942 B
C#
Raw Normal View History

2022-11-04 03:40:02 +03:00
using System.Numerics;
using System.Runtime.InteropServices;
using System.Security;
namespace CodeLiturgy.Augeas.Test
{
[SuppressUnmanagedCodeSecurity]
public static unsafe partial class BlueWestAugeas
{
/// <summary>
/// Used by DllImport to load the native library
/// </summary>
public const string NativeLibName = "CAug";
/// <summary>Test calling</summary>
[DllImport(NativeLibName)]
public static extern void printPreview( AugSettings settings,
[MarshalAs(UnmanagedType.LPStr)] string matchPath,
[MarshalAs(UnmanagedType.LPStr)] string filePath);
/// <summary>Test calling</summary>
[DllImport(NativeLibName)]
public static extern void printAugTree( AugSettings settings,
[MarshalAs(UnmanagedType.LPStr)] string matchPath,
[MarshalAs(UnmanagedType.LPStr)] string filePath);
}
}