30 lines
970 B
C#
30 lines
970 B
C#
using System.Numerics;
|
|
using System.Runtime.InteropServices;
|
|
using System.Security;
|
|
using CodeLiturgy.Augeas.Test;
|
|
|
|
namespace CodeLiturgy.Augeas
|
|
{
|
|
[SuppressUnmanagedCodeSecurity]
|
|
public static unsafe partial class AugeasExtern
|
|
{
|
|
/// <summary>
|
|
/// Used by DllImport to load the native library
|
|
/// </summary>
|
|
public const string NativeLibName = "clAugeas";
|
|
|
|
/// <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);
|
|
|
|
}
|
|
}
|