Skip to content

Commit 09d4ed0

Browse files
committed
Alpha sort signatures of native methods
1 parent d3286d5 commit 09d4ed0

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

LibGit2Sharp/Core/NativeMethods.cs

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,25 @@ internal static extern int git_reference_symbolic_set_target(
648648
[DllImport(libgit2)]
649649
internal static extern GitReferenceType git_reference_type(ReferenceSafeHandle reference);
650650

651+
[DllImport(libgit2)]
652+
internal static extern int git_remote_connect(RemoteSafeHandle remote, GitDirection direction);
653+
654+
[DllImport(libgit2)]
655+
internal static extern int git_remote_create(
656+
out RemoteSafeHandle remote,
657+
RepositorySafeHandle repo,
658+
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8Marshaler))] string name,
659+
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8Marshaler))] string url);
660+
661+
[DllImport(libgit2)]
662+
internal static extern void git_remote_disconnect(RemoteSafeHandle remote);
663+
664+
[DllImport(libgit2)]
665+
internal static extern int git_remote_download(
666+
RemoteSafeHandle remote,
667+
git_transfer_progress_callback progress_cb,
668+
IntPtr payload);
669+
651670
[DllImport(libgit2)]
652671
internal static extern void git_remote_free(IntPtr remote);
653672

@@ -661,20 +680,14 @@ internal static extern int git_remote_load(
661680
RepositorySafeHandle repo,
662681
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8Marshaler))] string name);
663682

664-
[DllImport(libgit2)]
665-
[return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8NoCleanupMarshaler))]
666-
internal static extern string git_remote_name(RemoteSafeHandle remote);
683+
internal delegate int git_headlist_cb(ref GitRemoteHead remoteHeadPtr, IntPtr payload);
667684

668685
[DllImport(libgit2)]
669-
internal static extern int git_remote_create(
670-
out RemoteSafeHandle remote,
671-
RepositorySafeHandle repo,
672-
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8Marshaler))] string name,
673-
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8Marshaler))] string url);
686+
internal static extern int git_remote_ls(RemoteSafeHandle remote, git_headlist_cb headlist_cb, IntPtr payload);
674687

675688
[DllImport(libgit2)]
676689
[return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8NoCleanupMarshaler))]
677-
internal static extern string git_remote_url(RemoteSafeHandle remote);
690+
internal static extern string git_remote_name(RemoteSafeHandle remote);
678691

679692
[DllImport(libgit2)]
680693
internal static extern int git_remote_save(RemoteSafeHandle remote);
@@ -686,38 +699,22 @@ internal static extern void git_remote_set_cred_acquire_cb(
686699
IntPtr payload);
687700

688701
[DllImport(libgit2)]
689-
internal static extern int git_repository_odb(out ObjectDatabaseSafeHandle odb, RepositorySafeHandle repo);
690-
691-
[DllImport(libgit2)]
692-
internal static extern int git_remote_connect(RemoteSafeHandle remote, GitDirection direction);
693-
694-
[DllImport(libgit2)]
695-
internal static extern void git_remote_disconnect(RemoteSafeHandle remote);
702+
[return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8NoCleanupMarshaler))]
703+
internal static extern string git_remote_url(RemoteSafeHandle remote);
696704

697705
[DllImport(libgit2)]
698-
internal static extern int git_remote_ls(RemoteSafeHandle remote, git_headlist_cb headlist_cb, IntPtr payload);
699-
700-
internal delegate int git_headlist_cb(ref GitRemoteHead remoteHeadPtr, IntPtr payload);
706+
internal static extern void git_remote_set_autotag(RemoteSafeHandle remote, TagFetchMode option);
701707

702708
[DllImport(libgit2)]
703-
internal static extern int git_remote_download(
709+
internal static extern int git_remote_set_callbacks(
704710
RemoteSafeHandle remote,
705-
git_transfer_progress_callback progress_cb,
706-
IntPtr payload);
707-
708-
[DllImport(libgit2)]
709-
internal static extern void git_remote_set_autotag(RemoteSafeHandle remote, TagFetchMode option);
711+
ref GitRemoteCallbacks callbacks);
710712

711713
[DllImport(libgit2)]
712714
internal static extern int git_remote_set_fetchspec(
713715
RemoteSafeHandle remote,
714716
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof (Utf8Marshaler))] string fetchrefspec);
715717

716-
[DllImport(libgit2)]
717-
internal static extern int git_remote_set_callbacks(
718-
RemoteSafeHandle remote,
719-
ref GitRemoteCallbacks callbacks);
720-
721718
internal delegate void remote_progress_callback(IntPtr str, int len, IntPtr data);
722719

723720
internal delegate int remote_completion_callback(RemoteCompletionType type, IntPtr data);
@@ -789,6 +786,9 @@ internal static extern int git_repository_mergehead_foreach(
789786
git_repository_mergehead_foreach_cb cb,
790787
IntPtr payload);
791788

789+
[DllImport(libgit2)]
790+
internal static extern int git_repository_odb(out ObjectDatabaseSafeHandle odb, RepositorySafeHandle repo);
791+
792792
[DllImport(libgit2)]
793793
internal static extern int git_repository_open(
794794
out RepositorySafeHandle repository,

0 commit comments

Comments
 (0)