forked from libgit2/libgit2sharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUnSafeNativeMethods.cs
More file actions
33 lines (25 loc) · 955 Bytes
/
UnSafeNativeMethods.cs
File metadata and controls
33 lines (25 loc) · 955 Bytes
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
30
31
32
33
using System;
using System.Runtime.InteropServices;
using LibGit2Sharp.Core.Handles;
namespace LibGit2Sharp.Core
{
internal static unsafe class UnSafeNativeMethods
{
private const string libgit2 = "git2";
[DllImport(libgit2)]
internal static extern int git_reference_list(out git_strarray array, RepositorySafeHandle repo, GitReferenceType flags);
[DllImport(libgit2)]
internal static extern int git_remote_list(out git_strarray array, RepositorySafeHandle repo);
[DllImport(libgit2)]
internal static extern int git_tag_list(out git_strarray array, RepositorySafeHandle repo);
[DllImport(libgit2)]
internal static extern void git_strarray_free(ref git_strarray array);
#region Nested type: git_strarray
internal struct git_strarray
{
public sbyte** strings;
public UIntPtr size;
}
#endregion
}
}