forked from LagrangeDev/LagrangeV2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWrapper.cs
More file actions
29 lines (20 loc) · 1.09 KB
/
Copy pathWrapper.cs
File metadata and controls
29 lines (20 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System.Runtime.InteropServices;
namespace Lagrange.Core.NativeAPI.Test;
public static class Wrapper
{
public const string DLL_NAME = "Lagrange.Core.NativeAPI.dll";
[DllImport(DLL_NAME, CallingConvention = CallingConvention.Cdecl)]
public static extern int Initialize(IntPtr botConfigPtr, IntPtr keystorePtr, IntPtr appConfigPtr);
[DllImport(DLL_NAME, CallingConvention = CallingConvention.Cdecl)]
public static extern int Start(int index);
[DllImport(DLL_NAME, CallingConvention = CallingConvention.Cdecl)]
public static extern int Stop(int index);
[DllImport(DLL_NAME, CallingConvention = CallingConvention.Cdecl)]
public static extern int FreeMemory(IntPtr ptr);
[DllImport(DLL_NAME, CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr GetQrCodeEvent(int index);
[DllImport(DLL_NAME, CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr GetEventCount(int index);
[DllImport(DLL_NAME, CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr GetBotLogEvent(int index);
}