blob: be17f4397f88284471340daf65e58f2abc413589 (
plain)
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
34
35
36
37
38
39
|
using System;
using System.Runtime.InteropServices;
using LibGit2Sharp.Core.Handles;
namespace LibGit2Sharp.Core
{
internal static unsafe class UnSafeNativeMethods
{
private const string libgit2 = NativeDllName.Name;
[DllImport(libgit2)]
internal static extern int git_reference_list(out git_strarray array, RepositorySafeHandle repo);
[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);
[DllImport(libgit2)]
internal static extern int git_remote_get_fetch_refspecs(out git_strarray array, RemoteSafeHandle remote);
[DllImport(libgit2)]
internal static extern int git_remote_get_push_refspecs(out git_strarray array, RemoteSafeHandle remote);
#region Nested type: git_strarray
internal struct git_strarray
{
public sbyte** strings;
public UIntPtr size;
}
#endregion
}
}
|