@@ -226,7 +226,8 @@ internal static extern int git_config_get_string(
226226 internal static extern int git_config_add_file_ondisk (
227227 ConfigurationSafeHandle cfg ,
228228 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( FilePathMarshaler ) ) ] FilePath path ,
229- int priority ) ;
229+ uint level ,
230+ bool force ) ;
230231
231232 [ DllImport ( libgit2 ) ]
232233 internal static extern int git_config_new ( out ConfigurationSafeHandle cfg ) ;
@@ -261,8 +262,7 @@ internal static extern int git_config_set_string(
261262 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( Utf8Marshaler ) ) ] string value ) ;
262263
263264 internal delegate int config_foreach_callback (
264- IntPtr var_name ,
265- IntPtr value ,
265+ IntPtr entry ,
266266 IntPtr payload ) ;
267267
268268 [ DllImport ( libgit2 ) ]
@@ -591,13 +591,18 @@ internal static extern int git_remote_new(
591591 internal static extern void git_remote_disconnect ( RemoteSafeHandle remote ) ;
592592
593593 [ DllImport ( libgit2 ) ]
594- internal static extern int git_remote_download ( RemoteSafeHandle remote , ref long bytes , ref GitIndexerStats stats ) ;
594+ internal static extern int git_remote_download (
595+ RemoteSafeHandle remote ,
596+ git_transfer_progress_callback progress_cb ,
597+ IntPtr progress_payload ) ;
595598
596599 [ DllImport ( libgit2 ) ]
597600 internal static extern void git_remote_set_autotag ( RemoteSafeHandle remote , TagFetchMode option ) ;
598601
599602 [ DllImport ( libgit2 ) ]
600- internal static extern void git_remote_set_callbacks ( RemoteSafeHandle remote , ref GitRemoteCallbacks callbacks ) ;
603+ internal static extern void git_remote_set_callbacks (
604+ RemoteSafeHandle remote ,
605+ ref GitRemoteCallbacks callbacks ) ;
601606
602607 internal delegate void remote_progress_callback ( IntPtr str , int len , IntPtr data ) ;
603608
@@ -776,6 +781,8 @@ internal static extern int git_tag_delete(
776781 [ DllImport ( libgit2 ) ]
777782 internal static extern void git_threads_shutdown ( ) ;
778783
784+ internal delegate void git_transfer_progress_callback ( IntPtr stats , IntPtr payload ) ;
785+
779786 [ DllImport ( libgit2 ) ]
780787 internal static extern int git_tree_create_fromindex ( out GitOid treeOid , IndexSafeHandle index ) ;
781788
0 commit comments