2022-11-04 03:40:02 +03:00
|
|
|
using System.Numerics;
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
using System.Security;
|
2022-11-04 20:09:06 +03:00
|
|
|
using CodeLiturgy.Augeas.Test;
|
2022-11-04 03:40:02 +03:00
|
|
|
|
2022-11-04 20:09:06 +03:00
|
|
|
namespace CodeLiturgy.Augeas
|
2022-11-04 03:40:02 +03:00
|
|
|
{
|
|
|
|
[SuppressUnmanagedCodeSecurity]
|
2022-11-04 20:09:06 +03:00
|
|
|
public static unsafe partial class AugeasExtern
|
2022-11-04 03:40:02 +03:00
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Used by DllImport to load the native library
|
|
|
|
/// </summary>
|
2022-11-04 20:09:06 +03:00
|
|
|
public const string NativeLibName = "clAugeas";
|
2022-11-04 03:40:02 +03:00
|
|
|
|
|
|
|
/// <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);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|