From 2fd43f3efe83032e28e3e16c845904ca3ec7524f Mon Sep 17 00:00:00 2001 From: Aleksey Kulikov Date: Fri, 17 Sep 2021 21:15:40 +0300 Subject: [PATCH] chore: upgrade ffigen --- lib/src/bindings/libgit2_bindings.dart | 23653 ++++++++--------------- lib/src/bindings/patch.dart | 3 +- libgit2/headers/git2/sys/credential.h | 4 +- pubspec.yaml | 6 +- test/commit_test.dart | 8 +- test/diff_test.dart | 2 +- 6 files changed, 8186 insertions(+), 15490 deletions(-) diff --git a/lib/src/bindings/libgit2_bindings.dart b/lib/src/bindings/libgit2_bindings.dart index fc28542..dddfcd0 100644 --- a/lib/src/bindings/libgit2_bindings.dart +++ b/lib/src/bindings/libgit2_bindings.dart @@ -22,19 +22,21 @@ class Libgit2 { return _clock(); } - late final _clock_ptr = _lookup>('clock'); - late final _dart_clock _clock = _clock_ptr.asFunction<_dart_clock>(); + late final _clockPtr = + _lookup>('clock'); + late final _clock = _clockPtr.asFunction(); int time( - ffi.Pointer __timer, + ffi.Pointer __timer, ) { return _time( __timer, ); } - late final _time_ptr = _lookup>('time'); - late final _dart_time _time = _time_ptr.asFunction<_dart_time>(); + late final _timePtr = + _lookup)>>('time'); + late final _time = _timePtr.asFunction)>(); double difftime( int __time1, @@ -46,10 +48,10 @@ class Libgit2 { ); } - late final _difftime_ptr = - _lookup>('difftime'); - late final _dart_difftime _difftime = - _difftime_ptr.asFunction<_dart_difftime>(); + late final _difftimePtr = + _lookup>( + 'difftime'); + late final _difftime = _difftimePtr.asFunction(); int mktime( ffi.Pointer __tp, @@ -59,8 +61,9 @@ class Libgit2 { ); } - late final _mktime_ptr = _lookup>('mktime'); - late final _dart_mktime _mktime = _mktime_ptr.asFunction<_dart_mktime>(); + late final _mktimePtr = + _lookup)>>('mktime'); + late final _mktime = _mktimePtr.asFunction)>(); int strftime( ffi.Pointer __s, @@ -76,17 +79,20 @@ class Libgit2 { ); } - late final _strftime_ptr = - _lookup>('strftime'); - late final _dart_strftime _strftime = - _strftime_ptr.asFunction<_dart_strftime>(); + late final _strftimePtr = _lookup< + ffi.NativeFunction< + size_t Function(ffi.Pointer, size_t, ffi.Pointer, + ffi.Pointer)>>('strftime'); + late final _strftime = _strftimePtr.asFunction< + int Function(ffi.Pointer, int, ffi.Pointer, + ffi.Pointer)>(); int strftime_l( ffi.Pointer __s, int __maxsize, ffi.Pointer __format, ffi.Pointer __tp, - ffi.Pointer<__locale_struct> __loc, + locale_t __loc, ) { return _strftime_l( __s, @@ -97,37 +103,44 @@ class Libgit2 { ); } - late final _strftime_l_ptr = - _lookup>('strftime_l'); - late final _dart_strftime_l _strftime_l = - _strftime_l_ptr.asFunction<_dart_strftime_l>(); + late final _strftime_lPtr = _lookup< + ffi.NativeFunction< + size_t Function(ffi.Pointer, size_t, ffi.Pointer, + ffi.Pointer, locale_t)>>('strftime_l'); + late final _strftime_l = _strftime_lPtr.asFunction< + int Function(ffi.Pointer, int, ffi.Pointer, + ffi.Pointer, locale_t)>(); ffi.Pointer gmtime( - ffi.Pointer __timer, + ffi.Pointer __timer, ) { return _gmtime( __timer, ); } - late final _gmtime_ptr = _lookup>('gmtime'); - late final _dart_gmtime _gmtime = _gmtime_ptr.asFunction<_dart_gmtime>(); + late final _gmtimePtr = _lookup< + ffi.NativeFunction Function(ffi.Pointer)>>( + 'gmtime'); + late final _gmtime = + _gmtimePtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer localtime( - ffi.Pointer __timer, + ffi.Pointer __timer, ) { return _localtime( __timer, ); } - late final _localtime_ptr = - _lookup>('localtime'); - late final _dart_localtime _localtime = - _localtime_ptr.asFunction<_dart_localtime>(); + late final _localtimePtr = _lookup< + ffi.NativeFunction Function(ffi.Pointer)>>( + 'localtime'); + late final _localtime = + _localtimePtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer gmtime_r( - ffi.Pointer __timer, + ffi.Pointer __timer, ffi.Pointer __tp, ) { return _gmtime_r( @@ -136,13 +149,15 @@ class Libgit2 { ); } - late final _gmtime_r_ptr = - _lookup>('gmtime_r'); - late final _dart_gmtime_r _gmtime_r = - _gmtime_r_ptr.asFunction<_dart_gmtime_r>(); + late final _gmtime_rPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('gmtime_r'); + late final _gmtime_r = _gmtime_rPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer)>(); ffi.Pointer localtime_r( - ffi.Pointer __timer, + ffi.Pointer __timer, ffi.Pointer __tp, ) { return _localtime_r( @@ -151,10 +166,12 @@ class Libgit2 { ); } - late final _localtime_r_ptr = - _lookup>('localtime_r'); - late final _dart_localtime_r _localtime_r = - _localtime_r_ptr.asFunction<_dart_localtime_r>(); + late final _localtime_rPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('localtime_r'); + late final _localtime_r = _localtime_rPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer)>(); ffi.Pointer asctime( ffi.Pointer __tp, @@ -164,19 +181,25 @@ class Libgit2 { ); } - late final _asctime_ptr = _lookup>('asctime'); - late final _dart_asctime _asctime = _asctime_ptr.asFunction<_dart_asctime>(); + late final _asctimePtr = _lookup< + ffi.NativeFunction Function(ffi.Pointer)>>( + 'asctime'); + late final _asctime = + _asctimePtr.asFunction Function(ffi.Pointer)>(); ffi.Pointer ctime( - ffi.Pointer __timer, + ffi.Pointer __timer, ) { return _ctime( __timer, ); } - late final _ctime_ptr = _lookup>('ctime'); - late final _dart_ctime _ctime = _ctime_ptr.asFunction<_dart_ctime>(); + late final _ctimePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>('ctime'); + late final _ctime = _ctimePtr + .asFunction Function(ffi.Pointer)>(); ffi.Pointer asctime_r( ffi.Pointer __tp, @@ -188,13 +211,15 @@ class Libgit2 { ); } - late final _asctime_r_ptr = - _lookup>('asctime_r'); - late final _dart_asctime_r _asctime_r = - _asctime_r_ptr.asFunction<_dart_asctime_r>(); + late final _asctime_rPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('asctime_r'); + late final _asctime_r = _asctime_rPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer)>(); ffi.Pointer ctime_r( - ffi.Pointer __timer, + ffi.Pointer __timer, ffi.Pointer __buf, ) { return _ctime_r( @@ -203,8 +228,13 @@ class Libgit2 { ); } - late final _ctime_r_ptr = _lookup>('ctime_r'); - late final _dart_ctime_r _ctime_r = _ctime_r_ptr.asFunction<_dart_ctime_r>(); + late final _ctime_rPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('ctime_r'); + late final _ctime_r = _ctime_rPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); late final ffi.Pointer>> ___tzname = _lookup>>('__tzname'); @@ -239,8 +269,9 @@ class Libgit2 { return _tzset(); } - late final _tzset_ptr = _lookup>('tzset'); - late final _dart_tzset _tzset = _tzset_ptr.asFunction<_dart_tzset>(); + late final _tzsetPtr = + _lookup>('tzset'); + late final _tzset = _tzsetPtr.asFunction(); late final ffi.Pointer _daylight = _lookup('daylight'); @@ -262,8 +293,9 @@ class Libgit2 { ); } - late final _timegm_ptr = _lookup>('timegm'); - late final _dart_timegm _timegm = _timegm_ptr.asFunction<_dart_timegm>(); + late final _timegmPtr = + _lookup)>>('timegm'); + late final _timegm = _timegmPtr.asFunction)>(); int timelocal( ffi.Pointer __tp, @@ -273,10 +305,11 @@ class Libgit2 { ); } - late final _timelocal_ptr = - _lookup>('timelocal'); - late final _dart_timelocal _timelocal = - _timelocal_ptr.asFunction<_dart_timelocal>(); + late final _timelocalPtr = + _lookup)>>( + 'timelocal'); + late final _timelocal = + _timelocalPtr.asFunction)>(); int dysize( int __year, @@ -286,8 +319,9 @@ class Libgit2 { ); } - late final _dysize_ptr = _lookup>('dysize'); - late final _dart_dysize _dysize = _dysize_ptr.asFunction<_dart_dysize>(); + late final _dysizePtr = + _lookup>('dysize'); + late final _dysize = _dysizePtr.asFunction(); int nanosleep( ffi.Pointer __requested_time, @@ -299,10 +333,12 @@ class Libgit2 { ); } - late final _nanosleep_ptr = - _lookup>('nanosleep'); - late final _dart_nanosleep _nanosleep = - _nanosleep_ptr.asFunction<_dart_nanosleep>(); + late final _nanosleepPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('nanosleep'); + late final _nanosleep = _nanosleepPtr + .asFunction, ffi.Pointer)>(); int clock_getres( int __clock_id, @@ -314,10 +350,12 @@ class Libgit2 { ); } - late final _clock_getres_ptr = - _lookup>('clock_getres'); - late final _dart_clock_getres _clock_getres = - _clock_getres_ptr.asFunction<_dart_clock_getres>(); + late final _clock_getresPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + clockid_t, ffi.Pointer)>>('clock_getres'); + late final _clock_getres = + _clock_getresPtr.asFunction)>(); int clock_gettime( int __clock_id, @@ -329,10 +367,12 @@ class Libgit2 { ); } - late final _clock_gettime_ptr = - _lookup>('clock_gettime'); - late final _dart_clock_gettime _clock_gettime = - _clock_gettime_ptr.asFunction<_dart_clock_gettime>(); + late final _clock_gettimePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + clockid_t, ffi.Pointer)>>('clock_gettime'); + late final _clock_gettime = + _clock_gettimePtr.asFunction)>(); int clock_settime( int __clock_id, @@ -344,10 +384,12 @@ class Libgit2 { ); } - late final _clock_settime_ptr = - _lookup>('clock_settime'); - late final _dart_clock_settime _clock_settime = - _clock_settime_ptr.asFunction<_dart_clock_settime>(); + late final _clock_settimePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + clockid_t, ffi.Pointer)>>('clock_settime'); + late final _clock_settime = + _clock_settimePtr.asFunction)>(); int clock_nanosleep( int __clock_id, @@ -363,14 +405,16 @@ class Libgit2 { ); } - late final _clock_nanosleep_ptr = - _lookup>('clock_nanosleep'); - late final _dart_clock_nanosleep _clock_nanosleep = - _clock_nanosleep_ptr.asFunction<_dart_clock_nanosleep>(); + late final _clock_nanosleepPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(clockid_t, ffi.Int32, ffi.Pointer, + ffi.Pointer)>>('clock_nanosleep'); + late final _clock_nanosleep = _clock_nanosleepPtr.asFunction< + int Function(int, int, ffi.Pointer, ffi.Pointer)>(); int clock_getcpuclockid( int __pid, - ffi.Pointer __clock_id, + ffi.Pointer __clock_id, ) { return _clock_getcpuclockid( __pid, @@ -378,16 +422,17 @@ class Libgit2 { ); } - late final _clock_getcpuclockid_ptr = - _lookup>( - 'clock_getcpuclockid'); - late final _dart_clock_getcpuclockid _clock_getcpuclockid = - _clock_getcpuclockid_ptr.asFunction<_dart_clock_getcpuclockid>(); + late final _clock_getcpuclockidPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + pid_t, ffi.Pointer)>>('clock_getcpuclockid'); + late final _clock_getcpuclockid = _clock_getcpuclockidPtr + .asFunction)>(); int timer_create( int __clock_id, ffi.Pointer __evp, - ffi.Pointer> __timerid, + ffi.Pointer __timerid, ) { return _timer_create( __clock_id, @@ -396,26 +441,28 @@ class Libgit2 { ); } - late final _timer_create_ptr = - _lookup>('timer_create'); - late final _dart_timer_create _timer_create = - _timer_create_ptr.asFunction<_dart_timer_create>(); + late final _timer_createPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(clockid_t, ffi.Pointer, + ffi.Pointer)>>('timer_create'); + late final _timer_create = _timer_createPtr.asFunction< + int Function(int, ffi.Pointer, ffi.Pointer)>(); int timer_delete( - ffi.Pointer __timerid, + timer_t __timerid, ) { return _timer_delete( __timerid, ); } - late final _timer_delete_ptr = - _lookup>('timer_delete'); - late final _dart_timer_delete _timer_delete = - _timer_delete_ptr.asFunction<_dart_timer_delete>(); + late final _timer_deletePtr = + _lookup>('timer_delete'); + late final _timer_delete = + _timer_deletePtr.asFunction(); int timer_settime( - ffi.Pointer __timerid, + timer_t __timerid, int __flags, ffi.Pointer __value, ffi.Pointer __ovalue, @@ -428,13 +475,16 @@ class Libgit2 { ); } - late final _timer_settime_ptr = - _lookup>('timer_settime'); - late final _dart_timer_settime _timer_settime = - _timer_settime_ptr.asFunction<_dart_timer_settime>(); + late final _timer_settimePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(timer_t, ffi.Int32, ffi.Pointer, + ffi.Pointer)>>('timer_settime'); + late final _timer_settime = _timer_settimePtr.asFunction< + int Function( + timer_t, int, ffi.Pointer, ffi.Pointer)>(); int timer_gettime( - ffi.Pointer __timerid, + timer_t __timerid, ffi.Pointer __value, ) { return _timer_gettime( @@ -443,23 +493,26 @@ class Libgit2 { ); } - late final _timer_gettime_ptr = - _lookup>('timer_gettime'); - late final _dart_timer_gettime _timer_gettime = - _timer_gettime_ptr.asFunction<_dart_timer_gettime>(); + late final _timer_gettimePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + timer_t, ffi.Pointer)>>('timer_gettime'); + late final _timer_gettime = _timer_gettimePtr + .asFunction)>(); int timer_getoverrun( - ffi.Pointer __timerid, + timer_t __timerid, ) { return _timer_getoverrun( __timerid, ); } - late final _timer_getoverrun_ptr = - _lookup>('timer_getoverrun'); - late final _dart_timer_getoverrun _timer_getoverrun = - _timer_getoverrun_ptr.asFunction<_dart_timer_getoverrun>(); + late final _timer_getoverrunPtr = + _lookup>( + 'timer_getoverrun'); + late final _timer_getoverrun = + _timer_getoverrunPtr.asFunction(); int timespec_get( ffi.Pointer __ts, @@ -471,20 +524,21 @@ class Libgit2 { ); } - late final _timespec_get_ptr = - _lookup>('timespec_get'); - late final _dart_timespec_get _timespec_get = - _timespec_get_ptr.asFunction<_dart_timespec_get>(); + late final _timespec_getPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Int32)>>('timespec_get'); + late final _timespec_get = + _timespec_getPtr.asFunction, int)>(); int __ctype_get_mb_cur_max() { return ___ctype_get_mb_cur_max(); } - late final ___ctype_get_mb_cur_max_ptr = - _lookup>( - '__ctype_get_mb_cur_max'); - late final _dart___ctype_get_mb_cur_max ___ctype_get_mb_cur_max = - ___ctype_get_mb_cur_max_ptr.asFunction<_dart___ctype_get_mb_cur_max>(); + late final ___ctype_get_mb_cur_maxPtr = + _lookup>('__ctype_get_mb_cur_max'); + late final ___ctype_get_mb_cur_max = + ___ctype_get_mb_cur_maxPtr.asFunction(); double atof( ffi.Pointer __nptr, @@ -494,8 +548,11 @@ class Libgit2 { ); } - late final _atof_ptr = _lookup>('atof'); - late final _dart_atof _atof = _atof_ptr.asFunction<_dart_atof>(); + late final _atofPtr = + _lookup)>>( + 'atof'); + late final _atof = + _atofPtr.asFunction)>(); int atoi( ffi.Pointer __nptr, @@ -505,8 +562,10 @@ class Libgit2 { ); } - late final _atoi_ptr = _lookup>('atoi'); - late final _dart_atoi _atoi = _atoi_ptr.asFunction<_dart_atoi>(); + late final _atoiPtr = + _lookup)>>( + 'atoi'); + late final _atoi = _atoiPtr.asFunction)>(); int atol( ffi.Pointer __nptr, @@ -516,8 +575,10 @@ class Libgit2 { ); } - late final _atol_ptr = _lookup>('atol'); - late final _dart_atol _atol = _atol_ptr.asFunction<_dart_atol>(); + late final _atolPtr = + _lookup)>>( + 'atol'); + late final _atol = _atolPtr.asFunction)>(); int atoll( ffi.Pointer __nptr, @@ -527,8 +588,11 @@ class Libgit2 { ); } - late final _atoll_ptr = _lookup>('atoll'); - late final _dart_atoll _atoll = _atoll_ptr.asFunction<_dart_atoll>(); + late final _atollPtr = + _lookup)>>( + 'atoll'); + late final _atoll = + _atollPtr.asFunction)>(); double strtod( ffi.Pointer __nptr, @@ -540,8 +604,13 @@ class Libgit2 { ); } - late final _strtod_ptr = _lookup>('strtod'); - late final _dart_strtod _strtod = _strtod_ptr.asFunction<_dart_strtod>(); + late final _strtodPtr = _lookup< + ffi.NativeFunction< + ffi.Double Function(ffi.Pointer, + ffi.Pointer>)>>('strtod'); + late final _strtod = _strtodPtr.asFunction< + double Function( + ffi.Pointer, ffi.Pointer>)>(); double strtof( ffi.Pointer __nptr, @@ -553,8 +622,13 @@ class Libgit2 { ); } - late final _strtof_ptr = _lookup>('strtof'); - late final _dart_strtof _strtof = _strtof_ptr.asFunction<_dart_strtof>(); + late final _strtofPtr = _lookup< + ffi.NativeFunction< + ffi.Float Function(ffi.Pointer, + ffi.Pointer>)>>('strtof'); + late final _strtof = _strtofPtr.asFunction< + double Function( + ffi.Pointer, ffi.Pointer>)>(); int strtol( ffi.Pointer __nptr, @@ -568,8 +642,13 @@ class Libgit2 { ); } - late final _strtol_ptr = _lookup>('strtol'); - late final _dart_strtol _strtol = _strtol_ptr.asFunction<_dart_strtol>(); + late final _strtolPtr = _lookup< + ffi.NativeFunction< + ffi.Int64 Function(ffi.Pointer, + ffi.Pointer>, ffi.Int32)>>('strtol'); + late final _strtol = _strtolPtr.asFunction< + int Function( + ffi.Pointer, ffi.Pointer>, int)>(); int strtoul( ffi.Pointer __nptr, @@ -583,8 +662,13 @@ class Libgit2 { ); } - late final _strtoul_ptr = _lookup>('strtoul'); - late final _dart_strtoul _strtoul = _strtoul_ptr.asFunction<_dart_strtoul>(); + late final _strtoulPtr = _lookup< + ffi.NativeFunction< + ffi.Uint64 Function(ffi.Pointer, + ffi.Pointer>, ffi.Int32)>>('strtoul'); + late final _strtoul = _strtoulPtr.asFunction< + int Function( + ffi.Pointer, ffi.Pointer>, int)>(); int strtoq( ffi.Pointer __nptr, @@ -598,8 +682,13 @@ class Libgit2 { ); } - late final _strtoq_ptr = _lookup>('strtoq'); - late final _dart_strtoq _strtoq = _strtoq_ptr.asFunction<_dart_strtoq>(); + late final _strtoqPtr = _lookup< + ffi.NativeFunction< + ffi.Int64 Function(ffi.Pointer, + ffi.Pointer>, ffi.Int32)>>('strtoq'); + late final _strtoq = _strtoqPtr.asFunction< + int Function( + ffi.Pointer, ffi.Pointer>, int)>(); int strtouq( ffi.Pointer __nptr, @@ -613,8 +702,13 @@ class Libgit2 { ); } - late final _strtouq_ptr = _lookup>('strtouq'); - late final _dart_strtouq _strtouq = _strtouq_ptr.asFunction<_dart_strtouq>(); + late final _strtouqPtr = _lookup< + ffi.NativeFunction< + ffi.Uint64 Function(ffi.Pointer, + ffi.Pointer>, ffi.Int32)>>('strtouq'); + late final _strtouq = _strtouqPtr.asFunction< + int Function( + ffi.Pointer, ffi.Pointer>, int)>(); int strtoll( ffi.Pointer __nptr, @@ -628,8 +722,13 @@ class Libgit2 { ); } - late final _strtoll_ptr = _lookup>('strtoll'); - late final _dart_strtoll _strtoll = _strtoll_ptr.asFunction<_dart_strtoll>(); + late final _strtollPtr = _lookup< + ffi.NativeFunction< + ffi.Int64 Function(ffi.Pointer, + ffi.Pointer>, ffi.Int32)>>('strtoll'); + late final _strtoll = _strtollPtr.asFunction< + int Function( + ffi.Pointer, ffi.Pointer>, int)>(); int strtoull( ffi.Pointer __nptr, @@ -643,10 +742,13 @@ class Libgit2 { ); } - late final _strtoull_ptr = - _lookup>('strtoull'); - late final _dart_strtoull _strtoull = - _strtoull_ptr.asFunction<_dart_strtoull>(); + late final _strtoullPtr = _lookup< + ffi.NativeFunction< + ffi.Uint64 Function(ffi.Pointer, + ffi.Pointer>, ffi.Int32)>>('strtoull'); + late final _strtoull = _strtoullPtr.asFunction< + int Function( + ffi.Pointer, ffi.Pointer>, int)>(); ffi.Pointer l64a( int __n, @@ -656,8 +758,10 @@ class Libgit2 { ); } - late final _l64a_ptr = _lookup>('l64a'); - late final _dart_l64a _l64a = _l64a_ptr.asFunction<_dart_l64a>(); + late final _l64aPtr = + _lookup Function(ffi.Int64)>>( + 'l64a'); + late final _l64a = _l64aPtr.asFunction Function(int)>(); int a64l( ffi.Pointer __s, @@ -667,8 +771,10 @@ class Libgit2 { ); } - late final _a64l_ptr = _lookup>('a64l'); - late final _dart_a64l _a64l = _a64l_ptr.asFunction<_dart_a64l>(); + late final _a64lPtr = + _lookup)>>( + 'a64l'); + late final _a64l = _a64lPtr.asFunction)>(); int select( int __nfds, @@ -686,8 +792,17 @@ class Libgit2 { ); } - late final _select_ptr = _lookup>('select'); - late final _dart_select _select = _select_ptr.asFunction<_dart_select>(); + late final _selectPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Int32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('select'); + late final _select = _selectPtr.asFunction< + int Function(int, ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); int pselect( int __nfds, @@ -707,15 +822,31 @@ class Libgit2 { ); } - late final _pselect_ptr = _lookup>('pselect'); - late final _dart_pselect _pselect = _pselect_ptr.asFunction<_dart_pselect>(); + late final _pselectPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Int32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<__sigset_t>)>>('pselect'); + late final _pselect = _pselectPtr.asFunction< + int Function( + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<__sigset_t>)>(); int random() { return _random(); } - late final _random_ptr = _lookup>('random'); - late final _dart_random _random = _random_ptr.asFunction<_dart_random>(); + late final _randomPtr = + _lookup>('random'); + late final _random = _randomPtr.asFunction(); void srandom( int __seed, @@ -725,8 +856,9 @@ class Libgit2 { ); } - late final _srandom_ptr = _lookup>('srandom'); - late final _dart_srandom _srandom = _srandom_ptr.asFunction<_dart_srandom>(); + late final _srandomPtr = + _lookup>('srandom'); + late final _srandom = _srandomPtr.asFunction(); ffi.Pointer initstate( int __seed, @@ -740,10 +872,12 @@ class Libgit2 { ); } - late final _initstate_ptr = - _lookup>('initstate'); - late final _dart_initstate _initstate = - _initstate_ptr.asFunction<_dart_initstate>(); + late final _initstatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Uint32, ffi.Pointer, size_t)>>('initstate'); + late final _initstate = _initstatePtr.asFunction< + ffi.Pointer Function(int, ffi.Pointer, int)>(); ffi.Pointer setstate( ffi.Pointer __statebuf, @@ -753,10 +887,11 @@ class Libgit2 { ); } - late final _setstate_ptr = - _lookup>('setstate'); - late final _dart_setstate _setstate = - _setstate_ptr.asFunction<_dart_setstate>(); + late final _setstatePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>('setstate'); + late final _setstate = _setstatePtr + .asFunction Function(ffi.Pointer)>(); int random_r( ffi.Pointer __buf, @@ -768,10 +903,12 @@ class Libgit2 { ); } - late final _random_r_ptr = - _lookup>('random_r'); - late final _dart_random_r _random_r = - _random_r_ptr.asFunction<_dart_random_r>(); + late final _random_rPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('random_r'); + late final _random_r = _random_rPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); int srandom_r( int __seed, @@ -783,10 +920,12 @@ class Libgit2 { ); } - late final _srandom_r_ptr = - _lookup>('srandom_r'); - late final _dart_srandom_r _srandom_r = - _srandom_r_ptr.asFunction<_dart_srandom_r>(); + late final _srandom_rPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Uint32, ffi.Pointer)>>('srandom_r'); + late final _srandom_r = + _srandom_rPtr.asFunction)>(); int initstate_r( int __seed, @@ -802,10 +941,13 @@ class Libgit2 { ); } - late final _initstate_r_ptr = - _lookup>('initstate_r'); - late final _dart_initstate_r _initstate_r = - _initstate_r_ptr.asFunction<_dart_initstate_r>(); + late final _initstate_rPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Uint32, ffi.Pointer, size_t, + ffi.Pointer)>>('initstate_r'); + late final _initstate_r = _initstate_rPtr.asFunction< + int Function( + int, ffi.Pointer, int, ffi.Pointer)>(); int setstate_r( ffi.Pointer __statebuf, @@ -817,17 +959,20 @@ class Libgit2 { ); } - late final _setstate_r_ptr = - _lookup>('setstate_r'); - late final _dart_setstate_r _setstate_r = - _setstate_r_ptr.asFunction<_dart_setstate_r>(); + late final _setstate_rPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('setstate_r'); + late final _setstate_r = _setstate_rPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); int rand() { return _rand(); } - late final _rand_ptr = _lookup>('rand'); - late final _dart_rand _rand = _rand_ptr.asFunction<_dart_rand>(); + late final _randPtr = + _lookup>('rand'); + late final _rand = _randPtr.asFunction(); void srand( int __seed, @@ -837,8 +982,9 @@ class Libgit2 { ); } - late final _srand_ptr = _lookup>('srand'); - late final _dart_srand _srand = _srand_ptr.asFunction<_dart_srand>(); + late final _srandPtr = + _lookup>('srand'); + late final _srand = _srandPtr.asFunction(); int rand_r( ffi.Pointer __seed, @@ -848,15 +994,19 @@ class Libgit2 { ); } - late final _rand_r_ptr = _lookup>('rand_r'); - late final _dart_rand_r _rand_r = _rand_r_ptr.asFunction<_dart_rand_r>(); + late final _rand_rPtr = + _lookup)>>( + 'rand_r'); + late final _rand_r = + _rand_rPtr.asFunction)>(); double drand48() { return _drand48(); } - late final _drand48_ptr = _lookup>('drand48'); - late final _dart_drand48 _drand48 = _drand48_ptr.asFunction<_dart_drand48>(); + late final _drand48Ptr = + _lookup>('drand48'); + late final _drand48 = _drand48Ptr.asFunction(); double erand48( ffi.Pointer __xsubi, @@ -866,15 +1016,19 @@ class Libgit2 { ); } - late final _erand48_ptr = _lookup>('erand48'); - late final _dart_erand48 _erand48 = _erand48_ptr.asFunction<_dart_erand48>(); + late final _erand48Ptr = + _lookup)>>( + 'erand48'); + late final _erand48 = + _erand48Ptr.asFunction)>(); int lrand48() { return _lrand48(); } - late final _lrand48_ptr = _lookup>('lrand48'); - late final _dart_lrand48 _lrand48 = _lrand48_ptr.asFunction<_dart_lrand48>(); + late final _lrand48Ptr = + _lookup>('lrand48'); + late final _lrand48 = _lrand48Ptr.asFunction(); int nrand48( ffi.Pointer __xsubi, @@ -884,15 +1038,19 @@ class Libgit2 { ); } - late final _nrand48_ptr = _lookup>('nrand48'); - late final _dart_nrand48 _nrand48 = _nrand48_ptr.asFunction<_dart_nrand48>(); + late final _nrand48Ptr = + _lookup)>>( + 'nrand48'); + late final _nrand48 = + _nrand48Ptr.asFunction)>(); int mrand48() { return _mrand48(); } - late final _mrand48_ptr = _lookup>('mrand48'); - late final _dart_mrand48 _mrand48 = _mrand48_ptr.asFunction<_dart_mrand48>(); + late final _mrand48Ptr = + _lookup>('mrand48'); + late final _mrand48 = _mrand48Ptr.asFunction(); int jrand48( ffi.Pointer __xsubi, @@ -902,8 +1060,11 @@ class Libgit2 { ); } - late final _jrand48_ptr = _lookup>('jrand48'); - late final _dart_jrand48 _jrand48 = _jrand48_ptr.asFunction<_dart_jrand48>(); + late final _jrand48Ptr = + _lookup)>>( + 'jrand48'); + late final _jrand48 = + _jrand48Ptr.asFunction)>(); void srand48( int __seedval, @@ -913,8 +1074,9 @@ class Libgit2 { ); } - late final _srand48_ptr = _lookup>('srand48'); - late final _dart_srand48 _srand48 = _srand48_ptr.asFunction<_dart_srand48>(); + late final _srand48Ptr = + _lookup>('srand48'); + late final _srand48 = _srand48Ptr.asFunction(); ffi.Pointer seed48( ffi.Pointer __seed16v, @@ -924,8 +1086,11 @@ class Libgit2 { ); } - late final _seed48_ptr = _lookup>('seed48'); - late final _dart_seed48 _seed48 = _seed48_ptr.asFunction<_dart_seed48>(); + late final _seed48Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>('seed48'); + late final _seed48 = _seed48Ptr + .asFunction Function(ffi.Pointer)>(); void lcong48( ffi.Pointer __param, @@ -935,8 +1100,11 @@ class Libgit2 { ); } - late final _lcong48_ptr = _lookup>('lcong48'); - late final _dart_lcong48 _lcong48 = _lcong48_ptr.asFunction<_dart_lcong48>(); + late final _lcong48Ptr = + _lookup)>>( + 'lcong48'); + late final _lcong48 = + _lcong48Ptr.asFunction)>(); int drand48_r( ffi.Pointer __buffer, @@ -948,10 +1116,12 @@ class Libgit2 { ); } - late final _drand48_r_ptr = - _lookup>('drand48_r'); - late final _dart_drand48_r _drand48_r = - _drand48_r_ptr.asFunction<_dart_drand48_r>(); + late final _drand48_rPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('drand48_r'); + late final _drand48_r = _drand48_rPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); int erand48_r( ffi.Pointer __xsubi, @@ -965,10 +1135,13 @@ class Libgit2 { ); } - late final _erand48_r_ptr = - _lookup>('erand48_r'); - late final _dart_erand48_r _erand48_r = - _erand48_r_ptr.asFunction<_dart_erand48_r>(); + late final _erand48_rPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('erand48_r'); + late final _erand48_r = _erand48_rPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); int lrand48_r( ffi.Pointer __buffer, @@ -980,10 +1153,12 @@ class Libgit2 { ); } - late final _lrand48_r_ptr = - _lookup>('lrand48_r'); - late final _dart_lrand48_r _lrand48_r = - _lrand48_r_ptr.asFunction<_dart_lrand48_r>(); + late final _lrand48_rPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('lrand48_r'); + late final _lrand48_r = _lrand48_rPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); int nrand48_r( ffi.Pointer __xsubi, @@ -997,10 +1172,13 @@ class Libgit2 { ); } - late final _nrand48_r_ptr = - _lookup>('nrand48_r'); - late final _dart_nrand48_r _nrand48_r = - _nrand48_r_ptr.asFunction<_dart_nrand48_r>(); + late final _nrand48_rPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('nrand48_r'); + late final _nrand48_r = _nrand48_rPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); int mrand48_r( ffi.Pointer __buffer, @@ -1012,10 +1190,12 @@ class Libgit2 { ); } - late final _mrand48_r_ptr = - _lookup>('mrand48_r'); - late final _dart_mrand48_r _mrand48_r = - _mrand48_r_ptr.asFunction<_dart_mrand48_r>(); + late final _mrand48_rPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('mrand48_r'); + late final _mrand48_r = _mrand48_rPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); int jrand48_r( ffi.Pointer __xsubi, @@ -1029,10 +1209,13 @@ class Libgit2 { ); } - late final _jrand48_r_ptr = - _lookup>('jrand48_r'); - late final _dart_jrand48_r _jrand48_r = - _jrand48_r_ptr.asFunction<_dart_jrand48_r>(); + late final _jrand48_rPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('jrand48_r'); + late final _jrand48_r = _jrand48_rPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); int srand48_r( int __seedval, @@ -1044,10 +1227,12 @@ class Libgit2 { ); } - late final _srand48_r_ptr = - _lookup>('srand48_r'); - late final _dart_srand48_r _srand48_r = - _srand48_r_ptr.asFunction<_dart_srand48_r>(); + late final _srand48_rPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Int64, ffi.Pointer)>>('srand48_r'); + late final _srand48_r = + _srand48_rPtr.asFunction)>(); int seed48_r( ffi.Pointer __seed16v, @@ -1059,10 +1244,12 @@ class Libgit2 { ); } - late final _seed48_r_ptr = - _lookup>('seed48_r'); - late final _dart_seed48_r _seed48_r = - _seed48_r_ptr.asFunction<_dart_seed48_r>(); + late final _seed48_rPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('seed48_r'); + late final _seed48_r = _seed48_rPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); int lcong48_r( ffi.Pointer __param, @@ -1074,10 +1261,12 @@ class Libgit2 { ); } - late final _lcong48_r_ptr = - _lookup>('lcong48_r'); - late final _dart_lcong48_r _lcong48_r = - _lcong48_r_ptr.asFunction<_dart_lcong48_r>(); + late final _lcong48_rPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('lcong48_r'); + late final _lcong48_r = _lcong48_rPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); ffi.Pointer malloc( int __size, @@ -1087,8 +1276,11 @@ class Libgit2 { ); } - late final _malloc_ptr = _lookup>('malloc'); - late final _dart_malloc _malloc = _malloc_ptr.asFunction<_dart_malloc>(); + late final _mallocPtr = + _lookup Function(size_t)>>( + 'malloc'); + late final _malloc = + _mallocPtr.asFunction Function(int)>(); ffi.Pointer calloc( int __nmemb, @@ -1100,8 +1292,11 @@ class Libgit2 { ); } - late final _calloc_ptr = _lookup>('calloc'); - late final _dart_calloc _calloc = _calloc_ptr.asFunction<_dart_calloc>(); + late final _callocPtr = _lookup< + ffi.NativeFunction Function(size_t, size_t)>>( + 'calloc'); + late final _calloc = + _callocPtr.asFunction Function(int, int)>(); ffi.Pointer realloc( ffi.Pointer __ptr, @@ -1113,8 +1308,12 @@ class Libgit2 { ); } - late final _realloc_ptr = _lookup>('realloc'); - late final _dart_realloc _realloc = _realloc_ptr.asFunction<_dart_realloc>(); + late final _reallocPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, size_t)>>('realloc'); + late final _realloc = _reallocPtr + .asFunction Function(ffi.Pointer, int)>(); ffi.Pointer reallocarray( ffi.Pointer __ptr, @@ -1128,10 +1327,12 @@ class Libgit2 { ); } - late final _reallocarray_ptr = - _lookup>('reallocarray'); - late final _dart_reallocarray _reallocarray = - _reallocarray_ptr.asFunction<_dart_reallocarray>(); + late final _reallocarrayPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, size_t, size_t)>>('reallocarray'); + late final _reallocarray = _reallocarrayPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int, int)>(); void free( ffi.Pointer __ptr, @@ -1141,8 +1342,11 @@ class Libgit2 { ); } - late final _free_ptr = _lookup>('free'); - late final _dart_free _free = _free_ptr.asFunction<_dart_free>(); + late final _freePtr = + _lookup)>>( + 'free'); + late final _free = + _freePtr.asFunction)>(); ffi.Pointer alloca( int __size, @@ -1152,8 +1356,11 @@ class Libgit2 { ); } - late final _alloca_ptr = _lookup>('alloca'); - late final _dart_alloca _alloca = _alloca_ptr.asFunction<_dart_alloca>(); + late final _allocaPtr = + _lookup Function(size_t)>>( + 'alloca'); + late final _alloca = + _allocaPtr.asFunction Function(int)>(); ffi.Pointer valloc( int __size, @@ -1163,8 +1370,11 @@ class Libgit2 { ); } - late final _valloc_ptr = _lookup>('valloc'); - late final _dart_valloc _valloc = _valloc_ptr.asFunction<_dart_valloc>(); + late final _vallocPtr = + _lookup Function(size_t)>>( + 'valloc'); + late final _valloc = + _vallocPtr.asFunction Function(int)>(); int posix_memalign( ffi.Pointer> __memptr, @@ -1178,10 +1388,12 @@ class Libgit2 { ); } - late final _posix_memalign_ptr = - _lookup>('posix_memalign'); - late final _dart_posix_memalign _posix_memalign = - _posix_memalign_ptr.asFunction<_dart_posix_memalign>(); + late final _posix_memalignPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, size_t, + size_t)>>('posix_memalign'); + late final _posix_memalign = _posix_memalignPtr + .asFunction>, int, int)>(); ffi.Pointer aligned_alloc( int __alignment, @@ -1193,44 +1405,56 @@ class Libgit2 { ); } - late final _aligned_alloc_ptr = - _lookup>('aligned_alloc'); - late final _dart_aligned_alloc _aligned_alloc = - _aligned_alloc_ptr.asFunction<_dart_aligned_alloc>(); + late final _aligned_allocPtr = _lookup< + ffi.NativeFunction Function(size_t, size_t)>>( + 'aligned_alloc'); + late final _aligned_alloc = + _aligned_allocPtr.asFunction Function(int, int)>(); void abort() { return _abort(); } - late final _abort_ptr = _lookup>('abort'); - late final _dart_abort _abort = _abort_ptr.asFunction<_dart_abort>(); + late final _abortPtr = + _lookup>('abort'); + late final _abort = _abortPtr.asFunction(); int atexit( - ffi.Pointer> __func, + ffi.Pointer> __func, ) { return _atexit( __func, ); } - late final _atexit_ptr = _lookup>('atexit'); - late final _dart_atexit _atexit = _atexit_ptr.asFunction<_dart_atexit>(); + late final _atexitPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>)>>('atexit'); + late final _atexit = _atexitPtr.asFunction< + int Function(ffi.Pointer>)>(); int at_quick_exit( - ffi.Pointer> __func, + ffi.Pointer> __func, ) { return _at_quick_exit( __func, ); } - late final _at_quick_exit_ptr = - _lookup>('at_quick_exit'); - late final _dart_at_quick_exit _at_quick_exit = - _at_quick_exit_ptr.asFunction<_dart_at_quick_exit>(); + late final _at_quick_exitPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>)>>( + 'at_quick_exit'); + late final _at_quick_exit = _at_quick_exitPtr.asFunction< + int Function(ffi.Pointer>)>(); int on_exit( - ffi.Pointer> __func, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Int32, ffi.Pointer)>> + __func, ffi.Pointer __arg, ) { return _on_exit( @@ -1239,8 +1463,19 @@ class Libgit2 { ); } - late final _on_exit_ptr = _lookup>('on_exit'); - late final _dart_on_exit _on_exit = _on_exit_ptr.asFunction<_dart_on_exit>(); + late final _on_exitPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Int32, ffi.Pointer)>>, + ffi.Pointer)>>('on_exit'); + late final _on_exit = _on_exitPtr.asFunction< + int Function( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Int32, ffi.Pointer)>>, + ffi.Pointer)>(); void exit( int __status, @@ -1250,8 +1485,9 @@ class Libgit2 { ); } - late final _exit_ptr = _lookup>('exit'); - late final _dart_exit _exit = _exit_ptr.asFunction<_dart_exit>(); + late final _exitPtr = + _lookup>('exit'); + late final _exit = _exitPtr.asFunction(); void quick_exit( int __status, @@ -1261,10 +1497,9 @@ class Libgit2 { ); } - late final _quick_exit_ptr = - _lookup>('quick_exit'); - late final _dart_quick_exit _quick_exit = - _quick_exit_ptr.asFunction<_dart_quick_exit>(); + late final _quick_exitPtr = + _lookup>('quick_exit'); + late final _quick_exit = _quick_exitPtr.asFunction(); void _Exit( int __status, @@ -1274,8 +1509,9 @@ class Libgit2 { ); } - late final __Exit_ptr = _lookup>('_Exit'); - late final _dart__Exit __Exit = __Exit_ptr.asFunction<_dart__Exit>(); + late final __ExitPtr = + _lookup>('_Exit'); + late final __Exit = __ExitPtr.asFunction(); ffi.Pointer getenv( ffi.Pointer __name, @@ -1285,8 +1521,11 @@ class Libgit2 { ); } - late final _getenv_ptr = _lookup>('getenv'); - late final _dart_getenv _getenv = _getenv_ptr.asFunction<_dart_getenv>(); + late final _getenvPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>('getenv'); + late final _getenv = _getenvPtr + .asFunction Function(ffi.Pointer)>(); int putenv( ffi.Pointer __string, @@ -1296,8 +1535,11 @@ class Libgit2 { ); } - late final _putenv_ptr = _lookup>('putenv'); - late final _dart_putenv _putenv = _putenv_ptr.asFunction<_dart_putenv>(); + late final _putenvPtr = + _lookup)>>( + 'putenv'); + late final _putenv = + _putenvPtr.asFunction)>(); int setenv( ffi.Pointer __name, @@ -1311,8 +1553,12 @@ class Libgit2 { ); } - late final _setenv_ptr = _lookup>('setenv'); - late final _dart_setenv _setenv = _setenv_ptr.asFunction<_dart_setenv>(); + late final _setenvPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('setenv'); + late final _setenv = _setenvPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int)>(); int unsetenv( ffi.Pointer __name, @@ -1322,19 +1568,19 @@ class Libgit2 { ); } - late final _unsetenv_ptr = - _lookup>('unsetenv'); - late final _dart_unsetenv _unsetenv = - _unsetenv_ptr.asFunction<_dart_unsetenv>(); + late final _unsetenvPtr = + _lookup)>>( + 'unsetenv'); + late final _unsetenv = + _unsetenvPtr.asFunction)>(); int clearenv() { return _clearenv(); } - late final _clearenv_ptr = - _lookup>('clearenv'); - late final _dart_clearenv _clearenv = - _clearenv_ptr.asFunction<_dart_clearenv>(); + late final _clearenvPtr = + _lookup>('clearenv'); + late final _clearenv = _clearenvPtr.asFunction(); ffi.Pointer mktemp( ffi.Pointer __template, @@ -1344,8 +1590,11 @@ class Libgit2 { ); } - late final _mktemp_ptr = _lookup>('mktemp'); - late final _dart_mktemp _mktemp = _mktemp_ptr.asFunction<_dart_mktemp>(); + late final _mktempPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>('mktemp'); + late final _mktemp = _mktempPtr + .asFunction Function(ffi.Pointer)>(); int mkstemp( ffi.Pointer __template, @@ -1355,8 +1604,11 @@ class Libgit2 { ); } - late final _mkstemp_ptr = _lookup>('mkstemp'); - late final _dart_mkstemp _mkstemp = _mkstemp_ptr.asFunction<_dart_mkstemp>(); + late final _mkstempPtr = + _lookup)>>( + 'mkstemp'); + late final _mkstemp = + _mkstempPtr.asFunction)>(); int mkstemps( ffi.Pointer __template, @@ -1368,10 +1620,11 @@ class Libgit2 { ); } - late final _mkstemps_ptr = - _lookup>('mkstemps'); - late final _dart_mkstemps _mkstemps = - _mkstemps_ptr.asFunction<_dart_mkstemps>(); + late final _mkstempsPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Int32)>>('mkstemps'); + late final _mkstemps = + _mkstempsPtr.asFunction, int)>(); ffi.Pointer mkdtemp( ffi.Pointer __template, @@ -1381,8 +1634,11 @@ class Libgit2 { ); } - late final _mkdtemp_ptr = _lookup>('mkdtemp'); - late final _dart_mkdtemp _mkdtemp = _mkdtemp_ptr.asFunction<_dart_mkdtemp>(); + late final _mkdtempPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>('mkdtemp'); + late final _mkdtemp = _mkdtempPtr + .asFunction Function(ffi.Pointer)>(); int system( ffi.Pointer __command, @@ -1392,8 +1648,11 @@ class Libgit2 { ); } - late final _system_ptr = _lookup>('system'); - late final _dart_system _system = _system_ptr.asFunction<_dart_system>(); + late final _systemPtr = + _lookup)>>( + 'system'); + late final _system = + _systemPtr.asFunction)>(); ffi.Pointer realpath( ffi.Pointer __name, @@ -1405,17 +1664,20 @@ class Libgit2 { ); } - late final _realpath_ptr = - _lookup>('realpath'); - late final _dart_realpath _realpath = - _realpath_ptr.asFunction<_dart_realpath>(); + late final _realpathPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('realpath'); + late final _realpath = _realpathPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); ffi.Pointer bsearch( ffi.Pointer __key, ffi.Pointer __base, int __nmemb, int __size, - ffi.Pointer> __compar, + __compar_fn_t __compar, ) { return _bsearch( __key, @@ -1426,14 +1688,23 @@ class Libgit2 { ); } - late final _bsearch_ptr = _lookup>('bsearch'); - late final _dart_bsearch _bsearch = _bsearch_ptr.asFunction<_dart_bsearch>(); + late final _bsearchPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + size_t, + size_t, + __compar_fn_t)>>('bsearch'); + late final _bsearch = _bsearchPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, int, __compar_fn_t)>(); void qsort( ffi.Pointer __base, int __nmemb, int __size, - ffi.Pointer> __compar, + __compar_fn_t __compar, ) { return _qsort( __base, @@ -1443,8 +1714,12 @@ class Libgit2 { ); } - late final _qsort_ptr = _lookup>('qsort'); - late final _dart_qsort _qsort = _qsort_ptr.asFunction<_dart_qsort>(); + late final _qsortPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, size_t, size_t, __compar_fn_t)>>('qsort'); + late final _qsort = _qsortPtr.asFunction< + void Function(ffi.Pointer, int, int, __compar_fn_t)>(); int abs( int __x, @@ -1454,8 +1729,9 @@ class Libgit2 { ); } - late final _abs_ptr = _lookup>('abs'); - late final _dart_abs _abs = _abs_ptr.asFunction<_dart_abs>(); + late final _absPtr = + _lookup>('abs'); + late final _abs = _absPtr.asFunction(); int labs( int __x, @@ -1465,8 +1741,9 @@ class Libgit2 { ); } - late final _labs_ptr = _lookup>('labs'); - late final _dart_labs _labs = _labs_ptr.asFunction<_dart_labs>(); + late final _labsPtr = + _lookup>('labs'); + late final _labs = _labsPtr.asFunction(); int llabs( int __x, @@ -1476,8 +1753,9 @@ class Libgit2 { ); } - late final _llabs_ptr = _lookup>('llabs'); - late final _dart_llabs _llabs = _llabs_ptr.asFunction<_dart_llabs>(); + late final _llabsPtr = + _lookup>('llabs'); + late final _llabs = _llabsPtr.asFunction(); div_t div( int __numer, @@ -1489,8 +1767,9 @@ class Libgit2 { ); } - late final _div_ptr = _lookup>('div'); - late final _dart_div _div = _div_ptr.asFunction<_dart_div>(); + late final _divPtr = + _lookup>('div'); + late final _div = _divPtr.asFunction(); ldiv_t ldiv( int __numer, @@ -1502,8 +1781,10 @@ class Libgit2 { ); } - late final _ldiv_ptr = _lookup>('ldiv'); - late final _dart_ldiv _ldiv = _ldiv_ptr.asFunction<_dart_ldiv>(); + late final _ldivPtr = + _lookup>( + 'ldiv'); + late final _ldiv = _ldivPtr.asFunction(); lldiv_t lldiv( int __numer, @@ -1515,8 +1796,10 @@ class Libgit2 { ); } - late final _lldiv_ptr = _lookup>('lldiv'); - late final _dart_lldiv _lldiv = _lldiv_ptr.asFunction<_dart_lldiv>(); + late final _lldivPtr = + _lookup>( + 'lldiv'); + late final _lldiv = _lldivPtr.asFunction(); ffi.Pointer ecvt( double __value, @@ -1532,8 +1815,13 @@ class Libgit2 { ); } - late final _ecvt_ptr = _lookup>('ecvt'); - late final _dart_ecvt _ecvt = _ecvt_ptr.asFunction<_dart_ecvt>(); + late final _ecvtPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Double, ffi.Int32, + ffi.Pointer, ffi.Pointer)>>('ecvt'); + late final _ecvt = _ecvtPtr.asFunction< + ffi.Pointer Function( + double, int, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer fcvt( double __value, @@ -1549,8 +1837,13 @@ class Libgit2 { ); } - late final _fcvt_ptr = _lookup>('fcvt'); - late final _dart_fcvt _fcvt = _fcvt_ptr.asFunction<_dart_fcvt>(); + late final _fcvtPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Double, ffi.Int32, + ffi.Pointer, ffi.Pointer)>>('fcvt'); + late final _fcvt = _fcvtPtr.asFunction< + ffi.Pointer Function( + double, int, ffi.Pointer, ffi.Pointer)>(); ffi.Pointer gcvt( double __value, @@ -1564,8 +1857,12 @@ class Libgit2 { ); } - late final _gcvt_ptr = _lookup>('gcvt'); - late final _dart_gcvt _gcvt = _gcvt_ptr.asFunction<_dart_gcvt>(); + late final _gcvtPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Double, ffi.Int32, ffi.Pointer)>>('gcvt'); + late final _gcvt = _gcvtPtr.asFunction< + ffi.Pointer Function(double, int, ffi.Pointer)>(); int ecvt_r( double __value, @@ -1585,8 +1882,18 @@ class Libgit2 { ); } - late final _ecvt_r_ptr = _lookup>('ecvt_r'); - late final _dart_ecvt_r _ecvt_r = _ecvt_r_ptr.asFunction<_dart_ecvt_r>(); + late final _ecvt_rPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Double, + ffi.Int32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + size_t)>>('ecvt_r'); + late final _ecvt_r = _ecvt_rPtr.asFunction< + int Function(double, int, ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); int fcvt_r( double __value, @@ -1606,8 +1913,18 @@ class Libgit2 { ); } - late final _fcvt_r_ptr = _lookup>('fcvt_r'); - late final _dart_fcvt_r _fcvt_r = _fcvt_r_ptr.asFunction<_dart_fcvt_r>(); + late final _fcvt_rPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Double, + ffi.Int32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + size_t)>>('fcvt_r'); + late final _fcvt_r = _fcvt_rPtr.asFunction< + int Function(double, int, ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); int mblen( ffi.Pointer __s, @@ -1619,11 +1936,14 @@ class Libgit2 { ); } - late final _mblen_ptr = _lookup>('mblen'); - late final _dart_mblen _mblen = _mblen_ptr.asFunction<_dart_mblen>(); + late final _mblenPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, size_t)>>('mblen'); + late final _mblen = + _mblenPtr.asFunction, int)>(); int mbtowc( - ffi.Pointer __pwc, + ffi.Pointer __pwc, ffi.Pointer __s, int __n, ) { @@ -1634,8 +1954,12 @@ class Libgit2 { ); } - late final _mbtowc_ptr = _lookup>('mbtowc'); - late final _dart_mbtowc _mbtowc = _mbtowc_ptr.asFunction<_dart_mbtowc>(); + late final _mbtowcPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer, size_t)>>('mbtowc'); + late final _mbtowc = _mbtowcPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int)>(); int wctomb( ffi.Pointer __s, @@ -1647,11 +1971,14 @@ class Libgit2 { ); } - late final _wctomb_ptr = _lookup>('wctomb'); - late final _dart_wctomb _wctomb = _wctomb_ptr.asFunction<_dart_wctomb>(); + late final _wctombPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, wchar_t)>>('wctomb'); + late final _wctomb = + _wctombPtr.asFunction, int)>(); int mbstowcs( - ffi.Pointer __pwcs, + ffi.Pointer __pwcs, ffi.Pointer __s, int __n, ) { @@ -1662,14 +1989,16 @@ class Libgit2 { ); } - late final _mbstowcs_ptr = - _lookup>('mbstowcs'); - late final _dart_mbstowcs _mbstowcs = - _mbstowcs_ptr.asFunction<_dart_mbstowcs>(); + late final _mbstowcsPtr = _lookup< + ffi.NativeFunction< + size_t Function(ffi.Pointer, ffi.Pointer, + size_t)>>('mbstowcs'); + late final _mbstowcs = _mbstowcsPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int)>(); int wcstombs( ffi.Pointer __s, - ffi.Pointer __pwcs, + ffi.Pointer __pwcs, int __n, ) { return _wcstombs( @@ -1679,10 +2008,12 @@ class Libgit2 { ); } - late final _wcstombs_ptr = - _lookup>('wcstombs'); - late final _dart_wcstombs _wcstombs = - _wcstombs_ptr.asFunction<_dart_wcstombs>(); + late final _wcstombsPtr = _lookup< + ffi.NativeFunction< + size_t Function(ffi.Pointer, ffi.Pointer, + size_t)>>('wcstombs'); + late final _wcstombs = _wcstombsPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int)>(); int rpmatch( ffi.Pointer __response, @@ -1692,8 +2023,11 @@ class Libgit2 { ); } - late final _rpmatch_ptr = _lookup>('rpmatch'); - late final _dart_rpmatch _rpmatch = _rpmatch_ptr.asFunction<_dart_rpmatch>(); + late final _rpmatchPtr = + _lookup)>>( + 'rpmatch'); + late final _rpmatch = + _rpmatchPtr.asFunction)>(); int getsubopt( ffi.Pointer> __optionp, @@ -1707,10 +2041,17 @@ class Libgit2 { ); } - late final _getsubopt_ptr = - _lookup>('getsubopt'); - late final _dart_getsubopt _getsubopt = - _getsubopt_ptr.asFunction<_dart_getsubopt>(); + late final _getsuboptPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer>, + ffi.Pointer>)>>('getsubopt'); + late final _getsubopt = _getsuboptPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer>, + ffi.Pointer>)>(); int getloadavg( ffi.Pointer __loadavg, @@ -1722,10 +2063,12 @@ class Libgit2 { ); } - late final _getloadavg_ptr = - _lookup>('getloadavg'); - late final _dart_getloadavg _getloadavg = - _getloadavg_ptr.asFunction<_dart_getloadavg>(); + late final _getloadavgPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Int32)>>('getloadavg'); + late final _getloadavg = + _getloadavgPtr.asFunction, int)>(); int imaxabs( int __n, @@ -1735,8 +2078,9 @@ class Libgit2 { ); } - late final _imaxabs_ptr = _lookup>('imaxabs'); - late final _dart_imaxabs _imaxabs = _imaxabs_ptr.asFunction<_dart_imaxabs>(); + late final _imaxabsPtr = + _lookup>('imaxabs'); + late final _imaxabs = _imaxabsPtr.asFunction(); imaxdiv_t imaxdiv( int __numer, @@ -1748,8 +2092,10 @@ class Libgit2 { ); } - late final _imaxdiv_ptr = _lookup>('imaxdiv'); - late final _dart_imaxdiv _imaxdiv = _imaxdiv_ptr.asFunction<_dart_imaxdiv>(); + late final _imaxdivPtr = + _lookup>( + 'imaxdiv'); + late final _imaxdiv = _imaxdivPtr.asFunction(); int strtoimax( ffi.Pointer __nptr, @@ -1763,10 +2109,13 @@ class Libgit2 { ); } - late final _strtoimax_ptr = - _lookup>('strtoimax'); - late final _dart_strtoimax _strtoimax = - _strtoimax_ptr.asFunction<_dart_strtoimax>(); + late final _strtoimaxPtr = _lookup< + ffi.NativeFunction< + intmax_t Function(ffi.Pointer, + ffi.Pointer>, ffi.Int32)>>('strtoimax'); + late final _strtoimax = _strtoimaxPtr.asFunction< + int Function( + ffi.Pointer, ffi.Pointer>, int)>(); int strtoumax( ffi.Pointer __nptr, @@ -1780,14 +2129,17 @@ class Libgit2 { ); } - late final _strtoumax_ptr = - _lookup>('strtoumax'); - late final _dart_strtoumax _strtoumax = - _strtoumax_ptr.asFunction<_dart_strtoumax>(); + late final _strtoumaxPtr = _lookup< + ffi.NativeFunction< + uintmax_t Function(ffi.Pointer, + ffi.Pointer>, ffi.Int32)>>('strtoumax'); + late final _strtoumax = _strtoumaxPtr.asFunction< + int Function( + ffi.Pointer, ffi.Pointer>, int)>(); int wcstoimax( - ffi.Pointer __nptr, - ffi.Pointer> __endptr, + ffi.Pointer<__gwchar_t> __nptr, + ffi.Pointer> __endptr, int __base, ) { return _wcstoimax( @@ -1797,14 +2149,17 @@ class Libgit2 { ); } - late final _wcstoimax_ptr = - _lookup>('wcstoimax'); - late final _dart_wcstoimax _wcstoimax = - _wcstoimax_ptr.asFunction<_dart_wcstoimax>(); + late final _wcstoimaxPtr = _lookup< + ffi.NativeFunction< + intmax_t Function(ffi.Pointer<__gwchar_t>, + ffi.Pointer>, ffi.Int32)>>('wcstoimax'); + late final _wcstoimax = _wcstoimaxPtr.asFunction< + int Function(ffi.Pointer<__gwchar_t>, + ffi.Pointer>, int)>(); int wcstoumax( - ffi.Pointer __nptr, - ffi.Pointer> __endptr, + ffi.Pointer<__gwchar_t> __nptr, + ffi.Pointer> __endptr, int __base, ) { return _wcstoumax( @@ -1814,10 +2169,13 @@ class Libgit2 { ); } - late final _wcstoumax_ptr = - _lookup>('wcstoumax'); - late final _dart_wcstoumax _wcstoumax = - _wcstoumax_ptr.asFunction<_dart_wcstoumax>(); + late final _wcstoumaxPtr = _lookup< + ffi.NativeFunction< + uintmax_t Function(ffi.Pointer<__gwchar_t>, + ffi.Pointer>, ffi.Int32)>>('wcstoumax'); + late final _wcstoumax = _wcstoumaxPtr.asFunction< + int Function(ffi.Pointer<__gwchar_t>, + ffi.Pointer>, int)>(); /// Return the version of the libgit2 library /// being currently used. @@ -1838,11 +2196,13 @@ class Libgit2 { ); } - late final _git_libgit2_version_ptr = - _lookup>( - 'git_libgit2_version'); - late final _dart_git_libgit2_version _git_libgit2_version = - _git_libgit2_version_ptr.asFunction<_dart_git_libgit2_version>(); + late final _git_libgit2_versionPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_libgit2_version'); + late final _git_libgit2_version = _git_libgit2_versionPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Query compile time options for libgit2. /// @@ -1864,11 +2224,10 @@ class Libgit2 { return _git_libgit2_features(); } - late final _git_libgit2_features_ptr = - _lookup>( - 'git_libgit2_features'); - late final _dart_git_libgit2_features _git_libgit2_features = - _git_libgit2_features_ptr.asFunction<_dart_git_libgit2_features>(); + late final _git_libgit2_featuresPtr = + _lookup>('git_libgit2_features'); + late final _git_libgit2_features = + _git_libgit2_featuresPtr.asFunction(); /// Set or query a library global option /// @@ -2099,10 +2458,11 @@ class Libgit2 { ); } - late final _git_libgit2_opts_ptr = - _lookup>('git_libgit2_opts'); - late final _dart_git_libgit2_opts _git_libgit2_opts = - _git_libgit2_opts_ptr.asFunction<_dart_git_libgit2_opts>(); + late final _git_libgit2_optsPtr = + _lookup>( + 'git_libgit2_opts'); + late final _git_libgit2_opts = + _git_libgit2_optsPtr.asFunction(); /// Free the memory referred to by the git_buf. /// @@ -2120,10 +2480,11 @@ class Libgit2 { ); } - late final _git_buf_dispose_ptr = - _lookup>('git_buf_dispose'); - late final _dart_git_buf_dispose _git_buf_dispose = - _git_buf_dispose_ptr.asFunction<_dart_git_buf_dispose>(); + late final _git_buf_disposePtr = + _lookup)>>( + 'git_buf_dispose'); + late final _git_buf_dispose = + _git_buf_disposePtr.asFunction)>(); /// Resize the buffer allocation to make more space. /// @@ -2154,10 +2515,11 @@ class Libgit2 { ); } - late final _git_buf_grow_ptr = - _lookup>('git_buf_grow'); - late final _dart_git_buf_grow _git_buf_grow = - _git_buf_grow_ptr.asFunction<_dart_git_buf_grow>(); + late final _git_buf_growPtr = _lookup< + ffi.NativeFunction, size_t)>>( + 'git_buf_grow'); + late final _git_buf_grow = + _git_buf_growPtr.asFunction, int)>(); /// Set buffer to a copy of some raw data. /// @@ -2177,10 +2539,12 @@ class Libgit2 { ); } - late final _git_buf_set_ptr = - _lookup>('git_buf_set'); - late final _dart_git_buf_set _git_buf_set = - _git_buf_set_ptr.asFunction<_dart_git_buf_set>(); + late final _git_buf_setPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + size_t)>>('git_buf_set'); + late final _git_buf_set = _git_buf_setPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int)>(); /// Check quickly if buffer looks like it contains binary data /// @@ -2194,10 +2558,11 @@ class Libgit2 { ); } - late final _git_buf_is_binary_ptr = - _lookup>('git_buf_is_binary'); - late final _dart_git_buf_is_binary _git_buf_is_binary = - _git_buf_is_binary_ptr.asFunction<_dart_git_buf_is_binary>(); + late final _git_buf_is_binaryPtr = + _lookup)>>( + 'git_buf_is_binary'); + late final _git_buf_is_binary = + _git_buf_is_binaryPtr.asFunction)>(); /// Check quickly if buffer contains a NUL byte /// @@ -2211,11 +2576,11 @@ class Libgit2 { ); } - late final _git_buf_contains_nul_ptr = - _lookup>( + late final _git_buf_contains_nulPtr = + _lookup)>>( 'git_buf_contains_nul'); - late final _dart_git_buf_contains_nul _git_buf_contains_nul = - _git_buf_contains_nul_ptr.asFunction<_dart_git_buf_contains_nul>(); + late final _git_buf_contains_nul = + _git_buf_contains_nulPtr.asFunction)>(); /// Parse a hex formatted object id into a git_oid. /// @@ -2234,10 +2599,12 @@ class Libgit2 { ); } - late final _git_oid_fromstr_ptr = - _lookup>('git_oid_fromstr'); - late final _dart_git_oid_fromstr _git_oid_fromstr = - _git_oid_fromstr_ptr.asFunction<_dart_git_oid_fromstr>(); + late final _git_oid_fromstrPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('git_oid_fromstr'); + late final _git_oid_fromstr = _git_oid_fromstrPtr + .asFunction, ffi.Pointer)>(); /// Parse a hex formatted null-terminated string into a git_oid. /// @@ -2254,10 +2621,12 @@ class Libgit2 { ); } - late final _git_oid_fromstrp_ptr = - _lookup>('git_oid_fromstrp'); - late final _dart_git_oid_fromstrp _git_oid_fromstrp = - _git_oid_fromstrp_ptr.asFunction<_dart_git_oid_fromstrp>(); + late final _git_oid_fromstrpPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_oid_fromstrp'); + late final _git_oid_fromstrp = _git_oid_fromstrpPtr + .asFunction, ffi.Pointer)>(); /// Parse N characters of a hex formatted object id into a git_oid. /// @@ -2280,10 +2649,12 @@ class Libgit2 { ); } - late final _git_oid_fromstrn_ptr = - _lookup>('git_oid_fromstrn'); - late final _dart_git_oid_fromstrn _git_oid_fromstrn = - _git_oid_fromstrn_ptr.asFunction<_dart_git_oid_fromstrn>(); + late final _git_oid_fromstrnPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + size_t)>>('git_oid_fromstrn'); + late final _git_oid_fromstrn = _git_oid_fromstrnPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int)>(); /// Copy an already raw oid into a git_oid structure. /// @@ -2300,10 +2671,12 @@ class Libgit2 { ); } - late final _git_oid_fromraw_ptr = - _lookup>('git_oid_fromraw'); - late final _dart_git_oid_fromraw _git_oid_fromraw = - _git_oid_fromraw_ptr.asFunction<_dart_git_oid_fromraw>(); + late final _git_oid_fromrawPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_oid_fromraw'); + late final _git_oid_fromraw = _git_oid_fromrawPtr + .asFunction, ffi.Pointer)>(); /// Format a git_oid into a hex string. /// @@ -2324,10 +2697,12 @@ class Libgit2 { ); } - late final _git_oid_fmt_ptr = - _lookup>('git_oid_fmt'); - late final _dart_git_oid_fmt _git_oid_fmt = - _git_oid_fmt_ptr.asFunction<_dart_git_oid_fmt>(); + late final _git_oid_fmtPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('git_oid_fmt'); + late final _git_oid_fmt = _git_oid_fmtPtr + .asFunction, ffi.Pointer)>(); /// Format a git_oid into a partial hex string. /// @@ -2349,10 +2724,12 @@ class Libgit2 { ); } - late final _git_oid_nfmt_ptr = - _lookup>('git_oid_nfmt'); - late final _dart_git_oid_nfmt _git_oid_nfmt = - _git_oid_nfmt_ptr.asFunction<_dart_git_oid_nfmt>(); + late final _git_oid_nfmtPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, size_t, + ffi.Pointer)>>('git_oid_nfmt'); + late final _git_oid_nfmt = _git_oid_nfmtPtr.asFunction< + int Function(ffi.Pointer, int, ffi.Pointer)>(); /// Format a git_oid into a loose-object path string. /// @@ -2376,10 +2753,12 @@ class Libgit2 { ); } - late final _git_oid_pathfmt_ptr = - _lookup>('git_oid_pathfmt'); - late final _dart_git_oid_pathfmt _git_oid_pathfmt = - _git_oid_pathfmt_ptr.asFunction<_dart_git_oid_pathfmt>(); + late final _git_oid_pathfmtPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('git_oid_pathfmt'); + late final _git_oid_pathfmt = _git_oid_pathfmtPtr + .asFunction, ffi.Pointer)>(); /// Format a git_oid into a statically allocated c-string. /// @@ -2398,10 +2777,12 @@ class Libgit2 { ); } - late final _git_oid_tostr_s_ptr = - _lookup>('git_oid_tostr_s'); - late final _dart_git_oid_tostr_s _git_oid_tostr_s = - _git_oid_tostr_s_ptr.asFunction<_dart_git_oid_tostr_s>(); + late final _git_oid_tostr_sPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_oid_tostr_s'); + late final _git_oid_tostr_s = _git_oid_tostr_sPtr + .asFunction Function(ffi.Pointer)>(); /// Format a git_oid into a buffer as a hex format c-string. /// @@ -2430,10 +2811,13 @@ class Libgit2 { ); } - late final _git_oid_tostr_ptr = - _lookup>('git_oid_tostr'); - late final _dart_git_oid_tostr _git_oid_tostr = - _git_oid_tostr_ptr.asFunction<_dart_git_oid_tostr>(); + late final _git_oid_tostrPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, size_t, + ffi.Pointer)>>('git_oid_tostr'); + late final _git_oid_tostr = _git_oid_tostrPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, int, ffi.Pointer)>(); /// Copy an oid from one structure to another. /// @@ -2450,10 +2834,12 @@ class Libgit2 { ); } - late final _git_oid_cpy_ptr = - _lookup>('git_oid_cpy'); - late final _dart_git_oid_cpy _git_oid_cpy = - _git_oid_cpy_ptr.asFunction<_dart_git_oid_cpy>(); + late final _git_oid_cpyPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('git_oid_cpy'); + late final _git_oid_cpy = _git_oid_cpyPtr + .asFunction, ffi.Pointer)>(); /// Compare two oid structures. /// @@ -2470,10 +2856,12 @@ class Libgit2 { ); } - late final _git_oid_cmp_ptr = - _lookup>('git_oid_cmp'); - late final _dart_git_oid_cmp _git_oid_cmp = - _git_oid_cmp_ptr.asFunction<_dart_git_oid_cmp>(); + late final _git_oid_cmpPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('git_oid_cmp'); + late final _git_oid_cmp = _git_oid_cmpPtr + .asFunction, ffi.Pointer)>(); /// Compare two oid structures for equality /// @@ -2490,10 +2878,12 @@ class Libgit2 { ); } - late final _git_oid_equal_ptr = - _lookup>('git_oid_equal'); - late final _dart_git_oid_equal _git_oid_equal = - _git_oid_equal_ptr.asFunction<_dart_git_oid_equal>(); + late final _git_oid_equalPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('git_oid_equal'); + late final _git_oid_equal = _git_oid_equalPtr + .asFunction, ffi.Pointer)>(); /// Compare the first 'len' hexadecimal characters (packets of 4 bits) /// of two oid structures. @@ -2514,10 +2904,12 @@ class Libgit2 { ); } - late final _git_oid_ncmp_ptr = - _lookup>('git_oid_ncmp'); - late final _dart_git_oid_ncmp _git_oid_ncmp = - _git_oid_ncmp_ptr.asFunction<_dart_git_oid_ncmp>(); + late final _git_oid_ncmpPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + size_t)>>('git_oid_ncmp'); + late final _git_oid_ncmp = _git_oid_ncmpPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int)>(); /// Check if an oid equals an hex formatted object id. /// @@ -2534,10 +2926,12 @@ class Libgit2 { ); } - late final _git_oid_streq_ptr = - _lookup>('git_oid_streq'); - late final _dart_git_oid_streq _git_oid_streq = - _git_oid_streq_ptr.asFunction<_dart_git_oid_streq>(); + late final _git_oid_streqPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('git_oid_streq'); + late final _git_oid_streq = _git_oid_streqPtr + .asFunction, ffi.Pointer)>(); /// Compare an oid to an hex formatted object id. /// @@ -2555,10 +2949,12 @@ class Libgit2 { ); } - late final _git_oid_strcmp_ptr = - _lookup>('git_oid_strcmp'); - late final _dart_git_oid_strcmp _git_oid_strcmp = - _git_oid_strcmp_ptr.asFunction<_dart_git_oid_strcmp>(); + late final _git_oid_strcmpPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('git_oid_strcmp'); + late final _git_oid_strcmp = _git_oid_strcmpPtr + .asFunction, ffi.Pointer)>(); /// Check is an oid is all zeros. /// @@ -2571,10 +2967,11 @@ class Libgit2 { ); } - late final _git_oid_is_zero_ptr = - _lookup>('git_oid_is_zero'); - late final _dart_git_oid_is_zero _git_oid_is_zero = - _git_oid_is_zero_ptr.asFunction<_dart_git_oid_is_zero>(); + late final _git_oid_is_zeroPtr = + _lookup)>>( + 'git_oid_is_zero'); + late final _git_oid_is_zero = + _git_oid_is_zeroPtr.asFunction)>(); /// Create a new OID shortener. /// @@ -2596,11 +2993,11 @@ class Libgit2 { ); } - late final _git_oid_shorten_new_ptr = - _lookup>( - 'git_oid_shorten_new'); - late final _dart_git_oid_shorten_new _git_oid_shorten_new = - _git_oid_shorten_new_ptr.asFunction<_dart_git_oid_shorten_new>(); + late final _git_oid_shorten_newPtr = _lookup< + ffi.NativeFunction Function(size_t)>>( + 'git_oid_shorten_new'); + late final _git_oid_shorten_new = _git_oid_shorten_newPtr + .asFunction Function(int)>(); /// Add a new OID to set of shortened OIDs and calculate /// the minimal length to uniquely identify all the OIDs in @@ -2634,11 +3031,12 @@ class Libgit2 { ); } - late final _git_oid_shorten_add_ptr = - _lookup>( - 'git_oid_shorten_add'); - late final _dart_git_oid_shorten_add _git_oid_shorten_add = - _git_oid_shorten_add_ptr.asFunction<_dart_git_oid_shorten_add>(); + late final _git_oid_shorten_addPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_oid_shorten_add'); + late final _git_oid_shorten_add = _git_oid_shorten_addPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Free an OID shortener instance /// @@ -2651,11 +3049,11 @@ class Libgit2 { ); } - late final _git_oid_shorten_free_ptr = - _lookup>( - 'git_oid_shorten_free'); - late final _dart_git_oid_shorten_free _git_oid_shorten_free = - _git_oid_shorten_free_ptr.asFunction<_dart_git_oid_shorten_free>(); + late final _git_oid_shorten_freePtr = _lookup< + ffi.NativeFunction)>>( + 'git_oid_shorten_free'); + late final _git_oid_shorten_free = _git_oid_shorten_freePtr + .asFunction)>(); /// Open a git repository. /// @@ -2678,11 +3076,13 @@ class Libgit2 { ); } - late final _git_repository_open_ptr = - _lookup>( - 'git_repository_open'); - late final _dart_git_repository_open _git_repository_open = - _git_repository_open_ptr.asFunction<_dart_git_repository_open>(); + late final _git_repository_openPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_repository_open'); + late final _git_repository_open = _git_repository_openPtr.asFunction< + int Function( + ffi.Pointer>, ffi.Pointer)>(); /// Open working tree as a repository /// @@ -2702,13 +3102,14 @@ class Libgit2 { ); } - late final _git_repository_open_from_worktree_ptr = - _lookup>( - 'git_repository_open_from_worktree'); - late final _dart_git_repository_open_from_worktree - _git_repository_open_from_worktree = - _git_repository_open_from_worktree_ptr - .asFunction<_dart_git_repository_open_from_worktree>(); + late final _git_repository_open_from_worktreePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_repository_open_from_worktree'); + late final _git_repository_open_from_worktree = + _git_repository_open_from_worktreePtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer)>(); /// Create a "fake" repository to wrap an object database /// @@ -2729,11 +3130,13 @@ class Libgit2 { ); } - late final _git_repository_wrap_odb_ptr = - _lookup>( - 'git_repository_wrap_odb'); - late final _dart_git_repository_wrap_odb _git_repository_wrap_odb = - _git_repository_wrap_odb_ptr.asFunction<_dart_git_repository_wrap_odb>(); + late final _git_repository_wrap_odbPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_repository_wrap_odb'); + late final _git_repository_wrap_odb = _git_repository_wrap_odbPtr.asFunction< + int Function( + ffi.Pointer>, ffi.Pointer)>(); /// Look for a git repository and copy its path in the given buffer. /// The lookup start from base_path and walk across parent directories @@ -2773,11 +3176,13 @@ class Libgit2 { ); } - late final _git_repository_discover_ptr = - _lookup>( - 'git_repository_discover'); - late final _dart_git_repository_discover _git_repository_discover = - _git_repository_discover_ptr.asFunction<_dart_git_repository_discover>(); + late final _git_repository_discoverPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Int32, ffi.Pointer)>>('git_repository_discover'); + late final _git_repository_discover = _git_repository_discoverPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer)>(); /// Find and open a repository with extended controls. /// @@ -2809,11 +3214,16 @@ class Libgit2 { ); } - late final _git_repository_open_ext_ptr = - _lookup>( - 'git_repository_open_ext'); - late final _dart_git_repository_open_ext _git_repository_open_ext = - _git_repository_open_ext_ptr.asFunction<_dart_git_repository_open_ext>(); + late final _git_repository_open_extPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Uint32, + ffi.Pointer)>>('git_repository_open_ext'); + late final _git_repository_open_ext = _git_repository_open_extPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, int, ffi.Pointer)>(); /// Open a bare repository on the serverside. /// @@ -2834,12 +3244,14 @@ class Libgit2 { ); } - late final _git_repository_open_bare_ptr = - _lookup>( - 'git_repository_open_bare'); - late final _dart_git_repository_open_bare _git_repository_open_bare = - _git_repository_open_bare_ptr - .asFunction<_dart_git_repository_open_bare>(); + late final _git_repository_open_barePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_repository_open_bare'); + late final _git_repository_open_bare = + _git_repository_open_barePtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer)>(); /// Free a previously allocated repository /// @@ -2858,11 +3270,11 @@ class Libgit2 { ); } - late final _git_repository_free_ptr = - _lookup>( - 'git_repository_free'); - late final _dart_git_repository_free _git_repository_free = - _git_repository_free_ptr.asFunction<_dart_git_repository_free>(); + late final _git_repository_freePtr = _lookup< + ffi.NativeFunction)>>( + 'git_repository_free'); + late final _git_repository_free = _git_repository_freePtr + .asFunction)>(); /// Creates a new Git repository in the given folder. /// @@ -2889,11 +3301,13 @@ class Libgit2 { ); } - late final _git_repository_init_ptr = - _lookup>( - 'git_repository_init'); - late final _dart_git_repository_init _git_repository_init = - _git_repository_init_ptr.asFunction<_dart_git_repository_init>(); + late final _git_repository_initPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer, ffi.Uint32)>>('git_repository_init'); + late final _git_repository_init = _git_repository_initPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, int)>(); /// Initialize git_repository_init_options structure /// @@ -2913,12 +3327,13 @@ class Libgit2 { ); } - late final _git_repository_init_options_init_ptr = - _lookup>( - 'git_repository_init_options_init'); - late final _dart_git_repository_init_options_init - _git_repository_init_options_init = _git_repository_init_options_init_ptr - .asFunction<_dart_git_repository_init_options_init>(); + late final _git_repository_init_options_initPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_repository_init_options_init'); + late final _git_repository_init_options_init = + _git_repository_init_options_initPtr.asFunction< + int Function(ffi.Pointer, int)>(); /// Create a new Git repository in the given folder with extended controls. /// @@ -2943,11 +3358,16 @@ class Libgit2 { ); } - late final _git_repository_init_ext_ptr = - _lookup>( - 'git_repository_init_ext'); - late final _dart_git_repository_init_ext _git_repository_init_ext = - _git_repository_init_ext_ptr.asFunction<_dart_git_repository_init_ext>(); + late final _git_repository_init_extPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>( + 'git_repository_init_ext'); + late final _git_repository_init_ext = _git_repository_init_extPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer)>(); /// Retrieve and resolve the reference pointed at by HEAD. /// @@ -2970,11 +3390,13 @@ class Libgit2 { ); } - late final _git_repository_head_ptr = - _lookup>( - 'git_repository_head'); - late final _dart_git_repository_head _git_repository_head = - _git_repository_head_ptr.asFunction<_dart_git_repository_head>(); + late final _git_repository_headPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_repository_head'); + late final _git_repository_head = _git_repository_headPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer)>(); /// Retrieve the referenced HEAD for the worktree /// @@ -2994,12 +3416,16 @@ class Libgit2 { ); } - late final _git_repository_head_for_worktree_ptr = - _lookup>( - 'git_repository_head_for_worktree'); - late final _dart_git_repository_head_for_worktree - _git_repository_head_for_worktree = _git_repository_head_for_worktree_ptr - .asFunction<_dart_git_repository_head_for_worktree>(); + late final _git_repository_head_for_worktreePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>('git_repository_head_for_worktree'); + late final _git_repository_head_for_worktree = + _git_repository_head_for_worktreePtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer)>(); /// Check if a repository's HEAD is detached /// @@ -3017,12 +3443,11 @@ class Libgit2 { ); } - late final _git_repository_head_detached_ptr = - _lookup>( - 'git_repository_head_detached'); - late final _dart_git_repository_head_detached _git_repository_head_detached = - _git_repository_head_detached_ptr - .asFunction<_dart_git_repository_head_detached>(); + late final _git_repository_head_detachedPtr = _lookup< + ffi.NativeFunction)>>( + 'git_repository_head_detached'); + late final _git_repository_head_detached = _git_repository_head_detachedPtr + .asFunction)>(); /// Check if a worktree's HEAD is detached /// @@ -3043,13 +3468,14 @@ class Libgit2 { ); } - late final _git_repository_head_detached_for_worktree_ptr = - _lookup>( - 'git_repository_head_detached_for_worktree'); - late final _dart_git_repository_head_detached_for_worktree - _git_repository_head_detached_for_worktree = - _git_repository_head_detached_for_worktree_ptr - .asFunction<_dart_git_repository_head_detached_for_worktree>(); + late final _git_repository_head_detached_for_worktreePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>( + 'git_repository_head_detached_for_worktree'); + late final _git_repository_head_detached_for_worktree = + _git_repository_head_detached_for_worktreePtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Check if the current branch is unborn /// @@ -3067,12 +3493,11 @@ class Libgit2 { ); } - late final _git_repository_head_unborn_ptr = - _lookup>( - 'git_repository_head_unborn'); - late final _dart_git_repository_head_unborn _git_repository_head_unborn = - _git_repository_head_unborn_ptr - .asFunction<_dart_git_repository_head_unborn>(); + late final _git_repository_head_unbornPtr = _lookup< + ffi.NativeFunction)>>( + 'git_repository_head_unborn'); + late final _git_repository_head_unborn = _git_repository_head_unbornPtr + .asFunction)>(); /// Check if a repository is empty /// @@ -3090,11 +3515,11 @@ class Libgit2 { ); } - late final _git_repository_is_empty_ptr = - _lookup>( - 'git_repository_is_empty'); - late final _dart_git_repository_is_empty _git_repository_is_empty = - _git_repository_is_empty_ptr.asFunction<_dart_git_repository_is_empty>(); + late final _git_repository_is_emptyPtr = _lookup< + ffi.NativeFunction)>>( + 'git_repository_is_empty'); + late final _git_repository_is_empty = _git_repository_is_emptyPtr + .asFunction)>(); /// Get the location of a specific repository file or directory /// @@ -3120,12 +3545,14 @@ class Libgit2 { ); } - late final _git_repository_item_path_ptr = - _lookup>( - 'git_repository_item_path'); - late final _dart_git_repository_item_path _git_repository_item_path = - _git_repository_item_path_ptr - .asFunction<_dart_git_repository_item_path>(); + late final _git_repository_item_pathPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('git_repository_item_path'); + late final _git_repository_item_path = + _git_repository_item_pathPtr.asFunction< + int Function( + ffi.Pointer, ffi.Pointer, int)>(); /// Get the path of this repository /// @@ -3142,11 +3569,12 @@ class Libgit2 { ); } - late final _git_repository_path_ptr = - _lookup>( - 'git_repository_path'); - late final _dart_git_repository_path _git_repository_path = - _git_repository_path_ptr.asFunction<_dart_git_repository_path>(); + late final _git_repository_pathPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_repository_path'); + late final _git_repository_path = _git_repository_pathPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); /// Get the path of the working directory for this repository /// @@ -3163,11 +3591,12 @@ class Libgit2 { ); } - late final _git_repository_workdir_ptr = - _lookup>( - 'git_repository_workdir'); - late final _dart_git_repository_workdir _git_repository_workdir = - _git_repository_workdir_ptr.asFunction<_dart_git_repository_workdir>(); + late final _git_repository_workdirPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_repository_workdir'); + late final _git_repository_workdir = _git_repository_workdirPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); /// Get the path of the shared common directory for this repository. /// @@ -3185,12 +3614,13 @@ class Libgit2 { ); } - late final _git_repository_commondir_ptr = - _lookup>( - 'git_repository_commondir'); - late final _dart_git_repository_commondir _git_repository_commondir = - _git_repository_commondir_ptr - .asFunction<_dart_git_repository_commondir>(); + late final _git_repository_commondirPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_repository_commondir'); + late final _git_repository_commondir = + _git_repository_commondirPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); /// Set the path to the working directory for this repository /// @@ -3219,12 +3649,14 @@ class Libgit2 { ); } - late final _git_repository_set_workdir_ptr = - _lookup>( - 'git_repository_set_workdir'); - late final _dart_git_repository_set_workdir _git_repository_set_workdir = - _git_repository_set_workdir_ptr - .asFunction<_dart_git_repository_set_workdir>(); + late final _git_repository_set_workdirPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('git_repository_set_workdir'); + late final _git_repository_set_workdir = + _git_repository_set_workdirPtr.asFunction< + int Function( + ffi.Pointer, ffi.Pointer, int)>(); /// Check if a repository is bare /// @@ -3238,11 +3670,11 @@ class Libgit2 { ); } - late final _git_repository_is_bare_ptr = - _lookup>( - 'git_repository_is_bare'); - late final _dart_git_repository_is_bare _git_repository_is_bare = - _git_repository_is_bare_ptr.asFunction<_dart_git_repository_is_bare>(); + late final _git_repository_is_barePtr = _lookup< + ffi.NativeFunction)>>( + 'git_repository_is_bare'); + late final _git_repository_is_bare = _git_repository_is_barePtr + .asFunction)>(); /// Check if a repository is a linked work tree /// @@ -3256,12 +3688,11 @@ class Libgit2 { ); } - late final _git_repository_is_worktree_ptr = - _lookup>( - 'git_repository_is_worktree'); - late final _dart_git_repository_is_worktree _git_repository_is_worktree = - _git_repository_is_worktree_ptr - .asFunction<_dart_git_repository_is_worktree>(); + late final _git_repository_is_worktreePtr = _lookup< + ffi.NativeFunction)>>( + 'git_repository_is_worktree'); + late final _git_repository_is_worktree = _git_repository_is_worktreePtr + .asFunction)>(); /// Get the configuration file for this repository. /// @@ -3285,11 +3716,13 @@ class Libgit2 { ); } - late final _git_repository_config_ptr = - _lookup>( - 'git_repository_config'); - late final _dart_git_repository_config _git_repository_config = - _git_repository_config_ptr.asFunction<_dart_git_repository_config>(); + late final _git_repository_configPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_repository_config'); + late final _git_repository_config = _git_repository_configPtr.asFunction< + int Function( + ffi.Pointer>, ffi.Pointer)>(); /// Get a snapshot of the repository's configuration /// @@ -3313,12 +3746,14 @@ class Libgit2 { ); } - late final _git_repository_config_snapshot_ptr = - _lookup>( - 'git_repository_config_snapshot'); - late final _dart_git_repository_config_snapshot - _git_repository_config_snapshot = _git_repository_config_snapshot_ptr - .asFunction<_dart_git_repository_config_snapshot>(); + late final _git_repository_config_snapshotPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_repository_config_snapshot'); + late final _git_repository_config_snapshot = + _git_repository_config_snapshotPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer)>(); /// Get the Object Database for this repository. /// @@ -3342,10 +3777,13 @@ class Libgit2 { ); } - late final _git_repository_odb_ptr = - _lookup>('git_repository_odb'); - late final _dart_git_repository_odb _git_repository_odb = - _git_repository_odb_ptr.asFunction<_dart_git_repository_odb>(); + late final _git_repository_odbPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_repository_odb'); + late final _git_repository_odb = _git_repository_odbPtr.asFunction< + int Function( + ffi.Pointer>, ffi.Pointer)>(); /// Get the Reference Database Backend for this repository. /// @@ -3369,11 +3807,13 @@ class Libgit2 { ); } - late final _git_repository_refdb_ptr = - _lookup>( - 'git_repository_refdb'); - late final _dart_git_repository_refdb _git_repository_refdb = - _git_repository_refdb_ptr.asFunction<_dart_git_repository_refdb>(); + late final _git_repository_refdbPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_repository_refdb'); + late final _git_repository_refdb = _git_repository_refdbPtr.asFunction< + int Function( + ffi.Pointer>, ffi.Pointer)>(); /// Get the Index file for this repository. /// @@ -3397,11 +3837,13 @@ class Libgit2 { ); } - late final _git_repository_index_ptr = - _lookup>( - 'git_repository_index'); - late final _dart_git_repository_index _git_repository_index = - _git_repository_index_ptr.asFunction<_dart_git_repository_index>(); + late final _git_repository_indexPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_repository_index'); + late final _git_repository_index = _git_repository_indexPtr.asFunction< + int Function( + ffi.Pointer>, ffi.Pointer)>(); /// Retrieve git's prepared message /// @@ -3427,11 +3869,12 @@ class Libgit2 { ); } - late final _git_repository_message_ptr = - _lookup>( - 'git_repository_message'); - late final _dart_git_repository_message _git_repository_message = - _git_repository_message_ptr.asFunction<_dart_git_repository_message>(); + late final _git_repository_messagePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_repository_message'); + late final _git_repository_message = _git_repository_messagePtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Remove git's prepared message. /// @@ -3444,12 +3887,11 @@ class Libgit2 { ); } - late final _git_repository_message_remove_ptr = - _lookup>( - 'git_repository_message_remove'); - late final _dart_git_repository_message_remove - _git_repository_message_remove = _git_repository_message_remove_ptr - .asFunction<_dart_git_repository_message_remove>(); + late final _git_repository_message_removePtr = _lookup< + ffi.NativeFunction)>>( + 'git_repository_message_remove'); + late final _git_repository_message_remove = _git_repository_message_removePtr + .asFunction)>(); /// Remove all the metadata associated with an ongoing command like merge, /// revert, cherry-pick, etc. For example: MERGE_HEAD, MERGE_MSG, etc. @@ -3464,12 +3906,11 @@ class Libgit2 { ); } - late final _git_repository_state_cleanup_ptr = - _lookup>( - 'git_repository_state_cleanup'); - late final _dart_git_repository_state_cleanup _git_repository_state_cleanup = - _git_repository_state_cleanup_ptr - .asFunction<_dart_git_repository_state_cleanup>(); + late final _git_repository_state_cleanupPtr = _lookup< + ffi.NativeFunction)>>( + 'git_repository_state_cleanup'); + late final _git_repository_state_cleanup = _git_repository_state_cleanupPtr + .asFunction)>(); /// Invoke 'callback' for each entry in the given FETCH_HEAD file. /// @@ -3482,8 +3923,7 @@ class Libgit2 { /// there is no FETCH_HEAD file, or other error code. int git_repository_fetchhead_foreach( ffi.Pointer repo, - ffi.Pointer> - callback, + git_repository_fetchhead_foreach_cb callback, ffi.Pointer payload, ) { return _git_repository_fetchhead_foreach( @@ -3493,12 +3933,16 @@ class Libgit2 { ); } - late final _git_repository_fetchhead_foreach_ptr = - _lookup>( - 'git_repository_fetchhead_foreach'); - late final _dart_git_repository_fetchhead_foreach - _git_repository_fetchhead_foreach = _git_repository_fetchhead_foreach_ptr - .asFunction<_dart_git_repository_fetchhead_foreach>(); + late final _git_repository_fetchhead_foreachPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + git_repository_fetchhead_foreach_cb, + ffi.Pointer)>>('git_repository_fetchhead_foreach'); + late final _git_repository_fetchhead_foreach = + _git_repository_fetchhead_foreachPtr.asFunction< + int Function(ffi.Pointer, + git_repository_fetchhead_foreach_cb, ffi.Pointer)>(); /// If a merge is in progress, invoke 'callback' for each commit ID in the /// MERGE_HEAD file. @@ -3512,8 +3956,7 @@ class Libgit2 { /// there is no MERGE_HEAD file, or other error code. int git_repository_mergehead_foreach( ffi.Pointer repo, - ffi.Pointer> - callback, + git_repository_mergehead_foreach_cb callback, ffi.Pointer payload, ) { return _git_repository_mergehead_foreach( @@ -3523,12 +3966,16 @@ class Libgit2 { ); } - late final _git_repository_mergehead_foreach_ptr = - _lookup>( - 'git_repository_mergehead_foreach'); - late final _dart_git_repository_mergehead_foreach - _git_repository_mergehead_foreach = _git_repository_mergehead_foreach_ptr - .asFunction<_dart_git_repository_mergehead_foreach>(); + late final _git_repository_mergehead_foreachPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + git_repository_mergehead_foreach_cb, + ffi.Pointer)>>('git_repository_mergehead_foreach'); + late final _git_repository_mergehead_foreach = + _git_repository_mergehead_foreachPtr.asFunction< + int Function(ffi.Pointer, + git_repository_mergehead_foreach_cb, ffi.Pointer)>(); /// Calculate hash of file using repository filtering rules. /// @@ -3567,11 +4014,17 @@ class Libgit2 { ); } - late final _git_repository_hashfile_ptr = - _lookup>( - 'git_repository_hashfile'); - late final _dart_git_repository_hashfile _git_repository_hashfile = - _git_repository_hashfile_ptr.asFunction<_dart_git_repository_hashfile>(); + late final _git_repository_hashfilePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer)>>('git_repository_hashfile'); + late final _git_repository_hashfile = _git_repository_hashfilePtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, ffi.Pointer)>(); /// Make the repository HEAD point to the specified reference. /// @@ -3599,11 +4052,12 @@ class Libgit2 { ); } - late final _git_repository_set_head_ptr = - _lookup>( - 'git_repository_set_head'); - late final _dart_git_repository_set_head _git_repository_set_head = - _git_repository_set_head_ptr.asFunction<_dart_git_repository_set_head>(); + late final _git_repository_set_headPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_repository_set_head'); + late final _git_repository_set_head = _git_repository_set_headPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Make the repository HEAD directly point to the Commit. /// @@ -3629,12 +4083,13 @@ class Libgit2 { ); } - late final _git_repository_set_head_detached_ptr = - _lookup>( - 'git_repository_set_head_detached'); - late final _dart_git_repository_set_head_detached - _git_repository_set_head_detached = _git_repository_set_head_detached_ptr - .asFunction<_dart_git_repository_set_head_detached>(); + late final _git_repository_set_head_detachedPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_repository_set_head_detached'); + late final _git_repository_set_head_detached = + _git_repository_set_head_detachedPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Make the repository HEAD directly point to the Commit. /// @@ -3656,14 +4111,15 @@ class Libgit2 { ); } - late final _git_repository_set_head_detached_from_annotated_ptr = _lookup< + late final _git_repository_set_head_detached_from_annotatedPtr = _lookup< ffi.NativeFunction< - _c_git_repository_set_head_detached_from_annotated>>( + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>( 'git_repository_set_head_detached_from_annotated'); - late final _dart_git_repository_set_head_detached_from_annotated - _git_repository_set_head_detached_from_annotated = - _git_repository_set_head_detached_from_annotated_ptr - .asFunction<_dart_git_repository_set_head_detached_from_annotated>(); + late final _git_repository_set_head_detached_from_annotated = + _git_repository_set_head_detached_from_annotatedPtr.asFunction< + int Function(ffi.Pointer, + ffi.Pointer)>(); /// Detach the HEAD. /// @@ -3688,12 +4144,11 @@ class Libgit2 { ); } - late final _git_repository_detach_head_ptr = - _lookup>( - 'git_repository_detach_head'); - late final _dart_git_repository_detach_head _git_repository_detach_head = - _git_repository_detach_head_ptr - .asFunction<_dart_git_repository_detach_head>(); + late final _git_repository_detach_headPtr = _lookup< + ffi.NativeFunction)>>( + 'git_repository_detach_head'); + late final _git_repository_detach_head = _git_repository_detach_headPtr + .asFunction)>(); /// Determines the status of a git repository - ie, whether an operation /// (merge, cherry-pick, etc) is in progress. @@ -3708,11 +4163,11 @@ class Libgit2 { ); } - late final _git_repository_state_ptr = - _lookup>( - 'git_repository_state'); - late final _dart_git_repository_state _git_repository_state = - _git_repository_state_ptr.asFunction<_dart_git_repository_state>(); + late final _git_repository_statePtr = _lookup< + ffi.NativeFunction)>>( + 'git_repository_state'); + late final _git_repository_state = _git_repository_statePtr + .asFunction)>(); /// Sets the active namespace for this Git Repository /// @@ -3734,12 +4189,13 @@ class Libgit2 { ); } - late final _git_repository_set_namespace_ptr = - _lookup>( - 'git_repository_set_namespace'); - late final _dart_git_repository_set_namespace _git_repository_set_namespace = - _git_repository_set_namespace_ptr - .asFunction<_dart_git_repository_set_namespace>(); + late final _git_repository_set_namespacePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_repository_set_namespace'); + late final _git_repository_set_namespace = + _git_repository_set_namespacePtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Get the currently active namespace for this repository /// @@ -3753,12 +4209,13 @@ class Libgit2 { ); } - late final _git_repository_get_namespace_ptr = - _lookup>( - 'git_repository_get_namespace'); - late final _dart_git_repository_get_namespace _git_repository_get_namespace = - _git_repository_get_namespace_ptr - .asFunction<_dart_git_repository_get_namespace>(); + late final _git_repository_get_namespacePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_repository_get_namespace'); + late final _git_repository_get_namespace = + _git_repository_get_namespacePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); /// Determine if the repository was a shallow clone /// @@ -3772,12 +4229,11 @@ class Libgit2 { ); } - late final _git_repository_is_shallow_ptr = - _lookup>( - 'git_repository_is_shallow'); - late final _dart_git_repository_is_shallow _git_repository_is_shallow = - _git_repository_is_shallow_ptr - .asFunction<_dart_git_repository_is_shallow>(); + late final _git_repository_is_shallowPtr = _lookup< + ffi.NativeFunction)>>( + 'git_repository_is_shallow'); + late final _git_repository_is_shallow = _git_repository_is_shallowPtr + .asFunction)>(); /// Retrieve the configured identity to use for reflogs /// @@ -3799,11 +4255,15 @@ class Libgit2 { ); } - late final _git_repository_ident_ptr = - _lookup>( - 'git_repository_ident'); - late final _dart_git_repository_ident _git_repository_ident = - _git_repository_ident_ptr.asFunction<_dart_git_repository_ident>(); + late final _git_repository_identPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer>, + ffi.Pointer)>>('git_repository_ident'); + late final _git_repository_ident = _git_repository_identPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer>, ffi.Pointer)>(); /// Set the identity to be used for writing reflogs /// @@ -3826,12 +4286,14 @@ class Libgit2 { ); } - late final _git_repository_set_ident_ptr = - _lookup>( - 'git_repository_set_ident'); - late final _dart_git_repository_set_ident _git_repository_set_ident = - _git_repository_set_ident_ptr - .asFunction<_dart_git_repository_set_ident>(); + late final _git_repository_set_identPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_repository_set_ident'); + late final _git_repository_set_ident = + _git_repository_set_identPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Creates a `git_annotated_commit` from the given reference. /// The resulting git_annotated_commit must be freed with @@ -3853,12 +4315,16 @@ class Libgit2 { ); } - late final _git_annotated_commit_from_ref_ptr = - _lookup>( - 'git_annotated_commit_from_ref'); - late final _dart_git_annotated_commit_from_ref - _git_annotated_commit_from_ref = _git_annotated_commit_from_ref_ptr - .asFunction<_dart_git_annotated_commit_from_ref>(); + late final _git_annotated_commit_from_refPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>('git_annotated_commit_from_ref'); + late final _git_annotated_commit_from_ref = + _git_annotated_commit_from_refPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer)>(); /// Creates a `git_annotated_commit` from the given fetch head data. /// The resulting git_annotated_commit must be freed with @@ -3886,13 +4352,22 @@ class Libgit2 { ); } - late final _git_annotated_commit_from_fetchhead_ptr = - _lookup>( - 'git_annotated_commit_from_fetchhead'); - late final _dart_git_annotated_commit_from_fetchhead - _git_annotated_commit_from_fetchhead = - _git_annotated_commit_from_fetchhead_ptr - .asFunction<_dart_git_annotated_commit_from_fetchhead>(); + late final _git_annotated_commit_from_fetchheadPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_annotated_commit_from_fetchhead'); + late final _git_annotated_commit_from_fetchhead = + _git_annotated_commit_from_fetchheadPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// Creates a `git_annotated_commit` from the given commit id. /// The resulting git_annotated_commit must be freed with @@ -3922,12 +4397,16 @@ class Libgit2 { ); } - late final _git_annotated_commit_lookup_ptr = - _lookup>( - 'git_annotated_commit_lookup'); - late final _dart_git_annotated_commit_lookup _git_annotated_commit_lookup = - _git_annotated_commit_lookup_ptr - .asFunction<_dart_git_annotated_commit_lookup>(); + late final _git_annotated_commit_lookupPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>('git_annotated_commit_lookup'); + late final _git_annotated_commit_lookup = + _git_annotated_commit_lookupPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer)>(); /// Creates a `git_annotated_commit` from a revision string. /// @@ -3951,13 +4430,16 @@ class Libgit2 { ); } - late final _git_annotated_commit_from_revspec_ptr = - _lookup>( - 'git_annotated_commit_from_revspec'); - late final _dart_git_annotated_commit_from_revspec - _git_annotated_commit_from_revspec = - _git_annotated_commit_from_revspec_ptr - .asFunction<_dart_git_annotated_commit_from_revspec>(); + late final _git_annotated_commit_from_revspecPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>('git_annotated_commit_from_revspec'); + late final _git_annotated_commit_from_revspec = + _git_annotated_commit_from_revspecPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer)>(); /// Gets the commit ID that the given `git_annotated_commit` refers to. /// @@ -3971,11 +4453,12 @@ class Libgit2 { ); } - late final _git_annotated_commit_id_ptr = - _lookup>( - 'git_annotated_commit_id'); - late final _dart_git_annotated_commit_id _git_annotated_commit_id = - _git_annotated_commit_id_ptr.asFunction<_dart_git_annotated_commit_id>(); + late final _git_annotated_commit_idPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_annotated_commit_id'); + late final _git_annotated_commit_id = _git_annotated_commit_idPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); /// Get the refname that the given `git_annotated_commit` refers to. /// @@ -3989,12 +4472,13 @@ class Libgit2 { ); } - late final _git_annotated_commit_ref_ptr = - _lookup>( - 'git_annotated_commit_ref'); - late final _dart_git_annotated_commit_ref _git_annotated_commit_ref = - _git_annotated_commit_ref_ptr - .asFunction<_dart_git_annotated_commit_ref>(); + late final _git_annotated_commit_refPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_annotated_commit_ref'); + late final _git_annotated_commit_ref = + _git_annotated_commit_refPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); /// Frees a `git_annotated_commit`. /// @@ -4007,12 +4491,12 @@ class Libgit2 { ); } - late final _git_annotated_commit_free_ptr = - _lookup>( - 'git_annotated_commit_free'); - late final _dart_git_annotated_commit_free _git_annotated_commit_free = - _git_annotated_commit_free_ptr - .asFunction<_dart_git_annotated_commit_free>(); + late final _git_annotated_commit_freePtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer)>>('git_annotated_commit_free'); + late final _git_annotated_commit_free = _git_annotated_commit_freePtr + .asFunction)>(); /// Lookup a reference to one of the objects in a repository. /// @@ -4044,10 +4528,16 @@ class Libgit2 { ); } - late final _git_object_lookup_ptr = - _lookup>('git_object_lookup'); - late final _dart_git_object_lookup _git_object_lookup = - _git_object_lookup_ptr.asFunction<_dart_git_object_lookup>(); + late final _git_object_lookupPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('git_object_lookup'); + late final _git_object_lookup = _git_object_lookupPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer, int)>(); /// Lookup a reference to one of the objects in a repository, /// given a prefix of its identifier (short id). @@ -4090,12 +4580,18 @@ class Libgit2 { ); } - late final _git_object_lookup_prefix_ptr = - _lookup>( - 'git_object_lookup_prefix'); - late final _dart_git_object_lookup_prefix _git_object_lookup_prefix = - _git_object_lookup_prefix_ptr - .asFunction<_dart_git_object_lookup_prefix>(); + late final _git_object_lookup_prefixPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + size_t, + ffi.Int32)>>('git_object_lookup_prefix'); + late final _git_object_lookup_prefix = + _git_object_lookup_prefixPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer, int, int)>(); /// Lookup an object that represents a tree entry. /// @@ -4119,12 +4615,17 @@ class Libgit2 { ); } - late final _git_object_lookup_bypath_ptr = - _lookup>( - 'git_object_lookup_bypath'); - late final _dart_git_object_lookup_bypath _git_object_lookup_bypath = - _git_object_lookup_bypath_ptr - .asFunction<_dart_git_object_lookup_bypath>(); + late final _git_object_lookup_bypathPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('git_object_lookup_bypath'); + late final _git_object_lookup_bypath = + _git_object_lookup_bypathPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer, int)>(); /// Get the id (SHA1) of a repository object /// @@ -4138,10 +4639,12 @@ class Libgit2 { ); } - late final _git_object_id_ptr = - _lookup>('git_object_id'); - late final _dart_git_object_id _git_object_id = - _git_object_id_ptr.asFunction<_dart_git_object_id>(); + late final _git_object_idPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_object_id'); + late final _git_object_id = _git_object_idPtr + .asFunction Function(ffi.Pointer)>(); /// Get a short abbreviated OID string for the object /// @@ -4163,11 +4666,12 @@ class Libgit2 { ); } - late final _git_object_short_id_ptr = - _lookup>( - 'git_object_short_id'); - late final _dart_git_object_short_id _git_object_short_id = - _git_object_short_id_ptr.asFunction<_dart_git_object_short_id>(); + late final _git_object_short_idPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_object_short_id'); + late final _git_object_short_id = _git_object_short_idPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Get the object type of an object /// @@ -4181,10 +4685,11 @@ class Libgit2 { ); } - late final _git_object_type_ptr = - _lookup>('git_object_type'); - late final _dart_git_object_type _git_object_type = - _git_object_type_ptr.asFunction<_dart_git_object_type>(); + late final _git_object_typePtr = + _lookup)>>( + 'git_object_type'); + late final _git_object_type = + _git_object_typePtr.asFunction)>(); /// Get the repository that owns this object /// @@ -4204,10 +4709,12 @@ class Libgit2 { ); } - late final _git_object_owner_ptr = - _lookup>('git_object_owner'); - late final _dart_git_object_owner _git_object_owner = - _git_object_owner_ptr.asFunction<_dart_git_object_owner>(); + late final _git_object_ownerPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_object_owner'); + late final _git_object_owner = _git_object_ownerPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); /// Close an open object /// @@ -4230,10 +4737,11 @@ class Libgit2 { ); } - late final _git_object_free_ptr = - _lookup>('git_object_free'); - late final _dart_git_object_free _git_object_free = - _git_object_free_ptr.asFunction<_dart_git_object_free>(); + late final _git_object_freePtr = + _lookup)>>( + 'git_object_free'); + late final _git_object_free = + _git_object_freePtr.asFunction)>(); /// Convert an object type to its string representation. /// @@ -4250,11 +4758,11 @@ class Libgit2 { ); } - late final _git_object_type2string_ptr = - _lookup>( + late final _git_object_type2stringPtr = + _lookup Function(ffi.Int32)>>( 'git_object_type2string'); - late final _dart_git_object_type2string _git_object_type2string = - _git_object_type2string_ptr.asFunction<_dart_git_object_type2string>(); + late final _git_object_type2string = _git_object_type2stringPtr + .asFunction Function(int)>(); /// Convert a string object type representation to it's git_object_t. /// @@ -4268,11 +4776,11 @@ class Libgit2 { ); } - late final _git_object_string2type_ptr = - _lookup>( + late final _git_object_string2typePtr = + _lookup)>>( 'git_object_string2type'); - late final _dart_git_object_string2type _git_object_string2type = - _git_object_string2type_ptr.asFunction<_dart_git_object_string2type>(); + late final _git_object_string2type = _git_object_string2typePtr + .asFunction)>(); /// Determine if the given git_object_t is a valid loose object type. /// @@ -4287,11 +4795,11 @@ class Libgit2 { ); } - late final _git_object_typeisloose_ptr = - _lookup>( + late final _git_object_typeisloosePtr = + _lookup>( 'git_object_typeisloose'); - late final _dart_git_object_typeisloose _git_object_typeisloose = - _git_object_typeisloose_ptr.asFunction<_dart_git_object_typeisloose>(); + late final _git_object_typeisloose = + _git_object_typeisloosePtr.asFunction(); /// Recursively peel an object until an object of the specified type is met. /// @@ -4326,10 +4834,13 @@ class Libgit2 { ); } - late final _git_object_peel_ptr = - _lookup>('git_object_peel'); - late final _dart_git_object_peel _git_object_peel = - _git_object_peel_ptr.asFunction<_dart_git_object_peel>(); + late final _git_object_peelPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer, ffi.Int32)>>('git_object_peel'); + late final _git_object_peel = _git_object_peelPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, int)>(); /// Create an in-memory copy of a Git object. The copy must be /// explicitly free'd or it will leak. @@ -4346,10 +4857,13 @@ class Libgit2 { ); } - late final _git_object_dup_ptr = - _lookup>('git_object_dup'); - late final _dart_git_object_dup _git_object_dup = - _git_object_dup_ptr.asFunction<_dart_git_object_dup>(); + late final _git_object_dupPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_object_dup'); + late final _git_object_dup = _git_object_dupPtr.asFunction< + int Function( + ffi.Pointer>, ffi.Pointer)>(); /// Lookup a tree object from the repository. /// @@ -4369,10 +4883,15 @@ class Libgit2 { ); } - late final _git_tree_lookup_ptr = - _lookup>('git_tree_lookup'); - late final _dart_git_tree_lookup _git_tree_lookup = - _git_tree_lookup_ptr.asFunction<_dart_git_tree_lookup>(); + late final _git_tree_lookupPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>('git_tree_lookup'); + late final _git_tree_lookup = _git_tree_lookupPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer)>(); /// Lookup a tree object from the repository, /// given a prefix of its identifier (short id). @@ -4398,11 +4917,16 @@ class Libgit2 { ); } - late final _git_tree_lookup_prefix_ptr = - _lookup>( - 'git_tree_lookup_prefix'); - late final _dart_git_tree_lookup_prefix _git_tree_lookup_prefix = - _git_tree_lookup_prefix_ptr.asFunction<_dart_git_tree_lookup_prefix>(); + late final _git_tree_lookup_prefixPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + size_t)>>('git_tree_lookup_prefix'); + late final _git_tree_lookup_prefix = _git_tree_lookup_prefixPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer, int)>(); /// Close an open tree /// @@ -4420,10 +4944,11 @@ class Libgit2 { ); } - late final _git_tree_free_ptr = - _lookup>('git_tree_free'); - late final _dart_git_tree_free _git_tree_free = - _git_tree_free_ptr.asFunction<_dart_git_tree_free>(); + late final _git_tree_freePtr = + _lookup)>>( + 'git_tree_free'); + late final _git_tree_free = + _git_tree_freePtr.asFunction)>(); /// Get the id of a tree. /// @@ -4437,10 +4962,11 @@ class Libgit2 { ); } - late final _git_tree_id_ptr = - _lookup>('git_tree_id'); - late final _dart_git_tree_id _git_tree_id = - _git_tree_id_ptr.asFunction<_dart_git_tree_id>(); + late final _git_tree_idPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>('git_tree_id'); + late final _git_tree_id = _git_tree_idPtr + .asFunction Function(ffi.Pointer)>(); /// Get the repository that contains the tree. /// @@ -4454,10 +4980,12 @@ class Libgit2 { ); } - late final _git_tree_owner_ptr = - _lookup>('git_tree_owner'); - late final _dart_git_tree_owner _git_tree_owner = - _git_tree_owner_ptr.asFunction<_dart_git_tree_owner>(); + late final _git_tree_ownerPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_tree_owner'); + late final _git_tree_owner = _git_tree_ownerPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); /// Get the number of entries listed in a tree /// @@ -4471,11 +4999,11 @@ class Libgit2 { ); } - late final _git_tree_entrycount_ptr = - _lookup>( + late final _git_tree_entrycountPtr = + _lookup)>>( 'git_tree_entrycount'); - late final _dart_git_tree_entrycount _git_tree_entrycount = - _git_tree_entrycount_ptr.asFunction<_dart_git_tree_entrycount>(); + late final _git_tree_entrycount = + _git_tree_entrycountPtr.asFunction)>(); /// Lookup a tree entry by its filename /// @@ -4495,11 +5023,13 @@ class Libgit2 { ); } - late final _git_tree_entry_byname_ptr = - _lookup>( - 'git_tree_entry_byname'); - late final _dart_git_tree_entry_byname _git_tree_entry_byname = - _git_tree_entry_byname_ptr.asFunction<_dart_git_tree_entry_byname>(); + late final _git_tree_entry_bynamePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer)>>('git_tree_entry_byname'); + late final _git_tree_entry_byname = _git_tree_entry_bynamePtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); /// Lookup a tree entry by its position in the tree /// @@ -4519,11 +5049,12 @@ class Libgit2 { ); } - late final _git_tree_entry_byindex_ptr = - _lookup>( - 'git_tree_entry_byindex'); - late final _dart_git_tree_entry_byindex _git_tree_entry_byindex = - _git_tree_entry_byindex_ptr.asFunction<_dart_git_tree_entry_byindex>(); + late final _git_tree_entry_byindexPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, size_t)>>('git_tree_entry_byindex'); + late final _git_tree_entry_byindex = _git_tree_entry_byindexPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int)>(); /// Lookup a tree entry by SHA value. /// @@ -4545,11 +5076,13 @@ class Libgit2 { ); } - late final _git_tree_entry_byid_ptr = - _lookup>( - 'git_tree_entry_byid'); - late final _dart_git_tree_entry_byid _git_tree_entry_byid = - _git_tree_entry_byid_ptr.asFunction<_dart_git_tree_entry_byid>(); + late final _git_tree_entry_byidPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer)>>('git_tree_entry_byid'); + late final _git_tree_entry_byid = _git_tree_entry_byidPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); /// Retrieve a tree entry contained in a tree or in any of its subtrees, /// given its relative path. @@ -4573,11 +5106,15 @@ class Libgit2 { ); } - late final _git_tree_entry_bypath_ptr = - _lookup>( - 'git_tree_entry_bypath'); - late final _dart_git_tree_entry_bypath _git_tree_entry_bypath = - _git_tree_entry_bypath_ptr.asFunction<_dart_git_tree_entry_bypath>(); + late final _git_tree_entry_bypathPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>('git_tree_entry_bypath'); + late final _git_tree_entry_bypath = _git_tree_entry_bypathPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer)>(); /// Duplicate a tree entry /// @@ -4597,10 +5134,13 @@ class Libgit2 { ); } - late final _git_tree_entry_dup_ptr = - _lookup>('git_tree_entry_dup'); - late final _dart_git_tree_entry_dup _git_tree_entry_dup = - _git_tree_entry_dup_ptr.asFunction<_dart_git_tree_entry_dup>(); + late final _git_tree_entry_dupPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_tree_entry_dup'); + late final _git_tree_entry_dup = _git_tree_entry_dupPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer)>(); /// Free a user-owned tree entry /// @@ -4617,11 +5157,11 @@ class Libgit2 { ); } - late final _git_tree_entry_free_ptr = - _lookup>( - 'git_tree_entry_free'); - late final _dart_git_tree_entry_free _git_tree_entry_free = - _git_tree_entry_free_ptr.asFunction<_dart_git_tree_entry_free>(); + late final _git_tree_entry_freePtr = _lookup< + ffi.NativeFunction)>>( + 'git_tree_entry_free'); + late final _git_tree_entry_free = _git_tree_entry_freePtr + .asFunction)>(); /// Get the filename of a tree entry /// @@ -4635,11 +5175,12 @@ class Libgit2 { ); } - late final _git_tree_entry_name_ptr = - _lookup>( - 'git_tree_entry_name'); - late final _dart_git_tree_entry_name _git_tree_entry_name = - _git_tree_entry_name_ptr.asFunction<_dart_git_tree_entry_name>(); + late final _git_tree_entry_namePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_tree_entry_name'); + late final _git_tree_entry_name = _git_tree_entry_namePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); /// Get the id of the object pointed by the entry /// @@ -4653,10 +5194,12 @@ class Libgit2 { ); } - late final _git_tree_entry_id_ptr = - _lookup>('git_tree_entry_id'); - late final _dart_git_tree_entry_id _git_tree_entry_id = - _git_tree_entry_id_ptr.asFunction<_dart_git_tree_entry_id>(); + late final _git_tree_entry_idPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_tree_entry_id'); + late final _git_tree_entry_id = _git_tree_entry_idPtr + .asFunction Function(ffi.Pointer)>(); /// Get the type of the object pointed by the entry /// @@ -4670,11 +5213,11 @@ class Libgit2 { ); } - late final _git_tree_entry_type_ptr = - _lookup>( - 'git_tree_entry_type'); - late final _dart_git_tree_entry_type _git_tree_entry_type = - _git_tree_entry_type_ptr.asFunction<_dart_git_tree_entry_type>(); + late final _git_tree_entry_typePtr = _lookup< + ffi.NativeFunction)>>( + 'git_tree_entry_type'); + late final _git_tree_entry_type = _git_tree_entry_typePtr + .asFunction)>(); /// Get the UNIX file attributes of a tree entry /// @@ -4688,11 +5231,11 @@ class Libgit2 { ); } - late final _git_tree_entry_filemode_ptr = - _lookup>( - 'git_tree_entry_filemode'); - late final _dart_git_tree_entry_filemode _git_tree_entry_filemode = - _git_tree_entry_filemode_ptr.asFunction<_dart_git_tree_entry_filemode>(); + late final _git_tree_entry_filemodePtr = _lookup< + ffi.NativeFunction)>>( + 'git_tree_entry_filemode'); + late final _git_tree_entry_filemode = _git_tree_entry_filemodePtr + .asFunction)>(); /// Get the raw UNIX file attributes of a tree entry /// @@ -4709,12 +5252,11 @@ class Libgit2 { ); } - late final _git_tree_entry_filemode_raw_ptr = - _lookup>( - 'git_tree_entry_filemode_raw'); - late final _dart_git_tree_entry_filemode_raw _git_tree_entry_filemode_raw = - _git_tree_entry_filemode_raw_ptr - .asFunction<_dart_git_tree_entry_filemode_raw>(); + late final _git_tree_entry_filemode_rawPtr = _lookup< + ffi.NativeFunction)>>( + 'git_tree_entry_filemode_raw'); + late final _git_tree_entry_filemode_raw = _git_tree_entry_filemode_rawPtr + .asFunction)>(); /// Compare two tree entries /// @@ -4731,10 +5273,12 @@ class Libgit2 { ); } - late final _git_tree_entry_cmp_ptr = - _lookup>('git_tree_entry_cmp'); - late final _dart_git_tree_entry_cmp _git_tree_entry_cmp = - _git_tree_entry_cmp_ptr.asFunction<_dart_git_tree_entry_cmp>(); + late final _git_tree_entry_cmpPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_tree_entry_cmp'); + late final _git_tree_entry_cmp = _git_tree_entry_cmpPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Convert a tree entry to the git_object it points to. /// @@ -4756,12 +5300,16 @@ class Libgit2 { ); } - late final _git_tree_entry_to_object_ptr = - _lookup>( - 'git_tree_entry_to_object'); - late final _dart_git_tree_entry_to_object _git_tree_entry_to_object = - _git_tree_entry_to_object_ptr - .asFunction<_dart_git_tree_entry_to_object>(); + late final _git_tree_entry_to_objectPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>('git_tree_entry_to_object'); + late final _git_tree_entry_to_object = + _git_tree_entry_to_objectPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer)>(); /// Create a new tree builder. /// @@ -4790,11 +5338,15 @@ class Libgit2 { ); } - late final _git_treebuilder_new_ptr = - _lookup>( - 'git_treebuilder_new'); - late final _dart_git_treebuilder_new _git_treebuilder_new = - _git_treebuilder_new_ptr.asFunction<_dart_git_treebuilder_new>(); + late final _git_treebuilder_newPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>('git_treebuilder_new'); + late final _git_treebuilder_new = _git_treebuilder_newPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer)>(); /// Clear all the entires in the builder /// @@ -4808,11 +5360,11 @@ class Libgit2 { ); } - late final _git_treebuilder_clear_ptr = - _lookup>( - 'git_treebuilder_clear'); - late final _dart_git_treebuilder_clear _git_treebuilder_clear = - _git_treebuilder_clear_ptr.asFunction<_dart_git_treebuilder_clear>(); + late final _git_treebuilder_clearPtr = _lookup< + ffi.NativeFunction)>>( + 'git_treebuilder_clear'); + late final _git_treebuilder_clear = _git_treebuilder_clearPtr + .asFunction)>(); /// Get the number of entries listed in a treebuilder /// @@ -4826,12 +5378,11 @@ class Libgit2 { ); } - late final _git_treebuilder_entrycount_ptr = - _lookup>( - 'git_treebuilder_entrycount'); - late final _dart_git_treebuilder_entrycount _git_treebuilder_entrycount = - _git_treebuilder_entrycount_ptr - .asFunction<_dart_git_treebuilder_entrycount>(); + late final _git_treebuilder_entrycountPtr = _lookup< + ffi.NativeFunction)>>( + 'git_treebuilder_entrycount'); + late final _git_treebuilder_entrycount = _git_treebuilder_entrycountPtr + .asFunction)>(); /// Free a tree builder /// @@ -4848,11 +5399,11 @@ class Libgit2 { ); } - late final _git_treebuilder_free_ptr = - _lookup>( - 'git_treebuilder_free'); - late final _dart_git_treebuilder_free _git_treebuilder_free = - _git_treebuilder_free_ptr.asFunction<_dart_git_treebuilder_free>(); + late final _git_treebuilder_freePtr = _lookup< + ffi.NativeFunction)>>( + 'git_treebuilder_free'); + late final _git_treebuilder_free = _git_treebuilder_freePtr + .asFunction)>(); /// Get an entry from the builder from its filename /// @@ -4872,11 +5423,13 @@ class Libgit2 { ); } - late final _git_treebuilder_get_ptr = - _lookup>( - 'git_treebuilder_get'); - late final _dart_git_treebuilder_get _git_treebuilder_get = - _git_treebuilder_get_ptr.asFunction<_dart_git_treebuilder_get>(); + late final _git_treebuilder_getPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer)>>('git_treebuilder_get'); + late final _git_treebuilder_get = _git_treebuilder_getPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); /// Add or update an entry to the builder /// @@ -4920,11 +5473,21 @@ class Libgit2 { ); } - late final _git_treebuilder_insert_ptr = - _lookup>( - 'git_treebuilder_insert'); - late final _dart_git_treebuilder_insert _git_treebuilder_insert = - _git_treebuilder_insert_ptr.asFunction<_dart_git_treebuilder_insert>(); + late final _git_treebuilder_insertPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('git_treebuilder_insert'); + late final _git_treebuilder_insert = _git_treebuilder_insertPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int)>(); /// Remove an entry from the builder by its filename /// @@ -4941,11 +5504,12 @@ class Libgit2 { ); } - late final _git_treebuilder_remove_ptr = - _lookup>( - 'git_treebuilder_remove'); - late final _dart_git_treebuilder_remove _git_treebuilder_remove = - _git_treebuilder_remove_ptr.asFunction<_dart_git_treebuilder_remove>(); + late final _git_treebuilder_removePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_treebuilder_remove'); + late final _git_treebuilder_remove = _git_treebuilder_removePtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Selectively remove entries in the tree /// @@ -4959,7 +5523,7 @@ class Libgit2 { /// @return 0 on success, non-zero callback return value, or error code int git_treebuilder_filter( ffi.Pointer bld, - ffi.Pointer> filter, + git_treebuilder_filter_cb filter, ffi.Pointer payload, ) { return _git_treebuilder_filter( @@ -4969,11 +5533,15 @@ class Libgit2 { ); } - late final _git_treebuilder_filter_ptr = - _lookup>( - 'git_treebuilder_filter'); - late final _dart_git_treebuilder_filter _git_treebuilder_filter = - _git_treebuilder_filter_ptr.asFunction<_dart_git_treebuilder_filter>(); + late final _git_treebuilder_filterPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + git_treebuilder_filter_cb, + ffi.Pointer)>>('git_treebuilder_filter'); + late final _git_treebuilder_filter = _git_treebuilder_filterPtr.asFunction< + int Function(ffi.Pointer, git_treebuilder_filter_cb, + ffi.Pointer)>(); /// Write the contents of the tree builder as a tree object /// @@ -4993,11 +5561,12 @@ class Libgit2 { ); } - late final _git_treebuilder_write_ptr = - _lookup>( - 'git_treebuilder_write'); - late final _dart_git_treebuilder_write _git_treebuilder_write = - _git_treebuilder_write_ptr.asFunction<_dart_git_treebuilder_write>(); + late final _git_treebuilder_writePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_treebuilder_write'); + late final _git_treebuilder_write = _git_treebuilder_writePtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Traverse the entries in a tree and its subtrees in post or pre order. /// @@ -5017,7 +5586,7 @@ class Libgit2 { int git_tree_walk( ffi.Pointer tree, int mode, - ffi.Pointer> callback, + git_treewalk_cb callback, ffi.Pointer payload, ) { return _git_tree_walk( @@ -5028,10 +5597,13 @@ class Libgit2 { ); } - late final _git_tree_walk_ptr = - _lookup>('git_tree_walk'); - late final _dart_git_tree_walk _git_tree_walk = - _git_tree_walk_ptr.asFunction<_dart_git_tree_walk>(); + late final _git_tree_walkPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Int32, git_treewalk_cb, + ffi.Pointer)>>('git_tree_walk'); + late final _git_tree_walk = _git_tree_walkPtr.asFunction< + int Function(ffi.Pointer, int, git_treewalk_cb, + ffi.Pointer)>(); /// Create an in-memory copy of a tree. The copy must be explicitly /// free'd or it will leak. @@ -5048,10 +5620,13 @@ class Libgit2 { ); } - late final _git_tree_dup_ptr = - _lookup>('git_tree_dup'); - late final _dart_git_tree_dup _git_tree_dup = - _git_tree_dup_ptr.asFunction<_dart_git_tree_dup>(); + late final _git_tree_dupPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_tree_dup'); + late final _git_tree_dup = _git_tree_dupPtr.asFunction< + int Function( + ffi.Pointer>, ffi.Pointer)>(); /// Create a tree based on another one with the specified modifications /// @@ -5088,11 +5663,17 @@ class Libgit2 { ); } - late final _git_tree_create_updated_ptr = - _lookup>( - 'git_tree_create_updated'); - late final _dart_git_tree_create_updated _git_tree_create_updated = - _git_tree_create_updated_ptr.asFunction<_dart_git_tree_create_updated>(); + late final _git_tree_create_updatedPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + size_t, + ffi.Pointer)>>('git_tree_create_updated'); + late final _git_tree_create_updated = _git_tree_create_updatedPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, ffi.Pointer)>(); /// Free the strings contained in a string array. This method should /// be called on `git_strarray` objects that were provided by the @@ -5110,11 +5691,11 @@ class Libgit2 { ); } - late final _git_strarray_dispose_ptr = - _lookup>( + late final _git_strarray_disposePtr = + _lookup)>>( 'git_strarray_dispose'); - late final _dart_git_strarray_dispose _git_strarray_dispose = - _git_strarray_dispose_ptr.asFunction<_dart_git_strarray_dispose>(); + late final _git_strarray_dispose = _git_strarray_disposePtr + .asFunction)>(); /// Copy a string array object from source to target. /// @@ -5134,10 +5715,12 @@ class Libgit2 { ); } - late final _git_strarray_copy_ptr = - _lookup>('git_strarray_copy'); - late final _dart_git_strarray_copy _git_strarray_copy = - _git_strarray_copy_ptr.asFunction<_dart_git_strarray_copy>(); + late final _git_strarray_copyPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_strarray_copy'); + late final _git_strarray_copy = _git_strarray_copyPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Lookup a reference by name in a repository. /// @@ -5162,11 +5745,15 @@ class Libgit2 { ); } - late final _git_reference_lookup_ptr = - _lookup>( - 'git_reference_lookup'); - late final _dart_git_reference_lookup _git_reference_lookup = - _git_reference_lookup_ptr.asFunction<_dart_git_reference_lookup>(); + late final _git_reference_lookupPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>('git_reference_lookup'); + late final _git_reference_lookup = _git_reference_lookupPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer)>(); /// Lookup a reference by name and resolve immediately to OID. /// @@ -5193,12 +5780,14 @@ class Libgit2 { ); } - late final _git_reference_name_to_id_ptr = - _lookup>( - 'git_reference_name_to_id'); - late final _dart_git_reference_name_to_id _git_reference_name_to_id = - _git_reference_name_to_id_ptr - .asFunction<_dart_git_reference_name_to_id>(); + late final _git_reference_name_to_idPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_reference_name_to_id'); + late final _git_reference_name_to_id = + _git_reference_name_to_idPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Lookup a reference by DWIMing its short name /// @@ -5221,10 +5810,15 @@ class Libgit2 { ); } - late final _git_reference_dwim_ptr = - _lookup>('git_reference_dwim'); - late final _dart_git_reference_dwim _git_reference_dwim = - _git_reference_dwim_ptr.asFunction<_dart_git_reference_dwim>(); + late final _git_reference_dwimPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>('git_reference_dwim'); + late final _git_reference_dwim = _git_reference_dwimPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer)>(); /// Conditionally create a new symbolic reference. /// @@ -5286,13 +5880,27 @@ class Libgit2 { ); } - late final _git_reference_symbolic_create_matching_ptr = - _lookup>( - 'git_reference_symbolic_create_matching'); - late final _dart_git_reference_symbolic_create_matching - _git_reference_symbolic_create_matching = - _git_reference_symbolic_create_matching_ptr - .asFunction<_dart_git_reference_symbolic_create_matching>(); + late final _git_reference_symbolic_create_matchingPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ffi.Pointer)>>( + 'git_reference_symbolic_create_matching'); + late final _git_reference_symbolic_create_matching = + _git_reference_symbolic_create_matchingPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer)>(); /// Create a new symbolic reference. /// @@ -5344,12 +5952,24 @@ class Libgit2 { ); } - late final _git_reference_symbolic_create_ptr = - _lookup>( - 'git_reference_symbolic_create'); - late final _dart_git_reference_symbolic_create - _git_reference_symbolic_create = _git_reference_symbolic_create_ptr - .asFunction<_dart_git_reference_symbolic_create>(); + late final _git_reference_symbolic_createPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer)>>('git_reference_symbolic_create'); + late final _git_reference_symbolic_create = + _git_reference_symbolic_createPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer)>(); /// Create a new direct reference. /// @@ -5402,11 +6022,23 @@ class Libgit2 { ); } - late final _git_reference_create_ptr = - _lookup>( - 'git_reference_create'); - late final _dart_git_reference_create _git_reference_create = - _git_reference_create_ptr.asFunction<_dart_git_reference_create>(); + late final _git_reference_createPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer)>>('git_reference_create'); + late final _git_reference_create = _git_reference_createPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer)>(); /// Conditionally create new direct reference /// @@ -5467,12 +6099,26 @@ class Libgit2 { ); } - late final _git_reference_create_matching_ptr = - _lookup>( - 'git_reference_create_matching'); - late final _dart_git_reference_create_matching - _git_reference_create_matching = _git_reference_create_matching_ptr - .asFunction<_dart_git_reference_create_matching>(); + late final _git_reference_create_matchingPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ffi.Pointer)>>('git_reference_create_matching'); + late final _git_reference_create_matching = + _git_reference_create_matchingPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer)>(); /// Get the OID pointed to by a direct reference. /// @@ -5493,11 +6139,12 @@ class Libgit2 { ); } - late final _git_reference_target_ptr = - _lookup>( - 'git_reference_target'); - late final _dart_git_reference_target _git_reference_target = - _git_reference_target_ptr.asFunction<_dart_git_reference_target>(); + late final _git_reference_targetPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_reference_target'); + late final _git_reference_target = _git_reference_targetPtr + .asFunction Function(ffi.Pointer)>(); /// Return the peeled OID target of this reference. /// @@ -5514,12 +6161,12 @@ class Libgit2 { ); } - late final _git_reference_target_peel_ptr = - _lookup>( - 'git_reference_target_peel'); - late final _dart_git_reference_target_peel _git_reference_target_peel = - _git_reference_target_peel_ptr - .asFunction<_dart_git_reference_target_peel>(); + late final _git_reference_target_peelPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_reference_target_peel'); + late final _git_reference_target_peel = _git_reference_target_peelPtr + .asFunction Function(ffi.Pointer)>(); /// Get full name to the reference pointed to by a symbolic reference. /// @@ -5535,12 +6182,12 @@ class Libgit2 { ); } - late final _git_reference_symbolic_target_ptr = - _lookup>( - 'git_reference_symbolic_target'); - late final _dart_git_reference_symbolic_target - _git_reference_symbolic_target = _git_reference_symbolic_target_ptr - .asFunction<_dart_git_reference_symbolic_target>(); + late final _git_reference_symbolic_targetPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_reference_symbolic_target'); + late final _git_reference_symbolic_target = _git_reference_symbolic_targetPtr + .asFunction Function(ffi.Pointer)>(); /// Get the type of a reference. /// @@ -5556,10 +6203,11 @@ class Libgit2 { ); } - late final _git_reference_type_ptr = - _lookup>('git_reference_type'); - late final _dart_git_reference_type _git_reference_type = - _git_reference_type_ptr.asFunction<_dart_git_reference_type>(); + late final _git_reference_typePtr = _lookup< + ffi.NativeFunction)>>( + 'git_reference_type'); + late final _git_reference_type = _git_reference_typePtr + .asFunction)>(); /// Get the full name of a reference. /// @@ -5575,10 +6223,12 @@ class Libgit2 { ); } - late final _git_reference_name_ptr = - _lookup>('git_reference_name'); - late final _dart_git_reference_name _git_reference_name = - _git_reference_name_ptr.asFunction<_dart_git_reference_name>(); + late final _git_reference_namePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_reference_name'); + late final _git_reference_name = _git_reference_namePtr + .asFunction Function(ffi.Pointer)>(); /// Resolve a symbolic reference to a direct reference. /// @@ -5604,11 +6254,13 @@ class Libgit2 { ); } - late final _git_reference_resolve_ptr = - _lookup>( - 'git_reference_resolve'); - late final _dart_git_reference_resolve _git_reference_resolve = - _git_reference_resolve_ptr.asFunction<_dart_git_reference_resolve>(); + late final _git_reference_resolvePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_reference_resolve'); + late final _git_reference_resolve = _git_reference_resolvePtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer)>(); /// Get the repository where a reference resides. /// @@ -5622,11 +6274,12 @@ class Libgit2 { ); } - late final _git_reference_owner_ptr = - _lookup>( - 'git_reference_owner'); - late final _dart_git_reference_owner _git_reference_owner = - _git_reference_owner_ptr.asFunction<_dart_git_reference_owner>(); + late final _git_reference_ownerPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_reference_owner'); + late final _git_reference_owner = _git_reference_ownerPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); /// Create a new reference with the same name as the given reference but a /// different symbolic target. The reference must be a symbolic reference, @@ -5660,13 +6313,20 @@ class Libgit2 { ); } - late final _git_reference_symbolic_set_target_ptr = - _lookup>( - 'git_reference_symbolic_set_target'); - late final _dart_git_reference_symbolic_set_target - _git_reference_symbolic_set_target = - _git_reference_symbolic_set_target_ptr - .asFunction<_dart_git_reference_symbolic_set_target>(); + late final _git_reference_symbolic_set_targetPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_reference_symbolic_set_target'); + late final _git_reference_symbolic_set_target = + _git_reference_symbolic_set_targetPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// Conditionally create a new reference with the same name as the given reference but a /// different OID target. The reference must be a direct reference, otherwise @@ -5694,12 +6354,20 @@ class Libgit2 { ); } - late final _git_reference_set_target_ptr = - _lookup>( - 'git_reference_set_target'); - late final _dart_git_reference_set_target _git_reference_set_target = - _git_reference_set_target_ptr - .asFunction<_dart_git_reference_set_target>(); + late final _git_reference_set_targetPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_reference_set_target'); + late final _git_reference_set_target = + _git_reference_set_targetPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// Rename an existing reference. /// @@ -5737,11 +6405,21 @@ class Libgit2 { ); } - late final _git_reference_rename_ptr = - _lookup>( - 'git_reference_rename'); - late final _dart_git_reference_rename _git_reference_rename = - _git_reference_rename_ptr.asFunction<_dart_git_reference_rename>(); + late final _git_reference_renamePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer)>>('git_reference_rename'); + late final _git_reference_rename = _git_reference_renamePtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer)>(); /// Delete an existing reference. /// @@ -5762,11 +6440,11 @@ class Libgit2 { ); } - late final _git_reference_delete_ptr = - _lookup>( - 'git_reference_delete'); - late final _dart_git_reference_delete _git_reference_delete = - _git_reference_delete_ptr.asFunction<_dart_git_reference_delete>(); + late final _git_reference_deletePtr = _lookup< + ffi.NativeFunction)>>( + 'git_reference_delete'); + late final _git_reference_delete = _git_reference_deletePtr + .asFunction)>(); /// Delete an existing reference by name /// @@ -5785,11 +6463,12 @@ class Libgit2 { ); } - late final _git_reference_remove_ptr = - _lookup>( - 'git_reference_remove'); - late final _dart_git_reference_remove _git_reference_remove = - _git_reference_remove_ptr.asFunction<_dart_git_reference_remove>(); + late final _git_reference_removePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_reference_remove'); + late final _git_reference_remove = _git_reference_removePtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Fill a list with all the references that can be found in a repository. /// @@ -5811,10 +6490,12 @@ class Libgit2 { ); } - late final _git_reference_list_ptr = - _lookup>('git_reference_list'); - late final _dart_git_reference_list _git_reference_list = - _git_reference_list_ptr.asFunction<_dart_git_reference_list>(); + late final _git_reference_listPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_reference_list'); + late final _git_reference_list = _git_reference_listPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Perform a callback on each reference in the repository. /// @@ -5832,7 +6513,7 @@ class Libgit2 { /// @return 0 on success, non-zero callback return value, or error code int git_reference_foreach( ffi.Pointer repo, - ffi.Pointer> callback, + git_reference_foreach_cb callback, ffi.Pointer payload, ) { return _git_reference_foreach( @@ -5842,11 +6523,15 @@ class Libgit2 { ); } - late final _git_reference_foreach_ptr = - _lookup>( - 'git_reference_foreach'); - late final _dart_git_reference_foreach _git_reference_foreach = - _git_reference_foreach_ptr.asFunction<_dart_git_reference_foreach>(); + late final _git_reference_foreachPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + git_reference_foreach_cb, + ffi.Pointer)>>('git_reference_foreach'); + late final _git_reference_foreach = _git_reference_foreachPtr.asFunction< + int Function(ffi.Pointer, git_reference_foreach_cb, + ffi.Pointer)>(); /// Perform a callback on the fully-qualified name of each reference. /// @@ -5861,7 +6546,7 @@ class Libgit2 { /// @return 0 on success, non-zero callback return value, or error code int git_reference_foreach_name( ffi.Pointer repo, - ffi.Pointer> callback, + git_reference_foreach_name_cb callback, ffi.Pointer payload, ) { return _git_reference_foreach_name( @@ -5871,12 +6556,16 @@ class Libgit2 { ); } - late final _git_reference_foreach_name_ptr = - _lookup>( - 'git_reference_foreach_name'); - late final _dart_git_reference_foreach_name _git_reference_foreach_name = - _git_reference_foreach_name_ptr - .asFunction<_dart_git_reference_foreach_name>(); + late final _git_reference_foreach_namePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + git_reference_foreach_name_cb, + ffi.Pointer)>>('git_reference_foreach_name'); + late final _git_reference_foreach_name = + _git_reference_foreach_namePtr.asFunction< + int Function(ffi.Pointer, + git_reference_foreach_name_cb, ffi.Pointer)>(); /// Create a copy of an existing reference. /// @@ -5895,10 +6584,13 @@ class Libgit2 { ); } - late final _git_reference_dup_ptr = - _lookup>('git_reference_dup'); - late final _dart_git_reference_dup _git_reference_dup = - _git_reference_dup_ptr.asFunction<_dart_git_reference_dup>(); + late final _git_reference_dupPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_reference_dup'); + late final _git_reference_dup = _git_reference_dupPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer)>(); /// Free the given reference. /// @@ -5911,10 +6603,11 @@ class Libgit2 { ); } - late final _git_reference_free_ptr = - _lookup>('git_reference_free'); - late final _dart_git_reference_free _git_reference_free = - _git_reference_free_ptr.asFunction<_dart_git_reference_free>(); + late final _git_reference_freePtr = _lookup< + ffi.NativeFunction)>>( + 'git_reference_free'); + late final _git_reference_free = _git_reference_freePtr + .asFunction)>(); /// Compare two references. /// @@ -5931,10 +6624,12 @@ class Libgit2 { ); } - late final _git_reference_cmp_ptr = - _lookup>('git_reference_cmp'); - late final _dart_git_reference_cmp _git_reference_cmp = - _git_reference_cmp_ptr.asFunction<_dart_git_reference_cmp>(); + late final _git_reference_cmpPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_reference_cmp'); + late final _git_reference_cmp = _git_reference_cmpPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Create an iterator for the repo's references /// @@ -5951,12 +6646,14 @@ class Libgit2 { ); } - late final _git_reference_iterator_new_ptr = - _lookup>( - 'git_reference_iterator_new'); - late final _dart_git_reference_iterator_new _git_reference_iterator_new = - _git_reference_iterator_new_ptr - .asFunction<_dart_git_reference_iterator_new>(); + late final _git_reference_iterator_newPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_reference_iterator_new'); + late final _git_reference_iterator_new = + _git_reference_iterator_newPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer)>(); /// Create an iterator for the repo's references that match the /// specified glob @@ -5977,12 +6674,16 @@ class Libgit2 { ); } - late final _git_reference_iterator_glob_new_ptr = - _lookup>( - 'git_reference_iterator_glob_new'); - late final _dart_git_reference_iterator_glob_new - _git_reference_iterator_glob_new = _git_reference_iterator_glob_new_ptr - .asFunction<_dart_git_reference_iterator_glob_new>(); + late final _git_reference_iterator_glob_newPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>('git_reference_iterator_glob_new'); + late final _git_reference_iterator_glob_new = + _git_reference_iterator_glob_newPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer)>(); /// Get the next reference /// @@ -5999,10 +6700,13 @@ class Libgit2 { ); } - late final _git_reference_next_ptr = - _lookup>('git_reference_next'); - late final _dart_git_reference_next _git_reference_next = - _git_reference_next_ptr.asFunction<_dart_git_reference_next>(); + late final _git_reference_nextPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_reference_next'); + late final _git_reference_next = _git_reference_nextPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer)>(); /// Get the next reference's name /// @@ -6023,11 +6727,13 @@ class Libgit2 { ); } - late final _git_reference_next_name_ptr = - _lookup>( - 'git_reference_next_name'); - late final _dart_git_reference_next_name _git_reference_next_name = - _git_reference_next_name_ptr.asFunction<_dart_git_reference_next_name>(); + late final _git_reference_next_namePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_reference_next_name'); + late final _git_reference_next_name = _git_reference_next_namePtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer)>(); /// Free the iterator and its associated resources /// @@ -6040,12 +6746,12 @@ class Libgit2 { ); } - late final _git_reference_iterator_free_ptr = - _lookup>( - 'git_reference_iterator_free'); - late final _dart_git_reference_iterator_free _git_reference_iterator_free = - _git_reference_iterator_free_ptr - .asFunction<_dart_git_reference_iterator_free>(); + late final _git_reference_iterator_freePtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer)>>( + 'git_reference_iterator_free'); + late final _git_reference_iterator_free = _git_reference_iterator_freePtr + .asFunction)>(); /// Perform a callback on each reference in the repository whose name /// matches the given pattern. @@ -6066,7 +6772,7 @@ class Libgit2 { int git_reference_foreach_glob( ffi.Pointer repo, ffi.Pointer glob, - ffi.Pointer> callback, + git_reference_foreach_name_cb callback, ffi.Pointer payload, ) { return _git_reference_foreach_glob( @@ -6077,12 +6783,17 @@ class Libgit2 { ); } - late final _git_reference_foreach_glob_ptr = - _lookup>( - 'git_reference_foreach_glob'); - late final _dart_git_reference_foreach_glob _git_reference_foreach_glob = - _git_reference_foreach_glob_ptr - .asFunction<_dart_git_reference_foreach_glob>(); + late final _git_reference_foreach_globPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + git_reference_foreach_name_cb, + ffi.Pointer)>>('git_reference_foreach_glob'); + late final _git_reference_foreach_glob = + _git_reference_foreach_globPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + git_reference_foreach_name_cb, ffi.Pointer)>(); /// Check if a reflog exists for the specified reference. /// @@ -6100,11 +6811,12 @@ class Libgit2 { ); } - late final _git_reference_has_log_ptr = - _lookup>( - 'git_reference_has_log'); - late final _dart_git_reference_has_log _git_reference_has_log = - _git_reference_has_log_ptr.asFunction<_dart_git_reference_has_log>(); + late final _git_reference_has_logPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_reference_has_log'); + late final _git_reference_has_log = _git_reference_has_logPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Ensure there is a reflog for a particular reference. /// @@ -6124,12 +6836,13 @@ class Libgit2 { ); } - late final _git_reference_ensure_log_ptr = - _lookup>( - 'git_reference_ensure_log'); - late final _dart_git_reference_ensure_log _git_reference_ensure_log = - _git_reference_ensure_log_ptr - .asFunction<_dart_git_reference_ensure_log>(); + late final _git_reference_ensure_logPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_reference_ensure_log'); + late final _git_reference_ensure_log = + _git_reference_ensure_logPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Check if a reference is a local branch. /// @@ -6145,11 +6858,11 @@ class Libgit2 { ); } - late final _git_reference_is_branch_ptr = - _lookup>( - 'git_reference_is_branch'); - late final _dart_git_reference_is_branch _git_reference_is_branch = - _git_reference_is_branch_ptr.asFunction<_dart_git_reference_is_branch>(); + late final _git_reference_is_branchPtr = _lookup< + ffi.NativeFunction)>>( + 'git_reference_is_branch'); + late final _git_reference_is_branch = _git_reference_is_branchPtr + .asFunction)>(); /// Check if a reference is a remote tracking branch /// @@ -6165,11 +6878,11 @@ class Libgit2 { ); } - late final _git_reference_is_remote_ptr = - _lookup>( - 'git_reference_is_remote'); - late final _dart_git_reference_is_remote _git_reference_is_remote = - _git_reference_is_remote_ptr.asFunction<_dart_git_reference_is_remote>(); + late final _git_reference_is_remotePtr = _lookup< + ffi.NativeFunction)>>( + 'git_reference_is_remote'); + late final _git_reference_is_remote = _git_reference_is_remotePtr + .asFunction)>(); /// Check if a reference is a tag /// @@ -6185,11 +6898,11 @@ class Libgit2 { ); } - late final _git_reference_is_tag_ptr = - _lookup>( - 'git_reference_is_tag'); - late final _dart_git_reference_is_tag _git_reference_is_tag = - _git_reference_is_tag_ptr.asFunction<_dart_git_reference_is_tag>(); + late final _git_reference_is_tagPtr = _lookup< + ffi.NativeFunction)>>( + 'git_reference_is_tag'); + late final _git_reference_is_tag = _git_reference_is_tagPtr + .asFunction)>(); /// Check if a reference is a note /// @@ -6205,11 +6918,11 @@ class Libgit2 { ); } - late final _git_reference_is_note_ptr = - _lookup>( - 'git_reference_is_note'); - late final _dart_git_reference_is_note _git_reference_is_note = - _git_reference_is_note_ptr.asFunction<_dart_git_reference_is_note>(); + late final _git_reference_is_notePtr = _lookup< + ffi.NativeFunction)>>( + 'git_reference_is_note'); + late final _git_reference_is_note = _git_reference_is_notePtr + .asFunction)>(); /// Normalize reference name and check validity. /// @@ -6243,12 +6956,17 @@ class Libgit2 { ); } - late final _git_reference_normalize_name_ptr = - _lookup>( - 'git_reference_normalize_name'); - late final _dart_git_reference_normalize_name _git_reference_normalize_name = - _git_reference_normalize_name_ptr - .asFunction<_dart_git_reference_normalize_name>(); + late final _git_reference_normalize_namePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + size_t, + ffi.Pointer, + ffi.Uint32)>>('git_reference_normalize_name'); + late final _git_reference_normalize_name = + _git_reference_normalize_namePtr.asFunction< + int Function( + ffi.Pointer, int, ffi.Pointer, int)>(); /// Recursively peel reference until object of the specified type is found. /// @@ -6275,10 +6993,13 @@ class Libgit2 { ); } - late final _git_reference_peel_ptr = - _lookup>('git_reference_peel'); - late final _dart_git_reference_peel _git_reference_peel = - _git_reference_peel_ptr.asFunction<_dart_git_reference_peel>(); + late final _git_reference_peelPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer, ffi.Int32)>>('git_reference_peel'); + late final _git_reference_peel = _git_reference_peelPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, int)>(); /// Ensure the reference name is well-formed. /// @@ -6303,12 +7024,13 @@ class Libgit2 { ); } - late final _git_reference_name_is_valid_ptr = - _lookup>( - 'git_reference_name_is_valid'); - late final _dart_git_reference_name_is_valid _git_reference_name_is_valid = - _git_reference_name_is_valid_ptr - .asFunction<_dart_git_reference_name_is_valid>(); + late final _git_reference_name_is_validPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_reference_name_is_valid'); + late final _git_reference_name_is_valid = + _git_reference_name_is_validPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Get the reference's short name /// @@ -6328,11 +7050,12 @@ class Libgit2 { ); } - late final _git_reference_shorthand_ptr = - _lookup>( - 'git_reference_shorthand'); - late final _dart_git_reference_shorthand _git_reference_shorthand = - _git_reference_shorthand_ptr.asFunction<_dart_git_reference_shorthand>(); + late final _git_reference_shorthandPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_reference_shorthand'); + late final _git_reference_shorthand = _git_reference_shorthandPtr + .asFunction Function(ffi.Pointer)>(); /// Initialize git_diff_options structure /// @@ -6352,11 +7075,12 @@ class Libgit2 { ); } - late final _git_diff_options_init_ptr = - _lookup>( - 'git_diff_options_init'); - late final _dart_git_diff_options_init _git_diff_options_init = - _git_diff_options_init_ptr.asFunction<_dart_git_diff_options_init>(); + late final _git_diff_options_initPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_diff_options_init'); + late final _git_diff_options_init = _git_diff_options_initPtr + .asFunction, int)>(); /// Initialize git_diff_find_options structure /// @@ -6376,12 +7100,12 @@ class Libgit2 { ); } - late final _git_diff_find_options_init_ptr = - _lookup>( - 'git_diff_find_options_init'); - late final _dart_git_diff_find_options_init _git_diff_find_options_init = - _git_diff_find_options_init_ptr - .asFunction<_dart_git_diff_find_options_init>(); + late final _git_diff_find_options_initPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_diff_find_options_init'); + late final _git_diff_find_options_init = _git_diff_find_options_initPtr + .asFunction, int)>(); /// Deallocate a diff. /// @@ -6394,10 +7118,11 @@ class Libgit2 { ); } - late final _git_diff_free_ptr = - _lookup>('git_diff_free'); - late final _dart_git_diff_free _git_diff_free = - _git_diff_free_ptr.asFunction<_dart_git_diff_free>(); + late final _git_diff_freePtr = + _lookup)>>( + 'git_diff_free'); + late final _git_diff_free = + _git_diff_freePtr.asFunction)>(); /// Create a diff with the difference between two tree objects. /// @@ -6429,11 +7154,21 @@ class Libgit2 { ); } - late final _git_diff_tree_to_tree_ptr = - _lookup>( - 'git_diff_tree_to_tree'); - late final _dart_git_diff_tree_to_tree _git_diff_tree_to_tree = - _git_diff_tree_to_tree_ptr.asFunction<_dart_git_diff_tree_to_tree>(); + late final _git_diff_tree_to_treePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_diff_tree_to_tree'); + late final _git_diff_tree_to_tree = _git_diff_tree_to_treePtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// Create a diff between a tree and repository index. /// @@ -6468,11 +7203,21 @@ class Libgit2 { ); } - late final _git_diff_tree_to_index_ptr = - _lookup>( - 'git_diff_tree_to_index'); - late final _dart_git_diff_tree_to_index _git_diff_tree_to_index = - _git_diff_tree_to_index_ptr.asFunction<_dart_git_diff_tree_to_index>(); + late final _git_diff_tree_to_indexPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_diff_tree_to_index'); + late final _git_diff_tree_to_index = _git_diff_tree_to_indexPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// Create a diff between the repository index and the workdir directory. /// @@ -6506,12 +7251,20 @@ class Libgit2 { ); } - late final _git_diff_index_to_workdir_ptr = - _lookup>( - 'git_diff_index_to_workdir'); - late final _dart_git_diff_index_to_workdir _git_diff_index_to_workdir = - _git_diff_index_to_workdir_ptr - .asFunction<_dart_git_diff_index_to_workdir>(); + late final _git_diff_index_to_workdirPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_diff_index_to_workdir'); + late final _git_diff_index_to_workdir = + _git_diff_index_to_workdirPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// Create a diff between a tree and the working directory. /// @@ -6548,12 +7301,20 @@ class Libgit2 { ); } - late final _git_diff_tree_to_workdir_ptr = - _lookup>( - 'git_diff_tree_to_workdir'); - late final _dart_git_diff_tree_to_workdir _git_diff_tree_to_workdir = - _git_diff_tree_to_workdir_ptr - .asFunction<_dart_git_diff_tree_to_workdir>(); + late final _git_diff_tree_to_workdirPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_diff_tree_to_workdir'); + late final _git_diff_tree_to_workdir = + _git_diff_tree_to_workdirPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// Create a diff between a tree and the working directory using index data /// to account for staged deletes, tracked files, etc. @@ -6580,13 +7341,21 @@ class Libgit2 { ); } - late final _git_diff_tree_to_workdir_with_index_ptr = - _lookup>( - 'git_diff_tree_to_workdir_with_index'); - late final _dart_git_diff_tree_to_workdir_with_index - _git_diff_tree_to_workdir_with_index = - _git_diff_tree_to_workdir_with_index_ptr - .asFunction<_dart_git_diff_tree_to_workdir_with_index>(); + late final _git_diff_tree_to_workdir_with_indexPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + 'git_diff_tree_to_workdir_with_index'); + late final _git_diff_tree_to_workdir_with_index = + _git_diff_tree_to_workdir_with_indexPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// Create a diff with the difference between two index objects. /// @@ -6614,11 +7383,21 @@ class Libgit2 { ); } - late final _git_diff_index_to_index_ptr = - _lookup>( - 'git_diff_index_to_index'); - late final _dart_git_diff_index_to_index _git_diff_index_to_index = - _git_diff_index_to_index_ptr.asFunction<_dart_git_diff_index_to_index>(); + late final _git_diff_index_to_indexPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_diff_index_to_index'); + late final _git_diff_index_to_index = _git_diff_index_to_indexPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// Merge one diff into another. /// @@ -6641,10 +7420,12 @@ class Libgit2 { ); } - late final _git_diff_merge_ptr = - _lookup>('git_diff_merge'); - late final _dart_git_diff_merge _git_diff_merge = - _git_diff_merge_ptr.asFunction<_dart_git_diff_merge>(); + late final _git_diff_mergePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('git_diff_merge'); + late final _git_diff_merge = _git_diff_mergePtr + .asFunction, ffi.Pointer)>(); /// Transform a diff marking file renames, copies, etc. /// @@ -6666,11 +7447,13 @@ class Libgit2 { ); } - late final _git_diff_find_similar_ptr = - _lookup>( - 'git_diff_find_similar'); - late final _dart_git_diff_find_similar _git_diff_find_similar = - _git_diff_find_similar_ptr.asFunction<_dart_git_diff_find_similar>(); + late final _git_diff_find_similarPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_diff_find_similar'); + late final _git_diff_find_similar = _git_diff_find_similarPtr.asFunction< + int Function( + ffi.Pointer, ffi.Pointer)>(); /// Query how many diff records are there in a diff. /// @@ -6684,11 +7467,11 @@ class Libgit2 { ); } - late final _git_diff_num_deltas_ptr = - _lookup>( + late final _git_diff_num_deltasPtr = + _lookup)>>( 'git_diff_num_deltas'); - late final _dart_git_diff_num_deltas _git_diff_num_deltas = - _git_diff_num_deltas_ptr.asFunction<_dart_git_diff_num_deltas>(); + late final _git_diff_num_deltas = + _git_diff_num_deltasPtr.asFunction)>(); /// Query how many diff deltas are there in a diff filtered by type. /// @@ -6709,12 +7492,12 @@ class Libgit2 { ); } - late final _git_diff_num_deltas_of_type_ptr = - _lookup>( - 'git_diff_num_deltas_of_type'); - late final _dart_git_diff_num_deltas_of_type _git_diff_num_deltas_of_type = - _git_diff_num_deltas_of_type_ptr - .asFunction<_dart_git_diff_num_deltas_of_type>(); + late final _git_diff_num_deltas_of_typePtr = _lookup< + ffi.NativeFunction< + size_t Function(ffi.Pointer, + ffi.Int32)>>('git_diff_num_deltas_of_type'); + late final _git_diff_num_deltas_of_type = _git_diff_num_deltas_of_typePtr + .asFunction, int)>(); /// Return the diff delta for an entry in the diff list. /// @@ -6741,10 +7524,12 @@ class Libgit2 { ); } - late final _git_diff_get_delta_ptr = - _lookup>('git_diff_get_delta'); - late final _dart_git_diff_get_delta _git_diff_get_delta = - _git_diff_get_delta_ptr.asFunction<_dart_git_diff_get_delta>(); + late final _git_diff_get_deltaPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, size_t)>>('git_diff_get_delta'); + late final _git_diff_get_delta = _git_diff_get_deltaPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int)>(); /// Check if deltas are sorted case sensitively or insensitively. /// @@ -6758,12 +7543,11 @@ class Libgit2 { ); } - late final _git_diff_is_sorted_icase_ptr = - _lookup>( + late final _git_diff_is_sorted_icasePtr = + _lookup)>>( 'git_diff_is_sorted_icase'); - late final _dart_git_diff_is_sorted_icase _git_diff_is_sorted_icase = - _git_diff_is_sorted_icase_ptr - .asFunction<_dart_git_diff_is_sorted_icase>(); + late final _git_diff_is_sorted_icase = _git_diff_is_sorted_icasePtr + .asFunction)>(); /// Loop over all deltas in a diff issuing callbacks. /// @@ -6791,10 +7575,10 @@ class Libgit2 { /// @return 0 on success, non-zero callback return value, or error code int git_diff_foreach( ffi.Pointer diff, - ffi.Pointer> file_cb, - ffi.Pointer> binary_cb, - ffi.Pointer> hunk_cb, - ffi.Pointer> line_cb, + git_diff_file_cb file_cb, + git_diff_binary_cb binary_cb, + git_diff_hunk_cb hunk_cb, + git_diff_line_cb line_cb, ffi.Pointer payload, ) { return _git_diff_foreach( @@ -6807,10 +7591,18 @@ class Libgit2 { ); } - late final _git_diff_foreach_ptr = - _lookup>('git_diff_foreach'); - late final _dart_git_diff_foreach _git_diff_foreach = - _git_diff_foreach_ptr.asFunction<_dart_git_diff_foreach>(); + late final _git_diff_foreachPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + git_diff_file_cb, + git_diff_binary_cb, + git_diff_hunk_cb, + git_diff_line_cb, + ffi.Pointer)>>('git_diff_foreach'); + late final _git_diff_foreach = _git_diff_foreachPtr.asFunction< + int Function(ffi.Pointer, git_diff_file_cb, git_diff_binary_cb, + git_diff_hunk_cb, git_diff_line_cb, ffi.Pointer)>(); /// Look up the single character abbreviation for a delta status code. /// @@ -6829,11 +7621,11 @@ class Libgit2 { ); } - late final _git_diff_status_char_ptr = - _lookup>( + late final _git_diff_status_charPtr = + _lookup>( 'git_diff_status_char'); - late final _dart_git_diff_status_char _git_diff_status_char = - _git_diff_status_char_ptr.asFunction<_dart_git_diff_status_char>(); + late final _git_diff_status_char = + _git_diff_status_charPtr.asFunction(); /// Iterate over a diff generating formatted text output. /// @@ -6848,7 +7640,7 @@ class Libgit2 { int git_diff_print( ffi.Pointer diff, int format, - ffi.Pointer> print_cb, + git_diff_line_cb print_cb, ffi.Pointer payload, ) { return _git_diff_print( @@ -6859,10 +7651,13 @@ class Libgit2 { ); } - late final _git_diff_print_ptr = - _lookup>('git_diff_print'); - late final _dart_git_diff_print _git_diff_print = - _git_diff_print_ptr.asFunction<_dart_git_diff_print>(); + late final _git_diff_printPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Int32, git_diff_line_cb, + ffi.Pointer)>>('git_diff_print'); + late final _git_diff_print = _git_diff_printPtr.asFunction< + int Function(ffi.Pointer, int, git_diff_line_cb, + ffi.Pointer)>(); /// Produce the complete formatted text output from a diff into a /// buffer. @@ -6884,10 +7679,12 @@ class Libgit2 { ); } - late final _git_diff_to_buf_ptr = - _lookup>('git_diff_to_buf'); - late final _dart_git_diff_to_buf _git_diff_to_buf = - _git_diff_to_buf_ptr.asFunction<_dart_git_diff_to_buf>(); + late final _git_diff_to_bufPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('git_diff_to_buf'); + late final _git_diff_to_buf = _git_diff_to_bufPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int)>(); /// Directly run a diff on two blobs. /// @@ -6921,10 +7718,10 @@ class Libgit2 { ffi.Pointer new_blob, ffi.Pointer new_as_path, ffi.Pointer options, - ffi.Pointer> file_cb, - ffi.Pointer> binary_cb, - ffi.Pointer> hunk_cb, - ffi.Pointer> line_cb, + git_diff_file_cb file_cb, + git_diff_binary_cb binary_cb, + git_diff_hunk_cb hunk_cb, + git_diff_line_cb line_cb, ffi.Pointer payload, ) { return _git_diff_blobs( @@ -6941,10 +7738,31 @@ class Libgit2 { ); } - late final _git_diff_blobs_ptr = - _lookup>('git_diff_blobs'); - late final _dart_git_diff_blobs _git_diff_blobs = - _git_diff_blobs_ptr.asFunction<_dart_git_diff_blobs>(); + late final _git_diff_blobsPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + git_diff_file_cb, + git_diff_binary_cb, + git_diff_hunk_cb, + git_diff_line_cb, + ffi.Pointer)>>('git_diff_blobs'); + late final _git_diff_blobs = _git_diff_blobsPtr.asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + git_diff_file_cb, + git_diff_binary_cb, + git_diff_hunk_cb, + git_diff_line_cb, + ffi.Pointer)>(); /// Directly run a diff between a blob and a buffer. /// @@ -6976,10 +7794,10 @@ class Libgit2 { int buffer_len, ffi.Pointer buffer_as_path, ffi.Pointer options, - ffi.Pointer> file_cb, - ffi.Pointer> binary_cb, - ffi.Pointer> hunk_cb, - ffi.Pointer> line_cb, + git_diff_file_cb file_cb, + git_diff_binary_cb binary_cb, + git_diff_hunk_cb hunk_cb, + git_diff_line_cb line_cb, ffi.Pointer payload, ) { return _git_diff_blob_to_buffer( @@ -6997,11 +7815,33 @@ class Libgit2 { ); } - late final _git_diff_blob_to_buffer_ptr = - _lookup>( - 'git_diff_blob_to_buffer'); - late final _dart_git_diff_blob_to_buffer _git_diff_blob_to_buffer = - _git_diff_blob_to_buffer_ptr.asFunction<_dart_git_diff_blob_to_buffer>(); + late final _git_diff_blob_to_bufferPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + size_t, + ffi.Pointer, + ffi.Pointer, + git_diff_file_cb, + git_diff_binary_cb, + git_diff_hunk_cb, + git_diff_line_cb, + ffi.Pointer)>>('git_diff_blob_to_buffer'); + late final _git_diff_blob_to_buffer = _git_diff_blob_to_bufferPtr.asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + git_diff_file_cb, + git_diff_binary_cb, + git_diff_hunk_cb, + git_diff_line_cb, + ffi.Pointer)>(); /// Directly run a diff between two buffers. /// @@ -7030,10 +7870,10 @@ class Libgit2 { int new_len, ffi.Pointer new_as_path, ffi.Pointer options, - ffi.Pointer> file_cb, - ffi.Pointer> binary_cb, - ffi.Pointer> hunk_cb, - ffi.Pointer> line_cb, + git_diff_file_cb file_cb, + git_diff_binary_cb binary_cb, + git_diff_hunk_cb hunk_cb, + git_diff_line_cb line_cb, ffi.Pointer payload, ) { return _git_diff_buffers( @@ -7052,10 +7892,35 @@ class Libgit2 { ); } - late final _git_diff_buffers_ptr = - _lookup>('git_diff_buffers'); - late final _dart_git_diff_buffers _git_diff_buffers = - _git_diff_buffers_ptr.asFunction<_dart_git_diff_buffers>(); + late final _git_diff_buffersPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + size_t, + ffi.Pointer, + ffi.Pointer, + size_t, + ffi.Pointer, + ffi.Pointer, + git_diff_file_cb, + git_diff_binary_cb, + git_diff_hunk_cb, + git_diff_line_cb, + ffi.Pointer)>>('git_diff_buffers'); + late final _git_diff_buffers = _git_diff_buffersPtr.asFunction< + int Function( + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + git_diff_file_cb, + git_diff_binary_cb, + git_diff_hunk_cb, + git_diff_line_cb, + ffi.Pointer)>(); /// Read the contents of a git patch file into a `git_diff` object. /// @@ -7086,11 +7951,13 @@ class Libgit2 { ); } - late final _git_diff_from_buffer_ptr = - _lookup>( - 'git_diff_from_buffer'); - late final _dart_git_diff_from_buffer _git_diff_from_buffer = - _git_diff_from_buffer_ptr.asFunction<_dart_git_diff_from_buffer>(); + late final _git_diff_from_bufferPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer, size_t)>>('git_diff_from_buffer'); + late final _git_diff_from_buffer = _git_diff_from_bufferPtr.asFunction< + int Function( + ffi.Pointer>, ffi.Pointer, int)>(); /// Accumulate diff statistics for all patches. /// @@ -7107,10 +7974,13 @@ class Libgit2 { ); } - late final _git_diff_get_stats_ptr = - _lookup>('git_diff_get_stats'); - late final _dart_git_diff_get_stats _git_diff_get_stats = - _git_diff_get_stats_ptr.asFunction<_dart_git_diff_get_stats>(); + late final _git_diff_get_statsPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_diff_get_stats'); + late final _git_diff_get_stats = _git_diff_get_statsPtr.asFunction< + int Function( + ffi.Pointer>, ffi.Pointer)>(); /// Get the total number of files changed in a diff /// @@ -7124,12 +7994,11 @@ class Libgit2 { ); } - late final _git_diff_stats_files_changed_ptr = - _lookup>( + late final _git_diff_stats_files_changedPtr = + _lookup)>>( 'git_diff_stats_files_changed'); - late final _dart_git_diff_stats_files_changed _git_diff_stats_files_changed = - _git_diff_stats_files_changed_ptr - .asFunction<_dart_git_diff_stats_files_changed>(); + late final _git_diff_stats_files_changed = _git_diff_stats_files_changedPtr + .asFunction)>(); /// Get the total number of insertions in a diff /// @@ -7143,12 +8012,11 @@ class Libgit2 { ); } - late final _git_diff_stats_insertions_ptr = - _lookup>( + late final _git_diff_stats_insertionsPtr = + _lookup)>>( 'git_diff_stats_insertions'); - late final _dart_git_diff_stats_insertions _git_diff_stats_insertions = - _git_diff_stats_insertions_ptr - .asFunction<_dart_git_diff_stats_insertions>(); + late final _git_diff_stats_insertions = _git_diff_stats_insertionsPtr + .asFunction)>(); /// Get the total number of deletions in a diff /// @@ -7162,12 +8030,11 @@ class Libgit2 { ); } - late final _git_diff_stats_deletions_ptr = - _lookup>( + late final _git_diff_stats_deletionsPtr = + _lookup)>>( 'git_diff_stats_deletions'); - late final _dart_git_diff_stats_deletions _git_diff_stats_deletions = - _git_diff_stats_deletions_ptr - .asFunction<_dart_git_diff_stats_deletions>(); + late final _git_diff_stats_deletions = _git_diff_stats_deletionsPtr + .asFunction)>(); /// Print diff statistics to a `git_buf`. /// @@ -7190,11 +8057,13 @@ class Libgit2 { ); } - late final _git_diff_stats_to_buf_ptr = - _lookup>( - 'git_diff_stats_to_buf'); - late final _dart_git_diff_stats_to_buf _git_diff_stats_to_buf = - _git_diff_stats_to_buf_ptr.asFunction<_dart_git_diff_stats_to_buf>(); + late final _git_diff_stats_to_bufPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Int32, size_t)>>('git_diff_stats_to_buf'); + late final _git_diff_stats_to_buf = _git_diff_stats_to_bufPtr.asFunction< + int Function( + ffi.Pointer, ffi.Pointer, int, int)>(); /// Deallocate a `git_diff_stats`. /// @@ -7208,11 +8077,11 @@ class Libgit2 { ); } - late final _git_diff_stats_free_ptr = - _lookup>( - 'git_diff_stats_free'); - late final _dart_git_diff_stats_free _git_diff_stats_free = - _git_diff_stats_free_ptr.asFunction<_dart_git_diff_stats_free>(); + late final _git_diff_stats_freePtr = _lookup< + ffi.NativeFunction)>>( + 'git_diff_stats_free'); + late final _git_diff_stats_free = _git_diff_stats_freePtr + .asFunction)>(); /// Create an e-mail ready patch from a diff. /// @@ -7232,11 +8101,14 @@ class Libgit2 { ); } - late final _git_diff_format_email_ptr = - _lookup>( - 'git_diff_format_email'); - late final _dart_git_diff_format_email _git_diff_format_email = - _git_diff_format_email_ptr.asFunction<_dart_git_diff_format_email>(); + late final _git_diff_format_emailPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>( + 'git_diff_format_email'); + late final _git_diff_format_email = _git_diff_format_emailPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Create an e-mail ready patch for a commit. /// @@ -7270,12 +8142,26 @@ class Libgit2 { ); } - late final _git_diff_commit_as_email_ptr = - _lookup>( - 'git_diff_commit_as_email'); - late final _dart_git_diff_commit_as_email _git_diff_commit_as_email = - _git_diff_commit_as_email_ptr - .asFunction<_dart_git_diff_commit_as_email>(); + late final _git_diff_commit_as_emailPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + size_t, + size_t, + ffi.Uint32, + ffi.Pointer)>>('git_diff_commit_as_email'); + late final _git_diff_commit_as_email = + _git_diff_commit_as_emailPtr.asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + ffi.Pointer)>(); /// Initialize git_diff_format_email_options structure /// @@ -7295,13 +8181,13 @@ class Libgit2 { ); } - late final _git_diff_format_email_options_init_ptr = - _lookup>( - 'git_diff_format_email_options_init'); - late final _dart_git_diff_format_email_options_init - _git_diff_format_email_options_init = - _git_diff_format_email_options_init_ptr - .asFunction<_dart_git_diff_format_email_options_init>(); + late final _git_diff_format_email_options_initPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_diff_format_email_options_init'); + late final _git_diff_format_email_options_init = + _git_diff_format_email_options_initPtr.asFunction< + int Function(ffi.Pointer, int)>(); /// Initialize git_diff_patchid_options structure /// @@ -7321,12 +8207,12 @@ class Libgit2 { ); } - late final _git_diff_patchid_options_init_ptr = - _lookup>( - 'git_diff_patchid_options_init'); - late final _dart_git_diff_patchid_options_init - _git_diff_patchid_options_init = _git_diff_patchid_options_init_ptr - .asFunction<_dart_git_diff_patchid_options_init>(); + late final _git_diff_patchid_options_initPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_diff_patchid_options_init'); + late final _git_diff_patchid_options_init = _git_diff_patchid_options_initPtr + .asFunction, int)>(); /// Calculate the patch ID for the given patch. /// @@ -7357,10 +8243,13 @@ class Libgit2 { ); } - late final _git_diff_patchid_ptr = - _lookup>('git_diff_patchid'); - late final _dart_git_diff_patchid _git_diff_patchid = - _git_diff_patchid_ptr.asFunction<_dart_git_diff_patchid>(); + late final _git_diff_patchidPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_diff_patchid'); + late final _git_diff_patchid = _git_diff_patchidPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); int git_apply_options_init( ffi.Pointer opts, @@ -7372,11 +8261,12 @@ class Libgit2 { ); } - late final _git_apply_options_init_ptr = - _lookup>( - 'git_apply_options_init'); - late final _dart_git_apply_options_init _git_apply_options_init = - _git_apply_options_init_ptr.asFunction<_dart_git_apply_options_init>(); + late final _git_apply_options_initPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_apply_options_init'); + late final _git_apply_options_init = _git_apply_options_initPtr + .asFunction, int)>(); /// Apply a `git_diff` to a `git_tree`, and return the resulting image /// as an index. @@ -7403,10 +8293,21 @@ class Libgit2 { ); } - late final _git_apply_to_tree_ptr = - _lookup>('git_apply_to_tree'); - late final _dart_git_apply_to_tree _git_apply_to_tree = - _git_apply_to_tree_ptr.asFunction<_dart_git_apply_to_tree>(); + late final _git_apply_to_treePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_apply_to_tree'); + late final _git_apply_to_tree = _git_apply_to_treePtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// Apply a `git_diff` to the given repository, making changes directly /// in the working directory, the index, or both. @@ -7430,10 +8331,13 @@ class Libgit2 { ); } - late final _git_apply_ptr = - _lookup>('git_apply'); - late final _dart_git_apply _git_apply = - _git_apply_ptr.asFunction<_dart_git_apply>(); + late final _git_applyPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Int32, ffi.Pointer)>>('git_apply'); + late final _git_apply = _git_applyPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer)>(); /// Return the value type for a given attribute. /// @@ -7454,10 +8358,11 @@ class Libgit2 { ); } - late final _git_attr_value_ptr = - _lookup>('git_attr_value'); - late final _dart_git_attr_value _git_attr_value = - _git_attr_value_ptr.asFunction<_dart_git_attr_value>(); + late final _git_attr_valuePtr = + _lookup)>>( + 'git_attr_value'); + late final _git_attr_value = + _git_attr_valuePtr.asFunction)>(); /// Look up the value of one git attribute for path. /// @@ -7488,10 +8393,21 @@ class Libgit2 { ); } - late final _git_attr_get_ptr = - _lookup>('git_attr_get'); - late final _dart_git_attr_get _git_attr_get = - _git_attr_get_ptr.asFunction<_dart_git_attr_get>(); + late final _git_attr_getPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Uint32, + ffi.Pointer, + ffi.Pointer)>>('git_attr_get'); + late final _git_attr_get = _git_attr_getPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer)>(); /// Look up the value of one git attribute for path with extended options. /// @@ -7522,10 +8438,21 @@ class Libgit2 { ); } - late final _git_attr_get_ext_ptr = - _lookup>('git_attr_get_ext'); - late final _dart_git_attr_get_ext _git_attr_get_ext = - _git_attr_get_ext_ptr.asFunction<_dart_git_attr_get_ext>(); + late final _git_attr_get_extPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_attr_get_ext'); + late final _git_attr_get_ext = _git_attr_get_extPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// Look up a list of git attributes for path. /// @@ -7572,10 +8499,23 @@ class Libgit2 { ); } - late final _git_attr_get_many_ptr = - _lookup>('git_attr_get_many'); - late final _dart_git_attr_get_many _git_attr_get_many = - _git_attr_get_many_ptr.asFunction<_dart_git_attr_get_many>(); + late final _git_attr_get_manyPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Uint32, + ffi.Pointer, + size_t, + ffi.Pointer>)>>('git_attr_get_many'); + late final _git_attr_get_many = _git_attr_get_manyPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + int, + ffi.Pointer, + int, + ffi.Pointer>)>(); /// Look up a list of git attributes for path with extended options. /// @@ -7609,11 +8549,23 @@ class Libgit2 { ); } - late final _git_attr_get_many_ext_ptr = - _lookup>( - 'git_attr_get_many_ext'); - late final _dart_git_attr_get_many_ext _git_attr_get_many_ext = - _git_attr_get_many_ext_ptr.asFunction<_dart_git_attr_get_many_ext>(); + late final _git_attr_get_many_extPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + size_t, + ffi.Pointer>)>>('git_attr_get_many_ext'); + late final _git_attr_get_many_ext = _git_attr_get_many_extPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>)>(); /// Loop over all the git attributes for a path. /// @@ -7630,7 +8582,7 @@ class Libgit2 { ffi.Pointer repo, int flags, ffi.Pointer path, - ffi.Pointer> callback, + git_attr_foreach_cb callback, ffi.Pointer payload, ) { return _git_attr_foreach( @@ -7642,10 +8594,17 @@ class Libgit2 { ); } - late final _git_attr_foreach_ptr = - _lookup>('git_attr_foreach'); - late final _dart_git_attr_foreach _git_attr_foreach = - _git_attr_foreach_ptr.asFunction<_dart_git_attr_foreach>(); + late final _git_attr_foreachPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Uint32, + ffi.Pointer, + git_attr_foreach_cb, + ffi.Pointer)>>('git_attr_foreach'); + late final _git_attr_foreach = _git_attr_foreachPtr.asFunction< + int Function(ffi.Pointer, int, ffi.Pointer, + git_attr_foreach_cb, ffi.Pointer)>(); /// Loop over all the git attributes for a path with extended options. /// @@ -7662,7 +8621,7 @@ class Libgit2 { ffi.Pointer repo, ffi.Pointer opts, ffi.Pointer path, - ffi.Pointer> callback, + git_attr_foreach_cb callback, ffi.Pointer payload, ) { return _git_attr_foreach_ext( @@ -7674,11 +8633,17 @@ class Libgit2 { ); } - late final _git_attr_foreach_ext_ptr = - _lookup>( - 'git_attr_foreach_ext'); - late final _dart_git_attr_foreach_ext _git_attr_foreach_ext = - _git_attr_foreach_ext_ptr.asFunction<_dart_git_attr_foreach_ext>(); + late final _git_attr_foreach_extPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + git_attr_foreach_cb, + ffi.Pointer)>>('git_attr_foreach_ext'); + late final _git_attr_foreach_ext = _git_attr_foreach_extPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, git_attr_foreach_cb, ffi.Pointer)>(); /// Flush the gitattributes cache. /// @@ -7697,11 +8662,11 @@ class Libgit2 { ); } - late final _git_attr_cache_flush_ptr = - _lookup>( - 'git_attr_cache_flush'); - late final _dart_git_attr_cache_flush _git_attr_cache_flush = - _git_attr_cache_flush_ptr.asFunction<_dart_git_attr_cache_flush>(); + late final _git_attr_cache_flushPtr = _lookup< + ffi.NativeFunction)>>( + 'git_attr_cache_flush'); + late final _git_attr_cache_flush = _git_attr_cache_flushPtr + .asFunction)>(); /// Add a macro definition. /// @@ -7723,10 +8688,13 @@ class Libgit2 { ); } - late final _git_attr_add_macro_ptr = - _lookup>('git_attr_add_macro'); - late final _dart_git_attr_add_macro _git_attr_add_macro = - _git_attr_add_macro_ptr.asFunction<_dart_git_attr_add_macro>(); + late final _git_attr_add_macroPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_attr_add_macro'); + late final _git_attr_add_macro = _git_attr_add_macroPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Lookup a blob object from a repository. /// @@ -7746,10 +8714,15 @@ class Libgit2 { ); } - late final _git_blob_lookup_ptr = - _lookup>('git_blob_lookup'); - late final _dart_git_blob_lookup _git_blob_lookup = - _git_blob_lookup_ptr.asFunction<_dart_git_blob_lookup>(); + late final _git_blob_lookupPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>('git_blob_lookup'); + late final _git_blob_lookup = _git_blob_lookupPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer)>(); /// Lookup a blob object from a repository, /// given a prefix of its identifier (short id). @@ -7775,11 +8748,16 @@ class Libgit2 { ); } - late final _git_blob_lookup_prefix_ptr = - _lookup>( - 'git_blob_lookup_prefix'); - late final _dart_git_blob_lookup_prefix _git_blob_lookup_prefix = - _git_blob_lookup_prefix_ptr.asFunction<_dart_git_blob_lookup_prefix>(); + late final _git_blob_lookup_prefixPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + size_t)>>('git_blob_lookup_prefix'); + late final _git_blob_lookup_prefix = _git_blob_lookup_prefixPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer, int)>(); /// Close an open blob /// @@ -7798,10 +8776,11 @@ class Libgit2 { ); } - late final _git_blob_free_ptr = - _lookup>('git_blob_free'); - late final _dart_git_blob_free _git_blob_free = - _git_blob_free_ptr.asFunction<_dart_git_blob_free>(); + late final _git_blob_freePtr = + _lookup)>>( + 'git_blob_free'); + late final _git_blob_free = + _git_blob_freePtr.asFunction)>(); /// Get the id of a blob. /// @@ -7815,10 +8794,11 @@ class Libgit2 { ); } - late final _git_blob_id_ptr = - _lookup>('git_blob_id'); - late final _dart_git_blob_id _git_blob_id = - _git_blob_id_ptr.asFunction<_dart_git_blob_id>(); + late final _git_blob_idPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>('git_blob_id'); + late final _git_blob_id = _git_blob_idPtr + .asFunction Function(ffi.Pointer)>(); /// Get the repository that contains the blob. /// @@ -7832,10 +8812,12 @@ class Libgit2 { ); } - late final _git_blob_owner_ptr = - _lookup>('git_blob_owner'); - late final _dart_git_blob_owner _git_blob_owner = - _git_blob_owner_ptr.asFunction<_dart_git_blob_owner>(); + late final _git_blob_ownerPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_blob_owner'); + late final _git_blob_owner = _git_blob_ownerPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); /// Get a read-only buffer with the raw content of a blob. /// @@ -7854,11 +8836,12 @@ class Libgit2 { ); } - late final _git_blob_rawcontent_ptr = - _lookup>( - 'git_blob_rawcontent'); - late final _dart_git_blob_rawcontent _git_blob_rawcontent = - _git_blob_rawcontent_ptr.asFunction<_dart_git_blob_rawcontent>(); + late final _git_blob_rawcontentPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_blob_rawcontent'); + late final _git_blob_rawcontent = _git_blob_rawcontentPtr + .asFunction Function(ffi.Pointer)>(); /// Get the size in bytes of the contents of a blob /// @@ -7872,10 +8855,12 @@ class Libgit2 { ); } - late final _git_blob_rawsize_ptr = - _lookup>('git_blob_rawsize'); - late final _dart_git_blob_rawsize _git_blob_rawsize = - _git_blob_rawsize_ptr.asFunction<_dart_git_blob_rawsize>(); + late final _git_blob_rawsizePtr = _lookup< + ffi.NativeFunction< + git_object_size_t Function( + ffi.Pointer)>>('git_blob_rawsize'); + late final _git_blob_rawsize = + _git_blob_rawsizePtr.asFunction)>(); /// Initialize git_blob_filter_options structure /// @@ -7895,12 +8880,12 @@ class Libgit2 { ); } - late final _git_blob_filter_options_init_ptr = - _lookup>( - 'git_blob_filter_options_init'); - late final _dart_git_blob_filter_options_init _git_blob_filter_options_init = - _git_blob_filter_options_init_ptr - .asFunction<_dart_git_blob_filter_options_init>(); + late final _git_blob_filter_options_initPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_blob_filter_options_init'); + late final _git_blob_filter_options_init = _git_blob_filter_options_initPtr + .asFunction, int)>(); /// Get a buffer with the filtered content of a blob. /// @@ -7936,10 +8921,16 @@ class Libgit2 { ); } - late final _git_blob_filter_ptr = - _lookup>('git_blob_filter'); - late final _dart_git_blob_filter _git_blob_filter = - _git_blob_filter_ptr.asFunction<_dart_git_blob_filter>(); + late final _git_blob_filterPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_blob_filter'); + late final _git_blob_filter = _git_blob_filterPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); /// Read a file from the working folder of a repository /// and write it to the Object Database as a loose blob @@ -7962,12 +8953,14 @@ class Libgit2 { ); } - late final _git_blob_create_from_workdir_ptr = - _lookup>( - 'git_blob_create_from_workdir'); - late final _dart_git_blob_create_from_workdir _git_blob_create_from_workdir = - _git_blob_create_from_workdir_ptr - .asFunction<_dart_git_blob_create_from_workdir>(); + late final _git_blob_create_from_workdirPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_blob_create_from_workdir'); + late final _git_blob_create_from_workdir = + _git_blob_create_from_workdirPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Read a file from the filesystem and write its content /// to the Object Database as a loose blob @@ -7989,12 +8982,14 @@ class Libgit2 { ); } - late final _git_blob_create_from_disk_ptr = - _lookup>( - 'git_blob_create_from_disk'); - late final _dart_git_blob_create_from_disk _git_blob_create_from_disk = - _git_blob_create_from_disk_ptr - .asFunction<_dart_git_blob_create_from_disk>(); + late final _git_blob_create_from_diskPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_blob_create_from_disk'); + late final _git_blob_create_from_disk = + _git_blob_create_from_diskPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Create a stream to write a new blob into the object db /// @@ -8031,12 +9026,16 @@ class Libgit2 { ); } - late final _git_blob_create_from_stream_ptr = - _lookup>( - 'git_blob_create_from_stream'); - late final _dart_git_blob_create_from_stream _git_blob_create_from_stream = - _git_blob_create_from_stream_ptr - .asFunction<_dart_git_blob_create_from_stream>(); + late final _git_blob_create_from_streamPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>('git_blob_create_from_stream'); + late final _git_blob_create_from_stream = + _git_blob_create_from_streamPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer)>(); /// Close the stream and write the blob to the object db /// @@ -8055,13 +9054,14 @@ class Libgit2 { ); } - late final _git_blob_create_from_stream_commit_ptr = - _lookup>( - 'git_blob_create_from_stream_commit'); - late final _dart_git_blob_create_from_stream_commit - _git_blob_create_from_stream_commit = - _git_blob_create_from_stream_commit_ptr - .asFunction<_dart_git_blob_create_from_stream_commit>(); + late final _git_blob_create_from_stream_commitPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>( + 'git_blob_create_from_stream_commit'); + late final _git_blob_create_from_stream_commit = + _git_blob_create_from_stream_commitPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Write an in-memory buffer to the ODB as a blob /// @@ -8084,12 +9084,14 @@ class Libgit2 { ); } - late final _git_blob_create_from_buffer_ptr = - _lookup>( - 'git_blob_create_from_buffer'); - late final _dart_git_blob_create_from_buffer _git_blob_create_from_buffer = - _git_blob_create_from_buffer_ptr - .asFunction<_dart_git_blob_create_from_buffer>(); + late final _git_blob_create_from_bufferPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, size_t)>>('git_blob_create_from_buffer'); + late final _git_blob_create_from_buffer = + _git_blob_create_from_bufferPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); /// Determine if the blob content is most certainly binary or not. /// @@ -8108,10 +9110,11 @@ class Libgit2 { ); } - late final _git_blob_is_binary_ptr = - _lookup>('git_blob_is_binary'); - late final _dart_git_blob_is_binary _git_blob_is_binary = - _git_blob_is_binary_ptr.asFunction<_dart_git_blob_is_binary>(); + late final _git_blob_is_binaryPtr = + _lookup)>>( + 'git_blob_is_binary'); + late final _git_blob_is_binary = + _git_blob_is_binaryPtr.asFunction)>(); /// Create an in-memory copy of a blob. The copy must be explicitly /// free'd or it will leak. @@ -8128,10 +9131,13 @@ class Libgit2 { ); } - late final _git_blob_dup_ptr = - _lookup>('git_blob_dup'); - late final _dart_git_blob_dup _git_blob_dup = - _git_blob_dup_ptr.asFunction<_dart_git_blob_dup>(); + late final _git_blob_dupPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_blob_dup'); + late final _git_blob_dup = _git_blob_dupPtr.asFunction< + int Function( + ffi.Pointer>, ffi.Pointer)>(); /// Initialize git_blame_options structure /// @@ -8151,11 +9157,12 @@ class Libgit2 { ); } - late final _git_blame_options_init_ptr = - _lookup>( - 'git_blame_options_init'); - late final _dart_git_blame_options_init _git_blame_options_init = - _git_blame_options_init_ptr.asFunction<_dart_git_blame_options_init>(); + late final _git_blame_options_initPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_blame_options_init'); + late final _git_blame_options_init = _git_blame_options_initPtr + .asFunction, int)>(); /// Gets the number of hunks that exist in the blame structure. int git_blame_get_hunk_count( @@ -8166,12 +9173,11 @@ class Libgit2 { ); } - late final _git_blame_get_hunk_count_ptr = - _lookup>( + late final _git_blame_get_hunk_countPtr = + _lookup)>>( 'git_blame_get_hunk_count'); - late final _dart_git_blame_get_hunk_count _git_blame_get_hunk_count = - _git_blame_get_hunk_count_ptr - .asFunction<_dart_git_blame_get_hunk_count>(); + late final _git_blame_get_hunk_count = _git_blame_get_hunk_countPtr + .asFunction)>(); /// Gets the blame hunk at the given index. /// @@ -8188,12 +9194,13 @@ class Libgit2 { ); } - late final _git_blame_get_hunk_byindex_ptr = - _lookup>( - 'git_blame_get_hunk_byindex'); - late final _dart_git_blame_get_hunk_byindex _git_blame_get_hunk_byindex = - _git_blame_get_hunk_byindex_ptr - .asFunction<_dart_git_blame_get_hunk_byindex>(); + late final _git_blame_get_hunk_byindexPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Uint32)>>('git_blame_get_hunk_byindex'); + late final _git_blame_get_hunk_byindex = + _git_blame_get_hunk_byindexPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int)>(); /// Gets the hunk that relates to the given line number in the newest commit. /// @@ -8210,12 +9217,13 @@ class Libgit2 { ); } - late final _git_blame_get_hunk_byline_ptr = - _lookup>( - 'git_blame_get_hunk_byline'); - late final _dart_git_blame_get_hunk_byline _git_blame_get_hunk_byline = - _git_blame_get_hunk_byline_ptr - .asFunction<_dart_git_blame_get_hunk_byline>(); + late final _git_blame_get_hunk_bylinePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, size_t)>>('git_blame_get_hunk_byline'); + late final _git_blame_get_hunk_byline = + _git_blame_get_hunk_bylinePtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int)>(); /// Get the blame for a single file. /// @@ -8240,10 +9248,19 @@ class Libgit2 { ); } - late final _git_blame_file_ptr = - _lookup>('git_blame_file'); - late final _dart_git_blame_file _git_blame_file = - _git_blame_file_ptr.asFunction<_dart_git_blame_file>(); + late final _git_blame_filePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_blame_file'); + late final _git_blame_file = _git_blame_filePtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// Get blame data for a file that has been modified in memory. The `reference` /// parameter is a pre-calculated blame for the in-odb history of the file. This @@ -8274,10 +9291,16 @@ class Libgit2 { ); } - late final _git_blame_buffer_ptr = - _lookup>('git_blame_buffer'); - late final _dart_git_blame_buffer _git_blame_buffer = - _git_blame_buffer_ptr.asFunction<_dart_git_blame_buffer>(); + late final _git_blame_bufferPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + size_t)>>('git_blame_buffer'); + late final _git_blame_buffer = _git_blame_bufferPtr.asFunction< + int Function(ffi.Pointer>, ffi.Pointer, + ffi.Pointer, int)>(); /// Free memory allocated by git_blame_file or git_blame_buffer. /// @@ -8290,10 +9313,11 @@ class Libgit2 { ); } - late final _git_blame_free_ptr = - _lookup>('git_blame_free'); - late final _dart_git_blame_free _git_blame_free = - _git_blame_free_ptr.asFunction<_dart_git_blame_free>(); + late final _git_blame_freePtr = + _lookup)>>( + 'git_blame_free'); + late final _git_blame_free = + _git_blame_freePtr.asFunction)>(); /// Create a new branch pointing at a target commit /// @@ -8336,10 +9360,21 @@ class Libgit2 { ); } - late final _git_branch_create_ptr = - _lookup>('git_branch_create'); - late final _dart_git_branch_create _git_branch_create = - _git_branch_create_ptr.asFunction<_dart_git_branch_create>(); + late final _git_branch_createPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('git_branch_create'); + late final _git_branch_create = _git_branch_createPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int)>(); /// Create a new branch pointing at a target commit /// @@ -8366,12 +9401,22 @@ class Libgit2 { ); } - late final _git_branch_create_from_annotated_ptr = - _lookup>( - 'git_branch_create_from_annotated'); - late final _dart_git_branch_create_from_annotated - _git_branch_create_from_annotated = _git_branch_create_from_annotated_ptr - .asFunction<_dart_git_branch_create_from_annotated>(); + late final _git_branch_create_from_annotatedPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('git_branch_create_from_annotated'); + late final _git_branch_create_from_annotated = + _git_branch_create_from_annotatedPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int)>(); /// Delete an existing branch reference. /// @@ -8389,10 +9434,11 @@ class Libgit2 { ); } - late final _git_branch_delete_ptr = - _lookup>('git_branch_delete'); - late final _dart_git_branch_delete _git_branch_delete = - _git_branch_delete_ptr.asFunction<_dart_git_branch_delete>(); + late final _git_branch_deletePtr = _lookup< + ffi.NativeFunction)>>( + 'git_branch_delete'); + late final _git_branch_delete = _git_branch_deletePtr + .asFunction)>(); /// Create an iterator which loops over the requested branches. /// @@ -8415,11 +9461,15 @@ class Libgit2 { ); } - late final _git_branch_iterator_new_ptr = - _lookup>( - 'git_branch_iterator_new'); - late final _dart_git_branch_iterator_new _git_branch_iterator_new = - _git_branch_iterator_new_ptr.asFunction<_dart_git_branch_iterator_new>(); + late final _git_branch_iterator_newPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Int32)>>('git_branch_iterator_new'); + late final _git_branch_iterator_new = _git_branch_iterator_newPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, int)>(); /// Retrieve the next branch from the iterator /// @@ -8439,10 +9489,15 @@ class Libgit2 { ); } - late final _git_branch_next_ptr = - _lookup>('git_branch_next'); - late final _dart_git_branch_next _git_branch_next = - _git_branch_next_ptr.asFunction<_dart_git_branch_next>(); + late final _git_branch_nextPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>('git_branch_next'); + late final _git_branch_next = _git_branch_nextPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer)>(); /// Free a branch iterator /// @@ -8455,12 +9510,12 @@ class Libgit2 { ); } - late final _git_branch_iterator_free_ptr = - _lookup>( - 'git_branch_iterator_free'); - late final _dart_git_branch_iterator_free _git_branch_iterator_free = - _git_branch_iterator_free_ptr - .asFunction<_dart_git_branch_iterator_free>(); + late final _git_branch_iterator_freePtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer)>>('git_branch_iterator_free'); + late final _git_branch_iterator_free = _git_branch_iterator_freePtr + .asFunction)>(); /// Move/rename an existing local branch reference. /// @@ -8495,10 +9550,16 @@ class Libgit2 { ); } - late final _git_branch_move_ptr = - _lookup>('git_branch_move'); - late final _dart_git_branch_move _git_branch_move = - _git_branch_move_ptr.asFunction<_dart_git_branch_move>(); + late final _git_branch_movePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('git_branch_move'); + late final _git_branch_move = _git_branch_movePtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer, int)>(); /// Lookup a branch by its name in a repository. /// @@ -8530,10 +9591,16 @@ class Libgit2 { ); } - late final _git_branch_lookup_ptr = - _lookup>('git_branch_lookup'); - late final _dart_git_branch_lookup _git_branch_lookup = - _git_branch_lookup_ptr.asFunction<_dart_git_branch_lookup>(); + late final _git_branch_lookupPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('git_branch_lookup'); + late final _git_branch_lookup = _git_branch_lookupPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer, int)>(); /// Get the branch name /// @@ -8558,10 +9625,13 @@ class Libgit2 { ); } - late final _git_branch_name_ptr = - _lookup>('git_branch_name'); - late final _dart_git_branch_name _git_branch_name = - _git_branch_name_ptr.asFunction<_dart_git_branch_name>(); + late final _git_branch_namePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_branch_name'); + late final _git_branch_name = _git_branch_namePtr.asFunction< + int Function( + ffi.Pointer>, ffi.Pointer)>(); /// Get the upstream of a branch /// @@ -8585,11 +9655,13 @@ class Libgit2 { ); } - late final _git_branch_upstream_ptr = - _lookup>( - 'git_branch_upstream'); - late final _dart_git_branch_upstream _git_branch_upstream = - _git_branch_upstream_ptr.asFunction<_dart_git_branch_upstream>(); + late final _git_branch_upstreamPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_branch_upstream'); + late final _git_branch_upstream = _git_branch_upstreamPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer)>(); /// Set a branch's upstream branch /// @@ -8614,11 +9686,12 @@ class Libgit2 { ); } - late final _git_branch_set_upstream_ptr = - _lookup>( - 'git_branch_set_upstream'); - late final _dart_git_branch_set_upstream _git_branch_set_upstream = - _git_branch_set_upstream_ptr.asFunction<_dart_git_branch_set_upstream>(); + late final _git_branch_set_upstreamPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_branch_set_upstream'); + late final _git_branch_set_upstream = _git_branch_set_upstreamPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Get the upstream name of a branch /// @@ -8644,12 +9717,14 @@ class Libgit2 { ); } - late final _git_branch_upstream_name_ptr = - _lookup>( - 'git_branch_upstream_name'); - late final _dart_git_branch_upstream_name _git_branch_upstream_name = - _git_branch_upstream_name_ptr - .asFunction<_dart_git_branch_upstream_name>(); + late final _git_branch_upstream_namePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_branch_upstream_name'); + late final _git_branch_upstream_name = + _git_branch_upstream_namePtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Determine if HEAD points to the given branch /// @@ -8665,10 +9740,11 @@ class Libgit2 { ); } - late final _git_branch_is_head_ptr = - _lookup>('git_branch_is_head'); - late final _dart_git_branch_is_head _git_branch_is_head = - _git_branch_is_head_ptr.asFunction<_dart_git_branch_is_head>(); + late final _git_branch_is_headPtr = _lookup< + ffi.NativeFunction)>>( + 'git_branch_is_head'); + late final _git_branch_is_head = _git_branch_is_headPtr + .asFunction)>(); /// Determine if any HEAD points to the current branch /// @@ -8686,12 +9762,11 @@ class Libgit2 { ); } - late final _git_branch_is_checked_out_ptr = - _lookup>( - 'git_branch_is_checked_out'); - late final _dart_git_branch_is_checked_out _git_branch_is_checked_out = - _git_branch_is_checked_out_ptr - .asFunction<_dart_git_branch_is_checked_out>(); + late final _git_branch_is_checked_outPtr = _lookup< + ffi.NativeFunction)>>( + 'git_branch_is_checked_out'); + late final _git_branch_is_checked_out = _git_branch_is_checked_outPtr + .asFunction)>(); /// Find the remote name of a remote-tracking branch /// @@ -8719,11 +9794,13 @@ class Libgit2 { ); } - late final _git_branch_remote_name_ptr = - _lookup>( - 'git_branch_remote_name'); - late final _dart_git_branch_remote_name _git_branch_remote_name = - _git_branch_remote_name_ptr.asFunction<_dart_git_branch_remote_name>(); + late final _git_branch_remote_namePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_branch_remote_name'); + late final _git_branch_remote_name = _git_branch_remote_namePtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Retrieve the upstream remote of a local branch /// @@ -8746,12 +9823,14 @@ class Libgit2 { ); } - late final _git_branch_upstream_remote_ptr = - _lookup>( - 'git_branch_upstream_remote'); - late final _dart_git_branch_upstream_remote _git_branch_upstream_remote = - _git_branch_upstream_remote_ptr - .asFunction<_dart_git_branch_upstream_remote>(); + late final _git_branch_upstream_remotePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_branch_upstream_remote'); + late final _git_branch_upstream_remote = + _git_branch_upstream_remotePtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Retrieve the upstream merge of a local branch /// @@ -8774,12 +9853,14 @@ class Libgit2 { ); } - late final _git_branch_upstream_merge_ptr = - _lookup>( - 'git_branch_upstream_merge'); - late final _dart_git_branch_upstream_merge _git_branch_upstream_merge = - _git_branch_upstream_merge_ptr - .asFunction<_dart_git_branch_upstream_merge>(); + late final _git_branch_upstream_mergePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_branch_upstream_merge'); + late final _git_branch_upstream_merge = + _git_branch_upstream_mergePtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Determine whether a branch name is valid, meaning that (when prefixed /// with `refs/heads/`) that it is a valid reference name, and that any @@ -8799,12 +9880,13 @@ class Libgit2 { ); } - late final _git_branch_name_is_valid_ptr = - _lookup>( - 'git_branch_name_is_valid'); - late final _dart_git_branch_name_is_valid _git_branch_name_is_valid = - _git_branch_name_is_valid_ptr - .asFunction<_dart_git_branch_name_is_valid>(); + late final _git_branch_name_is_validPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_branch_name_is_valid'); + late final _git_branch_name_is_valid = + _git_branch_name_is_validPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Initialize git_checkout_options structure /// @@ -8824,12 +9906,12 @@ class Libgit2 { ); } - late final _git_checkout_options_init_ptr = - _lookup>( - 'git_checkout_options_init'); - late final _dart_git_checkout_options_init _git_checkout_options_init = - _git_checkout_options_init_ptr - .asFunction<_dart_git_checkout_options_init>(); + late final _git_checkout_options_initPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_checkout_options_init'); + late final _git_checkout_options_init = _git_checkout_options_initPtr + .asFunction, int)>(); /// Updates files in the index and the working tree to match the content of /// the commit pointed at by HEAD. @@ -8856,10 +9938,13 @@ class Libgit2 { ); } - late final _git_checkout_head_ptr = - _lookup>('git_checkout_head'); - late final _dart_git_checkout_head _git_checkout_head = - _git_checkout_head_ptr.asFunction<_dart_git_checkout_head>(); + late final _git_checkout_headPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_checkout_head'); + late final _git_checkout_head = _git_checkout_headPtr.asFunction< + int Function( + ffi.Pointer, ffi.Pointer)>(); /// Updates files in the working tree to match the content of the index. /// @@ -8880,10 +9965,15 @@ class Libgit2 { ); } - late final _git_checkout_index_ptr = - _lookup>('git_checkout_index'); - late final _dart_git_checkout_index _git_checkout_index = - _git_checkout_index_ptr.asFunction<_dart_git_checkout_index>(); + late final _git_checkout_indexPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_checkout_index'); + late final _git_checkout_index = _git_checkout_indexPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Updates files in the index and working tree to match the content of the /// tree pointed at by the treeish. @@ -8906,10 +9996,15 @@ class Libgit2 { ); } - late final _git_checkout_tree_ptr = - _lookup>('git_checkout_tree'); - late final _dart_git_checkout_tree _git_checkout_tree = - _git_checkout_tree_ptr.asFunction<_dart_git_checkout_tree>(); + late final _git_checkout_treePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_checkout_tree'); + late final _git_checkout_tree = _git_checkout_treePtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Free the OID array /// @@ -8930,10 +10025,11 @@ class Libgit2 { ); } - late final _git_oidarray_free_ptr = - _lookup>('git_oidarray_free'); - late final _dart_git_oidarray_free _git_oidarray_free = - _git_oidarray_free_ptr.asFunction<_dart_git_oidarray_free>(); + late final _git_oidarray_freePtr = + _lookup)>>( + 'git_oidarray_free'); + late final _git_oidarray_free = _git_oidarray_freePtr + .asFunction)>(); /// Initializes a `git_indexer_options` with default values. Equivalent to /// creating an instance with GIT_INDEXER_OPTIONS_INIT. @@ -8951,12 +10047,12 @@ class Libgit2 { ); } - late final _git_indexer_options_init_ptr = - _lookup>( - 'git_indexer_options_init'); - late final _dart_git_indexer_options_init _git_indexer_options_init = - _git_indexer_options_init_ptr - .asFunction<_dart_git_indexer_options_init>(); + late final _git_indexer_options_initPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_indexer_options_init'); + late final _git_indexer_options_init = _git_indexer_options_initPtr + .asFunction, int)>(); /// Create a new indexer instance /// @@ -8984,10 +10080,17 @@ class Libgit2 { ); } - late final _git_indexer_new_ptr = - _lookup>('git_indexer_new'); - late final _dart_git_indexer_new _git_indexer_new = - _git_indexer_new_ptr.asFunction<_dart_git_indexer_new>(); + late final _git_indexer_newPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Uint32, + ffi.Pointer, + ffi.Pointer)>>('git_indexer_new'); + late final _git_indexer_new = _git_indexer_newPtr.asFunction< + int Function(ffi.Pointer>, ffi.Pointer, + int, ffi.Pointer, ffi.Pointer)>(); /// Add data to the indexer /// @@ -9009,10 +10112,16 @@ class Libgit2 { ); } - late final _git_indexer_append_ptr = - _lookup>('git_indexer_append'); - late final _dart_git_indexer_append _git_indexer_append = - _git_indexer_append_ptr.asFunction<_dart_git_indexer_append>(); + late final _git_indexer_appendPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + size_t, + ffi.Pointer)>>('git_indexer_append'); + late final _git_indexer_append = _git_indexer_appendPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer)>(); /// Finalize the pack and index /// @@ -9029,10 +10138,13 @@ class Libgit2 { ); } - late final _git_indexer_commit_ptr = - _lookup>('git_indexer_commit'); - late final _dart_git_indexer_commit _git_indexer_commit = - _git_indexer_commit_ptr.asFunction<_dart_git_indexer_commit>(); + late final _git_indexer_commitPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_indexer_commit'); + late final _git_indexer_commit = _git_indexer_commitPtr.asFunction< + int Function( + ffi.Pointer, ffi.Pointer)>(); /// Get the packfile's hash /// @@ -9048,10 +10160,12 @@ class Libgit2 { ); } - late final _git_indexer_hash_ptr = - _lookup>('git_indexer_hash'); - late final _dart_git_indexer_hash _git_indexer_hash = - _git_indexer_hash_ptr.asFunction<_dart_git_indexer_hash>(); + late final _git_indexer_hashPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_indexer_hash'); + late final _git_indexer_hash = _git_indexer_hashPtr + .asFunction Function(ffi.Pointer)>(); /// Free the indexer and its resources /// @@ -9064,10 +10178,11 @@ class Libgit2 { ); } - late final _git_indexer_free_ptr = - _lookup>('git_indexer_free'); - late final _dart_git_indexer_free _git_indexer_free = - _git_indexer_free_ptr.asFunction<_dart_git_indexer_free>(); + late final _git_indexer_freePtr = + _lookup)>>( + 'git_indexer_free'); + late final _git_indexer_free = _git_indexer_freePtr + .asFunction)>(); /// Create a new bare Git index object as a memory representation /// of the Git index file in 'index_path', without a repository @@ -9095,10 +10210,13 @@ class Libgit2 { ); } - late final _git_index_open_ptr = - _lookup>('git_index_open'); - late final _dart_git_index_open _git_index_open = - _git_index_open_ptr.asFunction<_dart_git_index_open>(); + late final _git_index_openPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_index_open'); + late final _git_index_open = _git_index_openPtr.asFunction< + int Function( + ffi.Pointer>, ffi.Pointer)>(); /// Create an in-memory index object. /// @@ -9117,10 +10235,12 @@ class Libgit2 { ); } - late final _git_index_new_ptr = - _lookup>('git_index_new'); - late final _dart_git_index_new _git_index_new = - _git_index_new_ptr.asFunction<_dart_git_index_new>(); + late final _git_index_newPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>)>>('git_index_new'); + late final _git_index_new = _git_index_newPtr + .asFunction>)>(); /// Free an existing index object. /// @@ -9133,10 +10253,11 @@ class Libgit2 { ); } - late final _git_index_free_ptr = - _lookup>('git_index_free'); - late final _dart_git_index_free _git_index_free = - _git_index_free_ptr.asFunction<_dart_git_index_free>(); + late final _git_index_freePtr = + _lookup)>>( + 'git_index_free'); + late final _git_index_free = + _git_index_freePtr.asFunction)>(); /// Get the repository this index relates to /// @@ -9150,10 +10271,12 @@ class Libgit2 { ); } - late final _git_index_owner_ptr = - _lookup>('git_index_owner'); - late final _dart_git_index_owner _git_index_owner = - _git_index_owner_ptr.asFunction<_dart_git_index_owner>(); + late final _git_index_ownerPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_index_owner'); + late final _git_index_owner = _git_index_ownerPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); /// Read index capabilities flags. /// @@ -9167,10 +10290,11 @@ class Libgit2 { ); } - late final _git_index_caps_ptr = - _lookup>('git_index_caps'); - late final _dart_git_index_caps _git_index_caps = - _git_index_caps_ptr.asFunction<_dart_git_index_caps>(); + late final _git_index_capsPtr = + _lookup)>>( + 'git_index_caps'); + late final _git_index_caps = + _git_index_capsPtr.asFunction)>(); /// Set index capabilities flags. /// @@ -9191,10 +10315,12 @@ class Libgit2 { ); } - late final _git_index_set_caps_ptr = - _lookup>('git_index_set_caps'); - late final _dart_git_index_set_caps _git_index_set_caps = - _git_index_set_caps_ptr.asFunction<_dart_git_index_set_caps>(); + late final _git_index_set_capsPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Int32)>>('git_index_set_caps'); + late final _git_index_set_caps = _git_index_set_capsPtr + .asFunction, int)>(); /// Get index on-disk version. /// @@ -9212,10 +10338,11 @@ class Libgit2 { ); } - late final _git_index_version_ptr = - _lookup>('git_index_version'); - late final _dart_git_index_version _git_index_version = - _git_index_version_ptr.asFunction<_dart_git_index_version>(); + late final _git_index_versionPtr = + _lookup)>>( + 'git_index_version'); + late final _git_index_version = + _git_index_versionPtr.asFunction)>(); /// Set index on-disk version. /// @@ -9236,11 +10363,12 @@ class Libgit2 { ); } - late final _git_index_set_version_ptr = - _lookup>( - 'git_index_set_version'); - late final _dart_git_index_set_version _git_index_set_version = - _git_index_set_version_ptr.asFunction<_dart_git_index_set_version>(); + late final _git_index_set_versionPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Uint32)>>('git_index_set_version'); + late final _git_index_set_version = _git_index_set_versionPtr + .asFunction, int)>(); /// Update the contents of an existing index object in memory by reading /// from the hard disk. @@ -9267,10 +10395,12 @@ class Libgit2 { ); } - late final _git_index_read_ptr = - _lookup>('git_index_read'); - late final _dart_git_index_read _git_index_read = - _git_index_read_ptr.asFunction<_dart_git_index_read>(); + late final _git_index_readPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Int32)>>('git_index_read'); + late final _git_index_read = _git_index_readPtr + .asFunction, int)>(); /// Write an existing index object from memory back to disk /// using an atomic file lock. @@ -9285,10 +10415,11 @@ class Libgit2 { ); } - late final _git_index_write_ptr = - _lookup>('git_index_write'); - late final _dart_git_index_write _git_index_write = - _git_index_write_ptr.asFunction<_dart_git_index_write>(); + late final _git_index_writePtr = + _lookup)>>( + 'git_index_write'); + late final _git_index_write = + _git_index_writePtr.asFunction)>(); /// Get the full path to the index file on disk. /// @@ -9302,10 +10433,12 @@ class Libgit2 { ); } - late final _git_index_path_ptr = - _lookup>('git_index_path'); - late final _dart_git_index_path _git_index_path = - _git_index_path_ptr.asFunction<_dart_git_index_path>(); + late final _git_index_pathPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_index_path'); + late final _git_index_path = _git_index_pathPtr + .asFunction Function(ffi.Pointer)>(); /// Get the checksum of the index /// @@ -9323,10 +10456,12 @@ class Libgit2 { ); } - late final _git_index_checksum_ptr = - _lookup>('git_index_checksum'); - late final _dart_git_index_checksum _git_index_checksum = - _git_index_checksum_ptr.asFunction<_dart_git_index_checksum>(); + late final _git_index_checksumPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_index_checksum'); + late final _git_index_checksum = _git_index_checksumPtr + .asFunction Function(ffi.Pointer)>(); /// Read a tree into the index file with stats /// @@ -9345,11 +10480,12 @@ class Libgit2 { ); } - late final _git_index_read_tree_ptr = - _lookup>( - 'git_index_read_tree'); - late final _dart_git_index_read_tree _git_index_read_tree = - _git_index_read_tree_ptr.asFunction<_dart_git_index_read_tree>(); + late final _git_index_read_treePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_index_read_tree'); + late final _git_index_read_tree = _git_index_read_treePtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Write the index as a tree /// @@ -9378,11 +10514,12 @@ class Libgit2 { ); } - late final _git_index_write_tree_ptr = - _lookup>( - 'git_index_write_tree'); - late final _dart_git_index_write_tree _git_index_write_tree = - _git_index_write_tree_ptr.asFunction<_dart_git_index_write_tree>(); + late final _git_index_write_treePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_index_write_tree'); + late final _git_index_write_tree = _git_index_write_treePtr + .asFunction, ffi.Pointer)>(); /// Write the index as a tree to the given repository /// @@ -9409,11 +10546,13 @@ class Libgit2 { ); } - late final _git_index_write_tree_to_ptr = - _lookup>( - 'git_index_write_tree_to'); - late final _dart_git_index_write_tree_to _git_index_write_tree_to = - _git_index_write_tree_to_ptr.asFunction<_dart_git_index_write_tree_to>(); + late final _git_index_write_tree_toPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_index_write_tree_to'); + late final _git_index_write_tree_to = _git_index_write_tree_toPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Get the count of entries currently in the index /// @@ -9427,11 +10566,11 @@ class Libgit2 { ); } - late final _git_index_entrycount_ptr = - _lookup>( + late final _git_index_entrycountPtr = + _lookup)>>( 'git_index_entrycount'); - late final _dart_git_index_entrycount _git_index_entrycount = - _git_index_entrycount_ptr.asFunction<_dart_git_index_entrycount>(); + late final _git_index_entrycount = _git_index_entrycountPtr + .asFunction)>(); /// Clear the contents (all the entries) of an index object. /// @@ -9448,10 +10587,11 @@ class Libgit2 { ); } - late final _git_index_clear_ptr = - _lookup>('git_index_clear'); - late final _dart_git_index_clear _git_index_clear = - _git_index_clear_ptr.asFunction<_dart_git_index_clear>(); + late final _git_index_clearPtr = + _lookup)>>( + 'git_index_clear'); + late final _git_index_clear = + _git_index_clearPtr.asFunction)>(); /// Get a pointer to one of the entries in the index /// @@ -9472,11 +10612,12 @@ class Libgit2 { ); } - late final _git_index_get_byindex_ptr = - _lookup>( - 'git_index_get_byindex'); - late final _dart_git_index_get_byindex _git_index_get_byindex = - _git_index_get_byindex_ptr.asFunction<_dart_git_index_get_byindex>(); + late final _git_index_get_byindexPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, size_t)>>('git_index_get_byindex'); + late final _git_index_get_byindex = _git_index_get_byindexPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int)>(); /// Get a pointer to one of the entries in the index /// @@ -9500,11 +10641,13 @@ class Libgit2 { ); } - late final _git_index_get_bypath_ptr = - _lookup>( - 'git_index_get_bypath'); - late final _dart_git_index_get_bypath _git_index_get_bypath = - _git_index_get_bypath_ptr.asFunction<_dart_git_index_get_bypath>(); + late final _git_index_get_bypathPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Int32)>>('git_index_get_bypath'); + late final _git_index_get_bypath = _git_index_get_bypathPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); /// Remove an entry from the index /// @@ -9524,10 +10667,12 @@ class Libgit2 { ); } - late final _git_index_remove_ptr = - _lookup>('git_index_remove'); - late final _dart_git_index_remove _git_index_remove = - _git_index_remove_ptr.asFunction<_dart_git_index_remove>(); + late final _git_index_removePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('git_index_remove'); + late final _git_index_remove = _git_index_removePtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int)>(); /// Remove all entries from the index under a given directory /// @@ -9547,12 +10692,13 @@ class Libgit2 { ); } - late final _git_index_remove_directory_ptr = - _lookup>( - 'git_index_remove_directory'); - late final _dart_git_index_remove_directory _git_index_remove_directory = - _git_index_remove_directory_ptr - .asFunction<_dart_git_index_remove_directory>(); + late final _git_index_remove_directoryPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('git_index_remove_directory'); + late final _git_index_remove_directory = + _git_index_remove_directoryPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int)>(); /// Add or update an index entry from an in-memory struct /// @@ -9576,10 +10722,12 @@ class Libgit2 { ); } - late final _git_index_add_ptr = - _lookup>('git_index_add'); - late final _dart_git_index_add _git_index_add = - _git_index_add_ptr.asFunction<_dart_git_index_add>(); + late final _git_index_addPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_index_add'); + late final _git_index_add = _git_index_addPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Return the stage number from a git index entry /// @@ -9597,11 +10745,11 @@ class Libgit2 { ); } - late final _git_index_entry_stage_ptr = - _lookup>( - 'git_index_entry_stage'); - late final _dart_git_index_entry_stage _git_index_entry_stage = - _git_index_entry_stage_ptr.asFunction<_dart_git_index_entry_stage>(); + late final _git_index_entry_stagePtr = _lookup< + ffi.NativeFunction)>>( + 'git_index_entry_stage'); + late final _git_index_entry_stage = _git_index_entry_stagePtr + .asFunction)>(); /// Return whether the given index entry is a conflict (has a high stage /// entry). This is simply shorthand for `git_index_entry_stage > 0`. @@ -9616,12 +10764,11 @@ class Libgit2 { ); } - late final _git_index_entry_is_conflict_ptr = - _lookup>( - 'git_index_entry_is_conflict'); - late final _dart_git_index_entry_is_conflict _git_index_entry_is_conflict = - _git_index_entry_is_conflict_ptr - .asFunction<_dart_git_index_entry_is_conflict>(); + late final _git_index_entry_is_conflictPtr = _lookup< + ffi.NativeFunction)>>( + 'git_index_entry_is_conflict'); + late final _git_index_entry_is_conflict = _git_index_entry_is_conflictPtr + .asFunction)>(); /// Create an iterator that will return every entry contained in the /// index at the time of creation. Entries are returned in order, @@ -9641,11 +10788,13 @@ class Libgit2 { ); } - late final _git_index_iterator_new_ptr = - _lookup>( - 'git_index_iterator_new'); - late final _dart_git_index_iterator_new _git_index_iterator_new = - _git_index_iterator_new_ptr.asFunction<_dart_git_index_iterator_new>(); + late final _git_index_iterator_newPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_index_iterator_new'); + late final _git_index_iterator_new = _git_index_iterator_newPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer)>(); /// Return the next index entry in-order from the iterator. /// @@ -9662,11 +10811,13 @@ class Libgit2 { ); } - late final _git_index_iterator_next_ptr = - _lookup>( - 'git_index_iterator_next'); - late final _dart_git_index_iterator_next _git_index_iterator_next = - _git_index_iterator_next_ptr.asFunction<_dart_git_index_iterator_next>(); + late final _git_index_iterator_nextPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_index_iterator_next'); + late final _git_index_iterator_next = _git_index_iterator_nextPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer)>(); /// Free the index iterator /// @@ -9679,11 +10830,12 @@ class Libgit2 { ); } - late final _git_index_iterator_free_ptr = - _lookup>( - 'git_index_iterator_free'); - late final _dart_git_index_iterator_free _git_index_iterator_free = - _git_index_iterator_free_ptr.asFunction<_dart_git_index_iterator_free>(); + late final _git_index_iterator_freePtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer)>>('git_index_iterator_free'); + late final _git_index_iterator_free = _git_index_iterator_freePtr + .asFunction)>(); /// Add or update an index entry from a file on disk /// @@ -9713,11 +10865,12 @@ class Libgit2 { ); } - late final _git_index_add_bypath_ptr = - _lookup>( - 'git_index_add_bypath'); - late final _dart_git_index_add_bypath _git_index_add_bypath = - _git_index_add_bypath_ptr.asFunction<_dart_git_index_add_bypath>(); + late final _git_index_add_bypathPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_index_add_bypath'); + late final _git_index_add_bypath = _git_index_add_bypathPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Add or update an index entry from a buffer in memory /// @@ -9757,12 +10910,17 @@ class Libgit2 { ); } - late final _git_index_add_from_buffer_ptr = - _lookup>( - 'git_index_add_from_buffer'); - late final _dart_git_index_add_from_buffer _git_index_add_from_buffer = - _git_index_add_from_buffer_ptr - .asFunction<_dart_git_index_add_from_buffer>(); + late final _git_index_add_from_bufferPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + size_t)>>('git_index_add_from_buffer'); + late final _git_index_add_from_buffer = + _git_index_add_from_bufferPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); /// Remove an index entry corresponding to a file on disk /// @@ -9786,11 +10944,12 @@ class Libgit2 { ); } - late final _git_index_remove_bypath_ptr = - _lookup>( - 'git_index_remove_bypath'); - late final _dart_git_index_remove_bypath _git_index_remove_bypath = - _git_index_remove_bypath_ptr.asFunction<_dart_git_index_remove_bypath>(); + late final _git_index_remove_bypathPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_index_remove_bypath'); + late final _git_index_remove_bypath = _git_index_remove_bypathPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Add or update index entries matching files in the working directory. /// @@ -9840,7 +10999,7 @@ class Libgit2 { ffi.Pointer index, ffi.Pointer pathspec, int flags, - ffi.Pointer> callback, + git_index_matched_path_cb callback, ffi.Pointer payload, ) { return _git_index_add_all( @@ -9852,10 +11011,17 @@ class Libgit2 { ); } - late final _git_index_add_all_ptr = - _lookup>('git_index_add_all'); - late final _dart_git_index_add_all _git_index_add_all = - _git_index_add_all_ptr.asFunction<_dart_git_index_add_all>(); + late final _git_index_add_allPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Uint32, + git_index_matched_path_cb, + ffi.Pointer)>>('git_index_add_all'); + late final _git_index_add_all = _git_index_add_allPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int, + git_index_matched_path_cb, ffi.Pointer)>(); /// Remove all matching index entries. /// @@ -9873,7 +11039,7 @@ class Libgit2 { int git_index_remove_all( ffi.Pointer index, ffi.Pointer pathspec, - ffi.Pointer> callback, + git_index_matched_path_cb callback, ffi.Pointer payload, ) { return _git_index_remove_all( @@ -9884,11 +11050,16 @@ class Libgit2 { ); } - late final _git_index_remove_all_ptr = - _lookup>( - 'git_index_remove_all'); - late final _dart_git_index_remove_all _git_index_remove_all = - _git_index_remove_all_ptr.asFunction<_dart_git_index_remove_all>(); + late final _git_index_remove_allPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + git_index_matched_path_cb, + ffi.Pointer)>>('git_index_remove_all'); + late final _git_index_remove_all = _git_index_remove_allPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + git_index_matched_path_cb, ffi.Pointer)>(); /// Update all index entries to match the working directory /// @@ -9914,7 +11085,7 @@ class Libgit2 { int git_index_update_all( ffi.Pointer index, ffi.Pointer pathspec, - ffi.Pointer> callback, + git_index_matched_path_cb callback, ffi.Pointer payload, ) { return _git_index_update_all( @@ -9925,11 +11096,16 @@ class Libgit2 { ); } - late final _git_index_update_all_ptr = - _lookup>( - 'git_index_update_all'); - late final _dart_git_index_update_all _git_index_update_all = - _git_index_update_all_ptr.asFunction<_dart_git_index_update_all>(); + late final _git_index_update_allPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + git_index_matched_path_cb, + ffi.Pointer)>>('git_index_update_all'); + late final _git_index_update_all = _git_index_update_allPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + git_index_matched_path_cb, ffi.Pointer)>(); /// Find the first position of any entries which point to given /// path in the Git index. @@ -9939,7 +11115,7 @@ class Libgit2 { /// @param path path to search /// @return 0 or an error code int git_index_find( - ffi.Pointer at_pos, + ffi.Pointer at_pos, ffi.Pointer index, ffi.Pointer path, ) { @@ -9950,10 +11126,13 @@ class Libgit2 { ); } - late final _git_index_find_ptr = - _lookup>('git_index_find'); - late final _dart_git_index_find _git_index_find = - _git_index_find_ptr.asFunction<_dart_git_index_find>(); + late final _git_index_findPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_index_find'); + late final _git_index_find = _git_index_findPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Find the first position of any entries matching a prefix. To find the first position /// of a path inside a given folder, suffix the prefix with a '/'. @@ -9963,7 +11142,7 @@ class Libgit2 { /// @param prefix the prefix to search for /// @return 0 or an error code int git_index_find_prefix( - ffi.Pointer at_pos, + ffi.Pointer at_pos, ffi.Pointer index, ffi.Pointer prefix, ) { @@ -9974,11 +11153,13 @@ class Libgit2 { ); } - late final _git_index_find_prefix_ptr = - _lookup>( - 'git_index_find_prefix'); - late final _dart_git_index_find_prefix _git_index_find_prefix = - _git_index_find_prefix_ptr.asFunction<_dart_git_index_find_prefix>(); + late final _git_index_find_prefixPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_index_find_prefix'); + late final _git_index_find_prefix = _git_index_find_prefixPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Add or update index entries to represent a conflict. Any staged /// entries that exist at the given paths will be removed. @@ -10007,11 +11188,16 @@ class Libgit2 { ); } - late final _git_index_conflict_add_ptr = - _lookup>( - 'git_index_conflict_add'); - late final _dart_git_index_conflict_add _git_index_conflict_add = - _git_index_conflict_add_ptr.asFunction<_dart_git_index_conflict_add>(); + late final _git_index_conflict_addPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_index_conflict_add'); + late final _git_index_conflict_add = _git_index_conflict_addPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); /// Get the index entries that represent a conflict of a single file. /// @@ -10041,11 +11227,21 @@ class Libgit2 { ); } - late final _git_index_conflict_get_ptr = - _lookup>( - 'git_index_conflict_get'); - late final _dart_git_index_conflict_get _git_index_conflict_get = - _git_index_conflict_get_ptr.asFunction<_dart_git_index_conflict_get>(); + late final _git_index_conflict_getPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer>, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>('git_index_conflict_get'); + late final _git_index_conflict_get = _git_index_conflict_getPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer>, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>(); /// Removes the index entries that represent a conflict of a single file. /// @@ -10062,12 +11258,13 @@ class Libgit2 { ); } - late final _git_index_conflict_remove_ptr = - _lookup>( - 'git_index_conflict_remove'); - late final _dart_git_index_conflict_remove _git_index_conflict_remove = - _git_index_conflict_remove_ptr - .asFunction<_dart_git_index_conflict_remove>(); + late final _git_index_conflict_removePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_index_conflict_remove'); + late final _git_index_conflict_remove = + _git_index_conflict_removePtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Remove all conflicts in the index (entries with a stage greater than 0). /// @@ -10081,12 +11278,11 @@ class Libgit2 { ); } - late final _git_index_conflict_cleanup_ptr = - _lookup>( + late final _git_index_conflict_cleanupPtr = + _lookup)>>( 'git_index_conflict_cleanup'); - late final _dart_git_index_conflict_cleanup _git_index_conflict_cleanup = - _git_index_conflict_cleanup_ptr - .asFunction<_dart_git_index_conflict_cleanup>(); + late final _git_index_conflict_cleanup = _git_index_conflict_cleanupPtr + .asFunction)>(); /// Determine if the index contains entries representing file conflicts. /// @@ -10099,11 +11295,11 @@ class Libgit2 { ); } - late final _git_index_has_conflicts_ptr = - _lookup>( + late final _git_index_has_conflictsPtr = + _lookup)>>( 'git_index_has_conflicts'); - late final _dart_git_index_has_conflicts _git_index_has_conflicts = - _git_index_has_conflicts_ptr.asFunction<_dart_git_index_has_conflicts>(); + late final _git_index_has_conflicts = _git_index_has_conflictsPtr + .asFunction)>(); /// Create an iterator for the conflicts in the index. /// @@ -10122,12 +11318,15 @@ class Libgit2 { ); } - late final _git_index_conflict_iterator_new_ptr = - _lookup>( - 'git_index_conflict_iterator_new'); - late final _dart_git_index_conflict_iterator_new - _git_index_conflict_iterator_new = _git_index_conflict_iterator_new_ptr - .asFunction<_dart_git_index_conflict_iterator_new>(); + late final _git_index_conflict_iterator_newPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer)>>('git_index_conflict_iterator_new'); + late final _git_index_conflict_iterator_new = + _git_index_conflict_iterator_newPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer)>(); /// Returns the current conflict (ancestor, ours and theirs entry) and /// advance the iterator internally to the next value. @@ -10151,11 +11350,20 @@ class Libgit2 { ); } - late final _git_index_conflict_next_ptr = - _lookup>( - 'git_index_conflict_next'); - late final _dart_git_index_conflict_next _git_index_conflict_next = - _git_index_conflict_next_ptr.asFunction<_dart_git_index_conflict_next>(); + late final _git_index_conflict_nextPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer>, + ffi.Pointer>, + ffi.Pointer)>>( + 'git_index_conflict_next'); + late final _git_index_conflict_next = _git_index_conflict_nextPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer>, + ffi.Pointer>, + ffi.Pointer)>(); /// Frees a `git_index_conflict_iterator`. /// @@ -10168,12 +11376,13 @@ class Libgit2 { ); } - late final _git_index_conflict_iterator_free_ptr = - _lookup>( - 'git_index_conflict_iterator_free'); - late final _dart_git_index_conflict_iterator_free - _git_index_conflict_iterator_free = _git_index_conflict_iterator_free_ptr - .asFunction<_dart_git_index_conflict_iterator_free>(); + late final _git_index_conflict_iterator_freePtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer)>>( + 'git_index_conflict_iterator_free'); + late final _git_index_conflict_iterator_free = + _git_index_conflict_iterator_freePtr.asFunction< + void Function(ffi.Pointer)>(); /// Initializes a `git_merge_file_input` with default values. Equivalent to /// creating an instance with GIT_MERGE_FILE_INPUT_INIT. @@ -10192,12 +11401,12 @@ class Libgit2 { ); } - late final _git_merge_file_input_init_ptr = - _lookup>( - 'git_merge_file_input_init'); - late final _dart_git_merge_file_input_init _git_merge_file_input_init = - _git_merge_file_input_init_ptr - .asFunction<_dart_git_merge_file_input_init>(); + late final _git_merge_file_input_initPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_merge_file_input_init'); + late final _git_merge_file_input_init = _git_merge_file_input_initPtr + .asFunction, int)>(); /// Initialize git_merge_file_options structure /// @@ -10217,12 +11426,12 @@ class Libgit2 { ); } - late final _git_merge_file_options_init_ptr = - _lookup>( - 'git_merge_file_options_init'); - late final _dart_git_merge_file_options_init _git_merge_file_options_init = - _git_merge_file_options_init_ptr - .asFunction<_dart_git_merge_file_options_init>(); + late final _git_merge_file_options_initPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_merge_file_options_init'); + late final _git_merge_file_options_init = _git_merge_file_options_initPtr + .asFunction, int)>(); /// Initialize git_merge_options structure /// @@ -10242,11 +11451,12 @@ class Libgit2 { ); } - late final _git_merge_options_init_ptr = - _lookup>( - 'git_merge_options_init'); - late final _dart_git_merge_options_init _git_merge_options_init = - _git_merge_options_init_ptr.asFunction<_dart_git_merge_options_init>(); + late final _git_merge_options_initPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_merge_options_init'); + late final _git_merge_options_init = _git_merge_options_initPtr + .asFunction, int)>(); /// Analyzes the given branch(es) and determines the opportunities for /// merging them into the HEAD of the repository. @@ -10272,10 +11482,21 @@ class Libgit2 { ); } - late final _git_merge_analysis_ptr = - _lookup>('git_merge_analysis'); - late final _dart_git_merge_analysis _git_merge_analysis = - _git_merge_analysis_ptr.asFunction<_dart_git_merge_analysis>(); + late final _git_merge_analysisPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + size_t)>>('git_merge_analysis'); + late final _git_merge_analysis = _git_merge_analysisPtr.asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + int)>(); /// Analyzes the given branch(es) and determines the opportunities for /// merging them into a reference. @@ -10304,12 +11525,24 @@ class Libgit2 { ); } - late final _git_merge_analysis_for_ref_ptr = - _lookup>( - 'git_merge_analysis_for_ref'); - late final _dart_git_merge_analysis_for_ref _git_merge_analysis_for_ref = - _git_merge_analysis_for_ref_ptr - .asFunction<_dart_git_merge_analysis_for_ref>(); + late final _git_merge_analysis_for_refPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + size_t)>>('git_merge_analysis_for_ref'); + late final _git_merge_analysis_for_ref = + _git_merge_analysis_for_refPtr.asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + int)>(); /// Find a merge base between two commits /// @@ -10332,10 +11565,13 @@ class Libgit2 { ); } - late final _git_merge_base_ptr = - _lookup>('git_merge_base'); - late final _dart_git_merge_base _git_merge_base = - _git_merge_base_ptr.asFunction<_dart_git_merge_base>(); + late final _git_merge_basePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('git_merge_base'); + late final _git_merge_base = _git_merge_basePtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); /// Find merge bases between two commits /// @@ -10358,10 +11594,16 @@ class Libgit2 { ); } - late final _git_merge_bases_ptr = - _lookup>('git_merge_bases'); - late final _dart_git_merge_bases _git_merge_bases = - _git_merge_bases_ptr.asFunction<_dart_git_merge_bases>(); + late final _git_merge_basesPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_merge_bases'); + late final _git_merge_bases = _git_merge_basesPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); /// Find a merge base given a list of commits /// @@ -10384,11 +11626,13 @@ class Libgit2 { ); } - late final _git_merge_base_many_ptr = - _lookup>( - 'git_merge_base_many'); - late final _dart_git_merge_base_many _git_merge_base_many = - _git_merge_base_many_ptr.asFunction<_dart_git_merge_base_many>(); + late final _git_merge_base_manyPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + size_t, ffi.Pointer)>>('git_merge_base_many'); + late final _git_merge_base_many = _git_merge_base_manyPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer)>(); /// Find all merge bases given a list of commits /// @@ -10411,11 +11655,16 @@ class Libgit2 { ); } - late final _git_merge_bases_many_ptr = - _lookup>( - 'git_merge_bases_many'); - late final _dart_git_merge_bases_many _git_merge_bases_many = - _git_merge_bases_many_ptr.asFunction<_dart_git_merge_bases_many>(); + late final _git_merge_bases_manyPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + size_t, + ffi.Pointer)>>('git_merge_bases_many'); + late final _git_merge_bases_many = _git_merge_bases_manyPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer)>(); /// Find a merge base in preparation for an octopus merge /// @@ -10438,11 +11687,13 @@ class Libgit2 { ); } - late final _git_merge_base_octopus_ptr = - _lookup>( - 'git_merge_base_octopus'); - late final _dart_git_merge_base_octopus _git_merge_base_octopus = - _git_merge_base_octopus_ptr.asFunction<_dart_git_merge_base_octopus>(); + late final _git_merge_base_octopusPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + size_t, ffi.Pointer)>>('git_merge_base_octopus'); + late final _git_merge_base_octopus = _git_merge_base_octopusPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer)>(); /// Merge two files as they exist in the in-memory data structures, using /// the given common ancestor as the baseline, producing a @@ -10474,10 +11725,21 @@ class Libgit2 { ); } - late final _git_merge_file_ptr = - _lookup>('git_merge_file'); - late final _dart_git_merge_file _git_merge_file = - _git_merge_file_ptr.asFunction<_dart_git_merge_file>(); + late final _git_merge_filePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_merge_file'); + late final _git_merge_file = _git_merge_filePtr.asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// Merge two files as they exist in the index, using the given common /// ancestor as the baseline, producing a `git_merge_file_result` that @@ -10509,12 +11771,25 @@ class Libgit2 { ); } - late final _git_merge_file_from_index_ptr = - _lookup>( - 'git_merge_file_from_index'); - late final _dart_git_merge_file_from_index _git_merge_file_from_index = - _git_merge_file_from_index_ptr - .asFunction<_dart_git_merge_file_from_index>(); + late final _git_merge_file_from_indexPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + 'git_merge_file_from_index'); + late final _git_merge_file_from_index = + _git_merge_file_from_indexPtr.asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// Frees a `git_merge_file_result`. /// @@ -10527,12 +11802,12 @@ class Libgit2 { ); } - late final _git_merge_file_result_free_ptr = - _lookup>( - 'git_merge_file_result_free'); - late final _dart_git_merge_file_result_free _git_merge_file_result_free = - _git_merge_file_result_free_ptr - .asFunction<_dart_git_merge_file_result_free>(); + late final _git_merge_file_result_freePtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer)>>( + 'git_merge_file_result_free'); + late final _git_merge_file_result_free = _git_merge_file_result_freePtr + .asFunction)>(); /// Merge two trees, producing a `git_index` that reflects the result of /// the merge. The index may be written as-is to the working directory @@ -10566,10 +11841,23 @@ class Libgit2 { ); } - late final _git_merge_trees_ptr = - _lookup>('git_merge_trees'); - late final _dart_git_merge_trees _git_merge_trees = - _git_merge_trees_ptr.asFunction<_dart_git_merge_trees>(); + late final _git_merge_treesPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_merge_trees'); + late final _git_merge_trees = _git_merge_treesPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// Merge two commits, producing a `git_index` that reflects the result of /// the merge. The index may be written as-is to the working directory @@ -10600,10 +11888,21 @@ class Libgit2 { ); } - late final _git_merge_commits_ptr = - _lookup>('git_merge_commits'); - late final _dart_git_merge_commits _git_merge_commits = - _git_merge_commits_ptr.asFunction<_dart_git_merge_commits>(); + late final _git_merge_commitsPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_merge_commits'); + late final _git_merge_commits = _git_merge_commitsPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// Merges the given commit(s) into HEAD, writing the results into the working /// directory. Any changes are staged for commit and any conflicts are written @@ -10637,10 +11936,21 @@ class Libgit2 { ); } - late final _git_merge_ptr = - _lookup>('git_merge'); - late final _dart_git_merge _git_merge = - _git_merge_ptr.asFunction<_dart_git_merge>(); + late final _git_mergePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer>, + size_t, + ffi.Pointer, + ffi.Pointer)>>('git_merge'); + late final _git_merge = _git_mergePtr.asFunction< + int Function( + ffi.Pointer, + ffi.Pointer>, + int, + ffi.Pointer, + ffi.Pointer)>(); /// Initialize git_cherrypick_options structure /// @@ -10660,12 +11970,12 @@ class Libgit2 { ); } - late final _git_cherrypick_options_init_ptr = - _lookup>( - 'git_cherrypick_options_init'); - late final _dart_git_cherrypick_options_init _git_cherrypick_options_init = - _git_cherrypick_options_init_ptr - .asFunction<_dart_git_cherrypick_options_init>(); + late final _git_cherrypick_options_initPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_cherrypick_options_init'); + late final _git_cherrypick_options_init = _git_cherrypick_options_initPtr + .asFunction, int)>(); /// Cherry-picks the given commit against the given "our" commit, producing an /// index that reflects the result of the cherry-pick. @@ -10697,11 +12007,23 @@ class Libgit2 { ); } - late final _git_cherrypick_commit_ptr = - _lookup>( - 'git_cherrypick_commit'); - late final _dart_git_cherrypick_commit _git_cherrypick_commit = - _git_cherrypick_commit_ptr.asFunction<_dart_git_cherrypick_commit>(); + late final _git_cherrypick_commitPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Uint32, + ffi.Pointer)>>('git_cherrypick_commit'); + late final _git_cherrypick_commit = _git_cherrypick_commitPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer)>(); /// Cherry-pick the given commit, producing changes in the index and working directory. /// @@ -10721,10 +12043,15 @@ class Libgit2 { ); } - late final _git_cherrypick_ptr = - _lookup>('git_cherrypick'); - late final _dart_git_cherrypick _git_cherrypick = - _git_cherrypick_ptr.asFunction<_dart_git_cherrypick>(); + late final _git_cherrypickPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_cherrypick'); + late final _git_cherrypick = _git_cherrypickPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Parse a given refspec string /// @@ -10744,10 +12071,13 @@ class Libgit2 { ); } - late final _git_refspec_parse_ptr = - _lookup>('git_refspec_parse'); - late final _dart_git_refspec_parse _git_refspec_parse = - _git_refspec_parse_ptr.asFunction<_dart_git_refspec_parse>(); + late final _git_refspec_parsePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer, ffi.Int32)>>('git_refspec_parse'); + late final _git_refspec_parse = _git_refspec_parsePtr.asFunction< + int Function( + ffi.Pointer>, ffi.Pointer, int)>(); /// Free a refspec object which has been created by git_refspec_parse /// @@ -10760,10 +12090,11 @@ class Libgit2 { ); } - late final _git_refspec_free_ptr = - _lookup>('git_refspec_free'); - late final _dart_git_refspec_free _git_refspec_free = - _git_refspec_free_ptr.asFunction<_dart_git_refspec_free>(); + late final _git_refspec_freePtr = + _lookup)>>( + 'git_refspec_free'); + late final _git_refspec_free = _git_refspec_freePtr + .asFunction)>(); /// Get the source specifier /// @@ -10777,10 +12108,12 @@ class Libgit2 { ); } - late final _git_refspec_src_ptr = - _lookup>('git_refspec_src'); - late final _dart_git_refspec_src _git_refspec_src = - _git_refspec_src_ptr.asFunction<_dart_git_refspec_src>(); + late final _git_refspec_srcPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_refspec_src'); + late final _git_refspec_src = _git_refspec_srcPtr + .asFunction Function(ffi.Pointer)>(); /// Get the destination specifier /// @@ -10794,10 +12127,12 @@ class Libgit2 { ); } - late final _git_refspec_dst_ptr = - _lookup>('git_refspec_dst'); - late final _dart_git_refspec_dst _git_refspec_dst = - _git_refspec_dst_ptr.asFunction<_dart_git_refspec_dst>(); + late final _git_refspec_dstPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_refspec_dst'); + late final _git_refspec_dst = _git_refspec_dstPtr + .asFunction Function(ffi.Pointer)>(); /// Get the refspec's string /// @@ -10811,10 +12146,12 @@ class Libgit2 { ); } - late final _git_refspec_string_ptr = - _lookup>('git_refspec_string'); - late final _dart_git_refspec_string _git_refspec_string = - _git_refspec_string_ptr.asFunction<_dart_git_refspec_string>(); + late final _git_refspec_stringPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_refspec_string'); + late final _git_refspec_string = _git_refspec_stringPtr + .asFunction Function(ffi.Pointer)>(); /// Get the force update setting /// @@ -10828,10 +12165,11 @@ class Libgit2 { ); } - late final _git_refspec_force_ptr = - _lookup>('git_refspec_force'); - late final _dart_git_refspec_force _git_refspec_force = - _git_refspec_force_ptr.asFunction<_dart_git_refspec_force>(); + late final _git_refspec_forcePtr = + _lookup)>>( + 'git_refspec_force'); + late final _git_refspec_force = _git_refspec_forcePtr + .asFunction)>(); /// Get the refspec's direction. /// @@ -10845,11 +12183,11 @@ class Libgit2 { ); } - late final _git_refspec_direction_ptr = - _lookup>( + late final _git_refspec_directionPtr = + _lookup)>>( 'git_refspec_direction'); - late final _dart_git_refspec_direction _git_refspec_direction = - _git_refspec_direction_ptr.asFunction<_dart_git_refspec_direction>(); + late final _git_refspec_direction = _git_refspec_directionPtr + .asFunction)>(); /// Check if a refspec's source descriptor matches a reference /// @@ -10866,11 +12204,12 @@ class Libgit2 { ); } - late final _git_refspec_src_matches_ptr = - _lookup>( - 'git_refspec_src_matches'); - late final _dart_git_refspec_src_matches _git_refspec_src_matches = - _git_refspec_src_matches_ptr.asFunction<_dart_git_refspec_src_matches>(); + late final _git_refspec_src_matchesPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_refspec_src_matches'); + late final _git_refspec_src_matches = _git_refspec_src_matchesPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Check if a refspec's destination descriptor matches a reference /// @@ -10887,11 +12226,12 @@ class Libgit2 { ); } - late final _git_refspec_dst_matches_ptr = - _lookup>( - 'git_refspec_dst_matches'); - late final _dart_git_refspec_dst_matches _git_refspec_dst_matches = - _git_refspec_dst_matches_ptr.asFunction<_dart_git_refspec_dst_matches>(); + late final _git_refspec_dst_matchesPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_refspec_dst_matches'); + late final _git_refspec_dst_matches = _git_refspec_dst_matchesPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Transform a reference to its target following the refspec's rules /// @@ -10911,11 +12251,13 @@ class Libgit2 { ); } - late final _git_refspec_transform_ptr = - _lookup>( - 'git_refspec_transform'); - late final _dart_git_refspec_transform _git_refspec_transform = - _git_refspec_transform_ptr.asFunction<_dart_git_refspec_transform>(); + late final _git_refspec_transformPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_refspec_transform'); + late final _git_refspec_transform = _git_refspec_transformPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Transform a target reference to its source reference following the refspec's rules /// @@ -10935,11 +12277,13 @@ class Libgit2 { ); } - late final _git_refspec_rtransform_ptr = - _lookup>( - 'git_refspec_rtransform'); - late final _dart_git_refspec_rtransform _git_refspec_rtransform = - _git_refspec_rtransform_ptr.asFunction<_dart_git_refspec_rtransform>(); + late final _git_refspec_rtransformPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_refspec_rtransform'); + late final _git_refspec_rtransform = _git_refspec_rtransformPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Free a credential. /// @@ -10955,11 +12299,11 @@ class Libgit2 { ); } - late final _git_credential_free_ptr = - _lookup>( - 'git_credential_free'); - late final _dart_git_credential_free _git_credential_free = - _git_credential_free_ptr.asFunction<_dart_git_credential_free>(); + late final _git_credential_freePtr = _lookup< + ffi.NativeFunction)>>( + 'git_credential_free'); + late final _git_credential_free = _git_credential_freePtr + .asFunction)>(); /// Check whether a credential object contains username information. /// @@ -10973,12 +12317,11 @@ class Libgit2 { ); } - late final _git_credential_has_username_ptr = - _lookup>( - 'git_credential_has_username'); - late final _dart_git_credential_has_username _git_credential_has_username = - _git_credential_has_username_ptr - .asFunction<_dart_git_credential_has_username>(); + late final _git_credential_has_usernamePtr = _lookup< + ffi.NativeFunction)>>( + 'git_credential_has_username'); + late final _git_credential_has_username = _git_credential_has_usernamePtr + .asFunction)>(); /// Return the username associated with a credential object. /// @@ -10992,12 +12335,13 @@ class Libgit2 { ); } - late final _git_credential_get_username_ptr = - _lookup>( - 'git_credential_get_username'); - late final _dart_git_credential_get_username _git_credential_get_username = - _git_credential_get_username_ptr - .asFunction<_dart_git_credential_get_username>(); + late final _git_credential_get_usernamePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_credential_get_username'); + late final _git_credential_get_username = + _git_credential_get_usernamePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); /// Create a new plain-text username and password credential object. /// The supplied credential parameter will be internally duplicated. @@ -11018,13 +12362,16 @@ class Libgit2 { ); } - late final _git_credential_userpass_plaintext_new_ptr = - _lookup>( - 'git_credential_userpass_plaintext_new'); - late final _dart_git_credential_userpass_plaintext_new - _git_credential_userpass_plaintext_new = - _git_credential_userpass_plaintext_new_ptr - .asFunction<_dart_git_credential_userpass_plaintext_new>(); + late final _git_credential_userpass_plaintext_newPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>('git_credential_userpass_plaintext_new'); + late final _git_credential_userpass_plaintext_new = + _git_credential_userpass_plaintext_newPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer)>(); /// Create a "default" credential usable for Negotiate mechanisms like NTLM /// or Kerberos authentication. @@ -11039,12 +12386,12 @@ class Libgit2 { ); } - late final _git_credential_default_new_ptr = - _lookup>( - 'git_credential_default_new'); - late final _dart_git_credential_default_new _git_credential_default_new = - _git_credential_default_new_ptr - .asFunction<_dart_git_credential_default_new>(); + late final _git_credential_default_newPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>)>>( + 'git_credential_default_new'); + late final _git_credential_default_new = _git_credential_default_newPtr + .asFunction>)>(); /// Create a credential to specify a username. /// @@ -11064,12 +12411,14 @@ class Libgit2 { ); } - late final _git_credential_username_new_ptr = - _lookup>( - 'git_credential_username_new'); - late final _dart_git_credential_username_new _git_credential_username_new = - _git_credential_username_new_ptr - .asFunction<_dart_git_credential_username_new>(); + late final _git_credential_username_newPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_credential_username_new'); + late final _git_credential_username_new = + _git_credential_username_newPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer)>(); /// Create a new passphrase-protected ssh key credential object. /// The supplied credential parameter will be internally duplicated. @@ -11096,12 +12445,22 @@ class Libgit2 { ); } - late final _git_credential_ssh_key_new_ptr = - _lookup>( - 'git_credential_ssh_key_new'); - late final _dart_git_credential_ssh_key_new _git_credential_ssh_key_new = - _git_credential_ssh_key_new_ptr - .asFunction<_dart_git_credential_ssh_key_new>(); + late final _git_credential_ssh_key_newPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_credential_ssh_key_new'); + late final _git_credential_ssh_key_new = + _git_credential_ssh_key_newPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// Create a new ssh key credential object reading the keys from memory. /// @@ -11127,13 +12486,22 @@ class Libgit2 { ); } - late final _git_credential_ssh_key_memory_new_ptr = - _lookup>( - 'git_credential_ssh_key_memory_new'); - late final _dart_git_credential_ssh_key_memory_new - _git_credential_ssh_key_memory_new = - _git_credential_ssh_key_memory_new_ptr - .asFunction<_dart_git_credential_ssh_key_memory_new>(); + late final _git_credential_ssh_key_memory_newPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_credential_ssh_key_memory_new'); + late final _git_credential_ssh_key_memory_new = + _git_credential_ssh_key_memory_newPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// Create a new ssh keyboard-interactive based credential object. /// The supplied credential parameter will be internally duplicated. @@ -11145,8 +12513,7 @@ class Libgit2 { int git_credential_ssh_interactive_new( ffi.Pointer> out, ffi.Pointer username, - ffi.Pointer> - prompt_callback, + git_credential_ssh_interactive_cb prompt_callback, ffi.Pointer payload, ) { return _git_credential_ssh_interactive_new( @@ -11157,13 +12524,20 @@ class Libgit2 { ); } - late final _git_credential_ssh_interactive_new_ptr = - _lookup>( - 'git_credential_ssh_interactive_new'); - late final _dart_git_credential_ssh_interactive_new - _git_credential_ssh_interactive_new = - _git_credential_ssh_interactive_new_ptr - .asFunction<_dart_git_credential_ssh_interactive_new>(); + late final _git_credential_ssh_interactive_newPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + git_credential_ssh_interactive_cb, + ffi.Pointer)>>('git_credential_ssh_interactive_new'); + late final _git_credential_ssh_interactive_new = + _git_credential_ssh_interactive_newPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + git_credential_ssh_interactive_cb, + ffi.Pointer)>(); /// Create a new ssh key credential object used for querying an ssh-agent. /// The supplied credential parameter will be internally duplicated. @@ -11181,13 +12555,14 @@ class Libgit2 { ); } - late final _git_credential_ssh_key_from_agent_ptr = - _lookup>( - 'git_credential_ssh_key_from_agent'); - late final _dart_git_credential_ssh_key_from_agent - _git_credential_ssh_key_from_agent = - _git_credential_ssh_key_from_agent_ptr - .asFunction<_dart_git_credential_ssh_key_from_agent>(); + late final _git_credential_ssh_key_from_agentPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_credential_ssh_key_from_agent'); + late final _git_credential_ssh_key_from_agent = + _git_credential_ssh_key_from_agentPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer)>(); /// Create an ssh key credential with a custom signing function. /// @@ -11210,7 +12585,7 @@ class Libgit2 { ffi.Pointer username, ffi.Pointer publickey, int publickey_len, - ffi.Pointer> sign_callback, + git_credential_sign_cb sign_callback, ffi.Pointer payload, ) { return _git_credential_ssh_custom_new( @@ -11223,12 +12598,24 @@ class Libgit2 { ); } - late final _git_credential_ssh_custom_new_ptr = - _lookup>( - 'git_credential_ssh_custom_new'); - late final _dart_git_credential_ssh_custom_new - _git_credential_ssh_custom_new = _git_credential_ssh_custom_new_ptr - .asFunction<_dart_git_credential_ssh_custom_new>(); + late final _git_credential_ssh_custom_newPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + size_t, + git_credential_sign_cb, + ffi.Pointer)>>('git_credential_ssh_custom_new'); + late final _git_credential_ssh_custom_new = + _git_credential_ssh_custom_newPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + int, + git_credential_sign_cb, + ffi.Pointer)>(); /// Initialize a new packbuilder /// @@ -11246,11 +12633,13 @@ class Libgit2 { ); } - late final _git_packbuilder_new_ptr = - _lookup>( - 'git_packbuilder_new'); - late final _dart_git_packbuilder_new _git_packbuilder_new = - _git_packbuilder_new_ptr.asFunction<_dart_git_packbuilder_new>(); + late final _git_packbuilder_newPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_packbuilder_new'); + late final _git_packbuilder_new = _git_packbuilder_newPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer)>(); /// Set number of threads to spawn /// @@ -11271,12 +12660,12 @@ class Libgit2 { ); } - late final _git_packbuilder_set_threads_ptr = - _lookup>( - 'git_packbuilder_set_threads'); - late final _dart_git_packbuilder_set_threads _git_packbuilder_set_threads = - _git_packbuilder_set_threads_ptr - .asFunction<_dart_git_packbuilder_set_threads>(); + late final _git_packbuilder_set_threadsPtr = _lookup< + ffi.NativeFunction< + ffi.Uint32 Function(ffi.Pointer, + ffi.Uint32)>>('git_packbuilder_set_threads'); + late final _git_packbuilder_set_threads = _git_packbuilder_set_threadsPtr + .asFunction, int)>(); /// Insert a single object /// @@ -11300,11 +12689,13 @@ class Libgit2 { ); } - late final _git_packbuilder_insert_ptr = - _lookup>( - 'git_packbuilder_insert'); - late final _dart_git_packbuilder_insert _git_packbuilder_insert = - _git_packbuilder_insert_ptr.asFunction<_dart_git_packbuilder_insert>(); + late final _git_packbuilder_insertPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_packbuilder_insert'); + late final _git_packbuilder_insert = _git_packbuilder_insertPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Insert a root tree object /// @@ -11324,12 +12715,13 @@ class Libgit2 { ); } - late final _git_packbuilder_insert_tree_ptr = - _lookup>( - 'git_packbuilder_insert_tree'); - late final _dart_git_packbuilder_insert_tree _git_packbuilder_insert_tree = - _git_packbuilder_insert_tree_ptr - .asFunction<_dart_git_packbuilder_insert_tree>(); + late final _git_packbuilder_insert_treePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_packbuilder_insert_tree'); + late final _git_packbuilder_insert_tree = + _git_packbuilder_insert_treePtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Insert a commit object /// @@ -11349,12 +12741,13 @@ class Libgit2 { ); } - late final _git_packbuilder_insert_commit_ptr = - _lookup>( - 'git_packbuilder_insert_commit'); - late final _dart_git_packbuilder_insert_commit - _git_packbuilder_insert_commit = _git_packbuilder_insert_commit_ptr - .asFunction<_dart_git_packbuilder_insert_commit>(); + late final _git_packbuilder_insert_commitPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_packbuilder_insert_commit'); + late final _git_packbuilder_insert_commit = + _git_packbuilder_insert_commitPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Insert objects as given by the walk /// @@ -11375,12 +12768,14 @@ class Libgit2 { ); } - late final _git_packbuilder_insert_walk_ptr = - _lookup>( - 'git_packbuilder_insert_walk'); - late final _dart_git_packbuilder_insert_walk _git_packbuilder_insert_walk = - _git_packbuilder_insert_walk_ptr - .asFunction<_dart_git_packbuilder_insert_walk>(); + late final _git_packbuilder_insert_walkPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_packbuilder_insert_walk'); + late final _git_packbuilder_insert_walk = + _git_packbuilder_insert_walkPtr.asFunction< + int Function( + ffi.Pointer, ffi.Pointer)>(); /// Recursively insert an object and its referenced objects /// @@ -11402,12 +12797,14 @@ class Libgit2 { ); } - late final _git_packbuilder_insert_recur_ptr = - _lookup>( - 'git_packbuilder_insert_recur'); - late final _dart_git_packbuilder_insert_recur _git_packbuilder_insert_recur = - _git_packbuilder_insert_recur_ptr - .asFunction<_dart_git_packbuilder_insert_recur>(); + late final _git_packbuilder_insert_recurPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_packbuilder_insert_recur'); + late final _git_packbuilder_insert_recur = + _git_packbuilder_insert_recurPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Write the contents of the packfile to an in-memory buffer /// @@ -11426,12 +12823,13 @@ class Libgit2 { ); } - late final _git_packbuilder_write_buf_ptr = - _lookup>( - 'git_packbuilder_write_buf'); - late final _dart_git_packbuilder_write_buf _git_packbuilder_write_buf = - _git_packbuilder_write_buf_ptr - .asFunction<_dart_git_packbuilder_write_buf>(); + late final _git_packbuilder_write_bufPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_packbuilder_write_buf'); + late final _git_packbuilder_write_buf = + _git_packbuilder_write_bufPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Write the new pack and corresponding index file to path. /// @@ -11446,7 +12844,7 @@ class Libgit2 { ffi.Pointer pb, ffi.Pointer path, int mode, - ffi.Pointer> progress_cb, + git_indexer_progress_cb progress_cb, ffi.Pointer progress_cb_payload, ) { return _git_packbuilder_write( @@ -11458,11 +12856,17 @@ class Libgit2 { ); } - late final _git_packbuilder_write_ptr = - _lookup>( - 'git_packbuilder_write'); - late final _dart_git_packbuilder_write _git_packbuilder_write = - _git_packbuilder_write_ptr.asFunction<_dart_git_packbuilder_write>(); + late final _git_packbuilder_writePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Uint32, + git_indexer_progress_cb, + ffi.Pointer)>>('git_packbuilder_write'); + late final _git_packbuilder_write = _git_packbuilder_writePtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int, + git_indexer_progress_cb, ffi.Pointer)>(); /// Get the packfile's hash /// @@ -11478,11 +12882,12 @@ class Libgit2 { ); } - late final _git_packbuilder_hash_ptr = - _lookup>( - 'git_packbuilder_hash'); - late final _dart_git_packbuilder_hash _git_packbuilder_hash = - _git_packbuilder_hash_ptr.asFunction<_dart_git_packbuilder_hash>(); + late final _git_packbuilder_hashPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_packbuilder_hash'); + late final _git_packbuilder_hash = _git_packbuilder_hashPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); /// Create the new pack and pass each object to the callback /// @@ -11492,7 +12897,7 @@ class Libgit2 { /// @return 0 or an error code int git_packbuilder_foreach( ffi.Pointer pb, - ffi.Pointer> cb, + git_packbuilder_foreach_cb cb, ffi.Pointer payload, ) { return _git_packbuilder_foreach( @@ -11502,11 +12907,15 @@ class Libgit2 { ); } - late final _git_packbuilder_foreach_ptr = - _lookup>( - 'git_packbuilder_foreach'); - late final _dart_git_packbuilder_foreach _git_packbuilder_foreach = - _git_packbuilder_foreach_ptr.asFunction<_dart_git_packbuilder_foreach>(); + late final _git_packbuilder_foreachPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + git_packbuilder_foreach_cb, + ffi.Pointer)>>('git_packbuilder_foreach'); + late final _git_packbuilder_foreach = _git_packbuilder_foreachPtr.asFunction< + int Function(ffi.Pointer, git_packbuilder_foreach_cb, + ffi.Pointer)>(); /// Get the total number of objects the packbuilder will write out /// @@ -11520,12 +12929,11 @@ class Libgit2 { ); } - late final _git_packbuilder_object_count_ptr = - _lookup>( - 'git_packbuilder_object_count'); - late final _dart_git_packbuilder_object_count _git_packbuilder_object_count = - _git_packbuilder_object_count_ptr - .asFunction<_dart_git_packbuilder_object_count>(); + late final _git_packbuilder_object_countPtr = _lookup< + ffi.NativeFunction)>>( + 'git_packbuilder_object_count'); + late final _git_packbuilder_object_count = _git_packbuilder_object_countPtr + .asFunction)>(); /// Get the number of objects the packbuilder has already written out /// @@ -11539,11 +12947,11 @@ class Libgit2 { ); } - late final _git_packbuilder_written_ptr = - _lookup>( - 'git_packbuilder_written'); - late final _dart_git_packbuilder_written _git_packbuilder_written = - _git_packbuilder_written_ptr.asFunction<_dart_git_packbuilder_written>(); + late final _git_packbuilder_writtenPtr = _lookup< + ffi.NativeFunction)>>( + 'git_packbuilder_written'); + late final _git_packbuilder_written = _git_packbuilder_writtenPtr + .asFunction)>(); /// Set the callbacks for a packbuilder /// @@ -11555,7 +12963,7 @@ class Libgit2 { /// @return 0 or an error code int git_packbuilder_set_callbacks( ffi.Pointer pb, - ffi.Pointer> progress_cb, + git_packbuilder_progress progress_cb, ffi.Pointer progress_cb_payload, ) { return _git_packbuilder_set_callbacks( @@ -11565,12 +12973,16 @@ class Libgit2 { ); } - late final _git_packbuilder_set_callbacks_ptr = - _lookup>( - 'git_packbuilder_set_callbacks'); - late final _dart_git_packbuilder_set_callbacks - _git_packbuilder_set_callbacks = _git_packbuilder_set_callbacks_ptr - .asFunction<_dart_git_packbuilder_set_callbacks>(); + late final _git_packbuilder_set_callbacksPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + git_packbuilder_progress, + ffi.Pointer)>>('git_packbuilder_set_callbacks'); + late final _git_packbuilder_set_callbacks = + _git_packbuilder_set_callbacksPtr.asFunction< + int Function(ffi.Pointer, git_packbuilder_progress, + ffi.Pointer)>(); /// Free the packbuilder and all associated data /// @@ -11583,11 +12995,11 @@ class Libgit2 { ); } - late final _git_packbuilder_free_ptr = - _lookup>( - 'git_packbuilder_free'); - late final _dart_git_packbuilder_free _git_packbuilder_free = - _git_packbuilder_free_ptr.asFunction<_dart_git_packbuilder_free>(); + late final _git_packbuilder_freePtr = _lookup< + ffi.NativeFunction)>>( + 'git_packbuilder_free'); + late final _git_packbuilder_free = _git_packbuilder_freePtr + .asFunction)>(); /// Initialize git_proxy_options structure /// @@ -11607,11 +13019,12 @@ class Libgit2 { ); } - late final _git_proxy_options_init_ptr = - _lookup>( - 'git_proxy_options_init'); - late final _dart_git_proxy_options_init _git_proxy_options_init = - _git_proxy_options_init_ptr.asFunction<_dart_git_proxy_options_init>(); + late final _git_proxy_options_initPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_proxy_options_init'); + late final _git_proxy_options_init = _git_proxy_options_initPtr + .asFunction, int)>(); /// Add a remote with the default fetch refspec to the repository's configuration. /// @@ -11634,10 +13047,19 @@ class Libgit2 { ); } - late final _git_remote_create_ptr = - _lookup>('git_remote_create'); - late final _dart_git_remote_create _git_remote_create = - _git_remote_create_ptr.asFunction<_dart_git_remote_create>(); + late final _git_remote_createPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_remote_create'); + late final _git_remote_create = _git_remote_createPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// Initialize git_remote_create_options structure /// @@ -11657,12 +13079,13 @@ class Libgit2 { ); } - late final _git_remote_create_options_init_ptr = - _lookup>( - 'git_remote_create_options_init'); - late final _dart_git_remote_create_options_init - _git_remote_create_options_init = _git_remote_create_options_init_ptr - .asFunction<_dart_git_remote_create_options_init>(); + late final _git_remote_create_options_initPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_remote_create_options_init'); + late final _git_remote_create_options_init = + _git_remote_create_options_initPtr.asFunction< + int Function(ffi.Pointer, int)>(); /// Create a remote, with options. /// @@ -11686,12 +13109,17 @@ class Libgit2 { ); } - late final _git_remote_create_with_opts_ptr = - _lookup>( - 'git_remote_create_with_opts'); - late final _dart_git_remote_create_with_opts _git_remote_create_with_opts = - _git_remote_create_with_opts_ptr - .asFunction<_dart_git_remote_create_with_opts>(); + late final _git_remote_create_with_optsPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>( + 'git_remote_create_with_opts'); + late final _git_remote_create_with_opts = + _git_remote_create_with_optsPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer)>(); /// Add a remote with the provided fetch refspec (or default if NULL) to the repository's /// configuration. @@ -11718,12 +13146,22 @@ class Libgit2 { ); } - late final _git_remote_create_with_fetchspec_ptr = - _lookup>( - 'git_remote_create_with_fetchspec'); - late final _dart_git_remote_create_with_fetchspec - _git_remote_create_with_fetchspec = _git_remote_create_with_fetchspec_ptr - .asFunction<_dart_git_remote_create_with_fetchspec>(); + late final _git_remote_create_with_fetchspecPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_remote_create_with_fetchspec'); + late final _git_remote_create_with_fetchspec = + _git_remote_create_with_fetchspecPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// Create an anonymous remote /// @@ -11746,12 +13184,16 @@ class Libgit2 { ); } - late final _git_remote_create_anonymous_ptr = - _lookup>( - 'git_remote_create_anonymous'); - late final _dart_git_remote_create_anonymous _git_remote_create_anonymous = - _git_remote_create_anonymous_ptr - .asFunction<_dart_git_remote_create_anonymous>(); + late final _git_remote_create_anonymousPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>('git_remote_create_anonymous'); + late final _git_remote_create_anonymous = + _git_remote_create_anonymousPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer)>(); /// Create a remote without a connected local repo /// @@ -11775,12 +13217,14 @@ class Libgit2 { ); } - late final _git_remote_create_detached_ptr = - _lookup>( - 'git_remote_create_detached'); - late final _dart_git_remote_create_detached _git_remote_create_detached = - _git_remote_create_detached_ptr - .asFunction<_dart_git_remote_create_detached>(); + late final _git_remote_create_detachedPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_remote_create_detached'); + late final _git_remote_create_detached = + _git_remote_create_detachedPtr.asFunction< + int Function( + ffi.Pointer>, ffi.Pointer)>(); /// Get the information for a particular remote /// @@ -11803,10 +13247,15 @@ class Libgit2 { ); } - late final _git_remote_lookup_ptr = - _lookup>('git_remote_lookup'); - late final _dart_git_remote_lookup _git_remote_lookup = - _git_remote_lookup_ptr.asFunction<_dart_git_remote_lookup>(); + late final _git_remote_lookupPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>('git_remote_lookup'); + late final _git_remote_lookup = _git_remote_lookupPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer)>(); /// Create a copy of an existing remote. All internal strings are also /// duplicated. Callbacks are not duplicated. @@ -11826,10 +13275,13 @@ class Libgit2 { ); } - late final _git_remote_dup_ptr = - _lookup>('git_remote_dup'); - late final _dart_git_remote_dup _git_remote_dup = - _git_remote_dup_ptr.asFunction<_dart_git_remote_dup>(); + late final _git_remote_dupPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_remote_dup'); + late final _git_remote_dup = _git_remote_dupPtr.asFunction< + int Function( + ffi.Pointer>, ffi.Pointer)>(); /// Get the remote's repository /// @@ -11843,10 +13295,12 @@ class Libgit2 { ); } - late final _git_remote_owner_ptr = - _lookup>('git_remote_owner'); - late final _dart_git_remote_owner _git_remote_owner = - _git_remote_owner_ptr.asFunction<_dart_git_remote_owner>(); + late final _git_remote_ownerPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_remote_owner'); + late final _git_remote_owner = _git_remote_ownerPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); /// Get the remote's name /// @@ -11860,10 +13314,12 @@ class Libgit2 { ); } - late final _git_remote_name_ptr = - _lookup>('git_remote_name'); - late final _dart_git_remote_name _git_remote_name = - _git_remote_name_ptr.asFunction<_dart_git_remote_name>(); + late final _git_remote_namePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_remote_name'); + late final _git_remote_name = _git_remote_namePtr + .asFunction Function(ffi.Pointer)>(); /// Get the remote's url /// @@ -11881,10 +13337,12 @@ class Libgit2 { ); } - late final _git_remote_url_ptr = - _lookup>('git_remote_url'); - late final _dart_git_remote_url _git_remote_url = - _git_remote_url_ptr.asFunction<_dart_git_remote_url>(); + late final _git_remote_urlPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_remote_url'); + late final _git_remote_url = _git_remote_urlPtr + .asFunction Function(ffi.Pointer)>(); /// Get the remote's url for pushing. /// @@ -11902,10 +13360,12 @@ class Libgit2 { ); } - late final _git_remote_pushurl_ptr = - _lookup>('git_remote_pushurl'); - late final _dart_git_remote_pushurl _git_remote_pushurl = - _git_remote_pushurl_ptr.asFunction<_dart_git_remote_pushurl>(); + late final _git_remote_pushurlPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_remote_pushurl'); + late final _git_remote_pushurl = _git_remote_pushurlPtr + .asFunction Function(ffi.Pointer)>(); /// Set the remote's url in the configuration /// @@ -11928,10 +13388,13 @@ class Libgit2 { ); } - late final _git_remote_set_url_ptr = - _lookup>('git_remote_set_url'); - late final _dart_git_remote_set_url _git_remote_set_url = - _git_remote_set_url_ptr.asFunction<_dart_git_remote_set_url>(); + late final _git_remote_set_urlPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_remote_set_url'); + late final _git_remote_set_url = _git_remote_set_urlPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Set the remote's url for pushing in the configuration. /// @@ -11955,11 +13418,13 @@ class Libgit2 { ); } - late final _git_remote_set_pushurl_ptr = - _lookup>( - 'git_remote_set_pushurl'); - late final _dart_git_remote_set_pushurl _git_remote_set_pushurl = - _git_remote_set_pushurl_ptr.asFunction<_dart_git_remote_set_pushurl>(); + late final _git_remote_set_pushurlPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_remote_set_pushurl'); + late final _git_remote_set_pushurl = _git_remote_set_pushurlPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Set the url for this particular url instance. The URL in the /// configuration will be ignored, and will not be changed. @@ -11977,12 +13442,13 @@ class Libgit2 { ); } - late final _git_remote_set_instance_url_ptr = - _lookup>( - 'git_remote_set_instance_url'); - late final _dart_git_remote_set_instance_url _git_remote_set_instance_url = - _git_remote_set_instance_url_ptr - .asFunction<_dart_git_remote_set_instance_url>(); + late final _git_remote_set_instance_urlPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_remote_set_instance_url'); + late final _git_remote_set_instance_url = + _git_remote_set_instance_urlPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Set the push url for this particular url instance. The URL in the /// configuration will be ignored, and will not be changed. @@ -12000,12 +13466,13 @@ class Libgit2 { ); } - late final _git_remote_set_instance_pushurl_ptr = - _lookup>( - 'git_remote_set_instance_pushurl'); - late final _dart_git_remote_set_instance_pushurl - _git_remote_set_instance_pushurl = _git_remote_set_instance_pushurl_ptr - .asFunction<_dart_git_remote_set_instance_pushurl>(); + late final _git_remote_set_instance_pushurlPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_remote_set_instance_pushurl'); + late final _git_remote_set_instance_pushurl = + _git_remote_set_instance_pushurlPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Add a fetch refspec to the remote's configuration /// @@ -12028,11 +13495,13 @@ class Libgit2 { ); } - late final _git_remote_add_fetch_ptr = - _lookup>( - 'git_remote_add_fetch'); - late final _dart_git_remote_add_fetch _git_remote_add_fetch = - _git_remote_add_fetch_ptr.asFunction<_dart_git_remote_add_fetch>(); + late final _git_remote_add_fetchPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_remote_add_fetch'); + late final _git_remote_add_fetch = _git_remote_add_fetchPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Get the remote's list of fetch refspecs /// @@ -12051,12 +13520,13 @@ class Libgit2 { ); } - late final _git_remote_get_fetch_refspecs_ptr = - _lookup>( - 'git_remote_get_fetch_refspecs'); - late final _dart_git_remote_get_fetch_refspecs - _git_remote_get_fetch_refspecs = _git_remote_get_fetch_refspecs_ptr - .asFunction<_dart_git_remote_get_fetch_refspecs>(); + late final _git_remote_get_fetch_refspecsPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_remote_get_fetch_refspecs'); + late final _git_remote_get_fetch_refspecs = + _git_remote_get_fetch_refspecsPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Add a push refspec to the remote's configuration /// @@ -12079,11 +13549,13 @@ class Libgit2 { ); } - late final _git_remote_add_push_ptr = - _lookup>( - 'git_remote_add_push'); - late final _dart_git_remote_add_push _git_remote_add_push = - _git_remote_add_push_ptr.asFunction<_dart_git_remote_add_push>(); + late final _git_remote_add_pushPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_remote_add_push'); + late final _git_remote_add_push = _git_remote_add_pushPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Get the remote's list of push refspecs /// @@ -12102,12 +13574,13 @@ class Libgit2 { ); } - late final _git_remote_get_push_refspecs_ptr = - _lookup>( - 'git_remote_get_push_refspecs'); - late final _dart_git_remote_get_push_refspecs _git_remote_get_push_refspecs = - _git_remote_get_push_refspecs_ptr - .asFunction<_dart_git_remote_get_push_refspecs>(); + late final _git_remote_get_push_refspecsPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_remote_get_push_refspecs'); + late final _git_remote_get_push_refspecs = + _git_remote_get_push_refspecsPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Get the number of refspecs for a remote /// @@ -12121,12 +13594,11 @@ class Libgit2 { ); } - late final _git_remote_refspec_count_ptr = - _lookup>( + late final _git_remote_refspec_countPtr = + _lookup)>>( 'git_remote_refspec_count'); - late final _dart_git_remote_refspec_count _git_remote_refspec_count = - _git_remote_refspec_count_ptr - .asFunction<_dart_git_remote_refspec_count>(); + late final _git_remote_refspec_count = _git_remote_refspec_countPtr + .asFunction)>(); /// Get a refspec from the remote /// @@ -12143,11 +13615,12 @@ class Libgit2 { ); } - late final _git_remote_get_refspec_ptr = - _lookup>( - 'git_remote_get_refspec'); - late final _dart_git_remote_get_refspec _git_remote_get_refspec = - _git_remote_get_refspec_ptr.asFunction<_dart_git_remote_get_refspec>(); + late final _git_remote_get_refspecPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, size_t)>>('git_remote_get_refspec'); + late final _git_remote_get_refspec = _git_remote_get_refspecPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int)>(); /// Open a connection to a remote /// @@ -12178,10 +13651,21 @@ class Libgit2 { ); } - late final _git_remote_connect_ptr = - _lookup>('git_remote_connect'); - late final _dart_git_remote_connect _git_remote_connect = - _git_remote_connect_ptr.asFunction<_dart_git_remote_connect>(); + late final _git_remote_connectPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_remote_connect'); + late final _git_remote_connect = _git_remote_connectPtr.asFunction< + int Function( + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// Get the remote repository's reference advertisement list /// @@ -12203,7 +13687,7 @@ class Libgit2 { /// @return 0 on success, or an error code int git_remote_ls( ffi.Pointer>> out, - ffi.Pointer size, + ffi.Pointer size, ffi.Pointer remote, ) { return _git_remote_ls( @@ -12213,10 +13697,15 @@ class Libgit2 { ); } - late final _git_remote_ls_ptr = - _lookup>('git_remote_ls'); - late final _dart_git_remote_ls _git_remote_ls = - _git_remote_ls_ptr.asFunction<_dart_git_remote_ls>(); + late final _git_remote_lsPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>>, + ffi.Pointer, + ffi.Pointer)>>('git_remote_ls'); + late final _git_remote_ls = _git_remote_lsPtr.asFunction< + int Function(ffi.Pointer>>, + ffi.Pointer, ffi.Pointer)>(); /// Check whether the remote is connected /// @@ -12233,11 +13722,11 @@ class Libgit2 { ); } - late final _git_remote_connected_ptr = - _lookup>( + late final _git_remote_connectedPtr = + _lookup)>>( 'git_remote_connected'); - late final _dart_git_remote_connected _git_remote_connected = - _git_remote_connected_ptr.asFunction<_dart_git_remote_connected>(); + late final _git_remote_connected = _git_remote_connectedPtr + .asFunction)>(); /// Cancel the operation /// @@ -12254,10 +13743,11 @@ class Libgit2 { ); } - late final _git_remote_stop_ptr = - _lookup>('git_remote_stop'); - late final _dart_git_remote_stop _git_remote_stop = - _git_remote_stop_ptr.asFunction<_dart_git_remote_stop>(); + late final _git_remote_stopPtr = + _lookup)>>( + 'git_remote_stop'); + late final _git_remote_stop = + _git_remote_stopPtr.asFunction)>(); /// Disconnect from the remote /// @@ -12273,11 +13763,11 @@ class Libgit2 { ); } - late final _git_remote_disconnect_ptr = - _lookup>( + late final _git_remote_disconnectPtr = + _lookup)>>( 'git_remote_disconnect'); - late final _dart_git_remote_disconnect _git_remote_disconnect = - _git_remote_disconnect_ptr.asFunction<_dart_git_remote_disconnect>(); + late final _git_remote_disconnect = _git_remote_disconnectPtr + .asFunction)>(); /// Free the memory associated with a remote /// @@ -12293,10 +13783,11 @@ class Libgit2 { ); } - late final _git_remote_free_ptr = - _lookup>('git_remote_free'); - late final _dart_git_remote_free _git_remote_free = - _git_remote_free_ptr.asFunction<_dart_git_remote_free>(); + late final _git_remote_freePtr = + _lookup)>>( + 'git_remote_free'); + late final _git_remote_free = + _git_remote_freePtr.asFunction)>(); /// Get a list of the configured remotes for a repo /// @@ -12315,10 +13806,12 @@ class Libgit2 { ); } - late final _git_remote_list_ptr = - _lookup>('git_remote_list'); - late final _dart_git_remote_list _git_remote_list = - _git_remote_list_ptr.asFunction<_dart_git_remote_list>(); + late final _git_remote_listPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_remote_list'); + late final _git_remote_list = _git_remote_listPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Initializes a `git_remote_callbacks` with default values. Equivalent to /// creating an instance with GIT_REMOTE_CALLBACKS_INIT. @@ -12336,12 +13829,12 @@ class Libgit2 { ); } - late final _git_remote_init_callbacks_ptr = - _lookup>( - 'git_remote_init_callbacks'); - late final _dart_git_remote_init_callbacks _git_remote_init_callbacks = - _git_remote_init_callbacks_ptr - .asFunction<_dart_git_remote_init_callbacks>(); + late final _git_remote_init_callbacksPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_remote_init_callbacks'); + late final _git_remote_init_callbacks = _git_remote_init_callbacksPtr + .asFunction, int)>(); /// Initialize git_fetch_options structure /// @@ -12361,11 +13854,12 @@ class Libgit2 { ); } - late final _git_fetch_options_init_ptr = - _lookup>( - 'git_fetch_options_init'); - late final _dart_git_fetch_options_init _git_fetch_options_init = - _git_fetch_options_init_ptr.asFunction<_dart_git_fetch_options_init>(); + late final _git_fetch_options_initPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_fetch_options_init'); + late final _git_fetch_options_init = _git_fetch_options_initPtr + .asFunction, int)>(); /// Initialize git_push_options structure /// @@ -12385,11 +13879,12 @@ class Libgit2 { ); } - late final _git_push_options_init_ptr = - _lookup>( - 'git_push_options_init'); - late final _dart_git_push_options_init _git_push_options_init = - _git_push_options_init_ptr.asFunction<_dart_git_push_options_init>(); + late final _git_push_options_initPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_push_options_init'); + late final _git_push_options_init = _git_push_options_initPtr + .asFunction, int)>(); /// Download and index the packfile /// @@ -12417,11 +13912,13 @@ class Libgit2 { ); } - late final _git_remote_download_ptr = - _lookup>( - 'git_remote_download'); - late final _dart_git_remote_download _git_remote_download = - _git_remote_download_ptr.asFunction<_dart_git_remote_download>(); + late final _git_remote_downloadPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_remote_download'); + late final _git_remote_download = _git_remote_downloadPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Create a packfile and send it to the server /// @@ -12445,10 +13942,13 @@ class Libgit2 { ); } - late final _git_remote_upload_ptr = - _lookup>('git_remote_upload'); - late final _dart_git_remote_upload _git_remote_upload = - _git_remote_upload_ptr.asFunction<_dart_git_remote_upload>(); + late final _git_remote_uploadPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_remote_upload'); + late final _git_remote_upload = _git_remote_uploadPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Update the tips to the new state /// @@ -12478,11 +13978,17 @@ class Libgit2 { ); } - late final _git_remote_update_tips_ptr = - _lookup>( - 'git_remote_update_tips'); - late final _dart_git_remote_update_tips _git_remote_update_tips = - _git_remote_update_tips_ptr.asFunction<_dart_git_remote_update_tips>(); + late final _git_remote_update_tipsPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Int32, + ffi.Pointer)>>('git_remote_update_tips'); + late final _git_remote_update_tips = _git_remote_update_tipsPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + int, int, ffi.Pointer)>(); /// Download new data and update tips /// @@ -12510,10 +14016,16 @@ class Libgit2 { ); } - late final _git_remote_fetch_ptr = - _lookup>('git_remote_fetch'); - late final _dart_git_remote_fetch _git_remote_fetch = - _git_remote_fetch_ptr.asFunction<_dart_git_remote_fetch>(); + late final _git_remote_fetchPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_remote_fetch'); + late final _git_remote_fetch = _git_remote_fetchPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); /// Prune tracking refs that are no longer present on remote /// @@ -12530,10 +14042,13 @@ class Libgit2 { ); } - late final _git_remote_prune_ptr = - _lookup>('git_remote_prune'); - late final _dart_git_remote_prune _git_remote_prune = - _git_remote_prune_ptr.asFunction<_dart_git_remote_prune>(); + late final _git_remote_prunePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_remote_prune'); + late final _git_remote_prune = _git_remote_prunePtr.asFunction< + int Function( + ffi.Pointer, ffi.Pointer)>(); /// Perform a push /// @@ -12555,10 +14070,13 @@ class Libgit2 { ); } - late final _git_remote_push_ptr = - _lookup>('git_remote_push'); - late final _dart_git_remote_push _git_remote_push = - _git_remote_push_ptr.asFunction<_dart_git_remote_push>(); + late final _git_remote_pushPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_remote_push'); + late final _git_remote_push = _git_remote_pushPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Get the statistics structure that is filled in by the fetch operation. ffi.Pointer git_remote_stats( @@ -12569,10 +14087,12 @@ class Libgit2 { ); } - late final _git_remote_stats_ptr = - _lookup>('git_remote_stats'); - late final _dart_git_remote_stats _git_remote_stats = - _git_remote_stats_ptr.asFunction<_dart_git_remote_stats>(); + late final _git_remote_statsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_remote_stats'); + late final _git_remote_stats = _git_remote_statsPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); /// Retrieve the tag auto-follow setting /// @@ -12586,10 +14106,11 @@ class Libgit2 { ); } - late final _git_remote_autotag_ptr = - _lookup>('git_remote_autotag'); - late final _dart_git_remote_autotag _git_remote_autotag = - _git_remote_autotag_ptr.asFunction<_dart_git_remote_autotag>(); + late final _git_remote_autotagPtr = + _lookup)>>( + 'git_remote_autotag'); + late final _git_remote_autotag = _git_remote_autotagPtr + .asFunction)>(); /// Set the remote's tag following setting. /// @@ -12612,11 +14133,12 @@ class Libgit2 { ); } - late final _git_remote_set_autotag_ptr = - _lookup>( - 'git_remote_set_autotag'); - late final _dart_git_remote_set_autotag _git_remote_set_autotag = - _git_remote_set_autotag_ptr.asFunction<_dart_git_remote_set_autotag>(); + late final _git_remote_set_autotagPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('git_remote_set_autotag'); + late final _git_remote_set_autotag = _git_remote_set_autotagPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int)>(); /// Retrieve the ref-prune setting /// @@ -12630,11 +14152,11 @@ class Libgit2 { ); } - late final _git_remote_prune_refs_ptr = - _lookup>( + late final _git_remote_prune_refsPtr = + _lookup)>>( 'git_remote_prune_refs'); - late final _dart_git_remote_prune_refs _git_remote_prune_refs = - _git_remote_prune_refs_ptr.asFunction<_dart_git_remote_prune_refs>(); + late final _git_remote_prune_refs = _git_remote_prune_refsPtr + .asFunction)>(); /// Give the remote a new name /// @@ -12668,10 +14190,16 @@ class Libgit2 { ); } - late final _git_remote_rename_ptr = - _lookup>('git_remote_rename'); - late final _dart_git_remote_rename _git_remote_rename = - _git_remote_rename_ptr.asFunction<_dart_git_remote_rename>(); + late final _git_remote_renamePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_remote_rename'); + late final _git_remote_rename = _git_remote_renamePtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); /// Ensure the remote name is well-formed. /// @@ -12688,12 +14216,13 @@ class Libgit2 { ); } - late final _git_remote_name_is_valid_ptr = - _lookup>( - 'git_remote_name_is_valid'); - late final _dart_git_remote_name_is_valid _git_remote_name_is_valid = - _git_remote_name_is_valid_ptr - .asFunction<_dart_git_remote_name_is_valid>(); + late final _git_remote_name_is_validPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_remote_name_is_valid'); + late final _git_remote_name_is_valid = + _git_remote_name_is_validPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Delete an existing persisted remote. /// @@ -12713,10 +14242,12 @@ class Libgit2 { ); } - late final _git_remote_delete_ptr = - _lookup>('git_remote_delete'); - late final _dart_git_remote_delete _git_remote_delete = - _git_remote_delete_ptr.asFunction<_dart_git_remote_delete>(); + late final _git_remote_deletePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_remote_delete'); + late final _git_remote_delete = _git_remote_deletePtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Retrieve the name of the remote's default branch /// @@ -12742,12 +14273,13 @@ class Libgit2 { ); } - late final _git_remote_default_branch_ptr = - _lookup>( - 'git_remote_default_branch'); - late final _dart_git_remote_default_branch _git_remote_default_branch = - _git_remote_default_branch_ptr - .asFunction<_dart_git_remote_default_branch>(); + late final _git_remote_default_branchPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_remote_default_branch'); + late final _git_remote_default_branch = + _git_remote_default_branchPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Initialize git_clone_options structure /// @@ -12767,11 +14299,12 @@ class Libgit2 { ); } - late final _git_clone_options_init_ptr = - _lookup>( - 'git_clone_options_init'); - late final _dart_git_clone_options_init _git_clone_options_init = - _git_clone_options_init_ptr.asFunction<_dart_git_clone_options_init>(); + late final _git_clone_options_initPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_clone_options_init'); + late final _git_clone_options_init = _git_clone_options_initPtr + .asFunction, int)>(); /// Clone a remote repository. /// @@ -12801,10 +14334,19 @@ class Libgit2 { ); } - late final _git_clone_ptr = - _lookup>('git_clone'); - late final _dart_git_clone _git_clone = - _git_clone_ptr.asFunction<_dart_git_clone>(); + late final _git_clonePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_clone'); + late final _git_clone = _git_clonePtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// Lookup a commit object from a repository. /// @@ -12828,10 +14370,15 @@ class Libgit2 { ); } - late final _git_commit_lookup_ptr = - _lookup>('git_commit_lookup'); - late final _dart_git_commit_lookup _git_commit_lookup = - _git_commit_lookup_ptr.asFunction<_dart_git_commit_lookup>(); + late final _git_commit_lookupPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>('git_commit_lookup'); + late final _git_commit_lookup = _git_commit_lookupPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer)>(); /// Lookup a commit object from a repository, given a prefix of its /// identifier (short id). @@ -12861,12 +14408,17 @@ class Libgit2 { ); } - late final _git_commit_lookup_prefix_ptr = - _lookup>( - 'git_commit_lookup_prefix'); - late final _dart_git_commit_lookup_prefix _git_commit_lookup_prefix = - _git_commit_lookup_prefix_ptr - .asFunction<_dart_git_commit_lookup_prefix>(); + late final _git_commit_lookup_prefixPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + size_t)>>('git_commit_lookup_prefix'); + late final _git_commit_lookup_prefix = + _git_commit_lookup_prefixPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer, int)>(); /// Close an open commit /// @@ -12885,10 +14437,11 @@ class Libgit2 { ); } - late final _git_commit_free_ptr = - _lookup>('git_commit_free'); - late final _dart_git_commit_free _git_commit_free = - _git_commit_free_ptr.asFunction<_dart_git_commit_free>(); + late final _git_commit_freePtr = + _lookup)>>( + 'git_commit_free'); + late final _git_commit_free = + _git_commit_freePtr.asFunction)>(); /// Get the id of a commit. /// @@ -12902,10 +14455,12 @@ class Libgit2 { ); } - late final _git_commit_id_ptr = - _lookup>('git_commit_id'); - late final _dart_git_commit_id _git_commit_id = - _git_commit_id_ptr.asFunction<_dart_git_commit_id>(); + late final _git_commit_idPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_commit_id'); + late final _git_commit_id = _git_commit_idPtr + .asFunction Function(ffi.Pointer)>(); /// Get the repository that contains the commit. /// @@ -12919,10 +14474,12 @@ class Libgit2 { ); } - late final _git_commit_owner_ptr = - _lookup>('git_commit_owner'); - late final _dart_git_commit_owner _git_commit_owner = - _git_commit_owner_ptr.asFunction<_dart_git_commit_owner>(); + late final _git_commit_ownerPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_commit_owner'); + late final _git_commit_owner = _git_commit_ownerPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); /// Get the encoding for the message of a commit, /// as a string representing a standard encoding name. @@ -12940,12 +14497,12 @@ class Libgit2 { ); } - late final _git_commit_message_encoding_ptr = - _lookup>( - 'git_commit_message_encoding'); - late final _dart_git_commit_message_encoding _git_commit_message_encoding = - _git_commit_message_encoding_ptr - .asFunction<_dart_git_commit_message_encoding>(); + late final _git_commit_message_encodingPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_commit_message_encoding'); + late final _git_commit_message_encoding = _git_commit_message_encodingPtr + .asFunction Function(ffi.Pointer)>(); /// Get the full message of a commit. /// @@ -12962,10 +14519,12 @@ class Libgit2 { ); } - late final _git_commit_message_ptr = - _lookup>('git_commit_message'); - late final _dart_git_commit_message _git_commit_message = - _git_commit_message_ptr.asFunction<_dart_git_commit_message>(); + late final _git_commit_messagePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_commit_message'); + late final _git_commit_message = _git_commit_messagePtr + .asFunction Function(ffi.Pointer)>(); /// Get the full raw message of a commit. /// @@ -12979,11 +14538,12 @@ class Libgit2 { ); } - late final _git_commit_message_raw_ptr = - _lookup>( - 'git_commit_message_raw'); - late final _dart_git_commit_message_raw _git_commit_message_raw = - _git_commit_message_raw_ptr.asFunction<_dart_git_commit_message_raw>(); + late final _git_commit_message_rawPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_commit_message_raw'); + late final _git_commit_message_raw = _git_commit_message_rawPtr + .asFunction Function(ffi.Pointer)>(); /// Get the short "summary" of the git commit message. /// @@ -13000,10 +14560,12 @@ class Libgit2 { ); } - late final _git_commit_summary_ptr = - _lookup>('git_commit_summary'); - late final _dart_git_commit_summary _git_commit_summary = - _git_commit_summary_ptr.asFunction<_dart_git_commit_summary>(); + late final _git_commit_summaryPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_commit_summary'); + late final _git_commit_summary = _git_commit_summaryPtr + .asFunction Function(ffi.Pointer)>(); /// Get the long "body" of the git commit message. /// @@ -13022,10 +14584,12 @@ class Libgit2 { ); } - late final _git_commit_body_ptr = - _lookup>('git_commit_body'); - late final _dart_git_commit_body _git_commit_body = - _git_commit_body_ptr.asFunction<_dart_git_commit_body>(); + late final _git_commit_bodyPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_commit_body'); + late final _git_commit_body = _git_commit_bodyPtr + .asFunction Function(ffi.Pointer)>(); /// Get the commit time (i.e. committer time) of a commit. /// @@ -13039,10 +14603,11 @@ class Libgit2 { ); } - late final _git_commit_time_ptr = - _lookup>('git_commit_time'); - late final _dart_git_commit_time _git_commit_time = - _git_commit_time_ptr.asFunction<_dart_git_commit_time>(); + late final _git_commit_timePtr = + _lookup)>>( + 'git_commit_time'); + late final _git_commit_time = + _git_commit_timePtr.asFunction)>(); /// Get the commit timezone offset (i.e. committer's preferred timezone) of a commit. /// @@ -13056,11 +14621,11 @@ class Libgit2 { ); } - late final _git_commit_time_offset_ptr = - _lookup>( + late final _git_commit_time_offsetPtr = + _lookup)>>( 'git_commit_time_offset'); - late final _dart_git_commit_time_offset _git_commit_time_offset = - _git_commit_time_offset_ptr.asFunction<_dart_git_commit_time_offset>(); + late final _git_commit_time_offset = _git_commit_time_offsetPtr + .asFunction)>(); /// Get the committer of a commit. /// @@ -13074,11 +14639,12 @@ class Libgit2 { ); } - late final _git_commit_committer_ptr = - _lookup>( - 'git_commit_committer'); - late final _dart_git_commit_committer _git_commit_committer = - _git_commit_committer_ptr.asFunction<_dart_git_commit_committer>(); + late final _git_commit_committerPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_commit_committer'); + late final _git_commit_committer = _git_commit_committerPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); /// Get the author of a commit. /// @@ -13092,10 +14658,12 @@ class Libgit2 { ); } - late final _git_commit_author_ptr = - _lookup>('git_commit_author'); - late final _dart_git_commit_author _git_commit_author = - _git_commit_author_ptr.asFunction<_dart_git_commit_author>(); + late final _git_commit_authorPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_commit_author'); + late final _git_commit_author = _git_commit_authorPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); /// Get the committer of a commit, using the mailmap to map names and email /// addresses to canonical real names and email addresses. @@ -13118,13 +14686,16 @@ class Libgit2 { ); } - late final _git_commit_committer_with_mailmap_ptr = - _lookup>( - 'git_commit_committer_with_mailmap'); - late final _dart_git_commit_committer_with_mailmap - _git_commit_committer_with_mailmap = - _git_commit_committer_with_mailmap_ptr - .asFunction<_dart_git_commit_committer_with_mailmap>(); + late final _git_commit_committer_with_mailmapPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>('git_commit_committer_with_mailmap'); + late final _git_commit_committer_with_mailmap = + _git_commit_committer_with_mailmapPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer)>(); /// Get the author of a commit, using the mailmap to map names and email /// addresses to canonical real names and email addresses. @@ -13147,12 +14718,16 @@ class Libgit2 { ); } - late final _git_commit_author_with_mailmap_ptr = - _lookup>( - 'git_commit_author_with_mailmap'); - late final _dart_git_commit_author_with_mailmap - _git_commit_author_with_mailmap = _git_commit_author_with_mailmap_ptr - .asFunction<_dart_git_commit_author_with_mailmap>(); + late final _git_commit_author_with_mailmapPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>('git_commit_author_with_mailmap'); + late final _git_commit_author_with_mailmap = + _git_commit_author_with_mailmapPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer)>(); /// Get the full raw text of the commit header. /// @@ -13166,11 +14741,12 @@ class Libgit2 { ); } - late final _git_commit_raw_header_ptr = - _lookup>( - 'git_commit_raw_header'); - late final _dart_git_commit_raw_header _git_commit_raw_header = - _git_commit_raw_header_ptr.asFunction<_dart_git_commit_raw_header>(); + late final _git_commit_raw_headerPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_commit_raw_header'); + late final _git_commit_raw_header = _git_commit_raw_headerPtr + .asFunction Function(ffi.Pointer)>(); /// Get the tree pointed to by a commit. /// @@ -13187,10 +14763,13 @@ class Libgit2 { ); } - late final _git_commit_tree_ptr = - _lookup>('git_commit_tree'); - late final _dart_git_commit_tree _git_commit_tree = - _git_commit_tree_ptr.asFunction<_dart_git_commit_tree>(); + late final _git_commit_treePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_commit_tree'); + late final _git_commit_tree = _git_commit_treePtr.asFunction< + int Function( + ffi.Pointer>, ffi.Pointer)>(); /// Get the id of the tree pointed to by a commit. This differs from /// `git_commit_tree` in that no attempts are made to fetch an object @@ -13206,10 +14785,12 @@ class Libgit2 { ); } - late final _git_commit_tree_id_ptr = - _lookup>('git_commit_tree_id'); - late final _dart_git_commit_tree_id _git_commit_tree_id = - _git_commit_tree_id_ptr.asFunction<_dart_git_commit_tree_id>(); + late final _git_commit_tree_idPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_commit_tree_id'); + late final _git_commit_tree_id = _git_commit_tree_idPtr + .asFunction Function(ffi.Pointer)>(); /// Get the number of parents of this commit /// @@ -13223,11 +14804,11 @@ class Libgit2 { ); } - late final _git_commit_parentcount_ptr = - _lookup>( + late final _git_commit_parentcountPtr = + _lookup)>>( 'git_commit_parentcount'); - late final _dart_git_commit_parentcount _git_commit_parentcount = - _git_commit_parentcount_ptr.asFunction<_dart_git_commit_parentcount>(); + late final _git_commit_parentcount = _git_commit_parentcountPtr + .asFunction)>(); /// Get the specified parent of the commit. /// @@ -13247,10 +14828,13 @@ class Libgit2 { ); } - late final _git_commit_parent_ptr = - _lookup>('git_commit_parent'); - late final _dart_git_commit_parent _git_commit_parent = - _git_commit_parent_ptr.asFunction<_dart_git_commit_parent>(); + late final _git_commit_parentPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer, ffi.Uint32)>>('git_commit_parent'); + late final _git_commit_parent = _git_commit_parentPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, int)>(); /// Get the oid of a specified parent for a commit. This is different from /// `git_commit_parent`, which will attempt to load the parent commit from @@ -13269,11 +14853,12 @@ class Libgit2 { ); } - late final _git_commit_parent_id_ptr = - _lookup>( - 'git_commit_parent_id'); - late final _dart_git_commit_parent_id _git_commit_parent_id = - _git_commit_parent_id_ptr.asFunction<_dart_git_commit_parent_id>(); + late final _git_commit_parent_idPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Uint32)>>('git_commit_parent_id'); + late final _git_commit_parent_id = _git_commit_parent_idPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int)>(); /// Get the commit object that is the th generation ancestor /// of the named commit object, following only the first parents. @@ -13299,12 +14884,16 @@ class Libgit2 { ); } - late final _git_commit_nth_gen_ancestor_ptr = - _lookup>( - 'git_commit_nth_gen_ancestor'); - late final _dart_git_commit_nth_gen_ancestor _git_commit_nth_gen_ancestor = - _git_commit_nth_gen_ancestor_ptr - .asFunction<_dart_git_commit_nth_gen_ancestor>(); + late final _git_commit_nth_gen_ancestorPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Uint32)>>('git_commit_nth_gen_ancestor'); + late final _git_commit_nth_gen_ancestor = + _git_commit_nth_gen_ancestorPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, int)>(); /// Get an arbitrary header field /// @@ -13326,11 +14915,13 @@ class Libgit2 { ); } - late final _git_commit_header_field_ptr = - _lookup>( - 'git_commit_header_field'); - late final _dart_git_commit_header_field _git_commit_header_field = - _git_commit_header_field_ptr.asFunction<_dart_git_commit_header_field>(); + late final _git_commit_header_fieldPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_commit_header_field'); + late final _git_commit_header_field = _git_commit_header_fieldPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Extract the signature from a commit /// @@ -13364,12 +14955,22 @@ class Libgit2 { ); } - late final _git_commit_extract_signature_ptr = - _lookup>( - 'git_commit_extract_signature'); - late final _dart_git_commit_extract_signature _git_commit_extract_signature = - _git_commit_extract_signature_ptr - .asFunction<_dart_git_commit_extract_signature>(); + late final _git_commit_extract_signaturePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_commit_extract_signature'); + late final _git_commit_extract_signature = + _git_commit_extract_signaturePtr.asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// Create new commit in the repository from a list of `git_object` pointers /// @@ -13439,10 +15040,31 @@ class Libgit2 { ); } - late final _git_commit_create_ptr = - _lookup>('git_commit_create'); - late final _dart_git_commit_create _git_commit_create = - _git_commit_create_ptr.asFunction<_dart_git_commit_create>(); + late final _git_commit_createPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + size_t, + ffi.Pointer>)>>('git_commit_create'); + late final _git_commit_create = _git_commit_createPtr.asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>)>(); /// Create new commit in the repository using a variable argument list. /// @@ -13480,11 +15102,29 @@ class Libgit2 { ); } - late final _git_commit_create_v_ptr = - _lookup>( - 'git_commit_create_v'); - late final _dart_git_commit_create_v _git_commit_create_v = - _git_commit_create_v_ptr.asFunction<_dart_git_commit_create_v>(); + late final _git_commit_create_vPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + size_t)>>('git_commit_create_v'); + late final _git_commit_create_v = _git_commit_create_vPtr.asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int)>(); /// Amend an existing commit by replacing only non-NULL values. /// @@ -13527,10 +15167,27 @@ class Libgit2 { ); } - late final _git_commit_amend_ptr = - _lookup>('git_commit_amend'); - late final _dart_git_commit_amend _git_commit_amend = - _git_commit_amend_ptr.asFunction<_dart_git_commit_amend>(); + late final _git_commit_amendPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_commit_amend'); + late final _git_commit_amend = _git_commit_amendPtr.asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// Create a commit and write it into a buffer /// @@ -13589,12 +15246,31 @@ class Libgit2 { ); } - late final _git_commit_create_buffer_ptr = - _lookup>( - 'git_commit_create_buffer'); - late final _dart_git_commit_create_buffer _git_commit_create_buffer = - _git_commit_create_buffer_ptr - .asFunction<_dart_git_commit_create_buffer>(); + late final _git_commit_create_bufferPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + size_t, + ffi.Pointer>)>>( + 'git_commit_create_buffer'); + late final _git_commit_create_buffer = + _git_commit_create_bufferPtr.asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>)>(); /// Create a commit object from the given buffer and signature /// @@ -13625,12 +15301,22 @@ class Libgit2 { ); } - late final _git_commit_create_with_signature_ptr = - _lookup>( - 'git_commit_create_with_signature'); - late final _dart_git_commit_create_with_signature - _git_commit_create_with_signature = _git_commit_create_with_signature_ptr - .asFunction<_dart_git_commit_create_with_signature>(); + late final _git_commit_create_with_signaturePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_commit_create_with_signature'); + late final _git_commit_create_with_signature = + _git_commit_create_with_signaturePtr.asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// Create an in-memory copy of a commit. The copy must be explicitly /// free'd or it will leak. @@ -13647,10 +15333,13 @@ class Libgit2 { ); } - late final _git_commit_dup_ptr = - _lookup>('git_commit_dup'); - late final _dart_git_commit_dup _git_commit_dup = - _git_commit_dup_ptr.asFunction<_dart_git_commit_dup>(); + late final _git_commit_dupPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_commit_dup'); + late final _git_commit_dup = _git_commit_dupPtr.asFunction< + int Function( + ffi.Pointer>, ffi.Pointer)>(); /// Free a config entry void git_config_entry_free( @@ -13661,11 +15350,11 @@ class Libgit2 { ); } - late final _git_config_entry_free_ptr = - _lookup>( - 'git_config_entry_free'); - late final _dart_git_config_entry_free _git_config_entry_free = - _git_config_entry_free_ptr.asFunction<_dart_git_config_entry_free>(); + late final _git_config_entry_freePtr = _lookup< + ffi.NativeFunction)>>( + 'git_config_entry_free'); + late final _git_config_entry_free = _git_config_entry_freePtr + .asFunction)>(); /// Locate the path to the global configuration file /// @@ -13690,11 +15379,11 @@ class Libgit2 { ); } - late final _git_config_find_global_ptr = - _lookup>( + late final _git_config_find_globalPtr = + _lookup)>>( 'git_config_find_global'); - late final _dart_git_config_find_global _git_config_find_global = - _git_config_find_global_ptr.asFunction<_dart_git_config_find_global>(); + late final _git_config_find_global = _git_config_find_globalPtr + .asFunction)>(); /// Locate the path to the global xdg compatible configuration file /// @@ -13717,11 +15406,11 @@ class Libgit2 { ); } - late final _git_config_find_xdg_ptr = - _lookup>( + late final _git_config_find_xdgPtr = + _lookup)>>( 'git_config_find_xdg'); - late final _dart_git_config_find_xdg _git_config_find_xdg = - _git_config_find_xdg_ptr.asFunction<_dart_git_config_find_xdg>(); + late final _git_config_find_xdg = + _git_config_find_xdgPtr.asFunction)>(); /// Locate the path to the system configuration file /// @@ -13739,11 +15428,11 @@ class Libgit2 { ); } - late final _git_config_find_system_ptr = - _lookup>( + late final _git_config_find_systemPtr = + _lookup)>>( 'git_config_find_system'); - late final _dart_git_config_find_system _git_config_find_system = - _git_config_find_system_ptr.asFunction<_dart_git_config_find_system>(); + late final _git_config_find_system = _git_config_find_systemPtr + .asFunction)>(); /// Locate the path to the configuration file in ProgramData /// @@ -13760,12 +15449,11 @@ class Libgit2 { ); } - late final _git_config_find_programdata_ptr = - _lookup>( + late final _git_config_find_programdataPtr = + _lookup)>>( 'git_config_find_programdata'); - late final _dart_git_config_find_programdata _git_config_find_programdata = - _git_config_find_programdata_ptr - .asFunction<_dart_git_config_find_programdata>(); + late final _git_config_find_programdata = _git_config_find_programdataPtr + .asFunction)>(); /// Open the global, XDG and system configuration files /// @@ -13783,11 +15471,12 @@ class Libgit2 { ); } - late final _git_config_open_default_ptr = - _lookup>( - 'git_config_open_default'); - late final _dart_git_config_open_default _git_config_open_default = - _git_config_open_default_ptr.asFunction<_dart_git_config_open_default>(); + late final _git_config_open_defaultPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>)>>( + 'git_config_open_default'); + late final _git_config_open_default = _git_config_open_defaultPtr + .asFunction>)>(); /// Allocate a new configuration object /// @@ -13804,10 +15493,12 @@ class Libgit2 { ); } - late final _git_config_new_ptr = - _lookup>('git_config_new'); - late final _dart_git_config_new _git_config_new = - _git_config_new_ptr.asFunction<_dart_git_config_new>(); + late final _git_config_newPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>)>>('git_config_new'); + late final _git_config_new = _git_config_newPtr + .asFunction>)>(); /// Add an on-disk config file instance to an existing config /// @@ -13850,12 +15541,18 @@ class Libgit2 { ); } - late final _git_config_add_file_ondisk_ptr = - _lookup>( - 'git_config_add_file_ondisk'); - late final _dart_git_config_add_file_ondisk _git_config_add_file_ondisk = - _git_config_add_file_ondisk_ptr - .asFunction<_dart_git_config_add_file_ondisk>(); + late final _git_config_add_file_ondiskPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ffi.Int32)>>('git_config_add_file_ondisk'); + late final _git_config_add_file_ondisk = + _git_config_add_file_ondiskPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer, int)>(); /// Create a new config instance containing a single on-disk file /// @@ -13877,11 +15574,13 @@ class Libgit2 { ); } - late final _git_config_open_ondisk_ptr = - _lookup>( - 'git_config_open_ondisk'); - late final _dart_git_config_open_ondisk _git_config_open_ondisk = - _git_config_open_ondisk_ptr.asFunction<_dart_git_config_open_ondisk>(); + late final _git_config_open_ondiskPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_config_open_ondisk'); + late final _git_config_open_ondisk = _git_config_open_ondiskPtr.asFunction< + int Function( + ffi.Pointer>, ffi.Pointer)>(); /// Build a single-level focused config object from a multi-level one. /// @@ -13909,11 +15608,13 @@ class Libgit2 { ); } - late final _git_config_open_level_ptr = - _lookup>( - 'git_config_open_level'); - late final _dart_git_config_open_level _git_config_open_level = - _git_config_open_level_ptr.asFunction<_dart_git_config_open_level>(); + late final _git_config_open_levelPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer, ffi.Int32)>>('git_config_open_level'); + late final _git_config_open_level = _git_config_open_levelPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, int)>(); /// Open the global/XDG configuration file according to git's rules /// @@ -13935,11 +15636,13 @@ class Libgit2 { ); } - late final _git_config_open_global_ptr = - _lookup>( - 'git_config_open_global'); - late final _dart_git_config_open_global _git_config_open_global = - _git_config_open_global_ptr.asFunction<_dart_git_config_open_global>(); + late final _git_config_open_globalPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_config_open_global'); + late final _git_config_open_global = _git_config_open_globalPtr.asFunction< + int Function( + ffi.Pointer>, ffi.Pointer)>(); /// Create a snapshot of the configuration /// @@ -13963,11 +15666,13 @@ class Libgit2 { ); } - late final _git_config_snapshot_ptr = - _lookup>( - 'git_config_snapshot'); - late final _dart_git_config_snapshot _git_config_snapshot = - _git_config_snapshot_ptr.asFunction<_dart_git_config_snapshot>(); + late final _git_config_snapshotPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_config_snapshot'); + late final _git_config_snapshot = _git_config_snapshotPtr.asFunction< + int Function( + ffi.Pointer>, ffi.Pointer)>(); /// Free the configuration and its associated memory and files /// @@ -13980,10 +15685,11 @@ class Libgit2 { ); } - late final _git_config_free_ptr = - _lookup>('git_config_free'); - late final _dart_git_config_free _git_config_free = - _git_config_free_ptr.asFunction<_dart_git_config_free>(); + late final _git_config_freePtr = + _lookup)>>( + 'git_config_free'); + late final _git_config_free = + _git_config_freePtr.asFunction)>(); /// Get the git_config_entry of a config variable. /// @@ -14005,11 +15711,15 @@ class Libgit2 { ); } - late final _git_config_get_entry_ptr = - _lookup>( - 'git_config_get_entry'); - late final _dart_git_config_get_entry _git_config_get_entry = - _git_config_get_entry_ptr.asFunction<_dart_git_config_get_entry>(); + late final _git_config_get_entryPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>('git_config_get_entry'); + late final _git_config_get_entry = _git_config_get_entryPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer)>(); /// Get the value of an integer config variable. /// @@ -14033,11 +15743,13 @@ class Libgit2 { ); } - late final _git_config_get_int32_ptr = - _lookup>( - 'git_config_get_int32'); - late final _dart_git_config_get_int32 _git_config_get_int32 = - _git_config_get_int32_ptr.asFunction<_dart_git_config_get_int32>(); + late final _git_config_get_int32Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_config_get_int32'); + late final _git_config_get_int32 = _git_config_get_int32Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Get the value of a long integer config variable. /// @@ -14061,11 +15773,13 @@ class Libgit2 { ); } - late final _git_config_get_int64_ptr = - _lookup>( - 'git_config_get_int64'); - late final _dart_git_config_get_int64 _git_config_get_int64 = - _git_config_get_int64_ptr.asFunction<_dart_git_config_get_int64>(); + late final _git_config_get_int64Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_config_get_int64'); + late final _git_config_get_int64 = _git_config_get_int64Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Get the value of a boolean config variable. /// @@ -14092,11 +15806,13 @@ class Libgit2 { ); } - late final _git_config_get_bool_ptr = - _lookup>( - 'git_config_get_bool'); - late final _dart_git_config_get_bool _git_config_get_bool = - _git_config_get_bool_ptr.asFunction<_dart_git_config_get_bool>(); + late final _git_config_get_boolPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_config_get_bool'); + late final _git_config_get_bool = _git_config_get_boolPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Get the value of a path config variable. /// @@ -14124,11 +15840,13 @@ class Libgit2 { ); } - late final _git_config_get_path_ptr = - _lookup>( - 'git_config_get_path'); - late final _dart_git_config_get_path _git_config_get_path = - _git_config_get_path_ptr.asFunction<_dart_git_config_get_path>(); + late final _git_config_get_pathPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_config_get_path'); + late final _git_config_get_path = _git_config_get_pathPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Get the value of a string config variable. /// @@ -14156,11 +15874,15 @@ class Libgit2 { ); } - late final _git_config_get_string_ptr = - _lookup>( - 'git_config_get_string'); - late final _dart_git_config_get_string _git_config_get_string = - _git_config_get_string_ptr.asFunction<_dart_git_config_get_string>(); + late final _git_config_get_stringPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>('git_config_get_string'); + late final _git_config_get_string = _git_config_get_stringPtr.asFunction< + int Function(ffi.Pointer>, ffi.Pointer, + ffi.Pointer)>(); /// Get the value of a string config variable. /// @@ -14186,12 +15908,14 @@ class Libgit2 { ); } - late final _git_config_get_string_buf_ptr = - _lookup>( - 'git_config_get_string_buf'); - late final _dart_git_config_get_string_buf _git_config_get_string_buf = - _git_config_get_string_buf_ptr - .asFunction<_dart_git_config_get_string_buf>(); + late final _git_config_get_string_bufPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_config_get_string_buf'); + late final _git_config_get_string_buf = + _git_config_get_string_bufPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Get each value of a multivar in a foreach callback /// @@ -14211,7 +15935,7 @@ class Libgit2 { ffi.Pointer cfg, ffi.Pointer name, ffi.Pointer regexp, - ffi.Pointer> callback, + git_config_foreach_cb callback, ffi.Pointer payload, ) { return _git_config_get_multivar_foreach( @@ -14223,12 +15947,22 @@ class Libgit2 { ); } - late final _git_config_get_multivar_foreach_ptr = - _lookup>( - 'git_config_get_multivar_foreach'); - late final _dart_git_config_get_multivar_foreach - _git_config_get_multivar_foreach = _git_config_get_multivar_foreach_ptr - .asFunction<_dart_git_config_get_multivar_foreach>(); + late final _git_config_get_multivar_foreachPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + git_config_foreach_cb, + ffi.Pointer)>>('git_config_get_multivar_foreach'); + late final _git_config_get_multivar_foreach = + _git_config_get_multivar_foreachPtr.asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + git_config_foreach_cb, + ffi.Pointer)>(); /// Get each value of a multivar /// @@ -14255,12 +15989,20 @@ class Libgit2 { ); } - late final _git_config_multivar_iterator_new_ptr = - _lookup>( - 'git_config_multivar_iterator_new'); - late final _dart_git_config_multivar_iterator_new - _git_config_multivar_iterator_new = _git_config_multivar_iterator_new_ptr - .asFunction<_dart_git_config_multivar_iterator_new>(); + late final _git_config_multivar_iterator_newPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_config_multivar_iterator_new'); + late final _git_config_multivar_iterator_new = + _git_config_multivar_iterator_newPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// Return the current entry and advance the iterator /// @@ -14280,10 +16022,13 @@ class Libgit2 { ); } - late final _git_config_next_ptr = - _lookup>('git_config_next'); - late final _dart_git_config_next _git_config_next = - _git_config_next_ptr.asFunction<_dart_git_config_next>(); + late final _git_config_nextPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_config_next'); + late final _git_config_next = _git_config_nextPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer)>(); /// Free a config iterator /// @@ -14296,12 +16041,12 @@ class Libgit2 { ); } - late final _git_config_iterator_free_ptr = - _lookup>( - 'git_config_iterator_free'); - late final _dart_git_config_iterator_free _git_config_iterator_free = - _git_config_iterator_free_ptr - .asFunction<_dart_git_config_iterator_free>(); + late final _git_config_iterator_freePtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer)>>('git_config_iterator_free'); + late final _git_config_iterator_free = _git_config_iterator_freePtr + .asFunction)>(); /// Set the value of an integer config variable in the config file /// with the highest level (usually the local one). @@ -14322,11 +16067,12 @@ class Libgit2 { ); } - late final _git_config_set_int32_ptr = - _lookup>( - 'git_config_set_int32'); - late final _dart_git_config_set_int32 _git_config_set_int32 = - _git_config_set_int32_ptr.asFunction<_dart_git_config_set_int32>(); + late final _git_config_set_int32Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('git_config_set_int32'); + late final _git_config_set_int32 = _git_config_set_int32Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int)>(); /// Set the value of a long integer config variable in the config file /// with the highest level (usually the local one). @@ -14347,11 +16093,12 @@ class Libgit2 { ); } - late final _git_config_set_int64_ptr = - _lookup>( - 'git_config_set_int64'); - late final _dart_git_config_set_int64 _git_config_set_int64 = - _git_config_set_int64_ptr.asFunction<_dart_git_config_set_int64>(); + late final _git_config_set_int64Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Int64)>>('git_config_set_int64'); + late final _git_config_set_int64 = _git_config_set_int64Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int)>(); /// Set the value of a boolean config variable in the config file /// with the highest level (usually the local one). @@ -14372,11 +16119,12 @@ class Libgit2 { ); } - late final _git_config_set_bool_ptr = - _lookup>( - 'git_config_set_bool'); - late final _dart_git_config_set_bool _git_config_set_bool = - _git_config_set_bool_ptr.asFunction<_dart_git_config_set_bool>(); + late final _git_config_set_boolPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('git_config_set_bool'); + late final _git_config_set_bool = _git_config_set_boolPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int)>(); /// Set the value of a string config variable in the config file /// with the highest level (usually the local one). @@ -14400,11 +16148,13 @@ class Libgit2 { ); } - late final _git_config_set_string_ptr = - _lookup>( - 'git_config_set_string'); - late final _dart_git_config_set_string _git_config_set_string = - _git_config_set_string_ptr.asFunction<_dart_git_config_set_string>(); + late final _git_config_set_stringPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_config_set_string'); + late final _git_config_set_string = _git_config_set_stringPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Set a multivar in the local config file. /// @@ -14428,11 +16178,16 @@ class Libgit2 { ); } - late final _git_config_set_multivar_ptr = - _lookup>( - 'git_config_set_multivar'); - late final _dart_git_config_set_multivar _git_config_set_multivar = - _git_config_set_multivar_ptr.asFunction<_dart_git_config_set_multivar>(); + late final _git_config_set_multivarPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_config_set_multivar'); + late final _git_config_set_multivar = _git_config_set_multivarPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); /// Delete a config variable from the config file /// with the highest level (usually the local one). @@ -14449,11 +16204,12 @@ class Libgit2 { ); } - late final _git_config_delete_entry_ptr = - _lookup>( - 'git_config_delete_entry'); - late final _dart_git_config_delete_entry _git_config_delete_entry = - _git_config_delete_entry_ptr.asFunction<_dart_git_config_delete_entry>(); + late final _git_config_delete_entryPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_config_delete_entry'); + late final _git_config_delete_entry = _git_config_delete_entryPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Deletes one or several entries from a multivar in the local config file. /// @@ -14476,12 +16232,14 @@ class Libgit2 { ); } - late final _git_config_delete_multivar_ptr = - _lookup>( - 'git_config_delete_multivar'); - late final _dart_git_config_delete_multivar _git_config_delete_multivar = - _git_config_delete_multivar_ptr - .asFunction<_dart_git_config_delete_multivar>(); + late final _git_config_delete_multivarPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_config_delete_multivar'); + late final _git_config_delete_multivar = + _git_config_delete_multivarPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Perform an operation on each config variable. /// @@ -14499,7 +16257,7 @@ class Libgit2 { /// @return 0 on success, non-zero callback return value, or error code int git_config_foreach( ffi.Pointer cfg, - ffi.Pointer> callback, + git_config_foreach_cb callback, ffi.Pointer payload, ) { return _git_config_foreach( @@ -14509,10 +16267,13 @@ class Libgit2 { ); } - late final _git_config_foreach_ptr = - _lookup>('git_config_foreach'); - late final _dart_git_config_foreach _git_config_foreach = - _git_config_foreach_ptr.asFunction<_dart_git_config_foreach>(); + late final _git_config_foreachPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, git_config_foreach_cb, + ffi.Pointer)>>('git_config_foreach'); + late final _git_config_foreach = _git_config_foreachPtr.asFunction< + int Function(ffi.Pointer, git_config_foreach_cb, + ffi.Pointer)>(); /// Iterate over all the config variables /// @@ -14531,11 +16292,13 @@ class Libgit2 { ); } - late final _git_config_iterator_new_ptr = - _lookup>( - 'git_config_iterator_new'); - late final _dart_git_config_iterator_new _git_config_iterator_new = - _git_config_iterator_new_ptr.asFunction<_dart_git_config_iterator_new>(); + late final _git_config_iterator_newPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_config_iterator_new'); + late final _git_config_iterator_new = _git_config_iterator_newPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer)>(); /// Iterate over all the config variables whose name matches a pattern /// @@ -14561,12 +16324,16 @@ class Libgit2 { ); } - late final _git_config_iterator_glob_new_ptr = - _lookup>( - 'git_config_iterator_glob_new'); - late final _dart_git_config_iterator_glob_new _git_config_iterator_glob_new = - _git_config_iterator_glob_new_ptr - .asFunction<_dart_git_config_iterator_glob_new>(); + late final _git_config_iterator_glob_newPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>('git_config_iterator_glob_new'); + late final _git_config_iterator_glob_new = + _git_config_iterator_glob_newPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer)>(); /// Perform an operation on each config variable matching a regular expression. /// @@ -14589,7 +16356,7 @@ class Libgit2 { int git_config_foreach_match( ffi.Pointer cfg, ffi.Pointer regexp, - ffi.Pointer> callback, + git_config_foreach_cb callback, ffi.Pointer payload, ) { return _git_config_foreach_match( @@ -14600,12 +16367,17 @@ class Libgit2 { ); } - late final _git_config_foreach_match_ptr = - _lookup>( - 'git_config_foreach_match'); - late final _dart_git_config_foreach_match _git_config_foreach_match = - _git_config_foreach_match_ptr - .asFunction<_dart_git_config_foreach_match>(); + late final _git_config_foreach_matchPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + git_config_foreach_cb, + ffi.Pointer)>>('git_config_foreach_match'); + late final _git_config_foreach_match = + _git_config_foreach_matchPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + git_config_foreach_cb, ffi.Pointer)>(); /// Query the value of a config variable and return it mapped to /// an integer constant. @@ -14655,11 +16427,17 @@ class Libgit2 { ); } - late final _git_config_get_mapped_ptr = - _lookup>( - 'git_config_get_mapped'); - late final _dart_git_config_get_mapped _git_config_get_mapped = - _git_config_get_mapped_ptr.asFunction<_dart_git_config_get_mapped>(); + late final _git_config_get_mappedPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + size_t)>>('git_config_get_mapped'); + late final _git_config_get_mapped = _git_config_get_mappedPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer, int)>(); /// Maps a string value to an integer constant /// @@ -14681,12 +16459,14 @@ class Libgit2 { ); } - late final _git_config_lookup_map_value_ptr = - _lookup>( - 'git_config_lookup_map_value'); - late final _dart_git_config_lookup_map_value _git_config_lookup_map_value = - _git_config_lookup_map_value_ptr - .asFunction<_dart_git_config_lookup_map_value>(); + late final _git_config_lookup_map_valuePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + size_t, ffi.Pointer)>>('git_config_lookup_map_value'); + late final _git_config_lookup_map_value = + _git_config_lookup_map_valuePtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer)>(); /// Parse a string value as a bool. /// @@ -14706,11 +16486,12 @@ class Libgit2 { ); } - late final _git_config_parse_bool_ptr = - _lookup>( - 'git_config_parse_bool'); - late final _dart_git_config_parse_bool _git_config_parse_bool = - _git_config_parse_bool_ptr.asFunction<_dart_git_config_parse_bool>(); + late final _git_config_parse_boolPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_config_parse_bool'); + late final _git_config_parse_bool = _git_config_parse_boolPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Parse a string value as an int32. /// @@ -14730,11 +16511,12 @@ class Libgit2 { ); } - late final _git_config_parse_int32_ptr = - _lookup>( - 'git_config_parse_int32'); - late final _dart_git_config_parse_int32 _git_config_parse_int32 = - _git_config_parse_int32_ptr.asFunction<_dart_git_config_parse_int32>(); + late final _git_config_parse_int32Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_config_parse_int32'); + late final _git_config_parse_int32 = _git_config_parse_int32Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Parse a string value as an int64. /// @@ -14754,11 +16536,12 @@ class Libgit2 { ); } - late final _git_config_parse_int64_ptr = - _lookup>( - 'git_config_parse_int64'); - late final _dart_git_config_parse_int64 _git_config_parse_int64 = - _git_config_parse_int64_ptr.asFunction<_dart_git_config_parse_int64>(); + late final _git_config_parse_int64Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_config_parse_int64'); + late final _git_config_parse_int64 = _git_config_parse_int64Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Parse a string value as a path. /// @@ -14781,11 +16564,12 @@ class Libgit2 { ); } - late final _git_config_parse_path_ptr = - _lookup>( - 'git_config_parse_path'); - late final _dart_git_config_parse_path _git_config_parse_path = - _git_config_parse_path_ptr.asFunction<_dart_git_config_parse_path>(); + late final _git_config_parse_pathPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_config_parse_path'); + late final _git_config_parse_path = _git_config_parse_pathPtr + .asFunction, ffi.Pointer)>(); /// Perform an operation on each config variable in a given config backend, /// matching a regular expression. @@ -14804,7 +16588,7 @@ class Libgit2 { int git_config_backend_foreach_match( ffi.Pointer backend, ffi.Pointer regexp, - ffi.Pointer> callback, + git_config_foreach_cb callback, ffi.Pointer payload, ) { return _git_config_backend_foreach_match( @@ -14815,12 +16599,17 @@ class Libgit2 { ); } - late final _git_config_backend_foreach_match_ptr = - _lookup>( - 'git_config_backend_foreach_match'); - late final _dart_git_config_backend_foreach_match - _git_config_backend_foreach_match = _git_config_backend_foreach_match_ptr - .asFunction<_dart_git_config_backend_foreach_match>(); + late final _git_config_backend_foreach_matchPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + git_config_foreach_cb, + ffi.Pointer)>>('git_config_backend_foreach_match'); + late final _git_config_backend_foreach_match = + _git_config_backend_foreach_matchPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + git_config_foreach_cb, ffi.Pointer)>(); /// Lock the backend with the highest priority /// @@ -14846,10 +16635,13 @@ class Libgit2 { ); } - late final _git_config_lock_ptr = - _lookup>('git_config_lock'); - late final _dart_git_config_lock _git_config_lock = - _git_config_lock_ptr.asFunction<_dart_git_config_lock>(); + late final _git_config_lockPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_config_lock'); + late final _git_config_lock = _git_config_lockPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer)>(); /// Initialize git_describe_options structure /// @@ -14869,12 +16661,12 @@ class Libgit2 { ); } - late final _git_describe_options_init_ptr = - _lookup>( - 'git_describe_options_init'); - late final _dart_git_describe_options_init _git_describe_options_init = - _git_describe_options_init_ptr - .asFunction<_dart_git_describe_options_init>(); + late final _git_describe_options_initPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_describe_options_init'); + late final _git_describe_options_init = _git_describe_options_initPtr + .asFunction, int)>(); /// Initialize git_describe_format_options structure /// @@ -14894,12 +16686,13 @@ class Libgit2 { ); } - late final _git_describe_format_options_init_ptr = - _lookup>( - 'git_describe_format_options_init'); - late final _dart_git_describe_format_options_init - _git_describe_format_options_init = _git_describe_format_options_init_ptr - .asFunction<_dart_git_describe_format_options_init>(); + late final _git_describe_format_options_initPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_describe_format_options_init'); + late final _git_describe_format_options_init = + _git_describe_format_options_initPtr.asFunction< + int Function(ffi.Pointer, int)>(); /// Describe a commit /// @@ -14921,11 +16714,15 @@ class Libgit2 { ); } - late final _git_describe_commit_ptr = - _lookup>( - 'git_describe_commit'); - late final _dart_git_describe_commit _git_describe_commit = - _git_describe_commit_ptr.asFunction<_dart_git_describe_commit>(); + late final _git_describe_commitPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>('git_describe_commit'); + late final _git_describe_commit = _git_describe_commitPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer)>(); /// Describe a commit /// @@ -14949,11 +16746,15 @@ class Libgit2 { ); } - late final _git_describe_workdir_ptr = - _lookup>( - 'git_describe_workdir'); - late final _dart_git_describe_workdir _git_describe_workdir = - _git_describe_workdir_ptr.asFunction<_dart_git_describe_workdir>(); + late final _git_describe_workdirPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>('git_describe_workdir'); + late final _git_describe_workdir = _git_describe_workdirPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer)>(); /// Print the describe result to a buffer /// @@ -14973,11 +16774,16 @@ class Libgit2 { ); } - late final _git_describe_format_ptr = - _lookup>( - 'git_describe_format'); - late final _dart_git_describe_format _git_describe_format = - _git_describe_format_ptr.asFunction<_dart_git_describe_format>(); + late final _git_describe_formatPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + 'git_describe_format'); + late final _git_describe_format = _git_describe_formatPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Free the describe result. void git_describe_result_free( @@ -14988,12 +16794,12 @@ class Libgit2 { ); } - late final _git_describe_result_free_ptr = - _lookup>( - 'git_describe_result_free'); - late final _dart_git_describe_result_free _git_describe_result_free = - _git_describe_result_free_ptr - .asFunction<_dart_git_describe_result_free>(); + late final _git_describe_result_freePtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer)>>('git_describe_result_free'); + late final _git_describe_result_free = _git_describe_result_freePtr + .asFunction)>(); /// Return the last `git_error` object that was generated for the /// current thread. @@ -15008,20 +16814,21 @@ class Libgit2 { return _git_error_last(); } - late final _git_error_last_ptr = - _lookup>('git_error_last'); - late final _dart_git_error_last _git_error_last = - _git_error_last_ptr.asFunction<_dart_git_error_last>(); + late final _git_error_lastPtr = + _lookup Function()>>( + 'git_error_last'); + late final _git_error_last = + _git_error_lastPtr.asFunction Function()>(); /// Clear the last library error that occurred for this thread. void git_error_clear() { return _git_error_clear(); } - late final _git_error_clear_ptr = - _lookup>('git_error_clear'); - late final _dart_git_error_clear _git_error_clear = - _git_error_clear_ptr.asFunction<_dart_git_error_clear>(); + late final _git_error_clearPtr = + _lookup>('git_error_clear'); + late final _git_error_clear = + _git_error_clearPtr.asFunction(); /// Set the error message string for this thread. /// @@ -15048,10 +16855,12 @@ class Libgit2 { ); } - late final _git_error_set_str_ptr = - _lookup>('git_error_set_str'); - late final _dart_git_error_set_str _git_error_set_str = - _git_error_set_str_ptr.asFunction<_dart_git_error_set_str>(); + late final _git_error_set_strPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Int32, ffi.Pointer)>>('git_error_set_str'); + late final _git_error_set_str = _git_error_set_strPtr + .asFunction)>(); /// Set the error message to a special value for memory allocation failure. /// @@ -15064,10 +16873,10 @@ class Libgit2 { return _git_error_set_oom(); } - late final _git_error_set_oom_ptr = - _lookup>('git_error_set_oom'); - late final _dart_git_error_set_oom _git_error_set_oom = - _git_error_set_oom_ptr.asFunction<_dart_git_error_set_oom>(); + late final _git_error_set_oomPtr = + _lookup>('git_error_set_oom'); + late final _git_error_set_oom = + _git_error_set_oomPtr.asFunction(); /// Load the filter list for a given path. /// @@ -15100,11 +16909,23 @@ class Libgit2 { ); } - late final _git_filter_list_load_ptr = - _lookup>( - 'git_filter_list_load'); - late final _dart_git_filter_list_load _git_filter_list_load = - _git_filter_list_load_ptr.asFunction<_dart_git_filter_list_load>(); + late final _git_filter_list_loadPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Uint32)>>('git_filter_list_load'); + late final _git_filter_list_load = _git_filter_list_loadPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int)>(); /// Load the filter list for a given path. /// @@ -15137,12 +16958,24 @@ class Libgit2 { ); } - late final _git_filter_list_load_ext_ptr = - _lookup>( - 'git_filter_list_load_ext'); - late final _dart_git_filter_list_load_ext _git_filter_list_load_ext = - _git_filter_list_load_ext_ptr - .asFunction<_dart_git_filter_list_load_ext>(); + late final _git_filter_list_load_extPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer)>>('git_filter_list_load_ext'); + late final _git_filter_list_load_ext = + _git_filter_list_load_extPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer)>(); /// Query the filter list to see if a given filter (by name) will run. /// The built-in filters "crlf" and "ident" can be queried, otherwise this @@ -15164,12 +16997,13 @@ class Libgit2 { ); } - late final _git_filter_list_contains_ptr = - _lookup>( - 'git_filter_list_contains'); - late final _dart_git_filter_list_contains _git_filter_list_contains = - _git_filter_list_contains_ptr - .asFunction<_dart_git_filter_list_contains>(); + late final _git_filter_list_containsPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_filter_list_contains'); + late final _git_filter_list_contains = + _git_filter_list_containsPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Apply filter list to a data buffer. /// @@ -15181,23 +17015,28 @@ class Libgit2 { int git_filter_list_apply_to_buffer( ffi.Pointer out, ffi.Pointer filters, - ffi.Pointer in_1, + ffi.Pointer in1, int in_len, ) { return _git_filter_list_apply_to_buffer( out, filters, - in_1, + in1, in_len, ); } - late final _git_filter_list_apply_to_buffer_ptr = - _lookup>( - 'git_filter_list_apply_to_buffer'); - late final _dart_git_filter_list_apply_to_buffer - _git_filter_list_apply_to_buffer = _git_filter_list_apply_to_buffer_ptr - .asFunction<_dart_git_filter_list_apply_to_buffer>(); + late final _git_filter_list_apply_to_bufferPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + size_t)>>('git_filter_list_apply_to_buffer'); + late final _git_filter_list_apply_to_buffer = + _git_filter_list_apply_to_bufferPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); /// Apply a filter list to the contents of a file on disk /// @@ -15220,12 +17059,17 @@ class Libgit2 { ); } - late final _git_filter_list_apply_to_file_ptr = - _lookup>( - 'git_filter_list_apply_to_file'); - late final _dart_git_filter_list_apply_to_file - _git_filter_list_apply_to_file = _git_filter_list_apply_to_file_ptr - .asFunction<_dart_git_filter_list_apply_to_file>(); + late final _git_filter_list_apply_to_filePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_filter_list_apply_to_file'); + late final _git_filter_list_apply_to_file = + _git_filter_list_apply_to_filePtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); /// Apply a filter list to the contents of a blob /// @@ -15244,12 +17088,14 @@ class Libgit2 { ); } - late final _git_filter_list_apply_to_blob_ptr = - _lookup>( - 'git_filter_list_apply_to_blob'); - late final _dart_git_filter_list_apply_to_blob - _git_filter_list_apply_to_blob = _git_filter_list_apply_to_blob_ptr - .asFunction<_dart_git_filter_list_apply_to_blob>(); + late final _git_filter_list_apply_to_blobPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_filter_list_apply_to_blob'); + late final _git_filter_list_apply_to_blob = + _git_filter_list_apply_to_blobPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Apply a filter list to an arbitrary buffer as a stream /// @@ -15271,12 +17117,17 @@ class Libgit2 { ); } - late final _git_filter_list_stream_buffer_ptr = - _lookup>( - 'git_filter_list_stream_buffer'); - late final _dart_git_filter_list_stream_buffer - _git_filter_list_stream_buffer = _git_filter_list_stream_buffer_ptr - .asFunction<_dart_git_filter_list_stream_buffer>(); + late final _git_filter_list_stream_bufferPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + size_t, + ffi.Pointer)>>('git_filter_list_stream_buffer'); + late final _git_filter_list_stream_buffer = + _git_filter_list_stream_bufferPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer)>(); /// Apply a filter list to a file as a stream /// @@ -15299,12 +17150,20 @@ class Libgit2 { ); } - late final _git_filter_list_stream_file_ptr = - _lookup>( - 'git_filter_list_stream_file'); - late final _dart_git_filter_list_stream_file _git_filter_list_stream_file = - _git_filter_list_stream_file_ptr - .asFunction<_dart_git_filter_list_stream_file>(); + late final _git_filter_list_stream_filePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_filter_list_stream_file'); + late final _git_filter_list_stream_file = + _git_filter_list_stream_filePtr.asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// Apply a filter list to a blob as a stream /// @@ -15323,12 +17182,16 @@ class Libgit2 { ); } - late final _git_filter_list_stream_blob_ptr = - _lookup>( - 'git_filter_list_stream_blob'); - late final _dart_git_filter_list_stream_blob _git_filter_list_stream_blob = - _git_filter_list_stream_blob_ptr - .asFunction<_dart_git_filter_list_stream_blob>(); + late final _git_filter_list_stream_blobPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_filter_list_stream_blob'); + late final _git_filter_list_stream_blob = + _git_filter_list_stream_blobPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Free a git_filter_list /// @@ -15341,11 +17204,11 @@ class Libgit2 { ); } - late final _git_filter_list_free_ptr = - _lookup>( - 'git_filter_list_free'); - late final _dart_git_filter_list_free _git_filter_list_free = - _git_filter_list_free_ptr.asFunction<_dart_git_filter_list_free>(); + late final _git_filter_list_freePtr = _lookup< + ffi.NativeFunction)>>( + 'git_filter_list_free'); + late final _git_filter_list_free = _git_filter_list_freePtr + .asFunction)>(); /// Initialize git_rebase_options structure /// @@ -15365,11 +17228,12 @@ class Libgit2 { ); } - late final _git_rebase_options_init_ptr = - _lookup>( - 'git_rebase_options_init'); - late final _dart_git_rebase_options_init _git_rebase_options_init = - _git_rebase_options_init_ptr.asFunction<_dart_git_rebase_options_init>(); + late final _git_rebase_options_initPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_rebase_options_init'); + late final _git_rebase_options_init = _git_rebase_options_initPtr + .asFunction, int)>(); /// Initializes a rebase operation to rebase the changes in `branch` /// relative to `upstream` onto another branch. To begin the rebase @@ -15404,10 +17268,23 @@ class Libgit2 { ); } - late final _git_rebase_init_ptr = - _lookup>('git_rebase_init'); - late final _dart_git_rebase_init _git_rebase_init = - _git_rebase_init_ptr.asFunction<_dart_git_rebase_init>(); + late final _git_rebase_initPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_rebase_init'); + late final _git_rebase_init = _git_rebase_initPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// Opens an existing rebase that was previously started by either an /// invocation of `git_rebase_init` or by another client. @@ -15428,10 +17305,15 @@ class Libgit2 { ); } - late final _git_rebase_open_ptr = - _lookup>('git_rebase_open'); - late final _dart_git_rebase_open _git_rebase_open = - _git_rebase_open_ptr.asFunction<_dart_git_rebase_open>(); + late final _git_rebase_openPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>('git_rebase_open'); + late final _git_rebase_open = _git_rebase_openPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer)>(); /// Gets the original `HEAD` ref name for merge rebases. /// @@ -15444,12 +17326,12 @@ class Libgit2 { ); } - late final _git_rebase_orig_head_name_ptr = - _lookup>( - 'git_rebase_orig_head_name'); - late final _dart_git_rebase_orig_head_name _git_rebase_orig_head_name = - _git_rebase_orig_head_name_ptr - .asFunction<_dart_git_rebase_orig_head_name>(); + late final _git_rebase_orig_head_namePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_rebase_orig_head_name'); + late final _git_rebase_orig_head_name = _git_rebase_orig_head_namePtr + .asFunction Function(ffi.Pointer)>(); /// Gets the original `HEAD` id for merge rebases. /// @@ -15462,11 +17344,12 @@ class Libgit2 { ); } - late final _git_rebase_orig_head_id_ptr = - _lookup>( - 'git_rebase_orig_head_id'); - late final _dart_git_rebase_orig_head_id _git_rebase_orig_head_id = - _git_rebase_orig_head_id_ptr.asFunction<_dart_git_rebase_orig_head_id>(); + late final _git_rebase_orig_head_idPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_rebase_orig_head_id'); + late final _git_rebase_orig_head_id = _git_rebase_orig_head_idPtr + .asFunction Function(ffi.Pointer)>(); /// Gets the `onto` ref name for merge rebases. /// @@ -15479,11 +17362,12 @@ class Libgit2 { ); } - late final _git_rebase_onto_name_ptr = - _lookup>( - 'git_rebase_onto_name'); - late final _dart_git_rebase_onto_name _git_rebase_onto_name = - _git_rebase_onto_name_ptr.asFunction<_dart_git_rebase_onto_name>(); + late final _git_rebase_onto_namePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_rebase_onto_name'); + late final _git_rebase_onto_name = _git_rebase_onto_namePtr + .asFunction Function(ffi.Pointer)>(); /// Gets the `onto` id for merge rebases. /// @@ -15496,10 +17380,12 @@ class Libgit2 { ); } - late final _git_rebase_onto_id_ptr = - _lookup>('git_rebase_onto_id'); - late final _dart_git_rebase_onto_id _git_rebase_onto_id = - _git_rebase_onto_id_ptr.asFunction<_dart_git_rebase_onto_id>(); + late final _git_rebase_onto_idPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_rebase_onto_id'); + late final _git_rebase_onto_id = _git_rebase_onto_idPtr + .asFunction Function(ffi.Pointer)>(); /// Gets the count of rebase operations that are to be applied. /// @@ -15513,12 +17399,12 @@ class Libgit2 { ); } - late final _git_rebase_operation_entrycount_ptr = - _lookup>( + late final _git_rebase_operation_entrycountPtr = + _lookup)>>( 'git_rebase_operation_entrycount'); - late final _dart_git_rebase_operation_entrycount - _git_rebase_operation_entrycount = _git_rebase_operation_entrycount_ptr - .asFunction<_dart_git_rebase_operation_entrycount>(); + late final _git_rebase_operation_entrycount = + _git_rebase_operation_entrycountPtr + .asFunction)>(); /// Gets the index of the rebase operation that is currently being applied. /// If the first operation has not yet been applied (because you have @@ -15535,12 +17421,11 @@ class Libgit2 { ); } - late final _git_rebase_operation_current_ptr = - _lookup>( + late final _git_rebase_operation_currentPtr = + _lookup)>>( 'git_rebase_operation_current'); - late final _dart_git_rebase_operation_current _git_rebase_operation_current = - _git_rebase_operation_current_ptr - .asFunction<_dart_git_rebase_operation_current>(); + late final _git_rebase_operation_current = _git_rebase_operation_currentPtr + .asFunction)>(); /// Gets the rebase operation specified by the given index. /// @@ -15557,12 +17442,14 @@ class Libgit2 { ); } - late final _git_rebase_operation_byindex_ptr = - _lookup>( - 'git_rebase_operation_byindex'); - late final _dart_git_rebase_operation_byindex _git_rebase_operation_byindex = - _git_rebase_operation_byindex_ptr - .asFunction<_dart_git_rebase_operation_byindex>(); + late final _git_rebase_operation_byindexPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + size_t)>>('git_rebase_operation_byindex'); + late final _git_rebase_operation_byindex = + _git_rebase_operation_byindexPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, int)>(); /// Performs the next rebase operation and returns the information about it. /// If the operation is one that applies a patch (which is any operation except @@ -15583,10 +17470,13 @@ class Libgit2 { ); } - late final _git_rebase_next_ptr = - _lookup>('git_rebase_next'); - late final _dart_git_rebase_next _git_rebase_next = - _git_rebase_next_ptr.asFunction<_dart_git_rebase_next>(); + late final _git_rebase_nextPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_rebase_next'); + late final _git_rebase_next = _git_rebase_nextPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer)>(); /// Gets the index produced by the last operation, which is the result /// of `git_rebase_next` and which will be committed by the next @@ -15607,12 +17497,14 @@ class Libgit2 { ); } - late final _git_rebase_inmemory_index_ptr = - _lookup>( - 'git_rebase_inmemory_index'); - late final _dart_git_rebase_inmemory_index _git_rebase_inmemory_index = - _git_rebase_inmemory_index_ptr - .asFunction<_dart_git_rebase_inmemory_index>(); + late final _git_rebase_inmemory_indexPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_rebase_inmemory_index'); + late final _git_rebase_inmemory_index = + _git_rebase_inmemory_indexPtr.asFunction< + int Function( + ffi.Pointer>, ffi.Pointer)>(); /// Commits the current patch. You must have resolved any conflicts that /// were introduced during the patch application from the `git_rebase_next` @@ -15652,10 +17544,23 @@ class Libgit2 { ); } - late final _git_rebase_commit_ptr = - _lookup>('git_rebase_commit'); - late final _dart_git_rebase_commit _git_rebase_commit = - _git_rebase_commit_ptr.asFunction<_dart_git_rebase_commit>(); + late final _git_rebase_commitPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_rebase_commit'); + late final _git_rebase_commit = _git_rebase_commitPtr.asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// Aborts a rebase that is currently in progress, resetting the repository /// and working directory to their state before rebase began. @@ -15671,10 +17576,11 @@ class Libgit2 { ); } - late final _git_rebase_abort_ptr = - _lookup>('git_rebase_abort'); - late final _dart_git_rebase_abort _git_rebase_abort = - _git_rebase_abort_ptr.asFunction<_dart_git_rebase_abort>(); + late final _git_rebase_abortPtr = + _lookup)>>( + 'git_rebase_abort'); + late final _git_rebase_abort = + _git_rebase_abortPtr.asFunction)>(); /// Finishes a rebase that is currently in progress once all patches have /// been applied. @@ -15692,10 +17598,12 @@ class Libgit2 { ); } - late final _git_rebase_finish_ptr = - _lookup>('git_rebase_finish'); - late final _dart_git_rebase_finish _git_rebase_finish = - _git_rebase_finish_ptr.asFunction<_dart_git_rebase_finish>(); + late final _git_rebase_finishPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_rebase_finish'); + late final _git_rebase_finish = _git_rebase_finishPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Frees the `git_rebase` object. /// @@ -15708,10 +17616,11 @@ class Libgit2 { ); } - late final _git_rebase_free_ptr = - _lookup>('git_rebase_free'); - late final _dart_git_rebase_free _git_rebase_free = - _git_rebase_free_ptr.asFunction<_dart_git_rebase_free>(); + late final _git_rebase_freePtr = + _lookup)>>( + 'git_rebase_free'); + late final _git_rebase_free = + _git_rebase_freePtr.asFunction)>(); /// Sets the system tracing configuration to the specified level with the /// specified callback. When system events occur at a level equal to, or @@ -15722,7 +17631,7 @@ class Libgit2 { /// @return 0 or an error code int git_trace_set( int level, - ffi.Pointer> cb, + git_trace_cb cb, ) { return _git_trace_set( level, @@ -15730,10 +17639,11 @@ class Libgit2 { ); } - late final _git_trace_set_ptr = - _lookup>('git_trace_set'); - late final _dart_git_trace_set _git_trace_set = - _git_trace_set_ptr.asFunction<_dart_git_trace_set>(); + late final _git_trace_setPtr = + _lookup>( + 'git_trace_set'); + late final _git_trace_set = + _git_trace_setPtr.asFunction(); /// Initialize git_revert_options structure /// @@ -15753,11 +17663,12 @@ class Libgit2 { ); } - late final _git_revert_options_init_ptr = - _lookup>( - 'git_revert_options_init'); - late final _dart_git_revert_options_init _git_revert_options_init = - _git_revert_options_init_ptr.asFunction<_dart_git_revert_options_init>(); + late final _git_revert_options_initPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_revert_options_init'); + late final _git_revert_options_init = _git_revert_options_initPtr + .asFunction, int)>(); /// Reverts the given commit against the given "our" commit, producing an /// index that reflects the result of the revert. @@ -15789,10 +17700,23 @@ class Libgit2 { ); } - late final _git_revert_commit_ptr = - _lookup>('git_revert_commit'); - late final _dart_git_revert_commit _git_revert_commit = - _git_revert_commit_ptr.asFunction<_dart_git_revert_commit>(); + late final _git_revert_commitPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Uint32, + ffi.Pointer)>>('git_revert_commit'); + late final _git_revert_commit = _git_revert_commitPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer)>(); /// Reverts the given commit, producing changes in the index and working directory. /// @@ -15812,10 +17736,15 @@ class Libgit2 { ); } - late final _git_revert_ptr = - _lookup>('git_revert'); - late final _dart_git_revert _git_revert = - _git_revert_ptr.asFunction<_dart_git_revert>(); + late final _git_revertPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_revert'); + late final _git_revert = _git_revertPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Find a single object, as specified by a revision string. /// @@ -15842,11 +17771,15 @@ class Libgit2 { ); } - late final _git_revparse_single_ptr = - _lookup>( - 'git_revparse_single'); - late final _dart_git_revparse_single _git_revparse_single = - _git_revparse_single_ptr.asFunction<_dart_git_revparse_single>(); + late final _git_revparse_singlePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>('git_revparse_single'); + late final _git_revparse_single = _git_revparse_singlePtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer)>(); /// Find a single object and intermediate reference by a revision string. /// @@ -15881,10 +17814,19 @@ class Libgit2 { ); } - late final _git_revparse_ext_ptr = - _lookup>('git_revparse_ext'); - late final _dart_git_revparse_ext _git_revparse_ext = - _git_revparse_ext_ptr.asFunction<_dart_git_revparse_ext>(); + late final _git_revparse_extPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>('git_revparse_ext'); + late final _git_revparse_ext = _git_revparse_extPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>(); /// Parse a revision string for `from`, `to`, and intent. /// @@ -15909,10 +17851,15 @@ class Libgit2 { ); } - late final _git_revparse_ptr = - _lookup>('git_revparse'); - late final _dart_git_revparse _git_revparse = - _git_revparse_ptr.asFunction<_dart_git_revparse>(); + late final _git_revparsePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_revparse'); + late final _git_revparse = _git_revparsePtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Save the local modifications to a new stash. /// @@ -15945,10 +17892,17 @@ class Libgit2 { ); } - late final _git_stash_save_ptr = - _lookup>('git_stash_save'); - late final _dart_git_stash_save _git_stash_save = - _git_stash_save_ptr.asFunction<_dart_git_stash_save>(); + late final _git_stash_savePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Uint32)>>('git_stash_save'); + late final _git_stash_save = _git_stash_savePtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer, int)>(); /// Initialize git_stash_apply_options structure /// @@ -15968,12 +17922,12 @@ class Libgit2 { ); } - late final _git_stash_apply_options_init_ptr = - _lookup>( - 'git_stash_apply_options_init'); - late final _dart_git_stash_apply_options_init _git_stash_apply_options_init = - _git_stash_apply_options_init_ptr - .asFunction<_dart_git_stash_apply_options_init>(); + late final _git_stash_apply_options_initPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_stash_apply_options_init'); + late final _git_stash_apply_options_init = _git_stash_apply_options_initPtr + .asFunction, int)>(); /// Apply a single stashed state from the stash list. /// @@ -16011,10 +17965,13 @@ class Libgit2 { ); } - late final _git_stash_apply_ptr = - _lookup>('git_stash_apply'); - late final _dart_git_stash_apply _git_stash_apply = - _git_stash_apply_ptr.asFunction<_dart_git_stash_apply>(); + late final _git_stash_applyPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, size_t, + ffi.Pointer)>>('git_stash_apply'); + late final _git_stash_apply = _git_stash_applyPtr.asFunction< + int Function(ffi.Pointer, int, + ffi.Pointer)>(); /// Loop over all the stashed states and issue a callback for each one. /// @@ -16030,7 +17987,7 @@ class Libgit2 { /// @return 0 on success, non-zero callback return value, or error code. int git_stash_foreach( ffi.Pointer repo, - ffi.Pointer> callback, + git_stash_cb callback, ffi.Pointer payload, ) { return _git_stash_foreach( @@ -16040,10 +17997,13 @@ class Libgit2 { ); } - late final _git_stash_foreach_ptr = - _lookup>('git_stash_foreach'); - late final _dart_git_stash_foreach _git_stash_foreach = - _git_stash_foreach_ptr.asFunction<_dart_git_stash_foreach>(); + late final _git_stash_foreachPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, git_stash_cb, + ffi.Pointer)>>('git_stash_foreach'); + late final _git_stash_foreach = _git_stash_foreachPtr.asFunction< + int Function( + ffi.Pointer, git_stash_cb, ffi.Pointer)>(); /// Remove a single stashed state from the stash list. /// @@ -16064,10 +18024,12 @@ class Libgit2 { ); } - late final _git_stash_drop_ptr = - _lookup>('git_stash_drop'); - late final _dart_git_stash_drop _git_stash_drop = - _git_stash_drop_ptr.asFunction<_dart_git_stash_drop>(); + late final _git_stash_dropPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, size_t)>>('git_stash_drop'); + late final _git_stash_drop = _git_stash_dropPtr + .asFunction, int)>(); /// Apply a single stashed state from the stash list and remove it from the list /// if successful. @@ -16091,10 +18053,13 @@ class Libgit2 { ); } - late final _git_stash_pop_ptr = - _lookup>('git_stash_pop'); - late final _dart_git_stash_pop _git_stash_pop = - _git_stash_pop_ptr.asFunction<_dart_git_stash_pop>(); + late final _git_stash_popPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, size_t, + ffi.Pointer)>>('git_stash_pop'); + late final _git_stash_pop = _git_stash_popPtr.asFunction< + int Function(ffi.Pointer, int, + ffi.Pointer)>(); /// Initialize git_status_options structure /// @@ -16114,11 +18079,12 @@ class Libgit2 { ); } - late final _git_status_options_init_ptr = - _lookup>( - 'git_status_options_init'); - late final _dart_git_status_options_init _git_status_options_init = - _git_status_options_init_ptr.asFunction<_dart_git_status_options_init>(); + late final _git_status_options_initPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_status_options_init'); + late final _git_status_options_init = _git_status_options_initPtr + .asFunction, int)>(); /// Gather file statuses and run a callback for each one. /// @@ -16135,7 +18101,7 @@ class Libgit2 { /// @return 0 on success, non-zero callback return value, or error code int git_status_foreach( ffi.Pointer repo, - ffi.Pointer> callback, + git_status_cb callback, ffi.Pointer payload, ) { return _git_status_foreach( @@ -16145,10 +18111,13 @@ class Libgit2 { ); } - late final _git_status_foreach_ptr = - _lookup>('git_status_foreach'); - late final _dart_git_status_foreach _git_status_foreach = - _git_status_foreach_ptr.asFunction<_dart_git_status_foreach>(); + late final _git_status_foreachPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, git_status_cb, + ffi.Pointer)>>('git_status_foreach'); + late final _git_status_foreach = _git_status_foreachPtr.asFunction< + int Function( + ffi.Pointer, git_status_cb, ffi.Pointer)>(); /// Gather file status information and run callbacks as requested. /// @@ -16170,7 +18139,7 @@ class Libgit2 { int git_status_foreach_ext( ffi.Pointer repo, ffi.Pointer opts, - ffi.Pointer> callback, + git_status_cb callback, ffi.Pointer payload, ) { return _git_status_foreach_ext( @@ -16181,11 +18150,16 @@ class Libgit2 { ); } - late final _git_status_foreach_ext_ptr = - _lookup>( - 'git_status_foreach_ext'); - late final _dart_git_status_foreach_ext _git_status_foreach_ext = - _git_status_foreach_ext_ptr.asFunction<_dart_git_status_foreach_ext>(); + late final _git_status_foreach_extPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + git_status_cb, + ffi.Pointer)>>('git_status_foreach_ext'); + late final _git_status_foreach_ext = _git_status_foreach_extPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + git_status_cb, ffi.Pointer)>(); /// Get file status for a single file. /// @@ -16223,10 +18197,15 @@ class Libgit2 { ); } - late final _git_status_file_ptr = - _lookup>('git_status_file'); - late final _dart_git_status_file _git_status_file = - _git_status_file_ptr.asFunction<_dart_git_status_file>(); + late final _git_status_filePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_status_file'); + late final _git_status_file = _git_status_filePtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Gather file status information and populate the `git_status_list`. /// @@ -16251,11 +18230,15 @@ class Libgit2 { ); } - late final _git_status_list_new_ptr = - _lookup>( - 'git_status_list_new'); - late final _dart_git_status_list_new _git_status_list_new = - _git_status_list_new_ptr.asFunction<_dart_git_status_list_new>(); + late final _git_status_list_newPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>('git_status_list_new'); + late final _git_status_list_new = _git_status_list_newPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer)>(); /// Gets the count of status entries in this list. /// @@ -16272,12 +18255,11 @@ class Libgit2 { ); } - late final _git_status_list_entrycount_ptr = - _lookup>( - 'git_status_list_entrycount'); - late final _dart_git_status_list_entrycount _git_status_list_entrycount = - _git_status_list_entrycount_ptr - .asFunction<_dart_git_status_list_entrycount>(); + late final _git_status_list_entrycountPtr = _lookup< + ffi.NativeFunction)>>( + 'git_status_list_entrycount'); + late final _git_status_list_entrycount = _git_status_list_entrycountPtr + .asFunction)>(); /// Get a pointer to one of the entries in the status list. /// @@ -16296,10 +18278,13 @@ class Libgit2 { ); } - late final _git_status_byindex_ptr = - _lookup>('git_status_byindex'); - late final _dart_git_status_byindex _git_status_byindex = - _git_status_byindex_ptr.asFunction<_dart_git_status_byindex>(); + late final _git_status_byindexPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, size_t)>>('git_status_byindex'); + late final _git_status_byindex = _git_status_byindexPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, int)>(); /// Free an existing status list /// @@ -16312,11 +18297,11 @@ class Libgit2 { ); } - late final _git_status_list_free_ptr = - _lookup>( - 'git_status_list_free'); - late final _dart_git_status_list_free _git_status_list_free = - _git_status_list_free_ptr.asFunction<_dart_git_status_list_free>(); + late final _git_status_list_freePtr = _lookup< + ffi.NativeFunction)>>( + 'git_status_list_free'); + late final _git_status_list_free = _git_status_list_freePtr + .asFunction)>(); /// Test if the ignore rules apply to a given file. /// @@ -16344,12 +18329,16 @@ class Libgit2 { ); } - late final _git_status_should_ignore_ptr = - _lookup>( - 'git_status_should_ignore'); - late final _dart_git_status_should_ignore _git_status_should_ignore = - _git_status_should_ignore_ptr - .asFunction<_dart_git_status_should_ignore>(); + late final _git_status_should_ignorePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_status_should_ignore'); + late final _git_status_should_ignore = + _git_status_should_ignorePtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Initialize git_submodule_update_options structure /// @@ -16369,13 +18358,13 @@ class Libgit2 { ); } - late final _git_submodule_update_options_init_ptr = - _lookup>( - 'git_submodule_update_options_init'); - late final _dart_git_submodule_update_options_init - _git_submodule_update_options_init = - _git_submodule_update_options_init_ptr - .asFunction<_dart_git_submodule_update_options_init>(); + late final _git_submodule_update_options_initPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_submodule_update_options_init'); + late final _git_submodule_update_options_init = + _git_submodule_update_options_initPtr.asFunction< + int Function(ffi.Pointer, int)>(); /// Update a submodule. This will clone a missing submodule and /// checkout the subrepository to the commit specified in the index of @@ -16405,11 +18394,14 @@ class Libgit2 { ); } - late final _git_submodule_update_ptr = - _lookup>( - 'git_submodule_update'); - late final _dart_git_submodule_update _git_submodule_update = - _git_submodule_update_ptr.asFunction<_dart_git_submodule_update>(); + late final _git_submodule_updatePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Int32, + ffi.Pointer)>>( + 'git_submodule_update'); + late final _git_submodule_update = _git_submodule_updatePtr.asFunction< + int Function(ffi.Pointer, int, + ffi.Pointer)>(); /// Lookup submodule information by name or path. /// @@ -16448,11 +18440,15 @@ class Libgit2 { ); } - late final _git_submodule_lookup_ptr = - _lookup>( - 'git_submodule_lookup'); - late final _dart_git_submodule_lookup _git_submodule_lookup = - _git_submodule_lookup_ptr.asFunction<_dart_git_submodule_lookup>(); + late final _git_submodule_lookupPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>('git_submodule_lookup'); + late final _git_submodule_lookup = _git_submodule_lookupPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer)>(); /// Create an in-memory copy of a submodule. The copy must be explicitly /// free'd or it will leak. @@ -16469,10 +18465,13 @@ class Libgit2 { ); } - late final _git_submodule_dup_ptr = - _lookup>('git_submodule_dup'); - late final _dart_git_submodule_dup _git_submodule_dup = - _git_submodule_dup_ptr.asFunction<_dart_git_submodule_dup>(); + late final _git_submodule_dupPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_submodule_dup'); + late final _git_submodule_dup = _git_submodule_dupPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer)>(); /// Release a submodule /// @@ -16485,10 +18484,11 @@ class Libgit2 { ); } - late final _git_submodule_free_ptr = - _lookup>('git_submodule_free'); - late final _dart_git_submodule_free _git_submodule_free = - _git_submodule_free_ptr.asFunction<_dart_git_submodule_free>(); + late final _git_submodule_freePtr = _lookup< + ffi.NativeFunction)>>( + 'git_submodule_free'); + late final _git_submodule_free = _git_submodule_freePtr + .asFunction)>(); /// Iterate over all tracked submodules of a repository. /// @@ -16508,7 +18508,7 @@ class Libgit2 { /// @return 0 on success, -1 on error, or non-zero return value of callback int git_submodule_foreach( ffi.Pointer repo, - ffi.Pointer> callback, + git_submodule_cb callback, ffi.Pointer payload, ) { return _git_submodule_foreach( @@ -16518,11 +18518,13 @@ class Libgit2 { ); } - late final _git_submodule_foreach_ptr = - _lookup>( - 'git_submodule_foreach'); - late final _dart_git_submodule_foreach _git_submodule_foreach = - _git_submodule_foreach_ptr.asFunction<_dart_git_submodule_foreach>(); + late final _git_submodule_foreachPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, git_submodule_cb, + ffi.Pointer)>>('git_submodule_foreach'); + late final _git_submodule_foreach = _git_submodule_foreachPtr.asFunction< + int Function(ffi.Pointer, git_submodule_cb, + ffi.Pointer)>(); /// Set up a new git submodule for checkout. /// @@ -16564,11 +18566,21 @@ class Libgit2 { ); } - late final _git_submodule_add_setup_ptr = - _lookup>( - 'git_submodule_add_setup'); - late final _dart_git_submodule_add_setup _git_submodule_add_setup = - _git_submodule_add_setup_ptr.asFunction<_dart_git_submodule_add_setup>(); + late final _git_submodule_add_setupPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('git_submodule_add_setup'); + late final _git_submodule_add_setup = _git_submodule_add_setupPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int)>(); /// Perform the clone step for a newly created submodule. /// @@ -16591,11 +18603,18 @@ class Libgit2 { ); } - late final _git_submodule_clone_ptr = - _lookup>( - 'git_submodule_clone'); - late final _dart_git_submodule_clone _git_submodule_clone = - _git_submodule_clone_ptr.asFunction<_dart_git_submodule_clone>(); + late final _git_submodule_clonePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>( + 'git_submodule_clone'); + late final _git_submodule_clone = _git_submodule_clonePtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>(); /// Resolve the setup of a new git submodule. /// @@ -16613,12 +18632,11 @@ class Libgit2 { ); } - late final _git_submodule_add_finalize_ptr = - _lookup>( - 'git_submodule_add_finalize'); - late final _dart_git_submodule_add_finalize _git_submodule_add_finalize = - _git_submodule_add_finalize_ptr - .asFunction<_dart_git_submodule_add_finalize>(); + late final _git_submodule_add_finalizePtr = _lookup< + ffi.NativeFunction)>>( + 'git_submodule_add_finalize'); + late final _git_submodule_add_finalize = _git_submodule_add_finalizePtr + .asFunction)>(); /// Add current submodule HEAD commit to index of superproject. /// @@ -16638,12 +18656,12 @@ class Libgit2 { ); } - late final _git_submodule_add_to_index_ptr = - _lookup>( - 'git_submodule_add_to_index'); - late final _dart_git_submodule_add_to_index _git_submodule_add_to_index = - _git_submodule_add_to_index_ptr - .asFunction<_dart_git_submodule_add_to_index>(); + late final _git_submodule_add_to_indexPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Int32)>>('git_submodule_add_to_index'); + late final _git_submodule_add_to_index = _git_submodule_add_to_indexPtr + .asFunction, int)>(); /// Get the containing repository for a submodule. /// @@ -16662,11 +18680,12 @@ class Libgit2 { ); } - late final _git_submodule_owner_ptr = - _lookup>( - 'git_submodule_owner'); - late final _dart_git_submodule_owner _git_submodule_owner = - _git_submodule_owner_ptr.asFunction<_dart_git_submodule_owner>(); + late final _git_submodule_ownerPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_submodule_owner'); + late final _git_submodule_owner = _git_submodule_ownerPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); /// Get the name of submodule. /// @@ -16680,10 +18699,12 @@ class Libgit2 { ); } - late final _git_submodule_name_ptr = - _lookup>('git_submodule_name'); - late final _dart_git_submodule_name _git_submodule_name = - _git_submodule_name_ptr.asFunction<_dart_git_submodule_name>(); + late final _git_submodule_namePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_submodule_name'); + late final _git_submodule_name = _git_submodule_namePtr + .asFunction Function(ffi.Pointer)>(); /// Get the path to the submodule. /// @@ -16700,10 +18721,12 @@ class Libgit2 { ); } - late final _git_submodule_path_ptr = - _lookup>('git_submodule_path'); - late final _dart_git_submodule_path _git_submodule_path = - _git_submodule_path_ptr.asFunction<_dart_git_submodule_path>(); + late final _git_submodule_pathPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_submodule_path'); + late final _git_submodule_path = _git_submodule_pathPtr + .asFunction Function(ffi.Pointer)>(); /// Get the URL for the submodule. /// @@ -16717,10 +18740,12 @@ class Libgit2 { ); } - late final _git_submodule_url_ptr = - _lookup>('git_submodule_url'); - late final _dart_git_submodule_url _git_submodule_url = - _git_submodule_url_ptr.asFunction<_dart_git_submodule_url>(); + late final _git_submodule_urlPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_submodule_url'); + late final _git_submodule_url = _git_submodule_urlPtr + .asFunction Function(ffi.Pointer)>(); /// Resolve a submodule url relative to the given repository. /// @@ -16740,12 +18765,14 @@ class Libgit2 { ); } - late final _git_submodule_resolve_url_ptr = - _lookup>( - 'git_submodule_resolve_url'); - late final _dart_git_submodule_resolve_url _git_submodule_resolve_url = - _git_submodule_resolve_url_ptr - .asFunction<_dart_git_submodule_resolve_url>(); + late final _git_submodule_resolve_urlPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_submodule_resolve_url'); + late final _git_submodule_resolve_url = + _git_submodule_resolve_urlPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Get the branch for the submodule. /// @@ -16759,11 +18786,12 @@ class Libgit2 { ); } - late final _git_submodule_branch_ptr = - _lookup>( - 'git_submodule_branch'); - late final _dart_git_submodule_branch _git_submodule_branch = - _git_submodule_branch_ptr.asFunction<_dart_git_submodule_branch>(); + late final _git_submodule_branchPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_submodule_branch'); + late final _git_submodule_branch = _git_submodule_branchPtr + .asFunction Function(ffi.Pointer)>(); /// Set the branch for the submodule in the configuration /// @@ -16786,12 +18814,14 @@ class Libgit2 { ); } - late final _git_submodule_set_branch_ptr = - _lookup>( - 'git_submodule_set_branch'); - late final _dart_git_submodule_set_branch _git_submodule_set_branch = - _git_submodule_set_branch_ptr - .asFunction<_dart_git_submodule_set_branch>(); + late final _git_submodule_set_branchPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_submodule_set_branch'); + late final _git_submodule_set_branch = + _git_submodule_set_branchPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Set the URL for the submodule in the configuration /// @@ -16815,11 +18845,13 @@ class Libgit2 { ); } - late final _git_submodule_set_url_ptr = - _lookup>( - 'git_submodule_set_url'); - late final _dart_git_submodule_set_url _git_submodule_set_url = - _git_submodule_set_url_ptr.asFunction<_dart_git_submodule_set_url>(); + late final _git_submodule_set_urlPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_submodule_set_url'); + late final _git_submodule_set_url = _git_submodule_set_urlPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Get the OID for the submodule in the index. /// @@ -16833,11 +18865,12 @@ class Libgit2 { ); } - late final _git_submodule_index_id_ptr = - _lookup>( - 'git_submodule_index_id'); - late final _dart_git_submodule_index_id _git_submodule_index_id = - _git_submodule_index_id_ptr.asFunction<_dart_git_submodule_index_id>(); + late final _git_submodule_index_idPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_submodule_index_id'); + late final _git_submodule_index_id = _git_submodule_index_idPtr + .asFunction Function(ffi.Pointer)>(); /// Get the OID for the submodule in the current HEAD tree. /// @@ -16851,11 +18884,12 @@ class Libgit2 { ); } - late final _git_submodule_head_id_ptr = - _lookup>( - 'git_submodule_head_id'); - late final _dart_git_submodule_head_id _git_submodule_head_id = - _git_submodule_head_id_ptr.asFunction<_dart_git_submodule_head_id>(); + late final _git_submodule_head_idPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_submodule_head_id'); + late final _git_submodule_head_id = _git_submodule_head_idPtr + .asFunction Function(ffi.Pointer)>(); /// Get the OID for the submodule in the current working directory. /// @@ -16874,11 +18908,12 @@ class Libgit2 { ); } - late final _git_submodule_wd_id_ptr = - _lookup>( - 'git_submodule_wd_id'); - late final _dart_git_submodule_wd_id _git_submodule_wd_id = - _git_submodule_wd_id_ptr.asFunction<_dart_git_submodule_wd_id>(); + late final _git_submodule_wd_idPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_submodule_wd_id'); + late final _git_submodule_wd_id = _git_submodule_wd_idPtr + .asFunction Function(ffi.Pointer)>(); /// Get the ignore rule that will be used for the submodule. /// @@ -16909,11 +18944,11 @@ class Libgit2 { ); } - late final _git_submodule_ignore_ptr = - _lookup>( - 'git_submodule_ignore'); - late final _dart_git_submodule_ignore _git_submodule_ignore = - _git_submodule_ignore_ptr.asFunction<_dart_git_submodule_ignore>(); + late final _git_submodule_ignorePtr = _lookup< + ffi.NativeFunction)>>( + 'git_submodule_ignore'); + late final _git_submodule_ignore = _git_submodule_ignorePtr + .asFunction)>(); /// Set the ignore rule for the submodule in the configuration /// @@ -16935,12 +18970,14 @@ class Libgit2 { ); } - late final _git_submodule_set_ignore_ptr = - _lookup>( - 'git_submodule_set_ignore'); - late final _dart_git_submodule_set_ignore _git_submodule_set_ignore = - _git_submodule_set_ignore_ptr - .asFunction<_dart_git_submodule_set_ignore>(); + late final _git_submodule_set_ignorePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('git_submodule_set_ignore'); + late final _git_submodule_set_ignore = + _git_submodule_set_ignorePtr.asFunction< + int Function( + ffi.Pointer, ffi.Pointer, int)>(); /// Get the update rule that will be used for the submodule. /// @@ -16958,12 +18995,11 @@ class Libgit2 { ); } - late final _git_submodule_update_strategy_ptr = - _lookup>( - 'git_submodule_update_strategy'); - late final _dart_git_submodule_update_strategy - _git_submodule_update_strategy = _git_submodule_update_strategy_ptr - .asFunction<_dart_git_submodule_update_strategy>(); + late final _git_submodule_update_strategyPtr = _lookup< + ffi.NativeFunction)>>( + 'git_submodule_update_strategy'); + late final _git_submodule_update_strategy = _git_submodule_update_strategyPtr + .asFunction)>(); /// Set the update rule for the submodule in the configuration /// @@ -16985,12 +19021,14 @@ class Libgit2 { ); } - late final _git_submodule_set_update_ptr = - _lookup>( - 'git_submodule_set_update'); - late final _dart_git_submodule_set_update _git_submodule_set_update = - _git_submodule_set_update_ptr - .asFunction<_dart_git_submodule_set_update>(); + late final _git_submodule_set_updatePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('git_submodule_set_update'); + late final _git_submodule_set_update = + _git_submodule_set_updatePtr.asFunction< + int Function( + ffi.Pointer, ffi.Pointer, int)>(); /// Read the fetchRecurseSubmodules rule for a submodule. /// @@ -17009,13 +19047,12 @@ class Libgit2 { ); } - late final _git_submodule_fetch_recurse_submodules_ptr = - _lookup>( - 'git_submodule_fetch_recurse_submodules'); - late final _dart_git_submodule_fetch_recurse_submodules - _git_submodule_fetch_recurse_submodules = - _git_submodule_fetch_recurse_submodules_ptr - .asFunction<_dart_git_submodule_fetch_recurse_submodules>(); + late final _git_submodule_fetch_recurse_submodulesPtr = _lookup< + ffi.NativeFunction)>>( + 'git_submodule_fetch_recurse_submodules'); + late final _git_submodule_fetch_recurse_submodules = + _git_submodule_fetch_recurse_submodulesPtr + .asFunction)>(); /// Set the fetchRecurseSubmodules rule for a submodule in the configuration /// @@ -17037,13 +19074,14 @@ class Libgit2 { ); } - late final _git_submodule_set_fetch_recurse_submodules_ptr = _lookup< - ffi.NativeFunction<_c_git_submodule_set_fetch_recurse_submodules>>( - 'git_submodule_set_fetch_recurse_submodules'); - late final _dart_git_submodule_set_fetch_recurse_submodules - _git_submodule_set_fetch_recurse_submodules = - _git_submodule_set_fetch_recurse_submodules_ptr - .asFunction<_dart_git_submodule_set_fetch_recurse_submodules>(); + late final _git_submodule_set_fetch_recurse_submodulesPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('git_submodule_set_fetch_recurse_submodules'); + late final _git_submodule_set_fetch_recurse_submodules = + _git_submodule_set_fetch_recurse_submodulesPtr.asFunction< + int Function( + ffi.Pointer, ffi.Pointer, int)>(); /// Copy submodule info into ".git/config" file. /// @@ -17066,10 +19104,12 @@ class Libgit2 { ); } - late final _git_submodule_init_ptr = - _lookup>('git_submodule_init'); - late final _dart_git_submodule_init _git_submodule_init = - _git_submodule_init_ptr.asFunction<_dart_git_submodule_init>(); + late final _git_submodule_initPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Int32)>>('git_submodule_init'); + late final _git_submodule_init = _git_submodule_initPtr + .asFunction, int)>(); /// Set up the subrepository for a submodule in preparation for clone. /// @@ -17094,11 +19134,15 @@ class Libgit2 { ); } - late final _git_submodule_repo_init_ptr = - _lookup>( - 'git_submodule_repo_init'); - late final _dart_git_submodule_repo_init _git_submodule_repo_init = - _git_submodule_repo_init_ptr.asFunction<_dart_git_submodule_repo_init>(); + late final _git_submodule_repo_initPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Int32)>>('git_submodule_repo_init'); + late final _git_submodule_repo_init = _git_submodule_repo_initPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, int)>(); /// Copy submodule remote info into submodule repo. /// @@ -17114,10 +19158,11 @@ class Libgit2 { ); } - late final _git_submodule_sync_ptr = - _lookup>('git_submodule_sync'); - late final _dart_git_submodule_sync _git_submodule_sync = - _git_submodule_sync_ptr.asFunction<_dart_git_submodule_sync>(); + late final _git_submodule_syncPtr = _lookup< + ffi.NativeFunction)>>( + 'git_submodule_sync'); + late final _git_submodule_sync = _git_submodule_syncPtr + .asFunction)>(); /// Open the repository for a submodule. /// @@ -17139,10 +19184,13 @@ class Libgit2 { ); } - late final _git_submodule_open_ptr = - _lookup>('git_submodule_open'); - late final _dart_git_submodule_open _git_submodule_open = - _git_submodule_open_ptr.asFunction<_dart_git_submodule_open>(); + late final _git_submodule_openPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_submodule_open'); + late final _git_submodule_open = _git_submodule_openPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer)>(); /// Reread submodule info from config, index, and HEAD. /// @@ -17162,11 +19210,12 @@ class Libgit2 { ); } - late final _git_submodule_reload_ptr = - _lookup>( - 'git_submodule_reload'); - late final _dart_git_submodule_reload _git_submodule_reload = - _git_submodule_reload_ptr.asFunction<_dart_git_submodule_reload>(); + late final _git_submodule_reloadPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Int32)>>('git_submodule_reload'); + late final _git_submodule_reload = _git_submodule_reloadPtr + .asFunction, int)>(); /// Get the status for a submodule. /// @@ -17194,11 +19243,16 @@ class Libgit2 { ); } - late final _git_submodule_status_ptr = - _lookup>( - 'git_submodule_status'); - late final _dart_git_submodule_status _git_submodule_status = - _git_submodule_status_ptr.asFunction<_dart_git_submodule_status>(); + late final _git_submodule_statusPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('git_submodule_status'); + late final _git_submodule_status = _git_submodule_statusPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); /// Get the locations of submodule information. /// @@ -17222,11 +19276,12 @@ class Libgit2 { ); } - late final _git_submodule_location_ptr = - _lookup>( - 'git_submodule_location'); - late final _dart_git_submodule_location _git_submodule_location = - _git_submodule_location_ptr.asFunction<_dart_git_submodule_location>(); + late final _git_submodule_locationPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_submodule_location'); + late final _git_submodule_location = _git_submodule_locationPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// List names of linked working trees /// @@ -17246,10 +19301,12 @@ class Libgit2 { ); } - late final _git_worktree_list_ptr = - _lookup>('git_worktree_list'); - late final _dart_git_worktree_list _git_worktree_list = - _git_worktree_list_ptr.asFunction<_dart_git_worktree_list>(); + late final _git_worktree_listPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_worktree_list'); + late final _git_worktree_list = _git_worktree_listPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Lookup a working tree by its name for a given repository /// @@ -17269,11 +19326,15 @@ class Libgit2 { ); } - late final _git_worktree_lookup_ptr = - _lookup>( - 'git_worktree_lookup'); - late final _dart_git_worktree_lookup _git_worktree_lookup = - _git_worktree_lookup_ptr.asFunction<_dart_git_worktree_lookup>(); + late final _git_worktree_lookupPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>('git_worktree_lookup'); + late final _git_worktree_lookup = _git_worktree_lookupPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer)>(); /// Open a worktree of a given repository /// @@ -17293,13 +19354,15 @@ class Libgit2 { ); } - late final _git_worktree_open_from_repository_ptr = - _lookup>( - 'git_worktree_open_from_repository'); - late final _dart_git_worktree_open_from_repository - _git_worktree_open_from_repository = - _git_worktree_open_from_repository_ptr - .asFunction<_dart_git_worktree_open_from_repository>(); + late final _git_worktree_open_from_repositoryPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>( + 'git_worktree_open_from_repository'); + late final _git_worktree_open_from_repository = + _git_worktree_open_from_repositoryPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer)>(); /// Free a previously allocated worktree /// @@ -17312,10 +19375,11 @@ class Libgit2 { ); } - late final _git_worktree_free_ptr = - _lookup>('git_worktree_free'); - late final _dart_git_worktree_free _git_worktree_free = - _git_worktree_free_ptr.asFunction<_dart_git_worktree_free>(); + late final _git_worktree_freePtr = + _lookup)>>( + 'git_worktree_free'); + late final _git_worktree_free = _git_worktree_freePtr + .asFunction)>(); /// Check if worktree is valid /// @@ -17333,11 +19397,11 @@ class Libgit2 { ); } - late final _git_worktree_validate_ptr = - _lookup>( - 'git_worktree_validate'); - late final _dart_git_worktree_validate _git_worktree_validate = - _git_worktree_validate_ptr.asFunction<_dart_git_worktree_validate>(); + late final _git_worktree_validatePtr = _lookup< + ffi.NativeFunction)>>( + 'git_worktree_validate'); + late final _git_worktree_validate = _git_worktree_validatePtr + .asFunction)>(); /// Initialize git_worktree_add_options structure /// @@ -17357,12 +19421,12 @@ class Libgit2 { ); } - late final _git_worktree_add_options_init_ptr = - _lookup>( - 'git_worktree_add_options_init'); - late final _dart_git_worktree_add_options_init - _git_worktree_add_options_init = _git_worktree_add_options_init_ptr - .asFunction<_dart_git_worktree_add_options_init>(); + late final _git_worktree_add_options_initPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_worktree_add_options_init'); + late final _git_worktree_add_options_init = _git_worktree_add_options_initPtr + .asFunction, int)>(); /// Add a new working tree /// @@ -17392,10 +19456,21 @@ class Libgit2 { ); } - late final _git_worktree_add_ptr = - _lookup>('git_worktree_add'); - late final _dart_git_worktree_add _git_worktree_add = - _git_worktree_add_ptr.asFunction<_dart_git_worktree_add>(); + late final _git_worktree_addPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_worktree_add'); + late final _git_worktree_add = _git_worktree_addPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// Lock worktree if not already locked /// @@ -17415,10 +19490,12 @@ class Libgit2 { ); } - late final _git_worktree_lock_ptr = - _lookup>('git_worktree_lock'); - late final _dart_git_worktree_lock _git_worktree_lock = - _git_worktree_lock_ptr.asFunction<_dart_git_worktree_lock>(); + late final _git_worktree_lockPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_worktree_lock'); + late final _git_worktree_lock = _git_worktree_lockPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Unlock a locked worktree /// @@ -17433,11 +19510,11 @@ class Libgit2 { ); } - late final _git_worktree_unlock_ptr = - _lookup>( - 'git_worktree_unlock'); - late final _dart_git_worktree_unlock _git_worktree_unlock = - _git_worktree_unlock_ptr.asFunction<_dart_git_worktree_unlock>(); + late final _git_worktree_unlockPtr = _lookup< + ffi.NativeFunction)>>( + 'git_worktree_unlock'); + late final _git_worktree_unlock = _git_worktree_unlockPtr + .asFunction)>(); /// Check if worktree is locked /// @@ -17459,11 +19536,12 @@ class Libgit2 { ); } - late final _git_worktree_is_locked_ptr = - _lookup>( - 'git_worktree_is_locked'); - late final _dart_git_worktree_is_locked _git_worktree_is_locked = - _git_worktree_is_locked_ptr.asFunction<_dart_git_worktree_is_locked>(); + late final _git_worktree_is_lockedPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_worktree_is_locked'); + late final _git_worktree_is_locked = _git_worktree_is_lockedPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Retrieve the name of the worktree /// @@ -17478,10 +19556,12 @@ class Libgit2 { ); } - late final _git_worktree_name_ptr = - _lookup>('git_worktree_name'); - late final _dart_git_worktree_name _git_worktree_name = - _git_worktree_name_ptr.asFunction<_dart_git_worktree_name>(); + late final _git_worktree_namePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_worktree_name'); + late final _git_worktree_name = _git_worktree_namePtr + .asFunction Function(ffi.Pointer)>(); /// Retrieve the filesystem path for the worktree /// @@ -17496,10 +19576,12 @@ class Libgit2 { ); } - late final _git_worktree_path_ptr = - _lookup>('git_worktree_path'); - late final _dart_git_worktree_path _git_worktree_path = - _git_worktree_path_ptr.asFunction<_dart_git_worktree_path>(); + late final _git_worktree_pathPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_worktree_path'); + late final _git_worktree_path = _git_worktree_pathPtr + .asFunction Function(ffi.Pointer)>(); /// Initialize git_worktree_prune_options structure /// @@ -17519,12 +19601,13 @@ class Libgit2 { ); } - late final _git_worktree_prune_options_init_ptr = - _lookup>( - 'git_worktree_prune_options_init'); - late final _dart_git_worktree_prune_options_init - _git_worktree_prune_options_init = _git_worktree_prune_options_init_ptr - .asFunction<_dart_git_worktree_prune_options_init>(); + late final _git_worktree_prune_options_initPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_worktree_prune_options_init'); + late final _git_worktree_prune_options_init = + _git_worktree_prune_options_initPtr.asFunction< + int Function(ffi.Pointer, int)>(); /// Is the worktree prunable with the given options? /// @@ -17548,12 +19631,15 @@ class Libgit2 { ); } - late final _git_worktree_is_prunable_ptr = - _lookup>( - 'git_worktree_is_prunable'); - late final _dart_git_worktree_is_prunable _git_worktree_is_prunable = - _git_worktree_is_prunable_ptr - .asFunction<_dart_git_worktree_is_prunable>(); + late final _git_worktree_is_prunablePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>( + 'git_worktree_is_prunable'); + late final _git_worktree_is_prunable = + _git_worktree_is_prunablePtr.asFunction< + int Function(ffi.Pointer, + ffi.Pointer)>(); /// Prune working tree /// @@ -17575,10 +19661,13 @@ class Libgit2 { ); } - late final _git_worktree_prune_ptr = - _lookup>('git_worktree_prune'); - late final _dart_git_worktree_prune _git_worktree_prune = - _git_worktree_prune_ptr.asFunction<_dart_git_worktree_prune>(); + late final _git_worktree_prunePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_worktree_prune'); + late final _git_worktree_prune = _git_worktree_prunePtr.asFunction< + int Function(ffi.Pointer, + ffi.Pointer)>(); /// Stock callback usable as a git_credential_acquire_cb. This calls /// git_cred_userpass_plaintext_new unless the protocol has not specified @@ -17607,11 +19696,21 @@ class Libgit2 { ); } - late final _git_credential_userpass_ptr = - _lookup>( - 'git_credential_userpass'); - late final _dart_git_credential_userpass _git_credential_userpass = - _git_credential_userpass_ptr.asFunction<_dart_git_credential_userpass>(); + late final _git_credential_userpassPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Uint32, + ffi.Pointer)>>('git_credential_userpass'); + late final _git_credential_userpass = _git_credential_userpassPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer)>(); int git_blob_create_fromworkdir( ffi.Pointer id, @@ -17625,12 +19724,14 @@ class Libgit2 { ); } - late final _git_blob_create_fromworkdir_ptr = - _lookup>( - 'git_blob_create_fromworkdir'); - late final _dart_git_blob_create_fromworkdir _git_blob_create_fromworkdir = - _git_blob_create_fromworkdir_ptr - .asFunction<_dart_git_blob_create_fromworkdir>(); + late final _git_blob_create_fromworkdirPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_blob_create_fromworkdir'); + late final _git_blob_create_fromworkdir = + _git_blob_create_fromworkdirPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); int git_blob_create_fromdisk( ffi.Pointer id, @@ -17644,12 +19745,14 @@ class Libgit2 { ); } - late final _git_blob_create_fromdisk_ptr = - _lookup>( - 'git_blob_create_fromdisk'); - late final _dart_git_blob_create_fromdisk _git_blob_create_fromdisk = - _git_blob_create_fromdisk_ptr - .asFunction<_dart_git_blob_create_fromdisk>(); + late final _git_blob_create_fromdiskPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_blob_create_fromdisk'); + late final _git_blob_create_fromdisk = + _git_blob_create_fromdiskPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); int git_blob_create_fromstream( ffi.Pointer> out, @@ -17663,12 +19766,16 @@ class Libgit2 { ); } - late final _git_blob_create_fromstream_ptr = - _lookup>( - 'git_blob_create_fromstream'); - late final _dart_git_blob_create_fromstream _git_blob_create_fromstream = - _git_blob_create_fromstream_ptr - .asFunction<_dart_git_blob_create_fromstream>(); + late final _git_blob_create_fromstreamPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>('git_blob_create_fromstream'); + late final _git_blob_create_fromstream = + _git_blob_create_fromstreamPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer)>(); int git_blob_create_fromstream_commit( ffi.Pointer out, @@ -17680,13 +19787,14 @@ class Libgit2 { ); } - late final _git_blob_create_fromstream_commit_ptr = - _lookup>( - 'git_blob_create_fromstream_commit'); - late final _dart_git_blob_create_fromstream_commit - _git_blob_create_fromstream_commit = - _git_blob_create_fromstream_commit_ptr - .asFunction<_dart_git_blob_create_fromstream_commit>(); + late final _git_blob_create_fromstream_commitPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>( + 'git_blob_create_fromstream_commit'); + late final _git_blob_create_fromstream_commit = + _git_blob_create_fromstream_commitPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); int git_blob_create_frombuffer( ffi.Pointer id, @@ -17702,12 +19810,14 @@ class Libgit2 { ); } - late final _git_blob_create_frombuffer_ptr = - _lookup>( - 'git_blob_create_frombuffer'); - late final _dart_git_blob_create_frombuffer _git_blob_create_frombuffer = - _git_blob_create_frombuffer_ptr - .asFunction<_dart_git_blob_create_frombuffer>(); + late final _git_blob_create_frombufferPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, size_t)>>('git_blob_create_frombuffer'); + late final _git_blob_create_frombuffer = + _git_blob_create_frombufferPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); /// Deprecated in favor of `git_blob_filter`. /// @@ -17727,12 +19837,14 @@ class Libgit2 { ); } - late final _git_blob_filtered_content_ptr = - _lookup>( - 'git_blob_filtered_content'); - late final _dart_git_blob_filtered_content _git_blob_filtered_content = - _git_blob_filtered_content_ptr - .asFunction<_dart_git_blob_filtered_content>(); + late final _git_blob_filtered_contentPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int32)>>('git_blob_filtered_content'); + late final _git_blob_filtered_content = + _git_blob_filtered_contentPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); /// Deprecated in favor of `git_filter_list_stream_buffer`. /// @@ -17750,12 +19862,14 @@ class Libgit2 { ); } - late final _git_filter_list_stream_data_ptr = - _lookup>( - 'git_filter_list_stream_data'); - late final _dart_git_filter_list_stream_data _git_filter_list_stream_data = - _git_filter_list_stream_data_ptr - .asFunction<_dart_git_filter_list_stream_data>(); + late final _git_filter_list_stream_dataPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_filter_list_stream_data'); + late final _git_filter_list_stream_data = + _git_filter_list_stream_dataPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Deprecated in favor of `git_filter_list_apply_to_buffer`. /// @@ -17764,21 +19878,23 @@ class Libgit2 { int git_filter_list_apply_to_data( ffi.Pointer out, ffi.Pointer filters, - ffi.Pointer in_1, + ffi.Pointer in1, ) { return _git_filter_list_apply_to_data( out, filters, - in_1, + in1, ); } - late final _git_filter_list_apply_to_data_ptr = - _lookup>( - 'git_filter_list_apply_to_data'); - late final _dart_git_filter_list_apply_to_data - _git_filter_list_apply_to_data = _git_filter_list_apply_to_data_ptr - .asFunction<_dart_git_filter_list_apply_to_data>(); + late final _git_filter_list_apply_to_dataPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_filter_list_apply_to_data'); + late final _git_filter_list_apply_to_data = + _git_filter_list_apply_to_dataPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Write the contents of the tree builder as a tree object. /// This is an alias of `git_treebuilder_write` and is preserved @@ -17801,13 +19917,14 @@ class Libgit2 { ); } - late final _git_treebuilder_write_with_buffer_ptr = - _lookup>( - 'git_treebuilder_write_with_buffer'); - late final _dart_git_treebuilder_write_with_buffer - _git_treebuilder_write_with_buffer = - _git_treebuilder_write_with_buffer_ptr - .asFunction<_dart_git_treebuilder_write_with_buffer>(); + late final _git_treebuilder_write_with_bufferPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_treebuilder_write_with_buffer'); + late final _git_treebuilder_write_with_buffer = + _git_treebuilder_write_with_bufferPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Free the memory referred to by the git_buf. This is an alias of /// `git_buf_dispose` and is preserved for backward compatibility. @@ -17825,10 +19942,11 @@ class Libgit2 { ); } - late final _git_buf_free_ptr = - _lookup>('git_buf_free'); - late final _dart_git_buf_free _git_buf_free = - _git_buf_free_ptr.asFunction<_dart_git_buf_free>(); + late final _git_buf_freePtr = + _lookup)>>( + 'git_buf_free'); + late final _git_buf_free = + _git_buf_freePtr.asFunction)>(); /// Return the last `git_error` object that was generated for the /// current thread. This is an alias of `git_error_last` and is @@ -17843,10 +19961,11 @@ class Libgit2 { return _giterr_last(); } - late final _giterr_last_ptr = - _lookup>('giterr_last'); - late final _dart_giterr_last _giterr_last = - _giterr_last_ptr.asFunction<_dart_giterr_last>(); + late final _giterr_lastPtr = + _lookup Function()>>( + 'giterr_last'); + late final _giterr_last = + _giterr_lastPtr.asFunction Function()>(); /// Clear the last error. This is an alias of `git_error_last` and is /// preserved for backward compatibility. @@ -17860,10 +19979,9 @@ class Libgit2 { return _giterr_clear(); } - late final _giterr_clear_ptr = - _lookup>('giterr_clear'); - late final _dart_giterr_clear _giterr_clear = - _giterr_clear_ptr.asFunction<_dart_giterr_clear>(); + late final _giterr_clearPtr = + _lookup>('giterr_clear'); + late final _giterr_clear = _giterr_clearPtr.asFunction(); /// Sets the error message to the given string. This is an alias of /// `git_error_set_str` and is preserved for backward compatibility. @@ -17883,10 +20001,12 @@ class Libgit2 { ); } - late final _giterr_set_str_ptr = - _lookup>('giterr_set_str'); - late final _dart_giterr_set_str _giterr_set_str = - _giterr_set_str_ptr.asFunction<_dart_giterr_set_str>(); + late final _giterr_set_strPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int32, ffi.Pointer)>>('giterr_set_str'); + late final _giterr_set_str = _giterr_set_strPtr + .asFunction)>(); /// Indicates that an out-of-memory situation occurred. This is an alias /// of `git_error_set_oom` and is preserved for backward compatibility. @@ -17900,10 +20020,9 @@ class Libgit2 { return _giterr_set_oom(); } - late final _giterr_set_oom_ptr = - _lookup>('giterr_set_oom'); - late final _dart_giterr_set_oom _giterr_set_oom = - _giterr_set_oom_ptr.asFunction<_dart_giterr_set_oom>(); + late final _giterr_set_oomPtr = + _lookup>('giterr_set_oom'); + late final _giterr_set_oom = _giterr_set_oomPtr.asFunction(); int git_index_add_frombuffer( ffi.Pointer index, @@ -17919,12 +20038,17 @@ class Libgit2 { ); } - late final _git_index_add_frombuffer_ptr = - _lookup>( - 'git_index_add_frombuffer'); - late final _dart_git_index_add_frombuffer _git_index_add_frombuffer = - _git_index_add_frombuffer_ptr - .asFunction<_dart_git_index_add_frombuffer>(); + late final _git_index_add_frombufferPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + size_t)>>('git_index_add_frombuffer'); + late final _git_index_add_frombuffer = + _git_index_add_frombufferPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); /// Get the size in bytes for the structure which /// acts as an in-memory representation of any given @@ -17944,10 +20068,11 @@ class Libgit2 { ); } - late final _git_object__size_ptr = - _lookup>('git_object__size'); - late final _dart_git_object__size _git_object__size = - _git_object__size_ptr.asFunction<_dart_git_object__size>(); + late final _git_object__sizePtr = + _lookup>( + 'git_object__size'); + late final _git_object__size = + _git_object__sizePtr.asFunction(); /// Ensure the remote name is well-formed. /// @@ -17962,12 +20087,11 @@ class Libgit2 { ); } - late final _git_remote_is_valid_name_ptr = - _lookup>( + late final _git_remote_is_valid_namePtr = + _lookup)>>( 'git_remote_is_valid_name'); - late final _dart_git_remote_is_valid_name _git_remote_is_valid_name = - _git_remote_is_valid_name_ptr - .asFunction<_dart_git_remote_is_valid_name>(); + late final _git_remote_is_valid_name = _git_remote_is_valid_namePtr + .asFunction)>(); /// Ensure the reference name is well-formed. /// @@ -17990,12 +20114,11 @@ class Libgit2 { ); } - late final _git_reference_is_valid_name_ptr = - _lookup>( + late final _git_reference_is_valid_namePtr = + _lookup)>>( 'git_reference_is_valid_name'); - late final _dart_git_reference_is_valid_name _git_reference_is_valid_name = - _git_reference_is_valid_name_ptr - .asFunction<_dart_git_reference_is_valid_name>(); + late final _git_reference_is_valid_name = _git_reference_is_valid_namePtr + .asFunction)>(); int git_tag_create_frombuffer( ffi.Pointer oid, @@ -18011,12 +20134,14 @@ class Libgit2 { ); } - late final _git_tag_create_frombuffer_ptr = - _lookup>( - 'git_tag_create_frombuffer'); - late final _dart_git_tag_create_frombuffer _git_tag_create_frombuffer = - _git_tag_create_frombuffer_ptr - .asFunction<_dart_git_tag_create_frombuffer>(); + late final _git_tag_create_frombufferPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int32)>>('git_tag_create_frombuffer'); + late final _git_tag_create_frombuffer = + _git_tag_create_frombufferPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); void git_cred_free( ffi.Pointer cred, @@ -18026,10 +20151,11 @@ class Libgit2 { ); } - late final _git_cred_free_ptr = - _lookup>('git_cred_free'); - late final _dart_git_cred_free _git_cred_free = - _git_cred_free_ptr.asFunction<_dart_git_cred_free>(); + late final _git_cred_freePtr = _lookup< + ffi.NativeFunction)>>( + 'git_cred_free'); + late final _git_cred_free = _git_cred_freePtr + .asFunction)>(); int git_cred_has_username( ffi.Pointer cred, @@ -18039,11 +20165,11 @@ class Libgit2 { ); } - late final _git_cred_has_username_ptr = - _lookup>( - 'git_cred_has_username'); - late final _dart_git_cred_has_username _git_cred_has_username = - _git_cred_has_username_ptr.asFunction<_dart_git_cred_has_username>(); + late final _git_cred_has_usernamePtr = _lookup< + ffi.NativeFunction)>>( + 'git_cred_has_username'); + late final _git_cred_has_username = _git_cred_has_usernamePtr + .asFunction)>(); ffi.Pointer git_cred_get_username( ffi.Pointer cred, @@ -18053,11 +20179,12 @@ class Libgit2 { ); } - late final _git_cred_get_username_ptr = - _lookup>( - 'git_cred_get_username'); - late final _dart_git_cred_get_username _git_cred_get_username = - _git_cred_get_username_ptr.asFunction<_dart_git_cred_get_username>(); + late final _git_cred_get_usernamePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_cred_get_username'); + late final _git_cred_get_username = _git_cred_get_usernamePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); int git_cred_userpass_plaintext_new( ffi.Pointer> out, @@ -18071,12 +20198,16 @@ class Libgit2 { ); } - late final _git_cred_userpass_plaintext_new_ptr = - _lookup>( - 'git_cred_userpass_plaintext_new'); - late final _dart_git_cred_userpass_plaintext_new - _git_cred_userpass_plaintext_new = _git_cred_userpass_plaintext_new_ptr - .asFunction<_dart_git_cred_userpass_plaintext_new>(); + late final _git_cred_userpass_plaintext_newPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>('git_cred_userpass_plaintext_new'); + late final _git_cred_userpass_plaintext_new = + _git_cred_userpass_plaintext_newPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer)>(); int git_cred_default_new( ffi.Pointer> out, @@ -18086,11 +20217,12 @@ class Libgit2 { ); } - late final _git_cred_default_new_ptr = - _lookup>( - 'git_cred_default_new'); - late final _dart_git_cred_default_new _git_cred_default_new = - _git_cred_default_new_ptr.asFunction<_dart_git_cred_default_new>(); + late final _git_cred_default_newPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>)>>( + 'git_cred_default_new'); + late final _git_cred_default_new = _git_cred_default_newPtr + .asFunction>)>(); int git_cred_username_new( ffi.Pointer> out, @@ -18102,11 +20234,13 @@ class Libgit2 { ); } - late final _git_cred_username_new_ptr = - _lookup>( - 'git_cred_username_new'); - late final _dart_git_cred_username_new _git_cred_username_new = - _git_cred_username_new_ptr.asFunction<_dart_git_cred_username_new>(); + late final _git_cred_username_newPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_cred_username_new'); + late final _git_cred_username_new = _git_cred_username_newPtr.asFunction< + int Function( + ffi.Pointer>, ffi.Pointer)>(); int git_cred_ssh_key_new( ffi.Pointer> out, @@ -18124,11 +20258,21 @@ class Libgit2 { ); } - late final _git_cred_ssh_key_new_ptr = - _lookup>( - 'git_cred_ssh_key_new'); - late final _dart_git_cred_ssh_key_new _git_cred_ssh_key_new = - _git_cred_ssh_key_new_ptr.asFunction<_dart_git_cred_ssh_key_new>(); + late final _git_cred_ssh_key_newPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_cred_ssh_key_new'); + late final _git_cred_ssh_key_new = _git_cred_ssh_key_newPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); int git_cred_ssh_key_memory_new( ffi.Pointer> out, @@ -18146,18 +20290,27 @@ class Libgit2 { ); } - late final _git_cred_ssh_key_memory_new_ptr = - _lookup>( - 'git_cred_ssh_key_memory_new'); - late final _dart_git_cred_ssh_key_memory_new _git_cred_ssh_key_memory_new = - _git_cred_ssh_key_memory_new_ptr - .asFunction<_dart_git_cred_ssh_key_memory_new>(); + late final _git_cred_ssh_key_memory_newPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_cred_ssh_key_memory_new'); + late final _git_cred_ssh_key_memory_new = + _git_cred_ssh_key_memory_newPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); int git_cred_ssh_interactive_new( ffi.Pointer> out, ffi.Pointer username, - ffi.Pointer> - prompt_callback, + git_credential_ssh_interactive_cb prompt_callback, ffi.Pointer payload, ) { return _git_cred_ssh_interactive_new( @@ -18168,12 +20321,20 @@ class Libgit2 { ); } - late final _git_cred_ssh_interactive_new_ptr = - _lookup>( - 'git_cred_ssh_interactive_new'); - late final _dart_git_cred_ssh_interactive_new _git_cred_ssh_interactive_new = - _git_cred_ssh_interactive_new_ptr - .asFunction<_dart_git_cred_ssh_interactive_new>(); + late final _git_cred_ssh_interactive_newPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + git_credential_ssh_interactive_cb, + ffi.Pointer)>>('git_cred_ssh_interactive_new'); + late final _git_cred_ssh_interactive_new = + _git_cred_ssh_interactive_newPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + git_credential_ssh_interactive_cb, + ffi.Pointer)>(); int git_cred_ssh_key_from_agent( ffi.Pointer> out, @@ -18185,19 +20346,21 @@ class Libgit2 { ); } - late final _git_cred_ssh_key_from_agent_ptr = - _lookup>( - 'git_cred_ssh_key_from_agent'); - late final _dart_git_cred_ssh_key_from_agent _git_cred_ssh_key_from_agent = - _git_cred_ssh_key_from_agent_ptr - .asFunction<_dart_git_cred_ssh_key_from_agent>(); + late final _git_cred_ssh_key_from_agentPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_cred_ssh_key_from_agent'); + late final _git_cred_ssh_key_from_agent = + _git_cred_ssh_key_from_agentPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer)>(); int git_cred_ssh_custom_new( ffi.Pointer> out, ffi.Pointer username, ffi.Pointer publickey, int publickey_len, - ffi.Pointer> sign_callback, + git_credential_sign_cb sign_callback, ffi.Pointer payload, ) { return _git_cred_ssh_custom_new( @@ -18210,11 +20373,23 @@ class Libgit2 { ); } - late final _git_cred_ssh_custom_new_ptr = - _lookup>( - 'git_cred_ssh_custom_new'); - late final _dart_git_cred_ssh_custom_new _git_cred_ssh_custom_new = - _git_cred_ssh_custom_new_ptr.asFunction<_dart_git_cred_ssh_custom_new>(); + late final _git_cred_ssh_custom_newPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + size_t, + git_credential_sign_cb, + ffi.Pointer)>>('git_cred_ssh_custom_new'); + late final _git_cred_ssh_custom_new = _git_cred_ssh_custom_newPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + int, + git_credential_sign_cb, + ffi.Pointer)>(); int git_cred_userpass( ffi.Pointer> out, @@ -18232,10 +20407,21 @@ class Libgit2 { ); } - late final _git_cred_userpass_ptr = - _lookup>('git_cred_userpass'); - late final _dart_git_cred_userpass _git_cred_userpass = - _git_cred_userpass_ptr.asFunction<_dart_git_cred_userpass>(); + late final _git_cred_userpassPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Uint32, + ffi.Pointer)>>('git_cred_userpass'); + late final _git_cred_userpass = _git_cred_userpassPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer)>(); /// @name Deprecated Object ID Types /// @@ -18254,10 +20440,11 @@ class Libgit2 { ); } - late final _git_oid_iszero_ptr = - _lookup>('git_oid_iszero'); - late final _dart_git_oid_iszero _git_oid_iszero = - _git_oid_iszero_ptr.asFunction<_dart_git_oid_iszero>(); + late final _git_oid_iszeroPtr = + _lookup)>>( + 'git_oid_iszero'); + late final _git_oid_iszero = + _git_oid_iszeroPtr.asFunction)>(); /// Free the memory referred to by the git_strarray. This is an alias of /// `git_strarray_dispose` and is preserved for backward compatibility. @@ -18275,10 +20462,11 @@ class Libgit2 { ); } - late final _git_strarray_free_ptr = - _lookup>('git_strarray_free'); - late final _dart_git_strarray_free _git_strarray_free = - _git_strarray_free_ptr.asFunction<_dart_git_strarray_free>(); + late final _git_strarray_freePtr = + _lookup)>>( + 'git_strarray_free'); + late final _git_strarray_free = _git_strarray_freePtr + .asFunction)>(); /// @name Deprecated Options Initialization Functions /// @@ -18299,11 +20487,12 @@ class Libgit2 { ); } - late final _git_blame_init_options_ptr = - _lookup>( - 'git_blame_init_options'); - late final _dart_git_blame_init_options _git_blame_init_options = - _git_blame_init_options_ptr.asFunction<_dart_git_blame_init_options>(); + late final _git_blame_init_optionsPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_blame_init_options'); + late final _git_blame_init_options = _git_blame_init_optionsPtr + .asFunction, int)>(); int git_checkout_init_options( ffi.Pointer opts, @@ -18315,12 +20504,12 @@ class Libgit2 { ); } - late final _git_checkout_init_options_ptr = - _lookup>( - 'git_checkout_init_options'); - late final _dart_git_checkout_init_options _git_checkout_init_options = - _git_checkout_init_options_ptr - .asFunction<_dart_git_checkout_init_options>(); + late final _git_checkout_init_optionsPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_checkout_init_options'); + late final _git_checkout_init_options = _git_checkout_init_optionsPtr + .asFunction, int)>(); int git_cherrypick_init_options( ffi.Pointer opts, @@ -18332,12 +20521,12 @@ class Libgit2 { ); } - late final _git_cherrypick_init_options_ptr = - _lookup>( - 'git_cherrypick_init_options'); - late final _dart_git_cherrypick_init_options _git_cherrypick_init_options = - _git_cherrypick_init_options_ptr - .asFunction<_dart_git_cherrypick_init_options>(); + late final _git_cherrypick_init_optionsPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_cherrypick_init_options'); + late final _git_cherrypick_init_options = _git_cherrypick_init_optionsPtr + .asFunction, int)>(); int git_clone_init_options( ffi.Pointer opts, @@ -18349,11 +20538,12 @@ class Libgit2 { ); } - late final _git_clone_init_options_ptr = - _lookup>( - 'git_clone_init_options'); - late final _dart_git_clone_init_options _git_clone_init_options = - _git_clone_init_options_ptr.asFunction<_dart_git_clone_init_options>(); + late final _git_clone_init_optionsPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_clone_init_options'); + late final _git_clone_init_options = _git_clone_init_optionsPtr + .asFunction, int)>(); int git_describe_init_options( ffi.Pointer opts, @@ -18365,12 +20555,12 @@ class Libgit2 { ); } - late final _git_describe_init_options_ptr = - _lookup>( - 'git_describe_init_options'); - late final _dart_git_describe_init_options _git_describe_init_options = - _git_describe_init_options_ptr - .asFunction<_dart_git_describe_init_options>(); + late final _git_describe_init_optionsPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_describe_init_options'); + late final _git_describe_init_options = _git_describe_init_optionsPtr + .asFunction, int)>(); int git_describe_init_format_options( ffi.Pointer opts, @@ -18382,12 +20572,13 @@ class Libgit2 { ); } - late final _git_describe_init_format_options_ptr = - _lookup>( - 'git_describe_init_format_options'); - late final _dart_git_describe_init_format_options - _git_describe_init_format_options = _git_describe_init_format_options_ptr - .asFunction<_dart_git_describe_init_format_options>(); + late final _git_describe_init_format_optionsPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_describe_init_format_options'); + late final _git_describe_init_format_options = + _git_describe_init_format_optionsPtr.asFunction< + int Function(ffi.Pointer, int)>(); int git_diff_init_options( ffi.Pointer opts, @@ -18399,11 +20590,12 @@ class Libgit2 { ); } - late final _git_diff_init_options_ptr = - _lookup>( - 'git_diff_init_options'); - late final _dart_git_diff_init_options _git_diff_init_options = - _git_diff_init_options_ptr.asFunction<_dart_git_diff_init_options>(); + late final _git_diff_init_optionsPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_diff_init_options'); + late final _git_diff_init_options = _git_diff_init_optionsPtr + .asFunction, int)>(); int git_diff_find_init_options( ffi.Pointer opts, @@ -18415,12 +20607,12 @@ class Libgit2 { ); } - late final _git_diff_find_init_options_ptr = - _lookup>( - 'git_diff_find_init_options'); - late final _dart_git_diff_find_init_options _git_diff_find_init_options = - _git_diff_find_init_options_ptr - .asFunction<_dart_git_diff_find_init_options>(); + late final _git_diff_find_init_optionsPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_diff_find_init_options'); + late final _git_diff_find_init_options = _git_diff_find_init_optionsPtr + .asFunction, int)>(); int git_diff_format_email_init_options( ffi.Pointer opts, @@ -18432,13 +20624,13 @@ class Libgit2 { ); } - late final _git_diff_format_email_init_options_ptr = - _lookup>( - 'git_diff_format_email_init_options'); - late final _dart_git_diff_format_email_init_options - _git_diff_format_email_init_options = - _git_diff_format_email_init_options_ptr - .asFunction<_dart_git_diff_format_email_init_options>(); + late final _git_diff_format_email_init_optionsPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_diff_format_email_init_options'); + late final _git_diff_format_email_init_options = + _git_diff_format_email_init_optionsPtr.asFunction< + int Function(ffi.Pointer, int)>(); int git_diff_patchid_init_options( ffi.Pointer opts, @@ -18450,12 +20642,12 @@ class Libgit2 { ); } - late final _git_diff_patchid_init_options_ptr = - _lookup>( - 'git_diff_patchid_init_options'); - late final _dart_git_diff_patchid_init_options - _git_diff_patchid_init_options = _git_diff_patchid_init_options_ptr - .asFunction<_dart_git_diff_patchid_init_options>(); + late final _git_diff_patchid_init_optionsPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_diff_patchid_init_options'); + late final _git_diff_patchid_init_options = _git_diff_patchid_init_optionsPtr + .asFunction, int)>(); int git_fetch_init_options( ffi.Pointer opts, @@ -18467,11 +20659,12 @@ class Libgit2 { ); } - late final _git_fetch_init_options_ptr = - _lookup>( - 'git_fetch_init_options'); - late final _dart_git_fetch_init_options _git_fetch_init_options = - _git_fetch_init_options_ptr.asFunction<_dart_git_fetch_init_options>(); + late final _git_fetch_init_optionsPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_fetch_init_options'); + late final _git_fetch_init_options = _git_fetch_init_optionsPtr + .asFunction, int)>(); int git_indexer_init_options( ffi.Pointer opts, @@ -18483,12 +20676,12 @@ class Libgit2 { ); } - late final _git_indexer_init_options_ptr = - _lookup>( - 'git_indexer_init_options'); - late final _dart_git_indexer_init_options _git_indexer_init_options = - _git_indexer_init_options_ptr - .asFunction<_dart_git_indexer_init_options>(); + late final _git_indexer_init_optionsPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_indexer_init_options'); + late final _git_indexer_init_options = _git_indexer_init_optionsPtr + .asFunction, int)>(); int git_merge_init_options( ffi.Pointer opts, @@ -18500,11 +20693,12 @@ class Libgit2 { ); } - late final _git_merge_init_options_ptr = - _lookup>( - 'git_merge_init_options'); - late final _dart_git_merge_init_options _git_merge_init_options = - _git_merge_init_options_ptr.asFunction<_dart_git_merge_init_options>(); + late final _git_merge_init_optionsPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_merge_init_options'); + late final _git_merge_init_options = _git_merge_init_optionsPtr + .asFunction, int)>(); int git_merge_file_init_input( ffi.Pointer input, @@ -18516,12 +20710,12 @@ class Libgit2 { ); } - late final _git_merge_file_init_input_ptr = - _lookup>( - 'git_merge_file_init_input'); - late final _dart_git_merge_file_init_input _git_merge_file_init_input = - _git_merge_file_init_input_ptr - .asFunction<_dart_git_merge_file_init_input>(); + late final _git_merge_file_init_inputPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_merge_file_init_input'); + late final _git_merge_file_init_input = _git_merge_file_init_inputPtr + .asFunction, int)>(); int git_merge_file_init_options( ffi.Pointer opts, @@ -18533,12 +20727,12 @@ class Libgit2 { ); } - late final _git_merge_file_init_options_ptr = - _lookup>( - 'git_merge_file_init_options'); - late final _dart_git_merge_file_init_options _git_merge_file_init_options = - _git_merge_file_init_options_ptr - .asFunction<_dart_git_merge_file_init_options>(); + late final _git_merge_file_init_optionsPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_merge_file_init_options'); + late final _git_merge_file_init_options = _git_merge_file_init_optionsPtr + .asFunction, int)>(); int git_proxy_init_options( ffi.Pointer opts, @@ -18550,11 +20744,12 @@ class Libgit2 { ); } - late final _git_proxy_init_options_ptr = - _lookup>( - 'git_proxy_init_options'); - late final _dart_git_proxy_init_options _git_proxy_init_options = - _git_proxy_init_options_ptr.asFunction<_dart_git_proxy_init_options>(); + late final _git_proxy_init_optionsPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_proxy_init_options'); + late final _git_proxy_init_options = _git_proxy_init_optionsPtr + .asFunction, int)>(); int git_push_init_options( ffi.Pointer opts, @@ -18566,11 +20761,12 @@ class Libgit2 { ); } - late final _git_push_init_options_ptr = - _lookup>( - 'git_push_init_options'); - late final _dart_git_push_init_options _git_push_init_options = - _git_push_init_options_ptr.asFunction<_dart_git_push_init_options>(); + late final _git_push_init_optionsPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_push_init_options'); + late final _git_push_init_options = _git_push_init_optionsPtr + .asFunction, int)>(); int git_rebase_init_options( ffi.Pointer opts, @@ -18582,11 +20778,12 @@ class Libgit2 { ); } - late final _git_rebase_init_options_ptr = - _lookup>( - 'git_rebase_init_options'); - late final _dart_git_rebase_init_options _git_rebase_init_options = - _git_rebase_init_options_ptr.asFunction<_dart_git_rebase_init_options>(); + late final _git_rebase_init_optionsPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_rebase_init_options'); + late final _git_rebase_init_options = _git_rebase_init_optionsPtr + .asFunction, int)>(); int git_remote_create_init_options( ffi.Pointer opts, @@ -18598,12 +20795,13 @@ class Libgit2 { ); } - late final _git_remote_create_init_options_ptr = - _lookup>( - 'git_remote_create_init_options'); - late final _dart_git_remote_create_init_options - _git_remote_create_init_options = _git_remote_create_init_options_ptr - .asFunction<_dart_git_remote_create_init_options>(); + late final _git_remote_create_init_optionsPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_remote_create_init_options'); + late final _git_remote_create_init_options = + _git_remote_create_init_optionsPtr.asFunction< + int Function(ffi.Pointer, int)>(); int git_repository_init_init_options( ffi.Pointer opts, @@ -18615,12 +20813,13 @@ class Libgit2 { ); } - late final _git_repository_init_init_options_ptr = - _lookup>( - 'git_repository_init_init_options'); - late final _dart_git_repository_init_init_options - _git_repository_init_init_options = _git_repository_init_init_options_ptr - .asFunction<_dart_git_repository_init_init_options>(); + late final _git_repository_init_init_optionsPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_repository_init_init_options'); + late final _git_repository_init_init_options = + _git_repository_init_init_optionsPtr.asFunction< + int Function(ffi.Pointer, int)>(); int git_revert_init_options( ffi.Pointer opts, @@ -18632,11 +20831,12 @@ class Libgit2 { ); } - late final _git_revert_init_options_ptr = - _lookup>( - 'git_revert_init_options'); - late final _dart_git_revert_init_options _git_revert_init_options = - _git_revert_init_options_ptr.asFunction<_dart_git_revert_init_options>(); + late final _git_revert_init_optionsPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_revert_init_options'); + late final _git_revert_init_options = _git_revert_init_optionsPtr + .asFunction, int)>(); int git_stash_apply_init_options( ffi.Pointer opts, @@ -18648,12 +20848,12 @@ class Libgit2 { ); } - late final _git_stash_apply_init_options_ptr = - _lookup>( - 'git_stash_apply_init_options'); - late final _dart_git_stash_apply_init_options _git_stash_apply_init_options = - _git_stash_apply_init_options_ptr - .asFunction<_dart_git_stash_apply_init_options>(); + late final _git_stash_apply_init_optionsPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_stash_apply_init_options'); + late final _git_stash_apply_init_options = _git_stash_apply_init_optionsPtr + .asFunction, int)>(); int git_status_init_options( ffi.Pointer opts, @@ -18665,11 +20865,12 @@ class Libgit2 { ); } - late final _git_status_init_options_ptr = - _lookup>( - 'git_status_init_options'); - late final _dart_git_status_init_options _git_status_init_options = - _git_status_init_options_ptr.asFunction<_dart_git_status_init_options>(); + late final _git_status_init_optionsPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_status_init_options'); + late final _git_status_init_options = _git_status_init_optionsPtr + .asFunction, int)>(); int git_submodule_update_init_options( ffi.Pointer opts, @@ -18681,13 +20882,13 @@ class Libgit2 { ); } - late final _git_submodule_update_init_options_ptr = - _lookup>( - 'git_submodule_update_init_options'); - late final _dart_git_submodule_update_init_options - _git_submodule_update_init_options = - _git_submodule_update_init_options_ptr - .asFunction<_dart_git_submodule_update_init_options>(); + late final _git_submodule_update_init_optionsPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_submodule_update_init_options'); + late final _git_submodule_update_init_options = + _git_submodule_update_init_optionsPtr.asFunction< + int Function(ffi.Pointer, int)>(); int git_worktree_add_init_options( ffi.Pointer opts, @@ -18699,12 +20900,12 @@ class Libgit2 { ); } - late final _git_worktree_add_init_options_ptr = - _lookup>( - 'git_worktree_add_init_options'); - late final _dart_git_worktree_add_init_options - _git_worktree_add_init_options = _git_worktree_add_init_options_ptr - .asFunction<_dart_git_worktree_add_init_options>(); + late final _git_worktree_add_init_optionsPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_worktree_add_init_options'); + late final _git_worktree_add_init_options = _git_worktree_add_init_optionsPtr + .asFunction, int)>(); int git_worktree_prune_init_options( ffi.Pointer opts, @@ -18716,12 +20917,13 @@ class Libgit2 { ); } - late final _git_worktree_prune_init_options_ptr = - _lookup>( - 'git_worktree_prune_init_options'); - late final _dart_git_worktree_prune_init_options - _git_worktree_prune_init_options = _git_worktree_prune_init_options_ptr - .asFunction<_dart_git_worktree_prune_init_options>(); + late final _git_worktree_prune_init_optionsPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Uint32)>>('git_worktree_prune_init_options'); + late final _git_worktree_prune_init_options = + _git_worktree_prune_init_optionsPtr.asFunction< + int Function(ffi.Pointer, int)>(); /// Init the global state /// @@ -18737,10 +20939,10 @@ class Libgit2 { return _git_libgit2_init(); } - late final _git_libgit2_init_ptr = - _lookup>('git_libgit2_init'); - late final _dart_git_libgit2_init _git_libgit2_init = - _git_libgit2_init_ptr.asFunction<_dart_git_libgit2_init>(); + late final _git_libgit2_initPtr = + _lookup>('git_libgit2_init'); + late final _git_libgit2_init = + _git_libgit2_initPtr.asFunction(); /// Shutdown the global state /// @@ -18755,11 +20957,10 @@ class Libgit2 { return _git_libgit2_shutdown(); } - late final _git_libgit2_shutdown_ptr = - _lookup>( - 'git_libgit2_shutdown'); - late final _dart_git_libgit2_shutdown _git_libgit2_shutdown = - _git_libgit2_shutdown_ptr.asFunction<_dart_git_libgit2_shutdown>(); + late final _git_libgit2_shutdownPtr = + _lookup>('git_libgit2_shutdown'); + late final _git_libgit2_shutdown = + _git_libgit2_shutdownPtr.asFunction(); /// Count the number of unique commits between two commit objects /// @@ -18774,8 +20975,8 @@ class Libgit2 { /// @param local the commit for local /// @param upstream the commit for upstream int git_graph_ahead_behind( - ffi.Pointer ahead, - ffi.Pointer behind, + ffi.Pointer ahead, + ffi.Pointer behind, ffi.Pointer repo, ffi.Pointer local, ffi.Pointer upstream, @@ -18789,11 +20990,21 @@ class Libgit2 { ); } - late final _git_graph_ahead_behind_ptr = - _lookup>( - 'git_graph_ahead_behind'); - late final _dart_git_graph_ahead_behind _git_graph_ahead_behind = - _git_graph_ahead_behind_ptr.asFunction<_dart_git_graph_ahead_behind>(); + late final _git_graph_ahead_behindPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_graph_ahead_behind'); + late final _git_graph_ahead_behind = _git_graph_ahead_behindPtr.asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// Determine if a commit is the descendant of another commit. /// @@ -18817,11 +21028,13 @@ class Libgit2 { ); } - late final _git_graph_descendant_of_ptr = - _lookup>( - 'git_graph_descendant_of'); - late final _dart_git_graph_descendant_of _git_graph_descendant_of = - _git_graph_descendant_of_ptr.asFunction<_dart_git_graph_descendant_of>(); + late final _git_graph_descendant_ofPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_graph_descendant_of'); + late final _git_graph_descendant_of = _git_graph_descendant_ofPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Determine if a commit is reachable from any of a list of commits by /// following parent edges. @@ -18846,12 +21059,14 @@ class Libgit2 { ); } - late final _git_graph_reachable_from_any_ptr = - _lookup>( - 'git_graph_reachable_from_any'); - late final _dart_git_graph_reachable_from_any _git_graph_reachable_from_any = - _git_graph_reachable_from_any_ptr - .asFunction<_dart_git_graph_reachable_from_any>(); + late final _git_graph_reachable_from_anyPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, size_t)>>('git_graph_reachable_from_any'); + late final _git_graph_reachable_from_any = + _git_graph_reachable_from_anyPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); /// Add ignore rules for a repository. /// @@ -18883,11 +21098,12 @@ class Libgit2 { ); } - late final _git_ignore_add_rule_ptr = - _lookup>( - 'git_ignore_add_rule'); - late final _dart_git_ignore_add_rule _git_ignore_add_rule = - _git_ignore_add_rule_ptr.asFunction<_dart_git_ignore_add_rule>(); + late final _git_ignore_add_rulePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_ignore_add_rule'); + late final _git_ignore_add_rule = _git_ignore_add_rulePtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Clear ignore rules that were explicitly added. /// @@ -18906,12 +21122,12 @@ class Libgit2 { ); } - late final _git_ignore_clear_internal_rules_ptr = - _lookup>( - 'git_ignore_clear_internal_rules'); - late final _dart_git_ignore_clear_internal_rules - _git_ignore_clear_internal_rules = _git_ignore_clear_internal_rules_ptr - .asFunction<_dart_git_ignore_clear_internal_rules>(); + late final _git_ignore_clear_internal_rulesPtr = _lookup< + ffi.NativeFunction)>>( + 'git_ignore_clear_internal_rules'); + late final _git_ignore_clear_internal_rules = + _git_ignore_clear_internal_rulesPtr + .asFunction)>(); /// Test if the ignore rules apply to a given path. /// @@ -18939,12 +21155,16 @@ class Libgit2 { ); } - late final _git_ignore_path_is_ignored_ptr = - _lookup>( - 'git_ignore_path_is_ignored'); - late final _dart_git_ignore_path_is_ignored _git_ignore_path_is_ignored = - _git_ignore_path_is_ignored_ptr - .asFunction<_dart_git_ignore_path_is_ignored>(); + late final _git_ignore_path_is_ignoredPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_ignore_path_is_ignored'); + late final _git_ignore_path_is_ignored = + _git_ignore_path_is_ignoredPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Allocate a new mailmap object. /// @@ -18961,10 +21181,12 @@ class Libgit2 { ); } - late final _git_mailmap_new_ptr = - _lookup>('git_mailmap_new'); - late final _dart_git_mailmap_new _git_mailmap_new = - _git_mailmap_new_ptr.asFunction<_dart_git_mailmap_new>(); + late final _git_mailmap_newPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>)>>('git_mailmap_new'); + late final _git_mailmap_new = _git_mailmap_newPtr + .asFunction>)>(); /// Free the mailmap and its associated memory. /// @@ -18977,10 +21199,11 @@ class Libgit2 { ); } - late final _git_mailmap_free_ptr = - _lookup>('git_mailmap_free'); - late final _dart_git_mailmap_free _git_mailmap_free = - _git_mailmap_free_ptr.asFunction<_dart_git_mailmap_free>(); + late final _git_mailmap_freePtr = + _lookup)>>( + 'git_mailmap_free'); + late final _git_mailmap_free = _git_mailmap_freePtr + .asFunction)>(); /// Add a single entry to the given mailmap object. If the entry already exists, /// it will be replaced with the new entry. @@ -19007,11 +21230,21 @@ class Libgit2 { ); } - late final _git_mailmap_add_entry_ptr = - _lookup>( - 'git_mailmap_add_entry'); - late final _dart_git_mailmap_add_entry _git_mailmap_add_entry = - _git_mailmap_add_entry_ptr.asFunction<_dart_git_mailmap_add_entry>(); + late final _git_mailmap_add_entryPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_mailmap_add_entry'); + late final _git_mailmap_add_entry = _git_mailmap_add_entryPtr.asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// Create a new mailmap instance containing a single mailmap file /// @@ -19031,11 +21264,13 @@ class Libgit2 { ); } - late final _git_mailmap_from_buffer_ptr = - _lookup>( - 'git_mailmap_from_buffer'); - late final _dart_git_mailmap_from_buffer _git_mailmap_from_buffer = - _git_mailmap_from_buffer_ptr.asFunction<_dart_git_mailmap_from_buffer>(); + late final _git_mailmap_from_bufferPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer, size_t)>>('git_mailmap_from_buffer'); + late final _git_mailmap_from_buffer = _git_mailmap_from_bufferPtr.asFunction< + int Function( + ffi.Pointer>, ffi.Pointer, int)>(); /// Create a new mailmap instance from a repository, loading mailmap files based /// on the repository's configuration. @@ -19059,12 +21294,14 @@ class Libgit2 { ); } - late final _git_mailmap_from_repository_ptr = - _lookup>( - 'git_mailmap_from_repository'); - late final _dart_git_mailmap_from_repository _git_mailmap_from_repository = - _git_mailmap_from_repository_ptr - .asFunction<_dart_git_mailmap_from_repository>(); + late final _git_mailmap_from_repositoryPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_mailmap_from_repository'); + late final _git_mailmap_from_repository = + _git_mailmap_from_repositoryPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer)>(); /// Resolve a name and email to the corresponding real name and email. /// @@ -19092,11 +21329,21 @@ class Libgit2 { ); } - late final _git_mailmap_resolve_ptr = - _lookup>( - 'git_mailmap_resolve'); - late final _dart_git_mailmap_resolve _git_mailmap_resolve = - _git_mailmap_resolve_ptr.asFunction<_dart_git_mailmap_resolve>(); + late final _git_mailmap_resolvePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_mailmap_resolve'); + late final _git_mailmap_resolve = _git_mailmap_resolvePtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// Resolve a signature to use real names and emails with a mailmap. /// @@ -19118,12 +21365,16 @@ class Libgit2 { ); } - late final _git_mailmap_resolve_signature_ptr = - _lookup>( - 'git_mailmap_resolve_signature'); - late final _dart_git_mailmap_resolve_signature - _git_mailmap_resolve_signature = _git_mailmap_resolve_signature_ptr - .asFunction<_dart_git_mailmap_resolve_signature>(); + late final _git_mailmap_resolve_signaturePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>('git_mailmap_resolve_signature'); + late final _git_mailmap_resolve_signature = + _git_mailmap_resolve_signaturePtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer)>(); /// Clean up excess whitespace and make sure there is a trailing newline in the message. /// @@ -19154,11 +21405,12 @@ class Libgit2 { ); } - late final _git_message_prettify_ptr = - _lookup>( - 'git_message_prettify'); - late final _dart_git_message_prettify _git_message_prettify = - _git_message_prettify_ptr.asFunction<_dart_git_message_prettify>(); + late final _git_message_prettifyPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Int32, ffi.Int8)>>('git_message_prettify'); + late final _git_message_prettify = _git_message_prettifyPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int, int)>(); /// Parse trailers out of a message, filling the array pointed to by +arr+. /// @@ -19179,11 +21431,13 @@ class Libgit2 { ); } - late final _git_message_trailers_ptr = - _lookup>( - 'git_message_trailers'); - late final _dart_git_message_trailers _git_message_trailers = - _git_message_trailers_ptr.asFunction<_dart_git_message_trailers>(); + late final _git_message_trailersPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_message_trailers'); + late final _git_message_trailers = _git_message_trailersPtr.asFunction< + int Function( + ffi.Pointer, ffi.Pointer)>(); /// Clean's up any allocated memory in the git_message_trailer_array filled by /// a call to git_message_trailers. @@ -19195,12 +21449,13 @@ class Libgit2 { ); } - late final _git_message_trailer_array_free_ptr = - _lookup>( - 'git_message_trailer_array_free'); - late final _dart_git_message_trailer_array_free - _git_message_trailer_array_free = _git_message_trailer_array_free_ptr - .asFunction<_dart_git_message_trailer_array_free>(); + late final _git_message_trailer_array_freePtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer)>>( + 'git_message_trailer_array_free'); + late final _git_message_trailer_array_free = + _git_message_trailer_array_freePtr + .asFunction)>(); /// Creates a new iterator for notes /// @@ -19213,7 +21468,7 @@ class Libgit2 { /// /// @return 0 or an error code int git_note_iterator_new( - ffi.Pointer> out, + ffi.Pointer> out, ffi.Pointer repo, ffi.Pointer notes_ref, ) { @@ -19224,11 +21479,15 @@ class Libgit2 { ); } - late final _git_note_iterator_new_ptr = - _lookup>( - 'git_note_iterator_new'); - late final _dart_git_note_iterator_new _git_note_iterator_new = - _git_note_iterator_new_ptr.asFunction<_dart_git_note_iterator_new>(); + late final _git_note_iterator_newPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>('git_note_iterator_new'); + late final _git_note_iterator_new = _git_note_iterator_newPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer)>(); /// Creates a new iterator for notes from a commit /// @@ -19239,7 +21498,7 @@ class Libgit2 { /// /// @return 0 or an error code int git_note_commit_iterator_new( - ffi.Pointer> out, + ffi.Pointer> out, ffi.Pointer notes_commit, ) { return _git_note_commit_iterator_new( @@ -19248,29 +21507,32 @@ class Libgit2 { ); } - late final _git_note_commit_iterator_new_ptr = - _lookup>( - 'git_note_commit_iterator_new'); - late final _dart_git_note_commit_iterator_new _git_note_commit_iterator_new = - _git_note_commit_iterator_new_ptr - .asFunction<_dart_git_note_commit_iterator_new>(); + late final _git_note_commit_iterator_newPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_note_commit_iterator_new'); + late final _git_note_commit_iterator_new = + _git_note_commit_iterator_newPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer)>(); /// Frees an git_note_iterator /// /// @param it pointer to the iterator void git_note_iterator_free( - ffi.Pointer it, + ffi.Pointer it, ) { return _git_note_iterator_free( it, ); } - late final _git_note_iterator_free_ptr = - _lookup>( - 'git_note_iterator_free'); - late final _dart_git_note_iterator_free _git_note_iterator_free = - _git_note_iterator_free_ptr.asFunction<_dart_git_note_iterator_free>(); + late final _git_note_iterator_freePtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer)>>('git_note_iterator_free'); + late final _git_note_iterator_free = _git_note_iterator_freePtr + .asFunction)>(); /// Return the current item (note_id and annotated_id) and advance the iterator /// internally to the next value @@ -19284,7 +21546,7 @@ class Libgit2 { int git_note_next( ffi.Pointer note_id, ffi.Pointer annotated_id, - ffi.Pointer it, + ffi.Pointer it, ) { return _git_note_next( note_id, @@ -19293,10 +21555,13 @@ class Libgit2 { ); } - late final _git_note_next_ptr = - _lookup>('git_note_next'); - late final _dart_git_note_next _git_note_next = - _git_note_next_ptr.asFunction<_dart_git_note_next>(); + late final _git_note_nextPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_note_next'); + late final _git_note_next = _git_note_nextPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Read the note for an object /// @@ -19323,10 +21588,19 @@ class Libgit2 { ); } - late final _git_note_read_ptr = - _lookup>('git_note_read'); - late final _dart_git_note_read _git_note_read = - _git_note_read_ptr.asFunction<_dart_git_note_read>(); + late final _git_note_readPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_note_read'); + late final _git_note_read = _git_note_readPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// Read the note for an object from a note commit /// @@ -19352,11 +21626,19 @@ class Libgit2 { ); } - late final _git_note_commit_read_ptr = - _lookup>( - 'git_note_commit_read'); - late final _dart_git_note_commit_read _git_note_commit_read = - _git_note_commit_read_ptr.asFunction<_dart_git_note_commit_read>(); + late final _git_note_commit_readPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_note_commit_read'); + late final _git_note_commit_read = _git_note_commit_readPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// Get the note author /// @@ -19370,10 +21652,12 @@ class Libgit2 { ); } - late final _git_note_author_ptr = - _lookup>('git_note_author'); - late final _dart_git_note_author _git_note_author = - _git_note_author_ptr.asFunction<_dart_git_note_author>(); + late final _git_note_authorPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_note_author'); + late final _git_note_author = _git_note_authorPtr + .asFunction Function(ffi.Pointer)>(); /// Get the note committer /// @@ -19387,10 +21671,12 @@ class Libgit2 { ); } - late final _git_note_committer_ptr = - _lookup>('git_note_committer'); - late final _dart_git_note_committer _git_note_committer = - _git_note_committer_ptr.asFunction<_dart_git_note_committer>(); + late final _git_note_committerPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_note_committer'); + late final _git_note_committer = _git_note_committerPtr + .asFunction Function(ffi.Pointer)>(); /// Get the note message /// @@ -19404,10 +21690,12 @@ class Libgit2 { ); } - late final _git_note_message_ptr = - _lookup>('git_note_message'); - late final _dart_git_note_message _git_note_message = - _git_note_message_ptr.asFunction<_dart_git_note_message>(); + late final _git_note_messagePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_note_message'); + late final _git_note_message = _git_note_messagePtr + .asFunction Function(ffi.Pointer)>(); /// Get the note object's id /// @@ -19421,10 +21709,11 @@ class Libgit2 { ); } - late final _git_note_id_ptr = - _lookup>('git_note_id'); - late final _dart_git_note_id _git_note_id = - _git_note_id_ptr.asFunction<_dart_git_note_id>(); + late final _git_note_idPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>('git_note_id'); + late final _git_note_id = _git_note_idPtr + .asFunction Function(ffi.Pointer)>(); /// Add a note for an object /// @@ -19461,10 +21750,27 @@ class Libgit2 { ); } - late final _git_note_create_ptr = - _lookup>('git_note_create'); - late final _dart_git_note_create _git_note_create = - _git_note_create_ptr.asFunction<_dart_git_note_create>(); + late final _git_note_createPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('git_note_create'); + late final _git_note_create = _git_note_createPtr.asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int)>(); /// Add a note for an object from a commit /// @@ -19508,11 +21814,29 @@ class Libgit2 { ); } - late final _git_note_commit_create_ptr = - _lookup>( - 'git_note_commit_create'); - late final _dart_git_note_commit_create _git_note_commit_create = - _git_note_commit_create_ptr.asFunction<_dart_git_note_commit_create>(); + late final _git_note_commit_createPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('git_note_commit_create'); + late final _git_note_commit_create = _git_note_commit_createPtr.asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int)>(); /// Remove the note for an object /// @@ -19540,10 +21864,21 @@ class Libgit2 { ); } - late final _git_note_remove_ptr = - _lookup>('git_note_remove'); - late final _dart_git_note_remove _git_note_remove = - _git_note_remove_ptr.asFunction<_dart_git_note_remove>(); + late final _git_note_removePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_note_remove'); + late final _git_note_remove = _git_note_removePtr.asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// Remove the note for an object /// @@ -19579,11 +21914,23 @@ class Libgit2 { ); } - late final _git_note_commit_remove_ptr = - _lookup>( - 'git_note_commit_remove'); - late final _dart_git_note_commit_remove _git_note_commit_remove = - _git_note_commit_remove_ptr.asFunction<_dart_git_note_commit_remove>(); + late final _git_note_commit_removePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_note_commit_remove'); + late final _git_note_commit_remove = _git_note_commit_removePtr.asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// Free a git_note object /// @@ -19596,10 +21943,11 @@ class Libgit2 { ); } - late final _git_note_free_ptr = - _lookup>('git_note_free'); - late final _dart_git_note_free _git_note_free = - _git_note_free_ptr.asFunction<_dart_git_note_free>(); + late final _git_note_freePtr = + _lookup)>>( + 'git_note_free'); + late final _git_note_free = + _git_note_freePtr.asFunction)>(); /// Get the default notes reference for a repository /// @@ -19617,11 +21965,12 @@ class Libgit2 { ); } - late final _git_note_default_ref_ptr = - _lookup>( - 'git_note_default_ref'); - late final _dart_git_note_default_ref _git_note_default_ref = - _git_note_default_ref_ptr.asFunction<_dart_git_note_default_ref>(); + late final _git_note_default_refPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_note_default_ref'); + late final _git_note_default_ref = _git_note_default_refPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Loop over all the notes within a specified namespace /// and issue a callback for each one. @@ -19640,7 +21989,7 @@ class Libgit2 { int git_note_foreach( ffi.Pointer repo, ffi.Pointer notes_ref, - ffi.Pointer> note_cb, + git_note_foreach_cb note_cb, ffi.Pointer payload, ) { return _git_note_foreach( @@ -19651,10 +22000,13 @@ class Libgit2 { ); } - late final _git_note_foreach_ptr = - _lookup>('git_note_foreach'); - late final _dart_git_note_foreach _git_note_foreach = - _git_note_foreach_ptr.asFunction<_dart_git_note_foreach>(); + late final _git_note_foreachPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + git_note_foreach_cb, ffi.Pointer)>>('git_note_foreach'); + late final _git_note_foreach = _git_note_foreachPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + git_note_foreach_cb, ffi.Pointer)>(); /// Create a new object database with no backends. /// @@ -19672,10 +22024,12 @@ class Libgit2 { ); } - late final _git_odb_new_ptr = - _lookup>('git_odb_new'); - late final _dart_git_odb_new _git_odb_new = - _git_odb_new_ptr.asFunction<_dart_git_odb_new>(); + late final _git_odb_newPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>)>>('git_odb_new'); + late final _git_odb_new = _git_odb_newPtr + .asFunction>)>(); /// Create a new object database and automatically add /// the two default backends: @@ -19701,10 +22055,12 @@ class Libgit2 { ); } - late final _git_odb_open_ptr = - _lookup>('git_odb_open'); - late final _dart_git_odb_open _git_odb_open = - _git_odb_open_ptr.asFunction<_dart_git_odb_open>(); + late final _git_odb_openPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_odb_open'); + late final _git_odb_open = _git_odb_openPtr.asFunction< + int Function(ffi.Pointer>, ffi.Pointer)>(); /// Add an on-disk alternate to an existing Object DB. /// @@ -19729,12 +22085,12 @@ class Libgit2 { ); } - late final _git_odb_add_disk_alternate_ptr = - _lookup>( - 'git_odb_add_disk_alternate'); - late final _dart_git_odb_add_disk_alternate _git_odb_add_disk_alternate = - _git_odb_add_disk_alternate_ptr - .asFunction<_dart_git_odb_add_disk_alternate>(); + late final _git_odb_add_disk_alternatePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_odb_add_disk_alternate'); + late final _git_odb_add_disk_alternate = _git_odb_add_disk_alternatePtr + .asFunction, ffi.Pointer)>(); /// Close an open object database. /// @@ -19747,10 +22103,11 @@ class Libgit2 { ); } - late final _git_odb_free_ptr = - _lookup>('git_odb_free'); - late final _dart_git_odb_free _git_odb_free = - _git_odb_free_ptr.asFunction<_dart_git_odb_free>(); + late final _git_odb_freePtr = + _lookup)>>( + 'git_odb_free'); + late final _git_odb_free = + _git_odb_freePtr.asFunction)>(); /// Read an object from the database. /// @@ -19778,10 +22135,13 @@ class Libgit2 { ); } - late final _git_odb_read_ptr = - _lookup>('git_odb_read'); - late final _dart_git_odb_read _git_odb_read = - _git_odb_read_ptr.asFunction<_dart_git_odb_read>(); + late final _git_odb_readPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer)>>('git_odb_read'); + late final _git_odb_read = _git_odb_readPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer)>(); /// Read an object from the database, given a prefix /// of its identifier. @@ -19821,11 +22181,16 @@ class Libgit2 { ); } - late final _git_odb_read_prefix_ptr = - _lookup>( - 'git_odb_read_prefix'); - late final _dart_git_odb_read_prefix _git_odb_read_prefix = - _git_odb_read_prefix_ptr.asFunction<_dart_git_odb_read_prefix>(); + late final _git_odb_read_prefixPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + size_t)>>('git_odb_read_prefix'); + late final _git_odb_read_prefix = _git_odb_read_prefixPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer, int)>(); /// Read the header of an object from the database, without /// reading its full contents. @@ -19843,7 +22208,7 @@ class Libgit2 { /// @return 0 if the object was read, GIT_ENOTFOUND if the object is not /// in the database. int git_odb_read_header( - ffi.Pointer len_out, + ffi.Pointer len_out, ffi.Pointer type_out, ffi.Pointer db, ffi.Pointer id, @@ -19856,11 +22221,16 @@ class Libgit2 { ); } - late final _git_odb_read_header_ptr = - _lookup>( - 'git_odb_read_header'); - late final _dart_git_odb_read_header _git_odb_read_header = - _git_odb_read_header_ptr.asFunction<_dart_git_odb_read_header>(); + late final _git_odb_read_headerPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_odb_read_header'); + late final _git_odb_read_header = _git_odb_read_headerPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); /// Determine if the given object can be found in the object database. /// @@ -19877,10 +22247,12 @@ class Libgit2 { ); } - late final _git_odb_exists_ptr = - _lookup>('git_odb_exists'); - late final _dart_git_odb_exists _git_odb_exists = - _git_odb_exists_ptr.asFunction<_dart_git_odb_exists>(); + late final _git_odb_existsPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('git_odb_exists'); + late final _git_odb_exists = _git_odb_existsPtr + .asFunction, ffi.Pointer)>(); /// Determine if an object can be found in the object database by an /// abbreviated object ID. @@ -19905,11 +22277,13 @@ class Libgit2 { ); } - late final _git_odb_exists_prefix_ptr = - _lookup>( - 'git_odb_exists_prefix'); - late final _dart_git_odb_exists_prefix _git_odb_exists_prefix = - _git_odb_exists_prefix_ptr.asFunction<_dart_git_odb_exists_prefix>(); + late final _git_odb_exists_prefixPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, size_t)>>('git_odb_exists_prefix'); + late final _git_odb_exists_prefix = _git_odb_exists_prefixPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); /// Determine if one or more objects can be found in the object database /// by their abbreviated object ID and type. The given array will be @@ -19939,10 +22313,13 @@ class Libgit2 { ); } - late final _git_odb_expand_ids_ptr = - _lookup>('git_odb_expand_ids'); - late final _dart_git_odb_expand_ids _git_odb_expand_ids = - _git_odb_expand_ids_ptr.asFunction<_dart_git_odb_expand_ids>(); + late final _git_odb_expand_idsPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer, size_t)>>('git_odb_expand_ids'); + late final _git_odb_expand_ids = _git_odb_expand_idsPtr.asFunction< + int Function( + ffi.Pointer, ffi.Pointer, int)>(); /// Refresh the object database to load newly added files. /// @@ -19968,10 +22345,11 @@ class Libgit2 { ); } - late final _git_odb_refresh_ptr = - _lookup>('git_odb_refresh'); - late final _dart_git_odb_refresh _git_odb_refresh = - _git_odb_refresh_ptr.asFunction<_dart_git_odb_refresh>(); + late final _git_odb_refreshPtr = + _lookup)>>( + 'git_odb_refresh'); + late final _git_odb_refresh = + _git_odb_refreshPtr.asFunction)>(); /// List all objects available in the database /// @@ -19986,7 +22364,7 @@ class Libgit2 { /// @return 0 on success, non-zero callback return value, or error code int git_odb_foreach( ffi.Pointer db, - ffi.Pointer> cb, + git_odb_foreach_cb cb, ffi.Pointer payload, ) { return _git_odb_foreach( @@ -19996,10 +22374,13 @@ class Libgit2 { ); } - late final _git_odb_foreach_ptr = - _lookup>('git_odb_foreach'); - late final _dart_git_odb_foreach _git_odb_foreach = - _git_odb_foreach_ptr.asFunction<_dart_git_odb_foreach>(); + late final _git_odb_foreachPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, git_odb_foreach_cb, + ffi.Pointer)>>('git_odb_foreach'); + late final _git_odb_foreach = _git_odb_foreachPtr.asFunction< + int Function( + ffi.Pointer, git_odb_foreach_cb, ffi.Pointer)>(); /// Write an object directly into the ODB /// @@ -20033,10 +22414,13 @@ class Libgit2 { ); } - late final _git_odb_write_ptr = - _lookup>('git_odb_write'); - late final _dart_git_odb_write _git_odb_write = - _git_odb_write_ptr.asFunction<_dart_git_odb_write>(); + late final _git_odb_writePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, size_t, ffi.Int32)>>('git_odb_write'); + late final _git_odb_write = _git_odb_writePtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, int)>(); /// Open a stream to write an object into the ODB /// @@ -20071,11 +22455,16 @@ class Libgit2 { ); } - late final _git_odb_open_wstream_ptr = - _lookup>( - 'git_odb_open_wstream'); - late final _dart_git_odb_open_wstream _git_odb_open_wstream = - _git_odb_open_wstream_ptr.asFunction<_dart_git_odb_open_wstream>(); + late final _git_odb_open_wstreamPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + git_object_size_t, + ffi.Int32)>>('git_odb_open_wstream'); + late final _git_odb_open_wstream = _git_odb_open_wstreamPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, int, int)>(); /// Write to an odb stream /// @@ -20098,11 +22487,12 @@ class Libgit2 { ); } - late final _git_odb_stream_write_ptr = - _lookup>( - 'git_odb_stream_write'); - late final _dart_git_odb_stream_write _git_odb_stream_write = - _git_odb_stream_write_ptr.asFunction<_dart_git_odb_stream_write>(); + late final _git_odb_stream_writePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + size_t)>>('git_odb_stream_write'); + late final _git_odb_stream_write = _git_odb_stream_writePtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int)>(); /// Finish writing to an odb stream /// @@ -20125,12 +22515,13 @@ class Libgit2 { ); } - late final _git_odb_stream_finalize_write_ptr = - _lookup>( - 'git_odb_stream_finalize_write'); - late final _dart_git_odb_stream_finalize_write - _git_odb_stream_finalize_write = _git_odb_stream_finalize_write_ptr - .asFunction<_dart_git_odb_stream_finalize_write>(); + late final _git_odb_stream_finalize_writePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_odb_stream_finalize_write'); + late final _git_odb_stream_finalize_write = + _git_odb_stream_finalize_writePtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Read from an odb stream /// @@ -20147,11 +22538,12 @@ class Libgit2 { ); } - late final _git_odb_stream_read_ptr = - _lookup>( - 'git_odb_stream_read'); - late final _dart_git_odb_stream_read _git_odb_stream_read = - _git_odb_stream_read_ptr.asFunction<_dart_git_odb_stream_read>(); + late final _git_odb_stream_readPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + size_t)>>('git_odb_stream_read'); + late final _git_odb_stream_read = _git_odb_stream_readPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int)>(); /// Free an odb stream /// @@ -20164,11 +22556,11 @@ class Libgit2 { ); } - late final _git_odb_stream_free_ptr = - _lookup>( - 'git_odb_stream_free'); - late final _dart_git_odb_stream_free _git_odb_stream_free = - _git_odb_stream_free_ptr.asFunction<_dart_git_odb_stream_free>(); + late final _git_odb_stream_freePtr = _lookup< + ffi.NativeFunction)>>( + 'git_odb_stream_free'); + late final _git_odb_stream_free = _git_odb_stream_freePtr + .asFunction)>(); /// Open a stream to read an object from the ODB /// @@ -20196,7 +22588,7 @@ class Libgit2 { /// @return 0 if the stream was created, error code otherwise int git_odb_open_rstream( ffi.Pointer> out, - ffi.Pointer len, + ffi.Pointer len, ffi.Pointer type, ffi.Pointer db, ffi.Pointer oid, @@ -20210,11 +22602,21 @@ class Libgit2 { ); } - late final _git_odb_open_rstream_ptr = - _lookup>( - 'git_odb_open_rstream'); - late final _dart_git_odb_open_rstream _git_odb_open_rstream = - _git_odb_open_rstream_ptr.asFunction<_dart_git_odb_open_rstream>(); + late final _git_odb_open_rstreamPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_odb_open_rstream'); + late final _git_odb_open_rstream = _git_odb_open_rstreamPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// Open a stream for writing a pack file to the ODB. /// @@ -20235,7 +22637,7 @@ class Libgit2 { int git_odb_write_pack( ffi.Pointer> out, ffi.Pointer db, - ffi.Pointer> progress_cb, + git_indexer_progress_cb progress_cb, ffi.Pointer progress_payload, ) { return _git_odb_write_pack( @@ -20246,10 +22648,19 @@ class Libgit2 { ); } - late final _git_odb_write_pack_ptr = - _lookup>('git_odb_write_pack'); - late final _dart_git_odb_write_pack _git_odb_write_pack = - _git_odb_write_pack_ptr.asFunction<_dart_git_odb_write_pack>(); + late final _git_odb_write_packPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + git_indexer_progress_cb, + ffi.Pointer)>>('git_odb_write_pack'); + late final _git_odb_write_pack = _git_odb_write_packPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + git_indexer_progress_cb, + ffi.Pointer)>(); /// Write a `multi-pack-index` file from all the `.pack` files in the ODB. /// @@ -20268,12 +22679,12 @@ class Libgit2 { ); } - late final _git_odb_write_multi_pack_index_ptr = - _lookup>( + late final _git_odb_write_multi_pack_indexPtr = + _lookup)>>( 'git_odb_write_multi_pack_index'); - late final _dart_git_odb_write_multi_pack_index - _git_odb_write_multi_pack_index = _git_odb_write_multi_pack_index_ptr - .asFunction<_dart_git_odb_write_multi_pack_index>(); + late final _git_odb_write_multi_pack_index = + _git_odb_write_multi_pack_indexPtr + .asFunction)>(); /// Determine the object-ID (sha1 hash) of a data buffer /// @@ -20299,10 +22710,12 @@ class Libgit2 { ); } - late final _git_odb_hash_ptr = - _lookup>('git_odb_hash'); - late final _dart_git_odb_hash _git_odb_hash = - _git_odb_hash_ptr.asFunction<_dart_git_odb_hash>(); + late final _git_odb_hashPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + size_t, ffi.Int32)>>('git_odb_hash'); + late final _git_odb_hash = _git_odb_hashPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int, int)>(); /// Read a file from disk and fill a git_oid with the object id /// that the file would have if it were written to the Object @@ -20327,10 +22740,12 @@ class Libgit2 { ); } - late final _git_odb_hashfile_ptr = - _lookup>('git_odb_hashfile'); - late final _dart_git_odb_hashfile _git_odb_hashfile = - _git_odb_hashfile_ptr.asFunction<_dart_git_odb_hashfile>(); + late final _git_odb_hashfilePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('git_odb_hashfile'); + late final _git_odb_hashfile = _git_odb_hashfilePtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int)>(); /// Create a copy of an odb_object /// @@ -20352,10 +22767,13 @@ class Libgit2 { ); } - late final _git_odb_object_dup_ptr = - _lookup>('git_odb_object_dup'); - late final _dart_git_odb_object_dup _git_odb_object_dup = - _git_odb_object_dup_ptr.asFunction<_dart_git_odb_object_dup>(); + late final _git_odb_object_dupPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_odb_object_dup'); + late final _git_odb_object_dup = _git_odb_object_dupPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer)>(); /// Close an ODB object /// @@ -20371,11 +22789,11 @@ class Libgit2 { ); } - late final _git_odb_object_free_ptr = - _lookup>( - 'git_odb_object_free'); - late final _dart_git_odb_object_free _git_odb_object_free = - _git_odb_object_free_ptr.asFunction<_dart_git_odb_object_free>(); + late final _git_odb_object_freePtr = _lookup< + ffi.NativeFunction)>>( + 'git_odb_object_free'); + late final _git_odb_object_free = _git_odb_object_freePtr + .asFunction)>(); /// Return the OID of an ODB object /// @@ -20391,10 +22809,12 @@ class Libgit2 { ); } - late final _git_odb_object_id_ptr = - _lookup>('git_odb_object_id'); - late final _dart_git_odb_object_id _git_odb_object_id = - _git_odb_object_id_ptr.asFunction<_dart_git_odb_object_id>(); + late final _git_odb_object_idPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_odb_object_id'); + late final _git_odb_object_id = _git_odb_object_idPtr + .asFunction Function(ffi.Pointer)>(); /// Return the data of an ODB object /// @@ -20413,11 +22833,12 @@ class Libgit2 { ); } - late final _git_odb_object_data_ptr = - _lookup>( - 'git_odb_object_data'); - late final _dart_git_odb_object_data _git_odb_object_data = - _git_odb_object_data_ptr.asFunction<_dart_git_odb_object_data>(); + late final _git_odb_object_dataPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_odb_object_data'); + late final _git_odb_object_data = _git_odb_object_dataPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); /// Return the size of an ODB object /// @@ -20434,11 +22855,11 @@ class Libgit2 { ); } - late final _git_odb_object_size_ptr = - _lookup>( + late final _git_odb_object_sizePtr = + _lookup)>>( 'git_odb_object_size'); - late final _dart_git_odb_object_size _git_odb_object_size = - _git_odb_object_size_ptr.asFunction<_dart_git_odb_object_size>(); + late final _git_odb_object_size = _git_odb_object_sizePtr + .asFunction)>(); /// Return the type of an ODB object /// @@ -20452,11 +22873,11 @@ class Libgit2 { ); } - late final _git_odb_object_type_ptr = - _lookup>( - 'git_odb_object_type'); - late final _dart_git_odb_object_type _git_odb_object_type = - _git_odb_object_type_ptr.asFunction<_dart_git_odb_object_type>(); + late final _git_odb_object_typePtr = _lookup< + ffi.NativeFunction)>>( + 'git_odb_object_type'); + late final _git_odb_object_type = _git_odb_object_typePtr + .asFunction)>(); /// Add a custom backend to an existing Object DB /// @@ -20481,11 +22902,12 @@ class Libgit2 { ); } - late final _git_odb_add_backend_ptr = - _lookup>( - 'git_odb_add_backend'); - late final _dart_git_odb_add_backend _git_odb_add_backend = - _git_odb_add_backend_ptr.asFunction<_dart_git_odb_add_backend>(); + late final _git_odb_add_backendPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('git_odb_add_backend'); + late final _git_odb_add_backend = _git_odb_add_backendPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int)>(); /// Add a custom backend to an existing Object DB; this /// backend will work as an alternate. @@ -20516,11 +22938,12 @@ class Libgit2 { ); } - late final _git_odb_add_alternate_ptr = - _lookup>( - 'git_odb_add_alternate'); - late final _dart_git_odb_add_alternate _git_odb_add_alternate = - _git_odb_add_alternate_ptr.asFunction<_dart_git_odb_add_alternate>(); + late final _git_odb_add_alternatePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('git_odb_add_alternate'); + late final _git_odb_add_alternate = _git_odb_add_alternatePtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int)>(); /// Get the number of ODB backend objects /// @@ -20534,11 +22957,11 @@ class Libgit2 { ); } - late final _git_odb_num_backends_ptr = - _lookup>( + late final _git_odb_num_backendsPtr = + _lookup)>>( 'git_odb_num_backends'); - late final _dart_git_odb_num_backends _git_odb_num_backends = - _git_odb_num_backends_ptr.asFunction<_dart_git_odb_num_backends>(); + late final _git_odb_num_backends = + _git_odb_num_backendsPtr.asFunction)>(); /// Lookup an ODB backend object by index /// @@ -20558,11 +22981,13 @@ class Libgit2 { ); } - late final _git_odb_get_backend_ptr = - _lookup>( - 'git_odb_get_backend'); - late final _dart_git_odb_get_backend _git_odb_get_backend = - _git_odb_get_backend_ptr.asFunction<_dart_git_odb_get_backend>(); + late final _git_odb_get_backendPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer, size_t)>>('git_odb_get_backend'); + late final _git_odb_get_backend = _git_odb_get_backendPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, int)>(); /// Set the git commit-graph for the ODB. /// @@ -20585,12 +23010,13 @@ class Libgit2 { ); } - late final _git_odb_set_commit_graph_ptr = - _lookup>( - 'git_odb_set_commit_graph'); - late final _dart_git_odb_set_commit_graph _git_odb_set_commit_graph = - _git_odb_set_commit_graph_ptr - .asFunction<_dart_git_odb_set_commit_graph>(); + late final _git_odb_set_commit_graphPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_odb_set_commit_graph'); + late final _git_odb_set_commit_graph = + _git_odb_set_commit_graphPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Create a backend for the packfiles. /// @@ -20608,11 +23034,13 @@ class Libgit2 { ); } - late final _git_odb_backend_pack_ptr = - _lookup>( - 'git_odb_backend_pack'); - late final _dart_git_odb_backend_pack _git_odb_backend_pack = - _git_odb_backend_pack_ptr.asFunction<_dart_git_odb_backend_pack>(); + late final _git_odb_backend_packPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_odb_backend_pack'); + late final _git_odb_backend_pack = _git_odb_backend_packPtr.asFunction< + int Function( + ffi.Pointer>, ffi.Pointer)>(); /// Create a backend for loose objects /// @@ -20642,11 +23070,18 @@ class Libgit2 { ); } - late final _git_odb_backend_loose_ptr = - _lookup>( - 'git_odb_backend_loose'); - late final _dart_git_odb_backend_loose _git_odb_backend_loose = - _git_odb_backend_loose_ptr.asFunction<_dart_git_odb_backend_loose>(); + late final _git_odb_backend_loosePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Int32, + ffi.Int32, + ffi.Uint32, + ffi.Uint32)>>('git_odb_backend_loose'); + late final _git_odb_backend_loose = _git_odb_backend_loosePtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, int, int, int, int)>(); /// Create a backend out of a single packfile /// @@ -20667,12 +23102,14 @@ class Libgit2 { ); } - late final _git_odb_backend_one_pack_ptr = - _lookup>( - 'git_odb_backend_one_pack'); - late final _dart_git_odb_backend_one_pack _git_odb_backend_one_pack = - _git_odb_backend_one_pack_ptr - .asFunction<_dart_git_odb_backend_one_pack>(); + late final _git_odb_backend_one_packPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_odb_backend_one_pack'); + late final _git_odb_backend_one_pack = + _git_odb_backend_one_packPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer)>(); /// Get the repository associated with this patch. May be NULL. /// @@ -20686,10 +23123,12 @@ class Libgit2 { ); } - late final _git_patch_owner_ptr = - _lookup>('git_patch_owner'); - late final _dart_git_patch_owner _git_patch_owner = - _git_patch_owner_ptr.asFunction<_dart_git_patch_owner>(); + late final _git_patch_ownerPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_patch_owner'); + late final _git_patch_owner = _git_patch_ownerPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); /// Return a patch for an entry in the diff list. /// @@ -20721,11 +23160,13 @@ class Libgit2 { ); } - late final _git_patch_from_diff_ptr = - _lookup>( - 'git_patch_from_diff'); - late final _dart_git_patch_from_diff _git_patch_from_diff = - _git_patch_from_diff_ptr.asFunction<_dart_git_patch_from_diff>(); + late final _git_patch_from_diffPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer, size_t)>>('git_patch_from_diff'); + late final _git_patch_from_diff = _git_patch_from_diffPtr.asFunction< + int Function( + ffi.Pointer>, ffi.Pointer, int)>(); /// Directly generate a patch from the difference between two blobs. /// @@ -20759,11 +23200,23 @@ class Libgit2 { ); } - late final _git_patch_from_blobs_ptr = - _lookup>( - 'git_patch_from_blobs'); - late final _dart_git_patch_from_blobs _git_patch_from_blobs = - _git_patch_from_blobs_ptr.asFunction<_dart_git_patch_from_blobs>(); + late final _git_patch_from_blobsPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_patch_from_blobs'); + late final _git_patch_from_blobs = _git_patch_from_blobsPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// Directly generate a patch from the difference between a blob and a buffer. /// @@ -20800,12 +23253,27 @@ class Libgit2 { ); } - late final _git_patch_from_blob_and_buffer_ptr = - _lookup>( - 'git_patch_from_blob_and_buffer'); - late final _dart_git_patch_from_blob_and_buffer - _git_patch_from_blob_and_buffer = _git_patch_from_blob_and_buffer_ptr - .asFunction<_dart_git_patch_from_blob_and_buffer>(); + late final _git_patch_from_blob_and_bufferPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + size_t, + ffi.Pointer, + ffi.Pointer)>>( + 'git_patch_from_blob_and_buffer'); + late final _git_patch_from_blob_and_buffer = + _git_patch_from_blob_and_bufferPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer)>(); /// Directly generate a patch from the difference between two buffers. /// @@ -20845,11 +23313,27 @@ class Libgit2 { ); } - late final _git_patch_from_buffers_ptr = - _lookup>( - 'git_patch_from_buffers'); - late final _dart_git_patch_from_buffers _git_patch_from_buffers = - _git_patch_from_buffers_ptr.asFunction<_dart_git_patch_from_buffers>(); + late final _git_patch_from_buffersPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + size_t, + ffi.Pointer, + ffi.Pointer, + size_t, + ffi.Pointer, + ffi.Pointer)>>('git_patch_from_buffers'); + late final _git_patch_from_buffers = _git_patch_from_buffersPtr.asFunction< + int Function( + ffi.Pointer>, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer)>(); /// Free a git_patch object. void git_patch_free( @@ -20860,10 +23344,11 @@ class Libgit2 { ); } - late final _git_patch_free_ptr = - _lookup>('git_patch_free'); - late final _dart_git_patch_free _git_patch_free = - _git_patch_free_ptr.asFunction<_dart_git_patch_free>(); + late final _git_patch_freePtr = + _lookup)>>( + 'git_patch_free'); + late final _git_patch_free = + _git_patch_freePtr.asFunction)>(); /// Get the delta associated with a patch. This delta points to internal /// data and you do not have to release it when you are done with it. @@ -20875,11 +23360,12 @@ class Libgit2 { ); } - late final _git_patch_get_delta_ptr = - _lookup>( - 'git_patch_get_delta'); - late final _dart_git_patch_get_delta _git_patch_get_delta = - _git_patch_get_delta_ptr.asFunction<_dart_git_patch_get_delta>(); + late final _git_patch_get_deltaPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_patch_get_delta'); + late final _git_patch_get_delta = _git_patch_get_deltaPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); /// Get the number of hunks in a patch int git_patch_num_hunks( @@ -20890,11 +23376,11 @@ class Libgit2 { ); } - late final _git_patch_num_hunks_ptr = - _lookup>( + late final _git_patch_num_hunksPtr = + _lookup)>>( 'git_patch_num_hunks'); - late final _dart_git_patch_num_hunks _git_patch_num_hunks = - _git_patch_num_hunks_ptr.asFunction<_dart_git_patch_num_hunks>(); + late final _git_patch_num_hunks = _git_patch_num_hunksPtr + .asFunction)>(); /// Get line counts of each type in a patch. /// @@ -20911,9 +23397,9 @@ class Libgit2 { /// @param patch The git_patch object /// @return 0 on success, <0 on error int git_patch_line_stats( - ffi.Pointer total_context, - ffi.Pointer total_additions, - ffi.Pointer total_deletions, + ffi.Pointer total_context, + ffi.Pointer total_additions, + ffi.Pointer total_deletions, ffi.Pointer patch, ) { return _git_patch_line_stats( @@ -20924,11 +23410,16 @@ class Libgit2 { ); } - late final _git_patch_line_stats_ptr = - _lookup>( - 'git_patch_line_stats'); - late final _dart_git_patch_line_stats _git_patch_line_stats = - _git_patch_line_stats_ptr.asFunction<_dart_git_patch_line_stats>(); + late final _git_patch_line_statsPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_patch_line_stats'); + late final _git_patch_line_stats = _git_patch_line_statsPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); /// Get the information about a hunk in a patch /// @@ -20943,7 +23434,7 @@ class Libgit2 { /// @return 0 on success, GIT_ENOTFOUND if hunk_idx out of range, <0 on error int git_patch_get_hunk( ffi.Pointer> out, - ffi.Pointer lines_in_hunk, + ffi.Pointer lines_in_hunk, ffi.Pointer patch, int hunk_idx, ) { @@ -20955,10 +23446,16 @@ class Libgit2 { ); } - late final _git_patch_get_hunk_ptr = - _lookup>('git_patch_get_hunk'); - late final _dart_git_patch_get_hunk _git_patch_get_hunk = - _git_patch_get_hunk_ptr.asFunction<_dart_git_patch_get_hunk>(); + late final _git_patch_get_hunkPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + size_t)>>('git_patch_get_hunk'); + late final _git_patch_get_hunk = _git_patch_get_hunkPtr.asFunction< + int Function(ffi.Pointer>, ffi.Pointer, + ffi.Pointer, int)>(); /// Get the number of lines in a hunk. /// @@ -20975,12 +23472,12 @@ class Libgit2 { ); } - late final _git_patch_num_lines_in_hunk_ptr = - _lookup>( - 'git_patch_num_lines_in_hunk'); - late final _dart_git_patch_num_lines_in_hunk _git_patch_num_lines_in_hunk = - _git_patch_num_lines_in_hunk_ptr - .asFunction<_dart_git_patch_num_lines_in_hunk>(); + late final _git_patch_num_lines_in_hunkPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, size_t)>>('git_patch_num_lines_in_hunk'); + late final _git_patch_num_lines_in_hunk = _git_patch_num_lines_in_hunkPtr + .asFunction, int)>(); /// Get data about a line in a hunk of a patch. /// @@ -21008,12 +23505,17 @@ class Libgit2 { ); } - late final _git_patch_get_line_in_hunk_ptr = - _lookup>( - 'git_patch_get_line_in_hunk'); - late final _dart_git_patch_get_line_in_hunk _git_patch_get_line_in_hunk = - _git_patch_get_line_in_hunk_ptr - .asFunction<_dart_git_patch_get_line_in_hunk>(); + late final _git_patch_get_line_in_hunkPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + size_t, + size_t)>>('git_patch_get_line_in_hunk'); + late final _git_patch_get_line_in_hunk = + _git_patch_get_line_in_hunkPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, int, int)>(); /// Look up size of patch diff data in bytes /// @@ -21043,10 +23545,12 @@ class Libgit2 { ); } - late final _git_patch_size_ptr = - _lookup>('git_patch_size'); - late final _dart_git_patch_size _git_patch_size = - _git_patch_size_ptr.asFunction<_dart_git_patch_size>(); + late final _git_patch_sizePtr = _lookup< + ffi.NativeFunction< + size_t Function(ffi.Pointer, ffi.Int32, ffi.Int32, + ffi.Int32)>>('git_patch_size'); + late final _git_patch_size = _git_patch_sizePtr + .asFunction, int, int, int)>(); /// Serialize the patch to text via callback. /// @@ -21060,7 +23564,7 @@ class Libgit2 { /// @return 0 on success, non-zero callback return value, or error code int git_patch_print( ffi.Pointer patch, - ffi.Pointer> print_cb, + git_diff_line_cb print_cb, ffi.Pointer payload, ) { return _git_patch_print( @@ -21070,10 +23574,13 @@ class Libgit2 { ); } - late final _git_patch_print_ptr = - _lookup>('git_patch_print'); - late final _dart_git_patch_print _git_patch_print = - _git_patch_print_ptr.asFunction<_dart_git_patch_print>(); + late final _git_patch_printPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, git_diff_line_cb, + ffi.Pointer)>>('git_patch_print'); + late final _git_patch_print = _git_patch_printPtr.asFunction< + int Function( + ffi.Pointer, git_diff_line_cb, ffi.Pointer)>(); /// Get the content of a patch as a single diff text. /// @@ -21090,10 +23597,12 @@ class Libgit2 { ); } - late final _git_patch_to_buf_ptr = - _lookup>('git_patch_to_buf'); - late final _dart_git_patch_to_buf _git_patch_to_buf = - _git_patch_to_buf_ptr.asFunction<_dart_git_patch_to_buf>(); + late final _git_patch_to_bufPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_patch_to_buf'); + late final _git_patch_to_buf = _git_patch_to_bufPtr + .asFunction, ffi.Pointer)>(); /// Compile a pathspec /// @@ -21110,10 +23619,13 @@ class Libgit2 { ); } - late final _git_pathspec_new_ptr = - _lookup>('git_pathspec_new'); - late final _dart_git_pathspec_new _git_pathspec_new = - _git_pathspec_new_ptr.asFunction<_dart_git_pathspec_new>(); + late final _git_pathspec_newPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_pathspec_new'); + late final _git_pathspec_new = _git_pathspec_newPtr.asFunction< + int Function( + ffi.Pointer>, ffi.Pointer)>(); /// Free a pathspec /// @@ -21126,10 +23638,11 @@ class Libgit2 { ); } - late final _git_pathspec_free_ptr = - _lookup>('git_pathspec_free'); - late final _dart_git_pathspec_free _git_pathspec_free = - _git_pathspec_free_ptr.asFunction<_dart_git_pathspec_free>(); + late final _git_pathspec_freePtr = + _lookup)>>( + 'git_pathspec_free'); + late final _git_pathspec_free = _git_pathspec_freePtr + .asFunction)>(); /// Try to match a path against a pathspec /// @@ -21154,12 +23667,14 @@ class Libgit2 { ); } - late final _git_pathspec_matches_path_ptr = - _lookup>( - 'git_pathspec_matches_path'); - late final _dart_git_pathspec_matches_path _git_pathspec_matches_path = - _git_pathspec_matches_path_ptr - .asFunction<_dart_git_pathspec_matches_path>(); + late final _git_pathspec_matches_pathPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Uint32, + ffi.Pointer)>>('git_pathspec_matches_path'); + late final _git_pathspec_matches_path = + _git_pathspec_matches_pathPtr.asFunction< + int Function( + ffi.Pointer, int, ffi.Pointer)>(); /// Match a pathspec against the working directory of a repository. /// @@ -21195,12 +23710,17 @@ class Libgit2 { ); } - late final _git_pathspec_match_workdir_ptr = - _lookup>( - 'git_pathspec_match_workdir'); - late final _dart_git_pathspec_match_workdir _git_pathspec_match_workdir = - _git_pathspec_match_workdir_ptr - .asFunction<_dart_git_pathspec_match_workdir>(); + late final _git_pathspec_match_workdirPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Uint32, + ffi.Pointer)>>('git_pathspec_match_workdir'); + late final _git_pathspec_match_workdir = + _git_pathspec_match_workdirPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, int, ffi.Pointer)>(); /// Match a pathspec against entries in an index. /// @@ -21237,12 +23757,17 @@ class Libgit2 { ); } - late final _git_pathspec_match_index_ptr = - _lookup>( - 'git_pathspec_match_index'); - late final _dart_git_pathspec_match_index _git_pathspec_match_index = - _git_pathspec_match_index_ptr - .asFunction<_dart_git_pathspec_match_index>(); + late final _git_pathspec_match_indexPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Uint32, + ffi.Pointer)>>('git_pathspec_match_index'); + late final _git_pathspec_match_index = + _git_pathspec_match_indexPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, int, ffi.Pointer)>(); /// Match a pathspec against files in a tree. /// @@ -21274,11 +23799,16 @@ class Libgit2 { ); } - late final _git_pathspec_match_tree_ptr = - _lookup>( - 'git_pathspec_match_tree'); - late final _dart_git_pathspec_match_tree _git_pathspec_match_tree = - _git_pathspec_match_tree_ptr.asFunction<_dart_git_pathspec_match_tree>(); + late final _git_pathspec_match_treePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Uint32, + ffi.Pointer)>>('git_pathspec_match_tree'); + late final _git_pathspec_match_tree = _git_pathspec_match_treePtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, int, ffi.Pointer)>(); /// Match a pathspec against files in a diff list. /// @@ -21310,11 +23840,16 @@ class Libgit2 { ); } - late final _git_pathspec_match_diff_ptr = - _lookup>( - 'git_pathspec_match_diff'); - late final _dart_git_pathspec_match_diff _git_pathspec_match_diff = - _git_pathspec_match_diff_ptr.asFunction<_dart_git_pathspec_match_diff>(); + late final _git_pathspec_match_diffPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Uint32, + ffi.Pointer)>>('git_pathspec_match_diff'); + late final _git_pathspec_match_diff = _git_pathspec_match_diffPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, int, ffi.Pointer)>(); /// Free memory associates with a git_pathspec_match_list /// @@ -21327,12 +23862,12 @@ class Libgit2 { ); } - late final _git_pathspec_match_list_free_ptr = - _lookup>( - 'git_pathspec_match_list_free'); - late final _dart_git_pathspec_match_list_free _git_pathspec_match_list_free = - _git_pathspec_match_list_free_ptr - .asFunction<_dart_git_pathspec_match_list_free>(); + late final _git_pathspec_match_list_freePtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer)>>( + 'git_pathspec_match_list_free'); + late final _git_pathspec_match_list_free = _git_pathspec_match_list_freePtr + .asFunction)>(); /// Get the number of items in a match list. /// @@ -21346,13 +23881,13 @@ class Libgit2 { ); } - late final _git_pathspec_match_list_entrycount_ptr = - _lookup>( - 'git_pathspec_match_list_entrycount'); - late final _dart_git_pathspec_match_list_entrycount - _git_pathspec_match_list_entrycount = - _git_pathspec_match_list_entrycount_ptr - .asFunction<_dart_git_pathspec_match_list_entrycount>(); + late final _git_pathspec_match_list_entrycountPtr = _lookup< + ffi.NativeFunction< + size_t Function(ffi.Pointer)>>( + 'git_pathspec_match_list_entrycount'); + late final _git_pathspec_match_list_entrycount = + _git_pathspec_match_list_entrycountPtr + .asFunction)>(); /// Get a matching filename by position. /// @@ -21372,12 +23907,14 @@ class Libgit2 { ); } - late final _git_pathspec_match_list_entry_ptr = - _lookup>( - 'git_pathspec_match_list_entry'); - late final _dart_git_pathspec_match_list_entry - _git_pathspec_match_list_entry = _git_pathspec_match_list_entry_ptr - .asFunction<_dart_git_pathspec_match_list_entry>(); + late final _git_pathspec_match_list_entryPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + size_t)>>('git_pathspec_match_list_entry'); + late final _git_pathspec_match_list_entry = + _git_pathspec_match_list_entryPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, int)>(); /// Get a matching diff delta by position. /// @@ -21397,13 +23934,15 @@ class Libgit2 { ); } - late final _git_pathspec_match_list_diff_entry_ptr = - _lookup>( - 'git_pathspec_match_list_diff_entry'); - late final _dart_git_pathspec_match_list_diff_entry - _git_pathspec_match_list_diff_entry = - _git_pathspec_match_list_diff_entry_ptr - .asFunction<_dart_git_pathspec_match_list_diff_entry>(); + late final _git_pathspec_match_list_diff_entryPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + size_t)>>('git_pathspec_match_list_diff_entry'); + late final _git_pathspec_match_list_diff_entry = + _git_pathspec_match_list_diff_entryPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, int)>(); /// Get the number of pathspec items that did not match. /// @@ -21420,13 +23959,13 @@ class Libgit2 { ); } - late final _git_pathspec_match_list_failed_entrycount_ptr = - _lookup>( - 'git_pathspec_match_list_failed_entrycount'); - late final _dart_git_pathspec_match_list_failed_entrycount - _git_pathspec_match_list_failed_entrycount = - _git_pathspec_match_list_failed_entrycount_ptr - .asFunction<_dart_git_pathspec_match_list_failed_entrycount>(); + late final _git_pathspec_match_list_failed_entrycountPtr = _lookup< + ffi.NativeFunction< + size_t Function(ffi.Pointer)>>( + 'git_pathspec_match_list_failed_entrycount'); + late final _git_pathspec_match_list_failed_entrycount = + _git_pathspec_match_list_failed_entrycountPtr + .asFunction)>(); /// Get an original pathspec string that had no matches. /// @@ -21445,13 +23984,14 @@ class Libgit2 { ); } - late final _git_pathspec_match_list_failed_entry_ptr = - _lookup>( - 'git_pathspec_match_list_failed_entry'); - late final _dart_git_pathspec_match_list_failed_entry - _git_pathspec_match_list_failed_entry = - _git_pathspec_match_list_failed_entry_ptr - .asFunction<_dart_git_pathspec_match_list_failed_entry>(); + late final _git_pathspec_match_list_failed_entryPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + size_t)>>('git_pathspec_match_list_failed_entry'); + late final _git_pathspec_match_list_failed_entry = + _git_pathspec_match_list_failed_entryPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, int)>(); /// Create a new reference database with no backends. /// @@ -21472,10 +24012,13 @@ class Libgit2 { ); } - late final _git_refdb_new_ptr = - _lookup>('git_refdb_new'); - late final _dart_git_refdb_new _git_refdb_new = - _git_refdb_new_ptr.asFunction<_dart_git_refdb_new>(); + late final _git_refdb_newPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_refdb_new'); + late final _git_refdb_new = _git_refdb_newPtr.asFunction< + int Function( + ffi.Pointer>, ffi.Pointer)>(); /// Create a new reference database and automatically add /// the default backends: @@ -21497,10 +24040,13 @@ class Libgit2 { ); } - late final _git_refdb_open_ptr = - _lookup>('git_refdb_open'); - late final _dart_git_refdb_open _git_refdb_open = - _git_refdb_open_ptr.asFunction<_dart_git_refdb_open>(); + late final _git_refdb_openPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_refdb_open'); + late final _git_refdb_open = _git_refdb_openPtr.asFunction< + int Function( + ffi.Pointer>, ffi.Pointer)>(); /// Suggests that the given refdb compress or optimize its references. /// This mechanism is implementation specific. For on-disk reference @@ -21513,10 +24059,11 @@ class Libgit2 { ); } - late final _git_refdb_compress_ptr = - _lookup>('git_refdb_compress'); - late final _dart_git_refdb_compress _git_refdb_compress = - _git_refdb_compress_ptr.asFunction<_dart_git_refdb_compress>(); + late final _git_refdb_compressPtr = + _lookup)>>( + 'git_refdb_compress'); + late final _git_refdb_compress = + _git_refdb_compressPtr.asFunction)>(); /// Close an open reference database. /// @@ -21529,10 +24076,11 @@ class Libgit2 { ); } - late final _git_refdb_free_ptr = - _lookup>('git_refdb_free'); - late final _dart_git_refdb_free _git_refdb_free = - _git_refdb_free_ptr.asFunction<_dart_git_refdb_free>(); + late final _git_refdb_freePtr = + _lookup)>>( + 'git_refdb_free'); + late final _git_refdb_free = + _git_refdb_freePtr.asFunction)>(); /// Read the reflog for the given reference /// @@ -21559,10 +24107,15 @@ class Libgit2 { ); } - late final _git_reflog_read_ptr = - _lookup>('git_reflog_read'); - late final _dart_git_reflog_read _git_reflog_read = - _git_reflog_read_ptr.asFunction<_dart_git_reflog_read>(); + late final _git_reflog_readPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>('git_reflog_read'); + late final _git_reflog_read = _git_reflog_readPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer)>(); /// Write an existing in-memory reflog object back to disk /// using an atomic file lock. @@ -21577,10 +24130,11 @@ class Libgit2 { ); } - late final _git_reflog_write_ptr = - _lookup>('git_reflog_write'); - late final _dart_git_reflog_write _git_reflog_write = - _git_reflog_write_ptr.asFunction<_dart_git_reflog_write>(); + late final _git_reflog_writePtr = + _lookup)>>( + 'git_reflog_write'); + late final _git_reflog_write = + _git_reflog_writePtr.asFunction)>(); /// Add a new entry to the in-memory reflog. /// @@ -21605,10 +24159,16 @@ class Libgit2 { ); } - late final _git_reflog_append_ptr = - _lookup>('git_reflog_append'); - late final _dart_git_reflog_append _git_reflog_append = - _git_reflog_append_ptr.asFunction<_dart_git_reflog_append>(); + late final _git_reflog_appendPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_reflog_append'); + late final _git_reflog_append = _git_reflog_appendPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); /// Rename a reflog /// @@ -21633,10 +24193,13 @@ class Libgit2 { ); } - late final _git_reflog_rename_ptr = - _lookup>('git_reflog_rename'); - late final _dart_git_reflog_rename _git_reflog_rename = - _git_reflog_rename_ptr.asFunction<_dart_git_reflog_rename>(); + late final _git_reflog_renamePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_reflog_rename'); + late final _git_reflog_rename = _git_reflog_renamePtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Delete the reflog for the given reference /// @@ -21653,10 +24216,12 @@ class Libgit2 { ); } - late final _git_reflog_delete_ptr = - _lookup>('git_reflog_delete'); - late final _dart_git_reflog_delete _git_reflog_delete = - _git_reflog_delete_ptr.asFunction<_dart_git_reflog_delete>(); + late final _git_reflog_deletePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_reflog_delete'); + late final _git_reflog_delete = _git_reflog_deletePtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Get the number of log entries in a reflog /// @@ -21670,11 +24235,11 @@ class Libgit2 { ); } - late final _git_reflog_entrycount_ptr = - _lookup>( + late final _git_reflog_entrycountPtr = + _lookup)>>( 'git_reflog_entrycount'); - late final _dart_git_reflog_entrycount _git_reflog_entrycount = - _git_reflog_entrycount_ptr.asFunction<_dart_git_reflog_entrycount>(); + late final _git_reflog_entrycount = _git_reflog_entrycountPtr + .asFunction)>(); /// Lookup an entry by its index /// @@ -21695,12 +24260,14 @@ class Libgit2 { ); } - late final _git_reflog_entry_byindex_ptr = - _lookup>( - 'git_reflog_entry_byindex'); - late final _dart_git_reflog_entry_byindex _git_reflog_entry_byindex = - _git_reflog_entry_byindex_ptr - .asFunction<_dart_git_reflog_entry_byindex>(); + late final _git_reflog_entry_byindexPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, size_t)>>('git_reflog_entry_byindex'); + late final _git_reflog_entry_byindex = + _git_reflog_entry_byindexPtr.asFunction< + ffi.Pointer Function( + ffi.Pointer, int)>(); /// Remove an entry from the reflog by its index /// @@ -21729,10 +24296,12 @@ class Libgit2 { ); } - late final _git_reflog_drop_ptr = - _lookup>('git_reflog_drop'); - late final _dart_git_reflog_drop _git_reflog_drop = - _git_reflog_drop_ptr.asFunction<_dart_git_reflog_drop>(); + late final _git_reflog_dropPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, size_t, ffi.Int32)>>('git_reflog_drop'); + late final _git_reflog_drop = _git_reflog_dropPtr + .asFunction, int, int)>(); /// Get the old oid /// @@ -21746,11 +24315,12 @@ class Libgit2 { ); } - late final _git_reflog_entry_id_old_ptr = - _lookup>( - 'git_reflog_entry_id_old'); - late final _dart_git_reflog_entry_id_old _git_reflog_entry_id_old = - _git_reflog_entry_id_old_ptr.asFunction<_dart_git_reflog_entry_id_old>(); + late final _git_reflog_entry_id_oldPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_reflog_entry_id_old'); + late final _git_reflog_entry_id_old = _git_reflog_entry_id_oldPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); /// Get the new oid /// @@ -21764,11 +24334,12 @@ class Libgit2 { ); } - late final _git_reflog_entry_id_new_ptr = - _lookup>( - 'git_reflog_entry_id_new'); - late final _dart_git_reflog_entry_id_new _git_reflog_entry_id_new = - _git_reflog_entry_id_new_ptr.asFunction<_dart_git_reflog_entry_id_new>(); + late final _git_reflog_entry_id_newPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_reflog_entry_id_new'); + late final _git_reflog_entry_id_new = _git_reflog_entry_id_newPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); /// Get the committer of this entry /// @@ -21782,12 +24353,13 @@ class Libgit2 { ); } - late final _git_reflog_entry_committer_ptr = - _lookup>( - 'git_reflog_entry_committer'); - late final _dart_git_reflog_entry_committer _git_reflog_entry_committer = - _git_reflog_entry_committer_ptr - .asFunction<_dart_git_reflog_entry_committer>(); + late final _git_reflog_entry_committerPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_reflog_entry_committer'); + late final _git_reflog_entry_committer = + _git_reflog_entry_committerPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); /// Get the log message /// @@ -21801,12 +24373,13 @@ class Libgit2 { ); } - late final _git_reflog_entry_message_ptr = - _lookup>( - 'git_reflog_entry_message'); - late final _dart_git_reflog_entry_message _git_reflog_entry_message = - _git_reflog_entry_message_ptr - .asFunction<_dart_git_reflog_entry_message>(); + late final _git_reflog_entry_messagePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_reflog_entry_message'); + late final _git_reflog_entry_message = + _git_reflog_entry_messagePtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); /// Free the reflog /// @@ -21819,10 +24392,11 @@ class Libgit2 { ); } - late final _git_reflog_free_ptr = - _lookup>('git_reflog_free'); - late final _dart_git_reflog_free _git_reflog_free = - _git_reflog_free_ptr.asFunction<_dart_git_reflog_free>(); + late final _git_reflog_freePtr = + _lookup)>>( + 'git_reflog_free'); + late final _git_reflog_free = + _git_reflog_freePtr.asFunction)>(); /// Sets the current head to the specified commit oid and optionally /// resets the index and working tree to match. @@ -21866,10 +24440,16 @@ class Libgit2 { ); } - late final _git_reset_ptr = - _lookup>('git_reset'); - late final _dart_git_reset _git_reset = - _git_reset_ptr.asFunction<_dart_git_reset>(); + late final _git_resetPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer)>>('git_reset'); + late final _git_reset = _git_resetPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer)>(); /// Sets the current head to the specified commit oid and optionally /// resets the index and working tree to match. @@ -21895,12 +24475,20 @@ class Libgit2 { ); } - late final _git_reset_from_annotated_ptr = - _lookup>( - 'git_reset_from_annotated'); - late final _dart_git_reset_from_annotated _git_reset_from_annotated = - _git_reset_from_annotated_ptr - .asFunction<_dart_git_reset_from_annotated>(); + late final _git_reset_from_annotatedPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer)>>('git_reset_from_annotated'); + late final _git_reset_from_annotated = + _git_reset_from_annotatedPtr.asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer)>(); /// Updates some entries in the index from the target commit tree. /// @@ -21930,10 +24518,15 @@ class Libgit2 { ); } - late final _git_reset_default_ptr = - _lookup>('git_reset_default'); - late final _dart_git_reset_default _git_reset_default = - _git_reset_default_ptr.asFunction<_dart_git_reset_default>(); + late final _git_reset_defaultPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_reset_default'); + late final _git_reset_default = _git_reset_defaultPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Allocate a new revision walker to iterate through a repo. /// @@ -21961,10 +24554,13 @@ class Libgit2 { ); } - late final _git_revwalk_new_ptr = - _lookup>('git_revwalk_new'); - late final _dart_git_revwalk_new _git_revwalk_new = - _git_revwalk_new_ptr.asFunction<_dart_git_revwalk_new>(); + late final _git_revwalk_newPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_revwalk_new'); + late final _git_revwalk_new = _git_revwalk_newPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer)>(); /// Reset the revision walker for reuse. /// @@ -21986,10 +24582,11 @@ class Libgit2 { ); } - late final _git_revwalk_reset_ptr = - _lookup>('git_revwalk_reset'); - late final _dart_git_revwalk_reset _git_revwalk_reset = - _git_revwalk_reset_ptr.asFunction<_dart_git_revwalk_reset>(); + late final _git_revwalk_resetPtr = + _lookup)>>( + 'git_revwalk_reset'); + late final _git_revwalk_reset = _git_revwalk_resetPtr + .asFunction)>(); /// Add a new root for the traversal /// @@ -22016,10 +24613,12 @@ class Libgit2 { ); } - late final _git_revwalk_push_ptr = - _lookup>('git_revwalk_push'); - late final _dart_git_revwalk_push _git_revwalk_push = - _git_revwalk_push_ptr.asFunction<_dart_git_revwalk_push>(); + late final _git_revwalk_pushPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_revwalk_push'); + late final _git_revwalk_push = _git_revwalk_pushPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Push matching references /// @@ -22045,11 +24644,12 @@ class Libgit2 { ); } - late final _git_revwalk_push_glob_ptr = - _lookup>( - 'git_revwalk_push_glob'); - late final _dart_git_revwalk_push_glob _git_revwalk_push_glob = - _git_revwalk_push_glob_ptr.asFunction<_dart_git_revwalk_push_glob>(); + late final _git_revwalk_push_globPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_revwalk_push_glob'); + late final _git_revwalk_push_glob = _git_revwalk_push_globPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Push the repository's HEAD /// @@ -22063,11 +24663,11 @@ class Libgit2 { ); } - late final _git_revwalk_push_head_ptr = - _lookup>( + late final _git_revwalk_push_headPtr = + _lookup)>>( 'git_revwalk_push_head'); - late final _dart_git_revwalk_push_head _git_revwalk_push_head = - _git_revwalk_push_head_ptr.asFunction<_dart_git_revwalk_push_head>(); + late final _git_revwalk_push_head = _git_revwalk_push_headPtr + .asFunction)>(); /// Mark a commit (and its ancestors) uninteresting for the output. /// @@ -22090,10 +24690,12 @@ class Libgit2 { ); } - late final _git_revwalk_hide_ptr = - _lookup>('git_revwalk_hide'); - late final _dart_git_revwalk_hide _git_revwalk_hide = - _git_revwalk_hide_ptr.asFunction<_dart_git_revwalk_hide>(); + late final _git_revwalk_hidePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_revwalk_hide'); + late final _git_revwalk_hide = _git_revwalk_hidePtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Hide matching references. /// @@ -22120,11 +24722,12 @@ class Libgit2 { ); } - late final _git_revwalk_hide_glob_ptr = - _lookup>( - 'git_revwalk_hide_glob'); - late final _dart_git_revwalk_hide_glob _git_revwalk_hide_glob = - _git_revwalk_hide_glob_ptr.asFunction<_dart_git_revwalk_hide_glob>(); + late final _git_revwalk_hide_globPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_revwalk_hide_glob'); + late final _git_revwalk_hide_glob = _git_revwalk_hide_globPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Hide the repository's HEAD /// @@ -22138,11 +24741,11 @@ class Libgit2 { ); } - late final _git_revwalk_hide_head_ptr = - _lookup>( + late final _git_revwalk_hide_headPtr = + _lookup)>>( 'git_revwalk_hide_head'); - late final _dart_git_revwalk_hide_head _git_revwalk_hide_head = - _git_revwalk_hide_head_ptr.asFunction<_dart_git_revwalk_hide_head>(); + late final _git_revwalk_hide_head = _git_revwalk_hide_headPtr + .asFunction)>(); /// Push the OID pointed to by a reference /// @@ -22161,11 +24764,12 @@ class Libgit2 { ); } - late final _git_revwalk_push_ref_ptr = - _lookup>( - 'git_revwalk_push_ref'); - late final _dart_git_revwalk_push_ref _git_revwalk_push_ref = - _git_revwalk_push_ref_ptr.asFunction<_dart_git_revwalk_push_ref>(); + late final _git_revwalk_push_refPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_revwalk_push_ref'); + late final _git_revwalk_push_ref = _git_revwalk_push_refPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Hide the OID pointed to by a reference /// @@ -22184,11 +24788,12 @@ class Libgit2 { ); } - late final _git_revwalk_hide_ref_ptr = - _lookup>( - 'git_revwalk_hide_ref'); - late final _dart_git_revwalk_hide_ref _git_revwalk_hide_ref = - _git_revwalk_hide_ref_ptr.asFunction<_dart_git_revwalk_hide_ref>(); + late final _git_revwalk_hide_refPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_revwalk_hide_ref'); + late final _git_revwalk_hide_ref = _git_revwalk_hide_refPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Get the next commit from the revision walk. /// @@ -22216,10 +24821,12 @@ class Libgit2 { ); } - late final _git_revwalk_next_ptr = - _lookup>('git_revwalk_next'); - late final _dart_git_revwalk_next _git_revwalk_next = - _git_revwalk_next_ptr.asFunction<_dart_git_revwalk_next>(); + late final _git_revwalk_nextPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_revwalk_next'); + late final _git_revwalk_next = _git_revwalk_nextPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Change the sorting mode when iterating through the /// repository's contents. @@ -22239,11 +24846,12 @@ class Libgit2 { ); } - late final _git_revwalk_sorting_ptr = - _lookup>( - 'git_revwalk_sorting'); - late final _dart_git_revwalk_sorting _git_revwalk_sorting = - _git_revwalk_sorting_ptr.asFunction<_dart_git_revwalk_sorting>(); + late final _git_revwalk_sortingPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Uint32)>>('git_revwalk_sorting'); + late final _git_revwalk_sorting = _git_revwalk_sortingPtr + .asFunction, int)>(); /// Push and hide the respective endpoints of the given range. /// @@ -22265,11 +24873,12 @@ class Libgit2 { ); } - late final _git_revwalk_push_range_ptr = - _lookup>( - 'git_revwalk_push_range'); - late final _dart_git_revwalk_push_range _git_revwalk_push_range = - _git_revwalk_push_range_ptr.asFunction<_dart_git_revwalk_push_range>(); + late final _git_revwalk_push_rangePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_revwalk_push_range'); + late final _git_revwalk_push_range = _git_revwalk_push_rangePtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Simplify the history by first-parent /// @@ -22284,13 +24893,12 @@ class Libgit2 { ); } - late final _git_revwalk_simplify_first_parent_ptr = - _lookup>( + late final _git_revwalk_simplify_first_parentPtr = + _lookup)>>( 'git_revwalk_simplify_first_parent'); - late final _dart_git_revwalk_simplify_first_parent - _git_revwalk_simplify_first_parent = - _git_revwalk_simplify_first_parent_ptr - .asFunction<_dart_git_revwalk_simplify_first_parent>(); + late final _git_revwalk_simplify_first_parent = + _git_revwalk_simplify_first_parentPtr + .asFunction)>(); /// Free a revision walker previously allocated. /// @@ -22303,10 +24911,11 @@ class Libgit2 { ); } - late final _git_revwalk_free_ptr = - _lookup>('git_revwalk_free'); - late final _dart_git_revwalk_free _git_revwalk_free = - _git_revwalk_free_ptr.asFunction<_dart_git_revwalk_free>(); + late final _git_revwalk_freePtr = + _lookup)>>( + 'git_revwalk_free'); + late final _git_revwalk_free = _git_revwalk_freePtr + .asFunction)>(); /// Return the repository on which this walker /// is operating. @@ -22321,11 +24930,12 @@ class Libgit2 { ); } - late final _git_revwalk_repository_ptr = - _lookup>( - 'git_revwalk_repository'); - late final _dart_git_revwalk_repository _git_revwalk_repository = - _git_revwalk_repository_ptr.asFunction<_dart_git_revwalk_repository>(); + late final _git_revwalk_repositoryPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_revwalk_repository'); + late final _git_revwalk_repository = _git_revwalk_repositoryPtr.asFunction< + ffi.Pointer Function(ffi.Pointer)>(); /// Adds, changes or removes a callback function to hide a commit and its parents /// @@ -22334,7 +24944,7 @@ class Libgit2 { /// @param payload data payload to be passed to callback function int git_revwalk_add_hide_cb( ffi.Pointer walk, - ffi.Pointer> hide_cb, + git_revwalk_hide_cb hide_cb, ffi.Pointer payload, ) { return _git_revwalk_add_hide_cb( @@ -22344,11 +24954,13 @@ class Libgit2 { ); } - late final _git_revwalk_add_hide_cb_ptr = - _lookup>( - 'git_revwalk_add_hide_cb'); - late final _dart_git_revwalk_add_hide_cb _git_revwalk_add_hide_cb = - _git_revwalk_add_hide_cb_ptr.asFunction<_dart_git_revwalk_add_hide_cb>(); + late final _git_revwalk_add_hide_cbPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, git_revwalk_hide_cb, + ffi.Pointer)>>('git_revwalk_add_hide_cb'); + late final _git_revwalk_add_hide_cb = _git_revwalk_add_hide_cbPtr.asFunction< + int Function(ffi.Pointer, git_revwalk_hide_cb, + ffi.Pointer)>(); /// Create a new action signature. /// @@ -22379,10 +24991,17 @@ class Libgit2 { ); } - late final _git_signature_new_ptr = - _lookup>('git_signature_new'); - late final _dart_git_signature_new _git_signature_new = - _git_signature_new_ptr.asFunction<_dart_git_signature_new>(); + late final _git_signature_newPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + git_time_t, + ffi.Int32)>>('git_signature_new'); + late final _git_signature_new = _git_signature_newPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer, int, int)>(); /// Create a new action signature with a timestamp of 'now'. /// @@ -22404,10 +25023,15 @@ class Libgit2 { ); } - late final _git_signature_now_ptr = - _lookup>('git_signature_now'); - late final _dart_git_signature_now _git_signature_now = - _git_signature_now_ptr.asFunction<_dart_git_signature_now>(); + late final _git_signature_nowPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>('git_signature_now'); + late final _git_signature_now = _git_signature_nowPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer)>(); /// Create a new action signature with default user and now timestamp. /// @@ -22429,11 +25053,13 @@ class Libgit2 { ); } - late final _git_signature_default_ptr = - _lookup>( - 'git_signature_default'); - late final _dart_git_signature_default _git_signature_default = - _git_signature_default_ptr.asFunction<_dart_git_signature_default>(); + late final _git_signature_defaultPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_signature_default'); + late final _git_signature_default = _git_signature_defaultPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer)>(); /// Create a new signature by parsing the given buffer, which is /// expected to be in the format "Real Name timestamp tzoffset", @@ -22454,12 +25080,14 @@ class Libgit2 { ); } - late final _git_signature_from_buffer_ptr = - _lookup>( - 'git_signature_from_buffer'); - late final _dart_git_signature_from_buffer _git_signature_from_buffer = - _git_signature_from_buffer_ptr - .asFunction<_dart_git_signature_from_buffer>(); + late final _git_signature_from_bufferPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_signature_from_buffer'); + late final _git_signature_from_buffer = + _git_signature_from_bufferPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer)>(); /// Create a copy of an existing signature. All internal strings are also /// duplicated. @@ -22479,10 +25107,13 @@ class Libgit2 { ); } - late final _git_signature_dup_ptr = - _lookup>('git_signature_dup'); - late final _dart_git_signature_dup _git_signature_dup = - _git_signature_dup_ptr.asFunction<_dart_git_signature_dup>(); + late final _git_signature_dupPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_signature_dup'); + late final _git_signature_dup = _git_signature_dupPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer)>(); /// Free an existing signature. /// @@ -22499,10 +25130,11 @@ class Libgit2 { ); } - late final _git_signature_free_ptr = - _lookup>('git_signature_free'); - late final _dart_git_signature_free _git_signature_free = - _git_signature_free_ptr.asFunction<_dart_git_signature_free>(); + late final _git_signature_freePtr = _lookup< + ffi.NativeFunction)>>( + 'git_signature_free'); + late final _git_signature_free = _git_signature_freePtr + .asFunction)>(); /// Lookup a tag object from the repository. /// @@ -22522,10 +25154,15 @@ class Libgit2 { ); } - late final _git_tag_lookup_ptr = - _lookup>('git_tag_lookup'); - late final _dart_git_tag_lookup _git_tag_lookup = - _git_tag_lookup_ptr.asFunction<_dart_git_tag_lookup>(); + late final _git_tag_lookupPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>('git_tag_lookup'); + late final _git_tag_lookup = _git_tag_lookupPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer)>(); /// Lookup a tag object from the repository, /// given a prefix of its identifier (short id). @@ -22551,11 +25188,16 @@ class Libgit2 { ); } - late final _git_tag_lookup_prefix_ptr = - _lookup>( - 'git_tag_lookup_prefix'); - late final _dart_git_tag_lookup_prefix _git_tag_lookup_prefix = - _git_tag_lookup_prefix_ptr.asFunction<_dart_git_tag_lookup_prefix>(); + late final _git_tag_lookup_prefixPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + size_t)>>('git_tag_lookup_prefix'); + late final _git_tag_lookup_prefix = _git_tag_lookup_prefixPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer, int)>(); /// Close an open tag /// @@ -22573,10 +25215,11 @@ class Libgit2 { ); } - late final _git_tag_free_ptr = - _lookup>('git_tag_free'); - late final _dart_git_tag_free _git_tag_free = - _git_tag_free_ptr.asFunction<_dart_git_tag_free>(); + late final _git_tag_freePtr = + _lookup)>>( + 'git_tag_free'); + late final _git_tag_free = + _git_tag_freePtr.asFunction)>(); /// Get the id of a tag. /// @@ -22590,10 +25233,11 @@ class Libgit2 { ); } - late final _git_tag_id_ptr = - _lookup>('git_tag_id'); - late final _dart_git_tag_id _git_tag_id = - _git_tag_id_ptr.asFunction<_dart_git_tag_id>(); + late final _git_tag_idPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>('git_tag_id'); + late final _git_tag_id = _git_tag_idPtr + .asFunction Function(ffi.Pointer)>(); /// Get the repository that contains the tag. /// @@ -22607,10 +25251,12 @@ class Libgit2 { ); } - late final _git_tag_owner_ptr = - _lookup>('git_tag_owner'); - late final _dart_git_tag_owner _git_tag_owner = - _git_tag_owner_ptr.asFunction<_dart_git_tag_owner>(); + late final _git_tag_ownerPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_tag_owner'); + late final _git_tag_owner = _git_tag_ownerPtr + .asFunction Function(ffi.Pointer)>(); /// Get the tagged object of a tag /// @@ -22630,10 +25276,13 @@ class Libgit2 { ); } - late final _git_tag_target_ptr = - _lookup>('git_tag_target'); - late final _dart_git_tag_target _git_tag_target = - _git_tag_target_ptr.asFunction<_dart_git_tag_target>(); + late final _git_tag_targetPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_tag_target'); + late final _git_tag_target = _git_tag_targetPtr.asFunction< + int Function( + ffi.Pointer>, ffi.Pointer)>(); /// Get the OID of the tagged object of a tag /// @@ -22647,10 +25296,12 @@ class Libgit2 { ); } - late final _git_tag_target_id_ptr = - _lookup>('git_tag_target_id'); - late final _dart_git_tag_target_id _git_tag_target_id = - _git_tag_target_id_ptr.asFunction<_dart_git_tag_target_id>(); + late final _git_tag_target_idPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_tag_target_id'); + late final _git_tag_target_id = _git_tag_target_idPtr + .asFunction Function(ffi.Pointer)>(); /// Get the type of a tag's tagged object /// @@ -22664,11 +25315,11 @@ class Libgit2 { ); } - late final _git_tag_target_type_ptr = - _lookup>( + late final _git_tag_target_typePtr = + _lookup)>>( 'git_tag_target_type'); - late final _dart_git_tag_target_type _git_tag_target_type = - _git_tag_target_type_ptr.asFunction<_dart_git_tag_target_type>(); + late final _git_tag_target_type = + _git_tag_target_typePtr.asFunction)>(); /// Get the name of a tag /// @@ -22682,10 +25333,12 @@ class Libgit2 { ); } - late final _git_tag_name_ptr = - _lookup>('git_tag_name'); - late final _dart_git_tag_name _git_tag_name = - _git_tag_name_ptr.asFunction<_dart_git_tag_name>(); + late final _git_tag_namePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_tag_name'); + late final _git_tag_name = _git_tag_namePtr + .asFunction Function(ffi.Pointer)>(); /// Get the tagger (author) of a tag /// @@ -22699,10 +25352,12 @@ class Libgit2 { ); } - late final _git_tag_tagger_ptr = - _lookup>('git_tag_tagger'); - late final _dart_git_tag_tagger _git_tag_tagger = - _git_tag_tagger_ptr.asFunction<_dart_git_tag_tagger>(); + late final _git_tag_taggerPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_tag_tagger'); + late final _git_tag_tagger = _git_tag_taggerPtr + .asFunction Function(ffi.Pointer)>(); /// Get the message of a tag /// @@ -22716,10 +25371,12 @@ class Libgit2 { ); } - late final _git_tag_message_ptr = - _lookup>('git_tag_message'); - late final _dart_git_tag_message _git_tag_message = - _git_tag_message_ptr.asFunction<_dart_git_tag_message>(); + late final _git_tag_messagePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('git_tag_message'); + late final _git_tag_message = _git_tag_messagePtr + .asFunction Function(ffi.Pointer)>(); /// Create a new tag in the repository from an object /// @@ -22778,10 +25435,25 @@ class Libgit2 { ); } - late final _git_tag_create_ptr = - _lookup>('git_tag_create'); - late final _dart_git_tag_create _git_tag_create = - _git_tag_create_ptr.asFunction<_dart_git_tag_create>(); + late final _git_tag_createPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('git_tag_create'); + late final _git_tag_create = _git_tag_createPtr.asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int)>(); /// Create a new tag in the object database pointing to a git_object /// @@ -22822,12 +25494,24 @@ class Libgit2 { ); } - late final _git_tag_annotation_create_ptr = - _lookup>( - 'git_tag_annotation_create'); - late final _dart_git_tag_annotation_create _git_tag_annotation_create = - _git_tag_annotation_create_ptr - .asFunction<_dart_git_tag_annotation_create>(); + late final _git_tag_annotation_createPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_tag_annotation_create'); + late final _git_tag_annotation_create = + _git_tag_annotation_createPtr.asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// Create a new tag in the repository from a buffer /// @@ -22850,12 +25534,14 @@ class Libgit2 { ); } - late final _git_tag_create_from_buffer_ptr = - _lookup>( - 'git_tag_create_from_buffer'); - late final _dart_git_tag_create_from_buffer _git_tag_create_from_buffer = - _git_tag_create_from_buffer_ptr - .asFunction<_dart_git_tag_create_from_buffer>(); + late final _git_tag_create_from_bufferPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int32)>>('git_tag_create_from_buffer'); + late final _git_tag_create_from_buffer = + _git_tag_create_from_bufferPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); /// Create a new lightweight tag pointing at a target object /// @@ -22901,12 +25587,18 @@ class Libgit2 { ); } - late final _git_tag_create_lightweight_ptr = - _lookup>( - 'git_tag_create_lightweight'); - late final _dart_git_tag_create_lightweight _git_tag_create_lightweight = - _git_tag_create_lightweight_ptr - .asFunction<_dart_git_tag_create_lightweight>(); + late final _git_tag_create_lightweightPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('git_tag_create_lightweight'); + late final _git_tag_create_lightweight = + _git_tag_create_lightweightPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer, int)>(); /// Delete an existing tag reference. /// @@ -22929,10 +25621,12 @@ class Libgit2 { ); } - late final _git_tag_delete_ptr = - _lookup>('git_tag_delete'); - late final _dart_git_tag_delete _git_tag_delete = - _git_tag_delete_ptr.asFunction<_dart_git_tag_delete>(); + late final _git_tag_deletePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_tag_delete'); + late final _git_tag_delete = _git_tag_deletePtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Fill a list with all the tags in the Repository /// @@ -22955,10 +25649,12 @@ class Libgit2 { ); } - late final _git_tag_list_ptr = - _lookup>('git_tag_list'); - late final _dart_git_tag_list _git_tag_list = - _git_tag_list_ptr.asFunction<_dart_git_tag_list>(); + late final _git_tag_listPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_tag_list'); + late final _git_tag_list = _git_tag_listPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Fill a list with all the tags in the Repository /// which name match a defined pattern @@ -22988,10 +25684,13 @@ class Libgit2 { ); } - late final _git_tag_list_match_ptr = - _lookup>('git_tag_list_match'); - late final _dart_git_tag_list_match _git_tag_list_match = - _git_tag_list_match_ptr.asFunction<_dart_git_tag_list_match>(); + late final _git_tag_list_matchPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('git_tag_list_match'); + late final _git_tag_list_match = _git_tag_list_matchPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Call callback `cb' for each tag in the repository /// @@ -23000,7 +25699,7 @@ class Libgit2 { /// @param payload Pointer to callback data (optional) int git_tag_foreach( ffi.Pointer repo, - ffi.Pointer> callback, + git_tag_foreach_cb callback, ffi.Pointer payload, ) { return _git_tag_foreach( @@ -23010,10 +25709,13 @@ class Libgit2 { ); } - late final _git_tag_foreach_ptr = - _lookup>('git_tag_foreach'); - late final _dart_git_tag_foreach _git_tag_foreach = - _git_tag_foreach_ptr.asFunction<_dart_git_tag_foreach>(); + late final _git_tag_foreachPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, git_tag_foreach_cb, + ffi.Pointer)>>('git_tag_foreach'); + late final _git_tag_foreach = _git_tag_foreachPtr.asFunction< + int Function(ffi.Pointer, git_tag_foreach_cb, + ffi.Pointer)>(); /// Recursively peel a tag until a non tag git_object is found /// @@ -23033,10 +25735,13 @@ class Libgit2 { ); } - late final _git_tag_peel_ptr = - _lookup>('git_tag_peel'); - late final _dart_git_tag_peel _git_tag_peel = - _git_tag_peel_ptr.asFunction<_dart_git_tag_peel>(); + late final _git_tag_peelPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_tag_peel'); + late final _git_tag_peel = _git_tag_peelPtr.asFunction< + int Function( + ffi.Pointer>, ffi.Pointer)>(); /// Create an in-memory copy of a tag. The copy must be explicitly /// free'd or it will leak. @@ -23053,10 +25758,12 @@ class Libgit2 { ); } - late final _git_tag_dup_ptr = - _lookup>('git_tag_dup'); - late final _dart_git_tag_dup _git_tag_dup = - _git_tag_dup_ptr.asFunction<_dart_git_tag_dup>(); + late final _git_tag_dupPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_tag_dup'); + late final _git_tag_dup = _git_tag_dupPtr.asFunction< + int Function(ffi.Pointer>, ffi.Pointer)>(); /// Determine whether a tag name is valid, meaning that (when prefixed /// with `refs/tags/`) that it is a valid reference name, and that any @@ -23076,11 +25783,12 @@ class Libgit2 { ); } - late final _git_tag_name_is_valid_ptr = - _lookup>( - 'git_tag_name_is_valid'); - late final _dart_git_tag_name_is_valid _git_tag_name_is_valid = - _git_tag_name_is_valid_ptr.asFunction<_dart_git_tag_name_is_valid>(); + late final _git_tag_name_is_validPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_tag_name_is_valid'); + late final _git_tag_name_is_valid = _git_tag_name_is_validPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Create a new transaction object /// @@ -23100,11 +25808,13 @@ class Libgit2 { ); } - late final _git_transaction_new_ptr = - _lookup>( - 'git_transaction_new'); - late final _dart_git_transaction_new _git_transaction_new = - _git_transaction_new_ptr.asFunction<_dart_git_transaction_new>(); + late final _git_transaction_newPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer)>>('git_transaction_new'); + late final _git_transaction_new = _git_transaction_newPtr.asFunction< + int Function(ffi.Pointer>, + ffi.Pointer)>(); /// Lock a reference /// @@ -23124,12 +25834,13 @@ class Libgit2 { ); } - late final _git_transaction_lock_ref_ptr = - _lookup>( - 'git_transaction_lock_ref'); - late final _dart_git_transaction_lock_ref _git_transaction_lock_ref = - _git_transaction_lock_ref_ptr - .asFunction<_dart_git_transaction_lock_ref>(); + late final _git_transaction_lock_refPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_transaction_lock_ref'); + late final _git_transaction_lock_ref = + _git_transaction_lock_refPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Set the target of a reference /// @@ -23158,12 +25869,22 @@ class Libgit2 { ); } - late final _git_transaction_set_target_ptr = - _lookup>( - 'git_transaction_set_target'); - late final _dart_git_transaction_set_target _git_transaction_set_target = - _git_transaction_set_target_ptr - .asFunction<_dart_git_transaction_set_target>(); + late final _git_transaction_set_targetPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_transaction_set_target'); + late final _git_transaction_set_target = + _git_transaction_set_targetPtr.asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// Set the target of a reference /// @@ -23192,13 +25913,22 @@ class Libgit2 { ); } - late final _git_transaction_set_symbolic_target_ptr = - _lookup>( - 'git_transaction_set_symbolic_target'); - late final _dart_git_transaction_set_symbolic_target - _git_transaction_set_symbolic_target = - _git_transaction_set_symbolic_target_ptr - .asFunction<_dart_git_transaction_set_symbolic_target>(); + late final _git_transaction_set_symbolic_targetPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_transaction_set_symbolic_target'); + late final _git_transaction_set_symbolic_target = + _git_transaction_set_symbolic_targetPtr.asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// Set the reflog of a reference /// @@ -23221,12 +25951,16 @@ class Libgit2 { ); } - late final _git_transaction_set_reflog_ptr = - _lookup>( - 'git_transaction_set_reflog'); - late final _dart_git_transaction_set_reflog _git_transaction_set_reflog = - _git_transaction_set_reflog_ptr - .asFunction<_dart_git_transaction_set_reflog>(); + late final _git_transaction_set_reflogPtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('git_transaction_set_reflog'); + late final _git_transaction_set_reflog = + _git_transaction_set_reflogPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); /// Remove a reference /// @@ -23243,11 +25977,12 @@ class Libgit2 { ); } - late final _git_transaction_remove_ptr = - _lookup>( - 'git_transaction_remove'); - late final _dart_git_transaction_remove _git_transaction_remove = - _git_transaction_remove_ptr.asFunction<_dart_git_transaction_remove>(); + late final _git_transaction_removePtr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>>('git_transaction_remove'); + late final _git_transaction_remove = _git_transaction_removePtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); /// Commit the changes from the transaction /// @@ -23264,11 +25999,11 @@ class Libgit2 { ); } - late final _git_transaction_commit_ptr = - _lookup>( - 'git_transaction_commit'); - late final _dart_git_transaction_commit _git_transaction_commit = - _git_transaction_commit_ptr.asFunction<_dart_git_transaction_commit>(); + late final _git_transaction_commitPtr = _lookup< + ffi.NativeFunction)>>( + 'git_transaction_commit'); + late final _git_transaction_commit = _git_transaction_commitPtr + .asFunction)>(); /// Free the resources allocated by this transaction /// @@ -23284,11 +26019,11 @@ class Libgit2 { ); } - late final _git_transaction_free_ptr = - _lookup>( - 'git_transaction_free'); - late final _dart_git_transaction_free _git_transaction_free = - _git_transaction_free_ptr.asFunction<_dart_git_transaction_free>(); + late final _git_transaction_freePtr = _lookup< + ffi.NativeFunction)>>( + 'git_transaction_free'); + late final _git_transaction_free = _git_transaction_freePtr + .asFunction)>(); } class __fsid_t extends ffi.Struct { @@ -23331,13 +26066,16 @@ class tm extends ffi.Struct { } class timespec extends ffi.Struct { - @ffi.Int64() + @__time_t() external int tv_sec; - @ffi.Int64() + @__syscall_slong_t() external int tv_nsec; } +typedef __time_t = ffi.Int64; +typedef __syscall_slong_t = ffi.Int64; + class itimerspec extends ffi.Struct { external timespec it_interval; @@ -23346,8 +26084,6 @@ class itimerspec extends ffi.Struct { class sigevent extends ffi.Opaque {} -class __locale_data extends ffi.Opaque {} - class __locale_struct extends ffi.Struct { @ffi.Array.multi([13]) external ffi.Array> __locales; @@ -23362,6 +26098,21 @@ class __locale_struct extends ffi.Struct { external ffi.Array> __names; } +class __locale_data extends ffi.Opaque {} + +typedef clock_t = __clock_t; +typedef __clock_t = ffi.Int64; +typedef time_t = __time_t; +typedef size_t = ffi.Uint64; +typedef locale_t = __locale_t; +typedef __locale_t = ffi.Pointer<__locale_struct>; +typedef clockid_t = __clockid_t; +typedef __clockid_t = ffi.Int32; +typedef pid_t = __pid_t; +typedef __pid_t = ffi.Int32; +typedef timer_t = __timer_t; +typedef __timer_t = ffi.Pointer; + class div_t extends ffi.Struct { @ffi.Int32() external int quot; @@ -23392,26 +26143,30 @@ class __sigset_t extends ffi.Struct { } class timeval extends ffi.Struct { - @ffi.Int64() + @__time_t() external int tv_sec; - @ffi.Int64() + @__suseconds_t() external int tv_usec; } +typedef __suseconds_t = ffi.Int64; + class fd_set extends ffi.Struct { @ffi.Array.multi([16]) - external ffi.Array __fds_bits; + external ffi.Array<__fd_mask> __fds_bits; } -class __pthread_list_t extends ffi.Struct { - external ffi.Pointer<__pthread_list_t> __prev; +typedef __fd_mask = ffi.Int64; - external ffi.Pointer<__pthread_list_t> __next; +class __pthread_internal_list extends ffi.Struct { + external ffi.Pointer<__pthread_internal_list> __prev; + + external ffi.Pointer<__pthread_internal_list> __next; } -class __pthread_slist_t extends ffi.Struct { - external ffi.Pointer<__pthread_slist_t> __next; +class __pthread_internal_slist extends ffi.Struct { + external ffi.Pointer<__pthread_internal_slist> __next; } class __pthread_mutex_s extends ffi.Struct { @@ -23439,6 +26194,8 @@ class __pthread_mutex_s extends ffi.Struct { external __pthread_list_t __list; } +typedef __pthread_list_t = __pthread_internal_list; + class __pthread_rwlock_arch_t extends ffi.Struct { @ffi.Uint32() external int __readers; @@ -23613,6 +26370,11 @@ class drand48_data extends ffi.Struct { external int __a; } +typedef __compar_fn_t = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer)>>; +typedef wchar_t = ffi.Int32; + class imaxdiv_t extends ffi.Struct { @ffi.Int64() external int quot; @@ -23621,6 +26383,12 @@ class imaxdiv_t extends ffi.Struct { external int rem; } +typedef intmax_t = __intmax_t; +typedef __intmax_t = ffi.Int64; +typedef uintmax_t = __uintmax_t; +typedef __uintmax_t = ffi.Uint64; +typedef __gwchar_t = ffi.Int32; + /// Combinations of these values describe the features with which libgit2 /// was compiled abstract class git_feature_t { @@ -23711,11 +26479,11 @@ class git_buf extends ffi.Struct { /// was allocated by libgit2. It may be larger than `size`. If `ptr` /// was not allocated by libgit2 and should not be resized and/or freed, /// then `asize` will be set to zero. - @ffi.Int32() + @size_t() external int asize; /// `size` holds the size (in bytes) of the data that is actually used. - @ffi.Int32() + @size_t() external int size; } @@ -23774,19 +26542,57 @@ class git_odb_stream extends ffi.Struct { external ffi.Pointer hash_ctx; - @ffi.Uint64() + @git_object_size_t() external int declared_size; - @ffi.Uint64() + @git_object_size_t() external int received_bytes; - external ffi.Pointer> read; + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer, size_t)>> + read; - external ffi.Pointer> write; + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer, size_t)>> + write; - external ffi.Pointer> finalize_write; + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>> + finalize_write; - external ffi.Pointer> free; + external ffi.Pointer< + ffi.NativeFunction)>> free; +} + +/// The maximum size of an object +typedef git_object_size_t = ffi.Uint64; + +/// A stream to write a pack file to the ODB +class git_odb_writepack extends ffi.Struct { + external ffi.Pointer backend; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + size_t, + ffi.Pointer)>> append; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer)>> commit; + + external ffi.Pointer< + ffi.NativeFunction)>> + free; } /// This structure is used to provide callers information about the @@ -23819,21 +26625,10 @@ class git_indexer_progress extends ffi.Struct { external int indexed_deltas; /// size of the packfile received up to now - @ffi.Int32() + @size_t() external int received_bytes; } -/// A stream to write a pack file to the ODB -class git_odb_writepack extends ffi.Struct { - external ffi.Pointer backend; - - external ffi.Pointer> append; - - external ffi.Pointer> commit; - - external ffi.Pointer> free; -} - class git_midx_writer extends ffi.Opaque {} class git_refdb extends ffi.Opaque {} @@ -23885,7 +26680,7 @@ class git_packbuilder extends ffi.Opaque {} /// Time in a signature class git_time extends ffi.Struct { /// < time in seconds from epoch - @ffi.Int64() + @git_time_t() external int time; /// < timezone offset, in minutes @@ -23897,6 +26692,8 @@ class git_time extends ffi.Struct { external int sign; } +typedef git_time_t = ffi.Int64; + /// An action signature (e.g. for committers, taggers, etc) class git_signature extends ffi.Struct { /// < full name of the author @@ -23977,15 +26774,202 @@ class git_remote_head extends ffi.Struct { external ffi.Pointer symref_target; } +/// The callback settings structure +/// +/// Set the callbacks to be called by the remote when informing the user +/// about the progress of the network operations. +class git_remote_callbacks extends ffi.Struct { + /// < The version + @ffi.Uint32() + external int version; + + /// Textual progress from the remote. Text send over the + /// progress side-band will be passed to this function (this is + /// the 'counting objects' output). + external git_transport_message_cb sideband_progress; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Int32, ffi.Pointer)>> completion; + + /// This will be called if the remote host requires + /// authentication in order to connect to it. + /// + /// Returning GIT_PASSTHROUGH will make libgit2 behave as + /// though this field isn't set. + external git_credential_acquire_cb credentials; + + /// If cert verification fails, this will be called to let the + /// user make the final decision of whether to allow the + /// connection to proceed. Returns 0 to allow the connection + /// or a negative value to indicate an error. + external git_transport_certificate_check_cb certificate_check; + + /// During the download of new data, this will be regularly + /// called with the current count of progress done by the + /// indexer. + external git_indexer_progress_cb transfer_progress; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>> update_tips; + + /// Function to call with progress information during pack + /// building. Be aware that this is called inline with pack + /// building operations, so performance may be affected. + external git_packbuilder_progress pack_progress; + + /// Function to call with progress information during the + /// upload portion of a push. Be aware that this is called + /// inline with pack building operations, so performance may be + /// affected. + external git_push_transfer_progress_cb push_transfer_progress; + + /// See documentation of git_push_update_reference_cb + external git_push_update_reference_cb push_update_reference; + + /// Called once between the negotiation step and the upload. It + /// provides information about what updates will be performed. + external git_push_negotiation push_negotiation; + + /// Create the transport to use for this operation. Leave NULL + /// to auto-detect. + external git_transport_cb transport; + + /// Callback when the remote is ready to connect. + external git_remote_ready_cb remote_ready; + + /// This will be passed to each of the callbacks in this struct + /// as the last parameter. + external ffi.Pointer payload; + + /// Resolve URL before connecting to remote. + /// The returned URL will be used to connect to the remote instead. + /// + /// This callback is deprecated; users should use + /// git_remote_ready_cb and configure the instance URL instead. + external git_url_resolve_cb resolve_url; +} + +/// Callback for messages received by the transport. +/// +/// Return a negative value to cancel the network operation. +/// +/// @param str The message from the transport +/// @param len The length of the message +/// @param payload Payload provided by the caller +typedef git_transport_message_cb = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Int32, ffi.Pointer)>>; + +/// Argument to the completion callback which tells it which operation +/// finished. +abstract class git_remote_completion_t { + static const int GIT_REMOTE_COMPLETION_DOWNLOAD = 0; + static const int GIT_REMOTE_COMPLETION_INDEXING = 1; + static const int GIT_REMOTE_COMPLETION_ERROR = 2; +} + +/// Credential acquisition callback. +/// +/// This callback is usually involved any time another system might need +/// authentication. As such, you are expected to provide a valid +/// git_credential object back, depending on allowed_types (a +/// git_credential_t bitmask). +/// +/// Note that most authentication details are your responsibility - this +/// callback will be called until the authentication succeeds, or you report +/// an error. As such, it's easy to get in a loop if you fail to stop providing +/// the same incorrect credentials. +/// +/// @param out The newly created credential object. +/// @param url The resource for which we are demanding a credential. +/// @param username_from_url The username that was embedded in a "user\@host" +/// remote url, or NULL if not included. +/// @param allowed_types A bitmask stating which credential types are OK to return. +/// @param payload The payload provided when specifying this callback. +/// @return 0 for success, < 0 to indicate an error, > 0 to indicate +/// no credential was acquired +typedef git_credential_acquire_cb = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Uint32, + ffi.Pointer)>>; + /// The base structure for all credential types class git_credential extends ffi.Struct { /// < A type of credential @ffi.Int32() external int credtype; - external ffi.Pointer> free; + external ffi.Pointer< + ffi.NativeFunction)>> free; } +/// Supported credential types +/// +/// This represents the various types of authentication methods supported by +/// the library. +abstract class git_credential_t { + /// A vanilla user/password request + /// @see git_credential_userpass_plaintext_new + static const int GIT_CREDENTIAL_USERPASS_PLAINTEXT = 1; + + /// An SSH key-based authentication request + /// @see git_credential_ssh_key_new + static const int GIT_CREDENTIAL_SSH_KEY = 2; + + /// An SSH key-based authentication request, with a custom signature + /// @see git_credential_ssh_custom_new + static const int GIT_CREDENTIAL_SSH_CUSTOM = 4; + + /// An NTLM/Negotiate-based authentication request. + /// @see git_credential_default + static const int GIT_CREDENTIAL_DEFAULT = 8; + + /// An SSH interactive authentication request + /// @see git_credential_ssh_interactive_new + static const int GIT_CREDENTIAL_SSH_INTERACTIVE = 16; + + /// Username-only authentication request + /// + /// Used as a pre-authentication step if the underlying transport + /// (eg. SSH, with no username in its URL) does not know which username + /// to use. + /// + /// @see git_credential_username_new + static const int GIT_CREDENTIAL_USERNAME = 32; + + /// An SSH key-based authentication request + /// + /// Allows credentials to be read from memory instead of files. + /// Note that because of differences in crypto backend support, it might + /// not be functional. + /// + /// @see git_credential_ssh_key_memory_new + static const int GIT_CREDENTIAL_SSH_MEMORY = 64; +} + +/// Callback for the user's custom certificate checks. +/// +/// @param cert The host certificate +/// @param valid Whether the libgit2 checks (OpenSSL or WinHTTP) think +/// this certificate is valid +/// @param host Hostname of the host libgit2 connected to +/// @param payload Payload provided by the caller +/// @return 0 to proceed with the connection, < 0 to fail the connection +/// or > 0 to indicate that the callback refused to act and that +/// the existing validity determination should be honored +typedef git_transport_certificate_check_cb = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Int32, + ffi.Pointer, ffi.Pointer)>>; + /// Parent type for `git_cert_hostkey` and `git_cert_x509`. class git_cert extends ffi.Struct { /// Type of certificate. A `GIT_CERT_` value. @@ -23993,6 +26977,75 @@ class git_cert extends ffi.Struct { external int cert_type; } +/// Type of host certificate structure that is passed to the check callback +abstract class git_cert_t { + /// No information about the certificate is available. This may + /// happen when using curl. + static const int GIT_CERT_NONE = 0; + + /// The `data` argument to the callback will be a pointer to + /// the DER-encoded data. + static const int GIT_CERT_X509 = 1; + + /// The `data` argument to the callback will be a pointer to a + /// `git_cert_hostkey` structure. + static const int GIT_CERT_HOSTKEY_LIBSSH2 = 2; + + /// The `data` argument to the callback will be a pointer to a + /// `git_strarray` with `name:content` strings containing + /// information about the certificate. This is used when using + /// curl. + static const int GIT_CERT_STRARRAY = 3; +} + +/// Type for progress callbacks during indexing. Return a value less +/// than zero to cancel the indexing or download. +/// +/// @param stats Structure containing information about the state of the transfer +/// @param payload Payload provided by caller +typedef git_indexer_progress_cb = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>; + +/// Packbuilder progress notification function +typedef git_packbuilder_progress = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Int32, ffi.Uint32, ffi.Uint32, ffi.Pointer)>>; + +/// Push network progress notification function +typedef git_push_transfer_progress_cb = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Uint32, ffi.Uint32, size_t, ffi.Pointer)>>; + +/// Callback used to inform of the update status from the remote. +/// +/// Called for each updated reference on push. If `status` is +/// not `NULL`, the update was rejected by the remote server +/// and `status` contains the reason given. +/// +/// @param refname refname specifying to the remote ref +/// @param status status message sent from the remote +/// @param data data provided by the caller +/// @return 0 on success, otherwise an error +typedef git_push_update_reference_cb = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>; + +/// Callback used to inform of upcoming updates. +/// +/// @param updates an array containing the updates which will be sent +/// as commands to the destination. +/// @param len number of elements in `updates` +/// @param payload Payload provided by the caller +typedef git_push_negotiation = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, size_t, + ffi.Pointer)>>; + /// Represents an update which will be performed on the remote during push class git_push_update extends ffi.Struct { /// The source name of the reference @@ -24008,86 +27061,40 @@ class git_push_update extends ffi.Struct { external git_oid dst; } -/// The callback settings structure +/// Signature of a function which creates a transport +typedef git_transport_cb = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer, ffi.Pointer)>>; + +/// Callback invoked immediately before we attempt to connect to the +/// given url. Callers may change the URL before the connection by +/// calling `git_remote_set_instance_url` in the callback. /// -/// Set the callbacks to be called by the remote when informing the user -/// about the progress of the network operations. -class git_remote_callbacks extends ffi.Struct { - /// < The version - @ffi.Uint32() - external int version; +/// @param remote The remote to be connected +/// @param direction GIT_DIRECTION_FETCH or GIT_DIRECTION_PUSH +/// @param payload Payload provided by the caller +/// @return 0 on success, or an error +typedef git_remote_ready_cb = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Int32, ffi.Pointer)>>; - /// Textual progress from the remote. Text send over the - /// progress side-band will be passed to this function (this is - /// the 'counting objects' output). - external ffi.Pointer> - sideband_progress; - - external ffi.Pointer> completion; - - /// This will be called if the remote host requires - /// authentication in order to connect to it. - /// - /// Returning GIT_PASSTHROUGH will make libgit2 behave as - /// though this field isn't set. - external ffi.Pointer> - credentials; - - /// If cert verification fails, this will be called to let the - /// user make the final decision of whether to allow the - /// connection to proceed. Returns 0 to allow the connection - /// or a negative value to indicate an error. - external ffi.Pointer> - certificate_check; - - /// During the download of new data, this will be regularly - /// called with the current count of progress done by the - /// indexer. - external ffi.Pointer> - transfer_progress; - - external ffi.Pointer> update_tips; - - /// Function to call with progress information during pack - /// building. Be aware that this is called inline with pack - /// building operations, so performance may be affected. - external ffi.Pointer> - pack_progress; - - /// Function to call with progress information during the - /// upload portion of a push. Be aware that this is called - /// inline with pack building operations, so performance may be - /// affected. - external ffi.Pointer> - push_transfer_progress; - - /// See documentation of git_push_update_reference_cb - external ffi.Pointer> - push_update_reference; - - /// Called once between the negotiation step and the upload. It - /// provides information about what updates will be performed. - external ffi.Pointer> - push_negotiation; - - /// Create the transport to use for this operation. Leave NULL - /// to auto-detect. - external ffi.Pointer> transport; - - /// Callback when the remote is ready to connect. - external ffi.Pointer> remote_ready; - - /// This will be passed to each of the callbacks in this struct - /// as the last parameter. - external ffi.Pointer payload; - - /// Resolve URL before connecting to remote. - /// The returned URL will be used to connect to the remote instead. - /// - /// This callback is deprecated; users should use - /// git_remote_ready_cb and configure the instance URL instead. - external ffi.Pointer> resolve_url; -} +/// Callback to resolve URLs before connecting to remote +/// +/// If you return GIT_PASSTHROUGH, you don't need to write anything to +/// url_resolved. +/// +/// @param url_resolved The buffer to write the resolved URL to +/// @param url The URL to resolve +/// @param direction GIT_DIRECTION_FETCH or GIT_DIRECTION_PUSH +/// @param payload Payload provided by the caller +/// @return 0 on success, GIT_PASSTHROUGH or an error +/// @deprecated Use `git_remote_set_instance_url` +typedef git_url_resolve_cb = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Int32, ffi.Pointer)>>; class git_submodule extends ffi.Opaque {} @@ -24181,11 +27188,18 @@ abstract class git_submodule_recurse_t { /// A type to write in a streaming fashion, for example, for filters. class git_writestream extends ffi.Struct { - external ffi.Pointer> write; + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer, size_t)>> + write; - external ffi.Pointer> close; + external ffi.Pointer< + ffi.NativeFunction)>> + close; - external ffi.Pointer> free; + external ffi.Pointer< + ffi.NativeFunction)>> free; } class git_mailmap extends ffi.Opaque {} @@ -24351,6 +27365,32 @@ abstract class git_repository_item_t { static const int GIT_REPOSITORY_ITEM__LAST = 14; } +/// Callback used to iterate over each FETCH_HEAD entry +/// +/// @see git_repository_fetchhead_foreach +/// +/// @param ref_name The reference name +/// @param remote_url The remote URL +/// @param oid The reference target OID +/// @param is_merge Was the reference the result of a merge +/// @param payload Payload passed to git_repository_fetchhead_foreach +/// @return non-zero to terminate the iteration +typedef git_repository_fetchhead_foreach_cb = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Uint32, ffi.Pointer)>>; + +/// Callback used to iterate over each MERGE_HEAD entry +/// +/// @see git_repository_mergehead_foreach +/// +/// @param oid The merge OID +/// @param payload Payload passed to git_repository_mergehead_foreach +/// @return non-zero to terminate the iteration +typedef git_repository_mergehead_foreach_cb = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer)>>; + /// Repository state /// /// These values represent possible states for the repository to be in, @@ -24370,6 +27410,16 @@ abstract class git_repository_state_t { static const int GIT_REPOSITORY_STATE_APPLY_MAILBOX_OR_REBASE = 11; } +/// Callback for git_treebuilder_filter +/// +/// The return value is treated as a boolean, with zero indicating that the +/// entry should be left alone and any non-zero value meaning that the +/// entry should be removed from the treebuilder list (i.e. filtered out). +typedef git_treebuilder_filter_cb = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>; + /// Tree traversal modes abstract class git_treewalk_mode { /// Pre-order @@ -24379,6 +27429,12 @@ abstract class git_treewalk_mode { static const int GIT_TREEWALK_POST = 1; } +/// Callback for the tree traversal method +typedef git_treewalk_cb = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>; + /// The kind of update to perform abstract class git_tree_update_t { /// Update or insert an entry at the specified path @@ -24409,10 +27465,32 @@ class git_tree_update extends ffi.Struct { class git_strarray extends ffi.Struct { external ffi.Pointer> strings; - @ffi.Int32() + @size_t() external int count; } +/// Callback used to iterate over references +/// +/// @see git_reference_foreach +/// +/// @param reference The reference object +/// @param payload Payload passed to git_reference_foreach +/// @return non-zero to terminate the iteration +typedef git_reference_foreach_cb = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer)>>; + +/// Callback used to iterate over reference names +/// +/// @see git_reference_foreach_name +/// +/// @param name The reference name +/// @param payload Payload passed to git_reference_foreach_name +/// @return non-zero to terminate the iteration +typedef git_reference_foreach_name_cb = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer)>>; + /// Normalization options for reference lookup abstract class git_reference_format_t { /// No particular normalization. @@ -24651,7 +27729,7 @@ class git_diff_file extends ffi.Struct { external ffi.Pointer path; /// The size of the entry in bytes. - @ffi.Uint64() + @git_object_size_t() external int size; /// A combination of the `git_diff_flag_t` types @@ -24755,11 +27833,11 @@ class git_diff_options extends ffi.Struct { /// An optional callback function, notifying the consumer of changes to /// the diff as new deltas are added. - external ffi.Pointer> notify_cb; + external git_diff_notify_cb notify_cb; /// An optional callback function, notifying the consumer of which files /// are being examined as the diff is generated. - external ffi.Pointer> progress_cb; + external git_diff_progress_cb progress_cb; /// The payload to pass to the callback functions. external ffi.Pointer payload; @@ -24782,7 +27860,7 @@ class git_diff_options extends ffi.Struct { /// A size (in bytes) above which a blob will be marked as binary /// automatically; pass a negative value to disable. /// Defaults to 512MB. - @ffi.Int64() + @git_off_t() external int max_size; /// The virtual "directory" prefix for old file names in hunk headers. @@ -24794,6 +27872,40 @@ class git_diff_options extends ffi.Struct { external ffi.Pointer new_prefix; } +/// Diff notification callback function. +/// +/// The callback will be called for each file, just before the `git_diff_delta` +/// gets inserted into the diff. +/// +/// When the callback: +/// - returns < 0, the diff process will be aborted. +/// - returns > 0, the delta will not be inserted into the diff, but the +/// diff process continues. +/// - returns 0, the delta is inserted into the diff, and the diff process +/// continues. +typedef git_diff_notify_cb = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>; + +/// Diff progress callback. +/// +/// Called before each file comparison. +/// +/// @param diff_so_far The diff being generated. +/// @param old_path The path to the old file or NULL. +/// @param new_path The path to the new file or NULL. +/// @return Non-zero to abort the diff. +typedef git_diff_progress_cb = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>; + +/// Note: Can't use off_t since if a client program includes +/// before us (directly or indirectly), they'll get 32 bit off_t in their client +/// app, even though /we/ define _FILE_OFFSET_BITS=64. +typedef git_off_t = ffi.Int64; + /// When producing a binary diff, the binary data returned will be /// either the deflated full ("literal") contents of the file, or /// the deflated binary delta between the two sides (whichever is @@ -24819,11 +27931,11 @@ class git_diff_binary_file extends ffi.Struct { external ffi.Pointer data; /// The length of the binary data. - @ffi.Int32() + @size_t() external int datalen; /// The length of the binary data after inflation. - @ffi.Int32() + @size_t() external int inflatedlen; } @@ -24876,7 +27988,7 @@ class git_diff_hunk extends ffi.Struct { external int new_lines; /// < Number of bytes in header text - @ffi.Int32() + @size_t() external int header_len; @ffi.Array.multi([128]) @@ -24941,11 +28053,11 @@ class git_diff_line extends ffi.Struct { external int num_lines; /// < Number of bytes of data - @ffi.Int32() + @size_t() external int content_len; /// < Offset in the original file to the content - @ffi.Int64() + @git_off_t() external int content_offset; /// < Pointer to diff text, not NUL-byte terminated @@ -25026,13 +28138,32 @@ abstract class git_diff_find_t { /// Pluggable similarity metric class git_diff_similarity_metric extends ffi.Struct { - external ffi.Pointer> file_signature; + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>> file_signature; - external ffi.Pointer> buffer_signature; + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + size_t, + ffi.Pointer)>> buffer_signature; - external ffi.Pointer> free_signature; + external ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer)>> + free_signature; - external ffi.Pointer> similarity; + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>> similarity; external ffi.Pointer payload; } @@ -25075,7 +28206,7 @@ class git_diff_find_options extends ffi.Struct { /// This is a little different from the `-l` option from Git because we /// will still process up to this many matches before abandoning the search. /// Defaults to 200. - @ffi.Int32() + @size_t() external int rename_limit; /// The `metric` option allows you to plug in a custom similarity metric. @@ -25089,6 +28220,43 @@ class git_diff_find_options extends ffi.Struct { external ffi.Pointer metric; } +/// When iterating over a diff, callback that will be made per file. +/// +/// @param delta A pointer to the delta data for the file +/// @param progress Goes from 0 to 1 over the diff +/// @param payload User-specified pointer from foreach function +typedef git_diff_file_cb = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Float, ffi.Pointer)>>; + +/// When iterating over a diff, callback that will be made for +/// binary content within the diff. +typedef git_diff_binary_cb = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>; + +/// When iterating over a diff, callback that will be made per hunk. +typedef git_diff_hunk_cb = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>; + +/// When iterating over a diff, callback that will be made per text diff +/// line. In this context, the provided range will be NULL. +/// +/// When printing a diff, callback that will be made to output each line +/// of text. This uses some extra GIT_DIFF_LINE_... constants for output +/// of lines of file and hunk headers. +typedef git_diff_line_cb = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>; + /// Possible output formats for diff data abstract class git_diff_format_t { /// < full git diff @@ -25149,11 +28317,11 @@ class git_diff_format_email_options extends ffi.Struct { external int flags; /// This patch number - @ffi.Int32() + @size_t() external int patch_no; /// Total number of patches in this series - @ffi.Int32() + @size_t() external int total_patches; /// id to use for the commit @@ -25197,10 +28365,10 @@ class git_apply_options extends ffi.Struct { external int version; /// When applying a patch, callback that will be made per delta (file). - external ffi.Pointer> delta_cb; + external git_apply_delta_cb delta_cb; /// When applying a patch, callback that will be made per hunk. - external ffi.Pointer> hunk_cb; + external git_apply_hunk_cb hunk_cb; /// Payload passed to both delta_cb & hunk_cb. external ffi.Pointer payload; @@ -25210,6 +28378,35 @@ class git_apply_options extends ffi.Struct { external int flags; } +/// When applying a patch, callback that will be made per delta (file). +/// +/// When the callback: +/// - returns < 0, the apply process will be aborted. +/// - returns > 0, the delta will not be applied, but the apply process +/// continues +/// - returns 0, the delta is applied, and the apply process continues. +/// +/// @param delta The delta to be applied +/// @param payload User-specified payload +typedef git_apply_delta_cb = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>; + +/// When applying a patch, callback that will be made per hunk. +/// +/// When the callback: +/// - returns < 0, the apply process will be aborted. +/// - returns > 0, the hunk will not be applied, but the apply process +/// continues +/// - returns 0, the hunk is applied, and the apply process continues. +/// +/// @param hunk The hunk to be applied +/// @param payload User-specified payload +typedef git_apply_hunk_cb = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer)>>; + /// Possible application locations for git_apply abstract class git_apply_location_t { /// Apply the patch to the workdir, leaving the index untouched. @@ -25254,6 +28451,25 @@ class git_attr_options extends ffi.Struct { external ffi.Pointer commit_id; } +/// The callback used with git_attr_foreach. +/// +/// This callback will be invoked only once per attribute name, even if there +/// are multiple rules for a given file. The highest priority rule will be +/// used. +/// +/// @see git_attr_foreach. +/// +/// @param name The attribute name. +/// @param value The attribute value. May be NULL if the attribute is explicitly +/// set to UNSPECIFIED using the '!' sign. +/// @param payload A user-specified pointer. +/// @return 0 to continue looping, non-zero to stop. This value will be returned +/// from git_attr_foreach. +typedef git_attr_foreach_cb = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>; + /// Flags to control the functionality of `git_blob_filter`. abstract class git_blob_filter_flag_t { /// When set, filters will not be applied to binary files. @@ -25362,19 +28578,19 @@ class git_blame_options extends ffi.Struct { /// The first line in the file to blame. /// The default is 1 (line numbers start with 1). - @ffi.Int32() + @size_t() external int min_line; /// The last line in the file to blame. /// The default is the last line of the file. - @ffi.Int32() + @size_t() external int max_line; } /// Structure that represents a blame hunk. class git_blame_hunk extends ffi.Struct { /// The number of lines in this hunk. - @ffi.Int32() + @size_t() external int lines_in_hunk; /// The OID of the commit where this line was last changed. @@ -25382,7 +28598,7 @@ class git_blame_hunk extends ffi.Struct { /// The 1-based line number where this hunk begins, in the final version /// of the file. - @ffi.Int32() + @size_t() external int final_start_line_number; /// The author of `final_commit_id`. If `GIT_BLAME_USE_MAILMAP` has been @@ -25400,7 +28616,7 @@ class git_blame_hunk extends ffi.Struct { /// The 1-based line number where this hunk begins in the file named by /// `orig_path` in the commit specified by `orig_commit_id`. - @ffi.Int32() + @size_t() external int orig_start_line_number; /// The author of `orig_commit_id`. If `GIT_BLAME_USE_MAILMAP` has been @@ -25417,27 +28633,6 @@ class git_blame extends ffi.Opaque {} class git_branch_iterator extends ffi.Opaque {} -/// Type of host certificate structure that is passed to the check callback -abstract class git_cert_t { - /// No information about the certificate is available. This may - /// happen when using curl. - static const int GIT_CERT_NONE = 0; - - /// The `data` argument to the callback will be a pointer to - /// the DER-encoded data. - static const int GIT_CERT_X509 = 1; - - /// The `data` argument to the callback will be a pointer to a - /// `git_cert_hostkey` structure. - static const int GIT_CERT_HOSTKEY_LIBSSH2 = 2; - - /// The `data` argument to the callback will be a pointer to a - /// `git_strarray` with `name:content` strings containing - /// information about the certificate. This is used when using - /// curl. - static const int GIT_CERT_STRARRAY = 3; -} - /// Type of SSH host fingerprint abstract class git_cert_ssh_t { /// MD5 is available @@ -25505,7 +28700,7 @@ class git_cert_hostkey extends ffi.Struct { /// Raw hostkey length. If `type` has `GIT_CERT_SSH_RAW` set, this will /// have the length of the raw contents of the hostkey. - @ffi.Int32() + @size_t() external int hostkey_len; } @@ -25518,7 +28713,7 @@ class git_cert_x509 extends ffi.Struct { external ffi.Pointer data; /// Length of the memory block pointed to by `data`. - @ffi.Int32() + @size_t() external int len; } @@ -25720,13 +28915,13 @@ abstract class git_checkout_notify_t { /// Checkout performance-reporting structure class git_checkout_perfdata extends ffi.Struct { - @ffi.Int32() + @size_t() external int mkdir_calls; - @ffi.Int32() + @size_t() external int stat_calls; - @ffi.Int32() + @size_t() external int chmod_calls; } @@ -25765,14 +28960,13 @@ class git_checkout_options extends ffi.Struct { /// Optional callback to get notifications on specific file states. /// @see git_checkout_notify_t - external ffi.Pointer> notify_cb; + external git_checkout_notify_cb notify_cb; /// Payload passed to notify_cb external ffi.Pointer notify_payload; /// Optional callback to notify the consumer of checkout progress. - external ffi.Pointer> - progress_cb; + external git_checkout_progress_cb progress_cb; /// Payload passed to progress_cb external ffi.Pointer progress_payload; @@ -25809,18 +29003,40 @@ class git_checkout_options extends ffi.Struct { external ffi.Pointer their_label; /// Optional callback to notify the consumer of performance data. - external ffi.Pointer> - perfdata_cb; + external git_checkout_perfdata_cb perfdata_cb; /// Payload passed to perfdata_cb external ffi.Pointer perfdata_payload; } +/// Checkout notification callback function +typedef git_checkout_notify_cb = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Int32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>; + +/// Checkout progress notification function +typedef git_checkout_progress_cb = ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, size_t, size_t, ffi.Pointer)>>; + +/// Checkout perfdata notification function +typedef git_checkout_perfdata_cb = ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, ffi.Pointer)>>; + /// Array of object ids class git_oidarray extends ffi.Struct { external ffi.Pointer ids; - @ffi.Int32() + @size_t() external int count; } @@ -25832,7 +29048,7 @@ class git_indexer_options extends ffi.Struct { external int version; /// progress_cb function to call with progress information - external ffi.Pointer> progress_cb; + external git_indexer_progress_cb progress_cb; /// progress_cb_payload payload for the progress callback external ffi.Pointer progress_cb_payload; @@ -25969,6 +29185,12 @@ abstract class git_index_stage_t { static const int GIT_INDEX_STAGE_THEIRS = 3; } +/// Callback for APIs that add/remove/update files matching pathspec +typedef git_index_matched_path_cb = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>; + /// The file inputs to `git_merge_file`. Callers should populate the /// `git_merge_file_input` structure with descriptions of the files in /// each side of the conflict for use in producing the merge file. @@ -25980,7 +29202,7 @@ class git_merge_file_input extends ffi.Struct { external ffi.Pointer ptr; /// Size of the contents pointed to in `ptr`. - @ffi.Int32() + @size_t() external int size; /// File name of the conflicted file, or `NULL` to not merge the path. @@ -26120,7 +29342,7 @@ class git_merge_file_result extends ffi.Struct { external ffi.Pointer ptr; /// The length of the merge contents. - @ffi.Int32() + @size_t() external int len; } @@ -26238,50 +29460,6 @@ abstract class git_direction { static const int GIT_DIRECTION_PUSH = 1; } -/// Supported credential types -/// -/// This represents the various types of authentication methods supported by -/// the library. -abstract class git_credential_t { - /// A vanilla user/password request - /// @see git_credential_userpass_plaintext_new - static const int GIT_CREDENTIAL_USERPASS_PLAINTEXT = 1; - - /// An SSH key-based authentication request - /// @see git_credential_ssh_key_new - static const int GIT_CREDENTIAL_SSH_KEY = 2; - - /// An SSH key-based authentication request, with a custom signature - /// @see git_credential_ssh_custom_new - static const int GIT_CREDENTIAL_SSH_CUSTOM = 4; - - /// An NTLM/Negotiate-based authentication request. - /// @see git_credential_default - static const int GIT_CREDENTIAL_DEFAULT = 8; - - /// An SSH interactive authentication request - /// @see git_credential_ssh_interactive_new - static const int GIT_CREDENTIAL_SSH_INTERACTIVE = 16; - - /// Username-only authentication request - /// - /// Used as a pre-authentication step if the underlying transport - /// (eg. SSH, with no username in its URL) does not know which username - /// to use. - /// - /// @see git_credential_username_new - static const int GIT_CREDENTIAL_USERNAME = 32; - - /// An SSH key-based authentication request - /// - /// Allows credentials to be read from memory instead of files. - /// Note that because of differences in crypto backend support, it might - /// not be functional. - /// - /// @see git_credential_ssh_key_memory_new - static const int GIT_CREDENTIAL_SSH_MEMORY = 64; -} - /// A plaintext username and password class git_credential_userpass_plaintext extends ffi.Struct { /// < The parent credential @@ -26321,10 +29499,6 @@ class git_credential_ssh_key extends ffi.Struct { external ffi.Pointer passphrase; } -class _LIBSSH2_USERAUTH_KBDINT_PROMPT extends ffi.Opaque {} - -class _LIBSSH2_USERAUTH_KBDINT_RESPONSE extends ffi.Opaque {} - /// Keyboard-interactive based ssh authentication class git_credential_ssh_interactive extends ffi.Struct { /// < The parent credential @@ -26334,14 +29508,30 @@ class git_credential_ssh_interactive extends ffi.Struct { external ffi.Pointer username; /// Callback used for authentication. - external ffi.Pointer> - prompt_callback; + external git_credential_ssh_interactive_cb prompt_callback; /// < Payload passed to prompt_callback external ffi.Pointer payload; } -class _LIBSSH2_SESSION extends ffi.Opaque {} +typedef git_credential_ssh_interactive_cb = ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ffi.Int32, + ffi.Int32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>; +typedef LIBSSH2_USERAUTH_KBDINT_PROMPT = _LIBSSH2_USERAUTH_KBDINT_PROMPT; + +class _LIBSSH2_USERAUTH_KBDINT_PROMPT extends ffi.Opaque {} + +typedef LIBSSH2_USERAUTH_KBDINT_RESPONSE = _LIBSSH2_USERAUTH_KBDINT_RESPONSE; + +class _LIBSSH2_USERAUTH_KBDINT_RESPONSE extends ffi.Opaque {} /// A key with a custom signature function class git_credential_ssh_custom extends ffi.Struct { @@ -26355,23 +29545,48 @@ class git_credential_ssh_custom extends ffi.Struct { external ffi.Pointer publickey; /// < Length of the public key - @ffi.Int32() + @size_t() external int publickey_len; /// Callback used to sign the data. - external ffi.Pointer> - sign_callback; + external git_credential_sign_cb sign_callback; /// < Payload passed to prompt_callback external ffi.Pointer payload; } +typedef git_credential_sign_cb = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + size_t, + ffi.Pointer>)>>; +typedef LIBSSH2_SESSION = _LIBSSH2_SESSION; + +class _LIBSSH2_SESSION extends ffi.Opaque {} + /// Stages that are reported by the packbuilder progress callback. abstract class git_packbuilder_stage_t { static const int GIT_PACKBUILDER_ADDING_OBJECTS = 0; static const int GIT_PACKBUILDER_DELTAFICATION = 1; } +/// Callback used to iterate over packed objects +/// +/// @see git_packbuilder_foreach +/// +/// @param buf A pointer to the object's data +/// @param size The size of the underlying object +/// @param payload Payload passed to git_packbuilder_foreach +/// @return non-zero to terminate the iteration +typedef git_packbuilder_foreach_cb = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, size_t, ffi.Pointer)>>; + /// The type of proxy to use. abstract class git_proxy_t { /// Do not attempt to connect through a proxy @@ -26407,15 +29622,13 @@ class git_proxy_options extends ffi.Struct { /// /// Returning GIT_PASSTHROUGH will make libgit2 behave as /// though this field isn't set. - external ffi.Pointer> - credentials; + external git_credential_acquire_cb credentials; /// If cert verification fails, this will be called to let the /// user make the final decision of whether to allow the /// connection to proceed. Returns 0 to allow the connection /// or a negative value to indicate an error. - external ffi.Pointer> - certificate_check; + external git_transport_certificate_check_cb certificate_check; /// Payload to be provided to the credentials and certificate /// check callbacks. @@ -26455,14 +29668,6 @@ class git_remote_create_options extends ffi.Struct { external int flags; } -/// Argument to the completion callback which tells it which operation -/// finished. -abstract class git_remote_completion_t { - static const int GIT_REMOTE_COMPLETION_DOWNLOAD = 0; - static const int GIT_REMOTE_COMPLETION_INDEXING = 1; - static const int GIT_REMOTE_COMPLETION_ERROR = 2; -} - /// Acceptable prune settings when fetching abstract class git_fetch_prune_t { /// Use the setting from the configuration @@ -26610,8 +29815,7 @@ class git_clone_options extends ffi.Struct { /// A callback used to create the new repository into which to /// clone. If NULL, the 'bare' field will be used to determine /// whether to create a bare repository. - external ffi.Pointer> - repository_cb; + external git_repository_create_cb repository_cb; /// An opaque payload to pass to the git_repository creation callback. /// This parameter is ignored unless repository_cb is non-NULL. @@ -26621,13 +29825,51 @@ class git_clone_options extends ffi.Struct { /// used to perform the clone operation. See the documentation for /// git_remote_create_cb for details. This parameter may be NULL, /// indicating that git_clone should provide default behavior. - external ffi.Pointer> remote_cb; + external git_remote_create_cb remote_cb; /// An opaque payload to pass to the git_remote creation callback. /// This parameter is ignored unless remote_cb is non-NULL. external ffi.Pointer remote_cb_payload; } +/// The signature of a function matchin git_repository_init, with an +/// aditional void * as callback payload. +/// +/// Callers of git_clone my provide a function matching this signature +/// to override the repository creation and customization process +/// during a clone operation. +/// +/// @param out the resulting repository +/// @param path path in which to create the repository +/// @param bare whether the repository is bare. This is the value from the clone options +/// @param payload payload specified by the options +/// @return 0, or a negative value to indicate error +typedef git_repository_create_cb = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer>, + ffi.Pointer, ffi.Int32, ffi.Pointer)>>; + +/// The signature of a function matching git_remote_create, with an additional +/// void* as a callback payload. +/// +/// Callers of git_clone may provide a function matching this signature to override +/// the remote creation and customization process during a clone operation. +/// +/// @param out the resulting remote +/// @param repo the repository in which to create the remote +/// @param name the remote's name +/// @param url the remote's url +/// @param payload an opaque payload +/// @return 0, GIT_EINVALIDSPEC, GIT_EEXISTS or an error code +typedef git_remote_create_cb = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>; + /// Priority level of a config file. /// These priority levels correspond to the natural escalation logic /// (from higher to lower) when searching for config entries in git.git. @@ -26676,7 +29918,9 @@ class git_config_entry extends ffi.Struct { @ffi.Int32() external int level; - external ffi.Pointer> free; + external ffi.Pointer< + ffi.NativeFunction)>> + free; /// < Opaque value for the free function. Do not read or write external ffi.Pointer payload; @@ -26703,6 +29947,15 @@ class git_configmap extends ffi.Struct { external int map_value; } +/// A config enumeration callback +/// +/// @param entry the entry currently being enumerated +/// @param payload a user-specified pointer +typedef git_config_foreach_cb = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>; + /// Reference lookup strategy /// /// These behave like the --tags and --all options to git-describe, @@ -27013,8 +30266,7 @@ class git_rebase_options extends ffi.Struct { /// /// If this callback returns `GIT_PASSTHROUGH`, then /// `git_rebase_commit` will continue to create the commit. - external ffi.Pointer> - commit_create_cb; + external git_commit_create_cb commit_create_cb; /// If provided, this will be called with the commit content, allowing /// a signature to be added to the rebase commit. Can be skipped with @@ -27029,13 +30281,53 @@ class git_rebase_options extends ffi.Struct { /// This callback is deprecated; users should provide a /// creation callback as `commit_create_cb` that produces a /// commit buffer, signs it, and commits it. - external ffi.Pointer> signing_cb; + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>> signing_cb; /// This will be passed to each of the callbacks in this struct /// as the last parameter. external ffi.Pointer payload; } +/// Commit creation callback: used when a function is going to create +/// commits (for example, in `git_rebase_commit`) to allow callers to +/// override the commit creation behavior. For example, users may +/// wish to sign commits by providing this information to +/// `git_commit_create_buffer`, signing that buffer, then calling +/// `git_commit_create_with_signature`. The resultant commit id +/// should be set in the `out` object id parameter. +/// +/// @param out pointer that this callback will populate with the object +/// id of the commit that is created +/// @param author the author name and time of the commit +/// @param committer the committer name and time of the commit +/// @param message_encoding the encoding of the given message, or NULL +/// to assume UTF8 +/// @param message the commit message +/// @param tree the tree to be committed +/// @param parent_count the number of parents for this commit +/// @param parents the commit parents +/// @param payload the payload pointer in the rebase options +/// @return 0 if this callback has created the commit and populated the out +/// parameter, GIT_PASSTHROUGH if the callback has not created a +/// commit and wants the calling function to create the commit as +/// if no callback had been specified, any other value to stop +/// and return a failure +typedef git_commit_create_cb = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + size_t, + ffi.Pointer>, + ffi.Pointer)>>; + /// Type of rebase operation in-progress after calling `git_rebase_next`. abstract class git_rebase_operation_t { /// The given commit is to be cherry-picked. The client should commit @@ -27106,6 +30398,10 @@ abstract class git_trace_level_t { static const int GIT_TRACE_TRACE = 6; } +/// An instance for a tracing function +typedef git_trace_cb = ffi.Pointer< + ffi.NativeFunction)>>; + /// Options for revert class git_revert_options extends ffi.Struct { @ffi.Uint32() @@ -27217,12 +30513,31 @@ class git_stash_apply_options extends ffi.Struct { external git_checkout_options checkout_options; /// Optional callback to notify the consumer of application progress. - external ffi.Pointer> - progress_cb; + external git_stash_apply_progress_cb progress_cb; external ffi.Pointer progress_payload; } +/// Stash application progress notification function. +/// Return 0 to continue processing, or a negative value to +/// abort the stash application. +typedef git_stash_apply_progress_cb = ffi.Pointer< + ffi.NativeFunction)>>; + +/// This is a callback function you can provide to iterate over all the +/// stashed states that will be invoked per entry. +/// +/// @param index The position within the stash list. 0 points to the +/// most recent stashed state. +/// @param message The stash message. +/// @param stash_id The commit oid of the stashed state. +/// @param payload Extra parameter to callback function. +/// @return 0 to continue iterating or non-zero to stop. +typedef git_stash_cb = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function(size_t, ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>; + /// Status flags for a single file. /// /// A combination of these values will be returned to indicate the status of @@ -27362,7 +30677,7 @@ class git_status_options extends ffi.Struct { /// The `show` value is one of the `git_status_show_t` constants that /// control which files to scan and in what order. @ffi.Int32() - external int show_1; + external int show1; /// The `flags` value is an OR'ed combination of the /// `git_status_opt_t` values above. @@ -27401,6 +30716,18 @@ class git_status_entry extends ffi.Struct { external ffi.Pointer index_to_workdir; } +/// Function pointer to receive status on individual files +/// +/// `path` is the relative path to the file from the root of the repository. +/// +/// `status_flags` is a combination of `git_status_t` values that apply. +/// +/// `payload` is the value you passed to the foreach function as payload. +typedef git_status_cb = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Uint32, ffi.Pointer)>>; + /// Return codes for submodule status. /// /// A combination of these flags will be returned to describe the status of a @@ -27485,6 +30812,17 @@ class git_submodule_update_options extends ffi.Struct { external int allow_fetch; } +/// Function pointer to receive each submodule +/// +/// @param sm git_submodule currently being visited +/// @param name name of the submodule +/// @param payload value you passed to the foreach function as payload +/// @return 0 on success or error code +typedef git_submodule_cb = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>; + /// Worktree add options structure /// /// Initialize with `GIT_WORKTREE_ADD_OPTIONS_INIT`. Alternatively, you can @@ -27548,7 +30886,7 @@ class git_message_trailer extends ffi.Struct { class git_message_trailer_array extends ffi.Struct { external ffi.Pointer trailers; - @ffi.Int32() + @size_t() external int count; /// private @@ -27557,6 +30895,20 @@ class git_message_trailer_array extends ffi.Struct { class git_iterator extends ffi.Opaque {} +/// note iterator +typedef git_note_iterator = git_iterator; + +/// Callback for git_note_foreach. +/// +/// Receives: +/// - blob_id: Oid of the blob containing the message +/// - annotated_object_id: Oid of the git object being annotated +/// - payload: Payload data passed to `git_note_foreach` +typedef git_note_foreach_cb = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>; + /// The information about object IDs to query in `git_odb_expand_ids`, /// which will be populated upon return. class git_odb_expand_id extends ffi.Struct { @@ -27574,6 +30926,11 @@ class git_odb_expand_id extends ffi.Struct { external int type; } +/// Function type for callbacks from git_odb_foreach. +typedef git_odb_foreach_cb = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer)>>; + /// Streaming mode abstract class git_odb_stream_t { static const int GIT_STREAM_RDONLY = 2; @@ -27655,6 +31012,29 @@ abstract class git_sort_t { static const int GIT_SORT_REVERSE = 4; } +/// This is a callback function that user can provide to hide a +/// commit and its parents. If the callback function returns non-zero value, +/// then this commit and its parents will be hidden. +/// +/// @param commit_id oid of Commit +/// @param payload User-specified pointer to data to be passed as data payload +typedef git_revwalk_hide_cb = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer)>>; + +/// Callback used to iterate over tag names +/// +/// @see git_tag_foreach +/// +/// @param name The tag name +/// @param oid The tag's OID +/// @param payload Payload passed to git_tag_foreach +/// @return non-zero to terminate the iteration +typedef git_tag_foreach_cb = ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>; + const int _TIME_H = 1; const int _FEATURES_H = 1; @@ -27729,6 +31109,8 @@ const int __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI = 0; const int __HAVE_GENERIC_SELECTION = 0; +const int NULL = 0; + const int _BITS_TIME_H = 1; const int _BITS_TYPES_H = 1; @@ -28700,10692 +32082,3 @@ const int LIBGIT2_VER_REVISION = 0; const int LIBGIT2_VER_PATCH = 0; const String LIBGIT2_SOVERSION = '1.2'; - -typedef _c_clock = ffi.Int64 Function(); - -typedef _dart_clock = int Function(); - -typedef _c_time = ffi.Int64 Function( - ffi.Pointer __timer, -); - -typedef _dart_time = int Function( - ffi.Pointer __timer, -); - -typedef _c_difftime = ffi.Double Function( - ffi.Int64 __time1, - ffi.Int64 __time0, -); - -typedef _dart_difftime = double Function( - int __time1, - int __time0, -); - -typedef _c_mktime = ffi.Int64 Function( - ffi.Pointer __tp, -); - -typedef _dart_mktime = int Function( - ffi.Pointer __tp, -); - -typedef _c_strftime = ffi.Int32 Function( - ffi.Pointer __s, - ffi.Int32 __maxsize, - ffi.Pointer __format, - ffi.Pointer __tp, -); - -typedef _dart_strftime = int Function( - ffi.Pointer __s, - int __maxsize, - ffi.Pointer __format, - ffi.Pointer __tp, -); - -typedef _c_strftime_l = ffi.Int32 Function( - ffi.Pointer __s, - ffi.Int32 __maxsize, - ffi.Pointer __format, - ffi.Pointer __tp, - ffi.Pointer<__locale_struct> __loc, -); - -typedef _dart_strftime_l = int Function( - ffi.Pointer __s, - int __maxsize, - ffi.Pointer __format, - ffi.Pointer __tp, - ffi.Pointer<__locale_struct> __loc, -); - -typedef _c_gmtime = ffi.Pointer Function( - ffi.Pointer __timer, -); - -typedef _dart_gmtime = ffi.Pointer Function( - ffi.Pointer __timer, -); - -typedef _c_localtime = ffi.Pointer Function( - ffi.Pointer __timer, -); - -typedef _dart_localtime = ffi.Pointer Function( - ffi.Pointer __timer, -); - -typedef _c_gmtime_r = ffi.Pointer Function( - ffi.Pointer __timer, - ffi.Pointer __tp, -); - -typedef _dart_gmtime_r = ffi.Pointer Function( - ffi.Pointer __timer, - ffi.Pointer __tp, -); - -typedef _c_localtime_r = ffi.Pointer Function( - ffi.Pointer __timer, - ffi.Pointer __tp, -); - -typedef _dart_localtime_r = ffi.Pointer Function( - ffi.Pointer __timer, - ffi.Pointer __tp, -); - -typedef _c_asctime = ffi.Pointer Function( - ffi.Pointer __tp, -); - -typedef _dart_asctime = ffi.Pointer Function( - ffi.Pointer __tp, -); - -typedef _c_ctime = ffi.Pointer Function( - ffi.Pointer __timer, -); - -typedef _dart_ctime = ffi.Pointer Function( - ffi.Pointer __timer, -); - -typedef _c_asctime_r = ffi.Pointer Function( - ffi.Pointer __tp, - ffi.Pointer __buf, -); - -typedef _dart_asctime_r = ffi.Pointer Function( - ffi.Pointer __tp, - ffi.Pointer __buf, -); - -typedef _c_ctime_r = ffi.Pointer Function( - ffi.Pointer __timer, - ffi.Pointer __buf, -); - -typedef _dart_ctime_r = ffi.Pointer Function( - ffi.Pointer __timer, - ffi.Pointer __buf, -); - -typedef _c_tzset = ffi.Void Function(); - -typedef _dart_tzset = void Function(); - -typedef _c_timegm = ffi.Int64 Function( - ffi.Pointer __tp, -); - -typedef _dart_timegm = int Function( - ffi.Pointer __tp, -); - -typedef _c_timelocal = ffi.Int64 Function( - ffi.Pointer __tp, -); - -typedef _dart_timelocal = int Function( - ffi.Pointer __tp, -); - -typedef _c_dysize = ffi.Int32 Function( - ffi.Int32 __year, -); - -typedef _dart_dysize = int Function( - int __year, -); - -typedef _c_nanosleep = ffi.Int32 Function( - ffi.Pointer __requested_time, - ffi.Pointer __remaining, -); - -typedef _dart_nanosleep = int Function( - ffi.Pointer __requested_time, - ffi.Pointer __remaining, -); - -typedef _c_clock_getres = ffi.Int32 Function( - ffi.Int32 __clock_id, - ffi.Pointer __res, -); - -typedef _dart_clock_getres = int Function( - int __clock_id, - ffi.Pointer __res, -); - -typedef _c_clock_gettime = ffi.Int32 Function( - ffi.Int32 __clock_id, - ffi.Pointer __tp, -); - -typedef _dart_clock_gettime = int Function( - int __clock_id, - ffi.Pointer __tp, -); - -typedef _c_clock_settime = ffi.Int32 Function( - ffi.Int32 __clock_id, - ffi.Pointer __tp, -); - -typedef _dart_clock_settime = int Function( - int __clock_id, - ffi.Pointer __tp, -); - -typedef _c_clock_nanosleep = ffi.Int32 Function( - ffi.Int32 __clock_id, - ffi.Int32 __flags, - ffi.Pointer __req, - ffi.Pointer __rem, -); - -typedef _dart_clock_nanosleep = int Function( - int __clock_id, - int __flags, - ffi.Pointer __req, - ffi.Pointer __rem, -); - -typedef _c_clock_getcpuclockid = ffi.Int32 Function( - ffi.Int32 __pid, - ffi.Pointer __clock_id, -); - -typedef _dart_clock_getcpuclockid = int Function( - int __pid, - ffi.Pointer __clock_id, -); - -typedef _c_timer_create = ffi.Int32 Function( - ffi.Int32 __clock_id, - ffi.Pointer __evp, - ffi.Pointer> __timerid, -); - -typedef _dart_timer_create = int Function( - int __clock_id, - ffi.Pointer __evp, - ffi.Pointer> __timerid, -); - -typedef _c_timer_delete = ffi.Int32 Function( - ffi.Pointer __timerid, -); - -typedef _dart_timer_delete = int Function( - ffi.Pointer __timerid, -); - -typedef _c_timer_settime = ffi.Int32 Function( - ffi.Pointer __timerid, - ffi.Int32 __flags, - ffi.Pointer __value, - ffi.Pointer __ovalue, -); - -typedef _dart_timer_settime = int Function( - ffi.Pointer __timerid, - int __flags, - ffi.Pointer __value, - ffi.Pointer __ovalue, -); - -typedef _c_timer_gettime = ffi.Int32 Function( - ffi.Pointer __timerid, - ffi.Pointer __value, -); - -typedef _dart_timer_gettime = int Function( - ffi.Pointer __timerid, - ffi.Pointer __value, -); - -typedef _c_timer_getoverrun = ffi.Int32 Function( - ffi.Pointer __timerid, -); - -typedef _dart_timer_getoverrun = int Function( - ffi.Pointer __timerid, -); - -typedef _c_timespec_get = ffi.Int32 Function( - ffi.Pointer __ts, - ffi.Int32 __base, -); - -typedef _dart_timespec_get = int Function( - ffi.Pointer __ts, - int __base, -); - -typedef _c___ctype_get_mb_cur_max = ffi.Int32 Function(); - -typedef _dart___ctype_get_mb_cur_max = int Function(); - -typedef _c_atof = ffi.Double Function( - ffi.Pointer __nptr, -); - -typedef _dart_atof = double Function( - ffi.Pointer __nptr, -); - -typedef _c_atoi = ffi.Int32 Function( - ffi.Pointer __nptr, -); - -typedef _dart_atoi = int Function( - ffi.Pointer __nptr, -); - -typedef _c_atol = ffi.Int64 Function( - ffi.Pointer __nptr, -); - -typedef _dart_atol = int Function( - ffi.Pointer __nptr, -); - -typedef _c_atoll = ffi.Int64 Function( - ffi.Pointer __nptr, -); - -typedef _dart_atoll = int Function( - ffi.Pointer __nptr, -); - -typedef _c_strtod = ffi.Double Function( - ffi.Pointer __nptr, - ffi.Pointer> __endptr, -); - -typedef _dart_strtod = double Function( - ffi.Pointer __nptr, - ffi.Pointer> __endptr, -); - -typedef _c_strtof = ffi.Float Function( - ffi.Pointer __nptr, - ffi.Pointer> __endptr, -); - -typedef _dart_strtof = double Function( - ffi.Pointer __nptr, - ffi.Pointer> __endptr, -); - -typedef _c_strtol = ffi.Int64 Function( - ffi.Pointer __nptr, - ffi.Pointer> __endptr, - ffi.Int32 __base, -); - -typedef _dart_strtol = int Function( - ffi.Pointer __nptr, - ffi.Pointer> __endptr, - int __base, -); - -typedef _c_strtoul = ffi.Uint64 Function( - ffi.Pointer __nptr, - ffi.Pointer> __endptr, - ffi.Int32 __base, -); - -typedef _dart_strtoul = int Function( - ffi.Pointer __nptr, - ffi.Pointer> __endptr, - int __base, -); - -typedef _c_strtoq = ffi.Int64 Function( - ffi.Pointer __nptr, - ffi.Pointer> __endptr, - ffi.Int32 __base, -); - -typedef _dart_strtoq = int Function( - ffi.Pointer __nptr, - ffi.Pointer> __endptr, - int __base, -); - -typedef _c_strtouq = ffi.Uint64 Function( - ffi.Pointer __nptr, - ffi.Pointer> __endptr, - ffi.Int32 __base, -); - -typedef _dart_strtouq = int Function( - ffi.Pointer __nptr, - ffi.Pointer> __endptr, - int __base, -); - -typedef _c_strtoll = ffi.Int64 Function( - ffi.Pointer __nptr, - ffi.Pointer> __endptr, - ffi.Int32 __base, -); - -typedef _dart_strtoll = int Function( - ffi.Pointer __nptr, - ffi.Pointer> __endptr, - int __base, -); - -typedef _c_strtoull = ffi.Uint64 Function( - ffi.Pointer __nptr, - ffi.Pointer> __endptr, - ffi.Int32 __base, -); - -typedef _dart_strtoull = int Function( - ffi.Pointer __nptr, - ffi.Pointer> __endptr, - int __base, -); - -typedef _c_l64a = ffi.Pointer Function( - ffi.Int64 __n, -); - -typedef _dart_l64a = ffi.Pointer Function( - int __n, -); - -typedef _c_a64l = ffi.Int64 Function( - ffi.Pointer __s, -); - -typedef _dart_a64l = int Function( - ffi.Pointer __s, -); - -typedef _c_select = ffi.Int32 Function( - ffi.Int32 __nfds, - ffi.Pointer __readfds, - ffi.Pointer __writefds, - ffi.Pointer __exceptfds, - ffi.Pointer __timeout, -); - -typedef _dart_select = int Function( - int __nfds, - ffi.Pointer __readfds, - ffi.Pointer __writefds, - ffi.Pointer __exceptfds, - ffi.Pointer __timeout, -); - -typedef _c_pselect = ffi.Int32 Function( - ffi.Int32 __nfds, - ffi.Pointer __readfds, - ffi.Pointer __writefds, - ffi.Pointer __exceptfds, - ffi.Pointer __timeout, - ffi.Pointer<__sigset_t> __sigmask, -); - -typedef _dart_pselect = int Function( - int __nfds, - ffi.Pointer __readfds, - ffi.Pointer __writefds, - ffi.Pointer __exceptfds, - ffi.Pointer __timeout, - ffi.Pointer<__sigset_t> __sigmask, -); - -typedef _c_random = ffi.Int64 Function(); - -typedef _dart_random = int Function(); - -typedef _c_srandom = ffi.Void Function( - ffi.Uint32 __seed, -); - -typedef _dart_srandom = void Function( - int __seed, -); - -typedef _c_initstate = ffi.Pointer Function( - ffi.Uint32 __seed, - ffi.Pointer __statebuf, - ffi.Int32 __statelen, -); - -typedef _dart_initstate = ffi.Pointer Function( - int __seed, - ffi.Pointer __statebuf, - int __statelen, -); - -typedef _c_setstate = ffi.Pointer Function( - ffi.Pointer __statebuf, -); - -typedef _dart_setstate = ffi.Pointer Function( - ffi.Pointer __statebuf, -); - -typedef _c_random_r = ffi.Int32 Function( - ffi.Pointer __buf, - ffi.Pointer __result, -); - -typedef _dart_random_r = int Function( - ffi.Pointer __buf, - ffi.Pointer __result, -); - -typedef _c_srandom_r = ffi.Int32 Function( - ffi.Uint32 __seed, - ffi.Pointer __buf, -); - -typedef _dart_srandom_r = int Function( - int __seed, - ffi.Pointer __buf, -); - -typedef _c_initstate_r = ffi.Int32 Function( - ffi.Uint32 __seed, - ffi.Pointer __statebuf, - ffi.Int32 __statelen, - ffi.Pointer __buf, -); - -typedef _dart_initstate_r = int Function( - int __seed, - ffi.Pointer __statebuf, - int __statelen, - ffi.Pointer __buf, -); - -typedef _c_setstate_r = ffi.Int32 Function( - ffi.Pointer __statebuf, - ffi.Pointer __buf, -); - -typedef _dart_setstate_r = int Function( - ffi.Pointer __statebuf, - ffi.Pointer __buf, -); - -typedef _c_rand = ffi.Int32 Function(); - -typedef _dart_rand = int Function(); - -typedef _c_srand = ffi.Void Function( - ffi.Uint32 __seed, -); - -typedef _dart_srand = void Function( - int __seed, -); - -typedef _c_rand_r = ffi.Int32 Function( - ffi.Pointer __seed, -); - -typedef _dart_rand_r = int Function( - ffi.Pointer __seed, -); - -typedef _c_drand48 = ffi.Double Function(); - -typedef _dart_drand48 = double Function(); - -typedef _c_erand48 = ffi.Double Function( - ffi.Pointer __xsubi, -); - -typedef _dart_erand48 = double Function( - ffi.Pointer __xsubi, -); - -typedef _c_lrand48 = ffi.Int64 Function(); - -typedef _dart_lrand48 = int Function(); - -typedef _c_nrand48 = ffi.Int64 Function( - ffi.Pointer __xsubi, -); - -typedef _dart_nrand48 = int Function( - ffi.Pointer __xsubi, -); - -typedef _c_mrand48 = ffi.Int64 Function(); - -typedef _dart_mrand48 = int Function(); - -typedef _c_jrand48 = ffi.Int64 Function( - ffi.Pointer __xsubi, -); - -typedef _dart_jrand48 = int Function( - ffi.Pointer __xsubi, -); - -typedef _c_srand48 = ffi.Void Function( - ffi.Int64 __seedval, -); - -typedef _dart_srand48 = void Function( - int __seedval, -); - -typedef _c_seed48 = ffi.Pointer Function( - ffi.Pointer __seed16v, -); - -typedef _dart_seed48 = ffi.Pointer Function( - ffi.Pointer __seed16v, -); - -typedef _c_lcong48 = ffi.Void Function( - ffi.Pointer __param, -); - -typedef _dart_lcong48 = void Function( - ffi.Pointer __param, -); - -typedef _c_drand48_r = ffi.Int32 Function( - ffi.Pointer __buffer, - ffi.Pointer __result, -); - -typedef _dart_drand48_r = int Function( - ffi.Pointer __buffer, - ffi.Pointer __result, -); - -typedef _c_erand48_r = ffi.Int32 Function( - ffi.Pointer __xsubi, - ffi.Pointer __buffer, - ffi.Pointer __result, -); - -typedef _dart_erand48_r = int Function( - ffi.Pointer __xsubi, - ffi.Pointer __buffer, - ffi.Pointer __result, -); - -typedef _c_lrand48_r = ffi.Int32 Function( - ffi.Pointer __buffer, - ffi.Pointer __result, -); - -typedef _dart_lrand48_r = int Function( - ffi.Pointer __buffer, - ffi.Pointer __result, -); - -typedef _c_nrand48_r = ffi.Int32 Function( - ffi.Pointer __xsubi, - ffi.Pointer __buffer, - ffi.Pointer __result, -); - -typedef _dart_nrand48_r = int Function( - ffi.Pointer __xsubi, - ffi.Pointer __buffer, - ffi.Pointer __result, -); - -typedef _c_mrand48_r = ffi.Int32 Function( - ffi.Pointer __buffer, - ffi.Pointer __result, -); - -typedef _dart_mrand48_r = int Function( - ffi.Pointer __buffer, - ffi.Pointer __result, -); - -typedef _c_jrand48_r = ffi.Int32 Function( - ffi.Pointer __xsubi, - ffi.Pointer __buffer, - ffi.Pointer __result, -); - -typedef _dart_jrand48_r = int Function( - ffi.Pointer __xsubi, - ffi.Pointer __buffer, - ffi.Pointer __result, -); - -typedef _c_srand48_r = ffi.Int32 Function( - ffi.Int64 __seedval, - ffi.Pointer __buffer, -); - -typedef _dart_srand48_r = int Function( - int __seedval, - ffi.Pointer __buffer, -); - -typedef _c_seed48_r = ffi.Int32 Function( - ffi.Pointer __seed16v, - ffi.Pointer __buffer, -); - -typedef _dart_seed48_r = int Function( - ffi.Pointer __seed16v, - ffi.Pointer __buffer, -); - -typedef _c_lcong48_r = ffi.Int32 Function( - ffi.Pointer __param, - ffi.Pointer __buffer, -); - -typedef _dart_lcong48_r = int Function( - ffi.Pointer __param, - ffi.Pointer __buffer, -); - -typedef _c_malloc = ffi.Pointer Function( - ffi.Int32 __size, -); - -typedef _dart_malloc = ffi.Pointer Function( - int __size, -); - -typedef _c_calloc = ffi.Pointer Function( - ffi.Int32 __nmemb, - ffi.Int32 __size, -); - -typedef _dart_calloc = ffi.Pointer Function( - int __nmemb, - int __size, -); - -typedef _c_realloc = ffi.Pointer Function( - ffi.Pointer __ptr, - ffi.Int32 __size, -); - -typedef _dart_realloc = ffi.Pointer Function( - ffi.Pointer __ptr, - int __size, -); - -typedef _c_reallocarray = ffi.Pointer Function( - ffi.Pointer __ptr, - ffi.Int32 __nmemb, - ffi.Int32 __size, -); - -typedef _dart_reallocarray = ffi.Pointer Function( - ffi.Pointer __ptr, - int __nmemb, - int __size, -); - -typedef _c_free = ffi.Void Function( - ffi.Pointer __ptr, -); - -typedef _dart_free = void Function( - ffi.Pointer __ptr, -); - -typedef _c_alloca = ffi.Pointer Function( - ffi.Int32 __size, -); - -typedef _dart_alloca = ffi.Pointer Function( - int __size, -); - -typedef _c_valloc = ffi.Pointer Function( - ffi.Int32 __size, -); - -typedef _dart_valloc = ffi.Pointer Function( - int __size, -); - -typedef _c_posix_memalign = ffi.Int32 Function( - ffi.Pointer> __memptr, - ffi.Int32 __alignment, - ffi.Int32 __size, -); - -typedef _dart_posix_memalign = int Function( - ffi.Pointer> __memptr, - int __alignment, - int __size, -); - -typedef _c_aligned_alloc = ffi.Pointer Function( - ffi.Int32 __alignment, - ffi.Int32 __size, -); - -typedef _dart_aligned_alloc = ffi.Pointer Function( - int __alignment, - int __size, -); - -typedef _c_abort = ffi.Void Function(); - -typedef _dart_abort = void Function(); - -typedef _typedefC_1 = ffi.Void Function(); - -typedef _c_atexit = ffi.Int32 Function( - ffi.Pointer> __func, -); - -typedef _dart_atexit = int Function( - ffi.Pointer> __func, -); - -typedef _typedefC_2 = ffi.Void Function(); - -typedef _c_at_quick_exit = ffi.Int32 Function( - ffi.Pointer> __func, -); - -typedef _dart_at_quick_exit = int Function( - ffi.Pointer> __func, -); - -typedef _typedefC_3 = ffi.Void Function( - ffi.Int32, - ffi.Pointer, -); - -typedef _c_on_exit = ffi.Int32 Function( - ffi.Pointer> __func, - ffi.Pointer __arg, -); - -typedef _dart_on_exit = int Function( - ffi.Pointer> __func, - ffi.Pointer __arg, -); - -typedef _c_exit = ffi.Void Function( - ffi.Int32 __status, -); - -typedef _dart_exit = void Function( - int __status, -); - -typedef _c_quick_exit = ffi.Void Function( - ffi.Int32 __status, -); - -typedef _dart_quick_exit = void Function( - int __status, -); - -typedef _c__Exit = ffi.Void Function( - ffi.Int32 __status, -); - -typedef _dart__Exit = void Function( - int __status, -); - -typedef _c_getenv = ffi.Pointer Function( - ffi.Pointer __name, -); - -typedef _dart_getenv = ffi.Pointer Function( - ffi.Pointer __name, -); - -typedef _c_putenv = ffi.Int32 Function( - ffi.Pointer __string, -); - -typedef _dart_putenv = int Function( - ffi.Pointer __string, -); - -typedef _c_setenv = ffi.Int32 Function( - ffi.Pointer __name, - ffi.Pointer __value, - ffi.Int32 __replace, -); - -typedef _dart_setenv = int Function( - ffi.Pointer __name, - ffi.Pointer __value, - int __replace, -); - -typedef _c_unsetenv = ffi.Int32 Function( - ffi.Pointer __name, -); - -typedef _dart_unsetenv = int Function( - ffi.Pointer __name, -); - -typedef _c_clearenv = ffi.Int32 Function(); - -typedef _dart_clearenv = int Function(); - -typedef _c_mktemp = ffi.Pointer Function( - ffi.Pointer __template, -); - -typedef _dart_mktemp = ffi.Pointer Function( - ffi.Pointer __template, -); - -typedef _c_mkstemp = ffi.Int32 Function( - ffi.Pointer __template, -); - -typedef _dart_mkstemp = int Function( - ffi.Pointer __template, -); - -typedef _c_mkstemps = ffi.Int32 Function( - ffi.Pointer __template, - ffi.Int32 __suffixlen, -); - -typedef _dart_mkstemps = int Function( - ffi.Pointer __template, - int __suffixlen, -); - -typedef _c_mkdtemp = ffi.Pointer Function( - ffi.Pointer __template, -); - -typedef _dart_mkdtemp = ffi.Pointer Function( - ffi.Pointer __template, -); - -typedef _c_system = ffi.Int32 Function( - ffi.Pointer __command, -); - -typedef _dart_system = int Function( - ffi.Pointer __command, -); - -typedef _c_realpath = ffi.Pointer Function( - ffi.Pointer __name, - ffi.Pointer __resolved, -); - -typedef _dart_realpath = ffi.Pointer Function( - ffi.Pointer __name, - ffi.Pointer __resolved, -); - -typedef __compar_fn_t = ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, -); - -typedef _c_bsearch = ffi.Pointer Function( - ffi.Pointer __key, - ffi.Pointer __base, - ffi.Int32 __nmemb, - ffi.Int32 __size, - ffi.Pointer> __compar, -); - -typedef _dart_bsearch = ffi.Pointer Function( - ffi.Pointer __key, - ffi.Pointer __base, - int __nmemb, - int __size, - ffi.Pointer> __compar, -); - -typedef _c_qsort = ffi.Void Function( - ffi.Pointer __base, - ffi.Int32 __nmemb, - ffi.Int32 __size, - ffi.Pointer> __compar, -); - -typedef _dart_qsort = void Function( - ffi.Pointer __base, - int __nmemb, - int __size, - ffi.Pointer> __compar, -); - -typedef _c_abs = ffi.Int32 Function( - ffi.Int32 __x, -); - -typedef _dart_abs = int Function( - int __x, -); - -typedef _c_labs = ffi.Int64 Function( - ffi.Int64 __x, -); - -typedef _dart_labs = int Function( - int __x, -); - -typedef _c_llabs = ffi.Int64 Function( - ffi.Int64 __x, -); - -typedef _dart_llabs = int Function( - int __x, -); - -typedef _c_div = div_t Function( - ffi.Int32 __numer, - ffi.Int32 __denom, -); - -typedef _dart_div = div_t Function( - int __numer, - int __denom, -); - -typedef _c_ldiv = ldiv_t Function( - ffi.Int64 __numer, - ffi.Int64 __denom, -); - -typedef _dart_ldiv = ldiv_t Function( - int __numer, - int __denom, -); - -typedef _c_lldiv = lldiv_t Function( - ffi.Int64 __numer, - ffi.Int64 __denom, -); - -typedef _dart_lldiv = lldiv_t Function( - int __numer, - int __denom, -); - -typedef _c_ecvt = ffi.Pointer Function( - ffi.Double __value, - ffi.Int32 __ndigit, - ffi.Pointer __decpt, - ffi.Pointer __sign, -); - -typedef _dart_ecvt = ffi.Pointer Function( - double __value, - int __ndigit, - ffi.Pointer __decpt, - ffi.Pointer __sign, -); - -typedef _c_fcvt = ffi.Pointer Function( - ffi.Double __value, - ffi.Int32 __ndigit, - ffi.Pointer __decpt, - ffi.Pointer __sign, -); - -typedef _dart_fcvt = ffi.Pointer Function( - double __value, - int __ndigit, - ffi.Pointer __decpt, - ffi.Pointer __sign, -); - -typedef _c_gcvt = ffi.Pointer Function( - ffi.Double __value, - ffi.Int32 __ndigit, - ffi.Pointer __buf, -); - -typedef _dart_gcvt = ffi.Pointer Function( - double __value, - int __ndigit, - ffi.Pointer __buf, -); - -typedef _c_ecvt_r = ffi.Int32 Function( - ffi.Double __value, - ffi.Int32 __ndigit, - ffi.Pointer __decpt, - ffi.Pointer __sign, - ffi.Pointer __buf, - ffi.Int32 __len, -); - -typedef _dart_ecvt_r = int Function( - double __value, - int __ndigit, - ffi.Pointer __decpt, - ffi.Pointer __sign, - ffi.Pointer __buf, - int __len, -); - -typedef _c_fcvt_r = ffi.Int32 Function( - ffi.Double __value, - ffi.Int32 __ndigit, - ffi.Pointer __decpt, - ffi.Pointer __sign, - ffi.Pointer __buf, - ffi.Int32 __len, -); - -typedef _dart_fcvt_r = int Function( - double __value, - int __ndigit, - ffi.Pointer __decpt, - ffi.Pointer __sign, - ffi.Pointer __buf, - int __len, -); - -typedef _c_mblen = ffi.Int32 Function( - ffi.Pointer __s, - ffi.Int32 __n, -); - -typedef _dart_mblen = int Function( - ffi.Pointer __s, - int __n, -); - -typedef _c_mbtowc = ffi.Int32 Function( - ffi.Pointer __pwc, - ffi.Pointer __s, - ffi.Int32 __n, -); - -typedef _dart_mbtowc = int Function( - ffi.Pointer __pwc, - ffi.Pointer __s, - int __n, -); - -typedef _c_wctomb = ffi.Int32 Function( - ffi.Pointer __s, - ffi.Int32 __wchar, -); - -typedef _dart_wctomb = int Function( - ffi.Pointer __s, - int __wchar, -); - -typedef _c_mbstowcs = ffi.Int32 Function( - ffi.Pointer __pwcs, - ffi.Pointer __s, - ffi.Int32 __n, -); - -typedef _dart_mbstowcs = int Function( - ffi.Pointer __pwcs, - ffi.Pointer __s, - int __n, -); - -typedef _c_wcstombs = ffi.Int32 Function( - ffi.Pointer __s, - ffi.Pointer __pwcs, - ffi.Int32 __n, -); - -typedef _dart_wcstombs = int Function( - ffi.Pointer __s, - ffi.Pointer __pwcs, - int __n, -); - -typedef _c_rpmatch = ffi.Int32 Function( - ffi.Pointer __response, -); - -typedef _dart_rpmatch = int Function( - ffi.Pointer __response, -); - -typedef _c_getsubopt = ffi.Int32 Function( - ffi.Pointer> __optionp, - ffi.Pointer> __tokens, - ffi.Pointer> __valuep, -); - -typedef _dart_getsubopt = int Function( - ffi.Pointer> __optionp, - ffi.Pointer> __tokens, - ffi.Pointer> __valuep, -); - -typedef _c_getloadavg = ffi.Int32 Function( - ffi.Pointer __loadavg, - ffi.Int32 __nelem, -); - -typedef _dart_getloadavg = int Function( - ffi.Pointer __loadavg, - int __nelem, -); - -typedef _c_imaxabs = ffi.Int64 Function( - ffi.Int64 __n, -); - -typedef _dart_imaxabs = int Function( - int __n, -); - -typedef _c_imaxdiv = imaxdiv_t Function( - ffi.Int64 __numer, - ffi.Int64 __denom, -); - -typedef _dart_imaxdiv = imaxdiv_t Function( - int __numer, - int __denom, -); - -typedef _c_strtoimax = ffi.Int64 Function( - ffi.Pointer __nptr, - ffi.Pointer> __endptr, - ffi.Int32 __base, -); - -typedef _dart_strtoimax = int Function( - ffi.Pointer __nptr, - ffi.Pointer> __endptr, - int __base, -); - -typedef _c_strtoumax = ffi.Uint64 Function( - ffi.Pointer __nptr, - ffi.Pointer> __endptr, - ffi.Int32 __base, -); - -typedef _dart_strtoumax = int Function( - ffi.Pointer __nptr, - ffi.Pointer> __endptr, - int __base, -); - -typedef _c_wcstoimax = ffi.Int64 Function( - ffi.Pointer __nptr, - ffi.Pointer> __endptr, - ffi.Int32 __base, -); - -typedef _dart_wcstoimax = int Function( - ffi.Pointer __nptr, - ffi.Pointer> __endptr, - int __base, -); - -typedef _c_wcstoumax = ffi.Uint64 Function( - ffi.Pointer __nptr, - ffi.Pointer> __endptr, - ffi.Int32 __base, -); - -typedef _dart_wcstoumax = int Function( - ffi.Pointer __nptr, - ffi.Pointer> __endptr, - int __base, -); - -typedef _c_git_libgit2_version = ffi.Int32 Function( - ffi.Pointer major, - ffi.Pointer minor, - ffi.Pointer rev, -); - -typedef _dart_git_libgit2_version = int Function( - ffi.Pointer major, - ffi.Pointer minor, - ffi.Pointer rev, -); - -typedef _c_git_libgit2_features = ffi.Int32 Function(); - -typedef _dart_git_libgit2_features = int Function(); - -typedef _c_git_libgit2_opts = ffi.Int32 Function( - ffi.Int32 option, -); - -typedef _dart_git_libgit2_opts = int Function( - int option, -); - -typedef _c_git_buf_dispose = ffi.Void Function( - ffi.Pointer buffer, -); - -typedef _dart_git_buf_dispose = void Function( - ffi.Pointer buffer, -); - -typedef _c_git_buf_grow = ffi.Int32 Function( - ffi.Pointer buffer, - ffi.Int32 target_size, -); - -typedef _dart_git_buf_grow = int Function( - ffi.Pointer buffer, - int target_size, -); - -typedef _c_git_buf_set = ffi.Int32 Function( - ffi.Pointer buffer, - ffi.Pointer data, - ffi.Int32 datalen, -); - -typedef _dart_git_buf_set = int Function( - ffi.Pointer buffer, - ffi.Pointer data, - int datalen, -); - -typedef _c_git_buf_is_binary = ffi.Int32 Function( - ffi.Pointer buf, -); - -typedef _dart_git_buf_is_binary = int Function( - ffi.Pointer buf, -); - -typedef _c_git_buf_contains_nul = ffi.Int32 Function( - ffi.Pointer buf, -); - -typedef _dart_git_buf_contains_nul = int Function( - ffi.Pointer buf, -); - -typedef _c_git_oid_fromstr = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer str, -); - -typedef _dart_git_oid_fromstr = int Function( - ffi.Pointer out, - ffi.Pointer str, -); - -typedef _c_git_oid_fromstrp = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer str, -); - -typedef _dart_git_oid_fromstrp = int Function( - ffi.Pointer out, - ffi.Pointer str, -); - -typedef _c_git_oid_fromstrn = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer str, - ffi.Int32 length, -); - -typedef _dart_git_oid_fromstrn = int Function( - ffi.Pointer out, - ffi.Pointer str, - int length, -); - -typedef _c_git_oid_fromraw = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer raw, -); - -typedef _dart_git_oid_fromraw = int Function( - ffi.Pointer out, - ffi.Pointer raw, -); - -typedef _c_git_oid_fmt = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer id, -); - -typedef _dart_git_oid_fmt = int Function( - ffi.Pointer out, - ffi.Pointer id, -); - -typedef _c_git_oid_nfmt = ffi.Int32 Function( - ffi.Pointer out, - ffi.Int32 n, - ffi.Pointer id, -); - -typedef _dart_git_oid_nfmt = int Function( - ffi.Pointer out, - int n, - ffi.Pointer id, -); - -typedef _c_git_oid_pathfmt = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer id, -); - -typedef _dart_git_oid_pathfmt = int Function( - ffi.Pointer out, - ffi.Pointer id, -); - -typedef _c_git_oid_tostr_s = ffi.Pointer Function( - ffi.Pointer oid, -); - -typedef _dart_git_oid_tostr_s = ffi.Pointer Function( - ffi.Pointer oid, -); - -typedef _c_git_oid_tostr = ffi.Pointer Function( - ffi.Pointer out, - ffi.Int32 n, - ffi.Pointer id, -); - -typedef _dart_git_oid_tostr = ffi.Pointer Function( - ffi.Pointer out, - int n, - ffi.Pointer id, -); - -typedef _c_git_oid_cpy = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer src, -); - -typedef _dart_git_oid_cpy = int Function( - ffi.Pointer out, - ffi.Pointer src, -); - -typedef _c_git_oid_cmp = ffi.Int32 Function( - ffi.Pointer a, - ffi.Pointer b, -); - -typedef _dart_git_oid_cmp = int Function( - ffi.Pointer a, - ffi.Pointer b, -); - -typedef _c_git_oid_equal = ffi.Int32 Function( - ffi.Pointer a, - ffi.Pointer b, -); - -typedef _dart_git_oid_equal = int Function( - ffi.Pointer a, - ffi.Pointer b, -); - -typedef _c_git_oid_ncmp = ffi.Int32 Function( - ffi.Pointer a, - ffi.Pointer b, - ffi.Int32 len, -); - -typedef _dart_git_oid_ncmp = int Function( - ffi.Pointer a, - ffi.Pointer b, - int len, -); - -typedef _c_git_oid_streq = ffi.Int32 Function( - ffi.Pointer id, - ffi.Pointer str, -); - -typedef _dart_git_oid_streq = int Function( - ffi.Pointer id, - ffi.Pointer str, -); - -typedef _c_git_oid_strcmp = ffi.Int32 Function( - ffi.Pointer id, - ffi.Pointer str, -); - -typedef _dart_git_oid_strcmp = int Function( - ffi.Pointer id, - ffi.Pointer str, -); - -typedef _c_git_oid_is_zero = ffi.Int32 Function( - ffi.Pointer id, -); - -typedef _dart_git_oid_is_zero = int Function( - ffi.Pointer id, -); - -typedef _c_git_oid_shorten_new = ffi.Pointer Function( - ffi.Int32 min_length, -); - -typedef _dart_git_oid_shorten_new = ffi.Pointer Function( - int min_length, -); - -typedef _c_git_oid_shorten_add = ffi.Int32 Function( - ffi.Pointer os, - ffi.Pointer text_id, -); - -typedef _dart_git_oid_shorten_add = int Function( - ffi.Pointer os, - ffi.Pointer text_id, -); - -typedef _c_git_oid_shorten_free = ffi.Void Function( - ffi.Pointer os, -); - -typedef _dart_git_oid_shorten_free = void Function( - ffi.Pointer os, -); - -typedef _c_git_repository_open = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer path, -); - -typedef _dart_git_repository_open = int Function( - ffi.Pointer> out, - ffi.Pointer path, -); - -typedef _c_git_repository_open_from_worktree = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer wt, -); - -typedef _dart_git_repository_open_from_worktree = int Function( - ffi.Pointer> out, - ffi.Pointer wt, -); - -typedef _c_git_repository_wrap_odb = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer odb, -); - -typedef _dart_git_repository_wrap_odb = int Function( - ffi.Pointer> out, - ffi.Pointer odb, -); - -typedef _c_git_repository_discover = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer start_path, - ffi.Int32 across_fs, - ffi.Pointer ceiling_dirs, -); - -typedef _dart_git_repository_discover = int Function( - ffi.Pointer out, - ffi.Pointer start_path, - int across_fs, - ffi.Pointer ceiling_dirs, -); - -typedef _c_git_repository_open_ext = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer path, - ffi.Uint32 flags, - ffi.Pointer ceiling_dirs, -); - -typedef _dart_git_repository_open_ext = int Function( - ffi.Pointer> out, - ffi.Pointer path, - int flags, - ffi.Pointer ceiling_dirs, -); - -typedef _c_git_repository_open_bare = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer bare_path, -); - -typedef _dart_git_repository_open_bare = int Function( - ffi.Pointer> out, - ffi.Pointer bare_path, -); - -typedef _c_git_repository_free = ffi.Void Function( - ffi.Pointer repo, -); - -typedef _dart_git_repository_free = void Function( - ffi.Pointer repo, -); - -typedef _c_git_repository_init = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer path, - ffi.Uint32 is_bare, -); - -typedef _dart_git_repository_init = int Function( - ffi.Pointer> out, - ffi.Pointer path, - int is_bare, -); - -typedef _c_git_repository_init_options_init = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_repository_init_options_init = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_repository_init_ext = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo_path, - ffi.Pointer opts, -); - -typedef _dart_git_repository_init_ext = int Function( - ffi.Pointer> out, - ffi.Pointer repo_path, - ffi.Pointer opts, -); - -typedef _c_git_repository_head = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, -); - -typedef _dart_git_repository_head = int Function( - ffi.Pointer> out, - ffi.Pointer repo, -); - -typedef _c_git_repository_head_for_worktree = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer name, -); - -typedef _dart_git_repository_head_for_worktree = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer name, -); - -typedef _c_git_repository_head_detached = ffi.Int32 Function( - ffi.Pointer repo, -); - -typedef _dart_git_repository_head_detached = int Function( - ffi.Pointer repo, -); - -typedef _c_git_repository_head_detached_for_worktree = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer name, -); - -typedef _dart_git_repository_head_detached_for_worktree = int Function( - ffi.Pointer repo, - ffi.Pointer name, -); - -typedef _c_git_repository_head_unborn = ffi.Int32 Function( - ffi.Pointer repo, -); - -typedef _dart_git_repository_head_unborn = int Function( - ffi.Pointer repo, -); - -typedef _c_git_repository_is_empty = ffi.Int32 Function( - ffi.Pointer repo, -); - -typedef _dart_git_repository_is_empty = int Function( - ffi.Pointer repo, -); - -typedef _c_git_repository_item_path = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer repo, - ffi.Int32 item, -); - -typedef _dart_git_repository_item_path = int Function( - ffi.Pointer out, - ffi.Pointer repo, - int item, -); - -typedef _c_git_repository_path = ffi.Pointer Function( - ffi.Pointer repo, -); - -typedef _dart_git_repository_path = ffi.Pointer Function( - ffi.Pointer repo, -); - -typedef _c_git_repository_workdir = ffi.Pointer Function( - ffi.Pointer repo, -); - -typedef _dart_git_repository_workdir = ffi.Pointer Function( - ffi.Pointer repo, -); - -typedef _c_git_repository_commondir = ffi.Pointer Function( - ffi.Pointer repo, -); - -typedef _dart_git_repository_commondir = ffi.Pointer Function( - ffi.Pointer repo, -); - -typedef _c_git_repository_set_workdir = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer workdir, - ffi.Int32 update_gitlink, -); - -typedef _dart_git_repository_set_workdir = int Function( - ffi.Pointer repo, - ffi.Pointer workdir, - int update_gitlink, -); - -typedef _c_git_repository_is_bare = ffi.Int32 Function( - ffi.Pointer repo, -); - -typedef _dart_git_repository_is_bare = int Function( - ffi.Pointer repo, -); - -typedef _c_git_repository_is_worktree = ffi.Int32 Function( - ffi.Pointer repo, -); - -typedef _dart_git_repository_is_worktree = int Function( - ffi.Pointer repo, -); - -typedef _c_git_repository_config = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, -); - -typedef _dart_git_repository_config = int Function( - ffi.Pointer> out, - ffi.Pointer repo, -); - -typedef _c_git_repository_config_snapshot = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, -); - -typedef _dart_git_repository_config_snapshot = int Function( - ffi.Pointer> out, - ffi.Pointer repo, -); - -typedef _c_git_repository_odb = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, -); - -typedef _dart_git_repository_odb = int Function( - ffi.Pointer> out, - ffi.Pointer repo, -); - -typedef _c_git_repository_refdb = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, -); - -typedef _dart_git_repository_refdb = int Function( - ffi.Pointer> out, - ffi.Pointer repo, -); - -typedef _c_git_repository_index = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, -); - -typedef _dart_git_repository_index = int Function( - ffi.Pointer> out, - ffi.Pointer repo, -); - -typedef _c_git_repository_message = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer repo, -); - -typedef _dart_git_repository_message = int Function( - ffi.Pointer out, - ffi.Pointer repo, -); - -typedef _c_git_repository_message_remove = ffi.Int32 Function( - ffi.Pointer repo, -); - -typedef _dart_git_repository_message_remove = int Function( - ffi.Pointer repo, -); - -typedef _c_git_repository_state_cleanup = ffi.Int32 Function( - ffi.Pointer repo, -); - -typedef _dart_git_repository_state_cleanup = int Function( - ffi.Pointer repo, -); - -typedef git_repository_fetchhead_foreach_cb = ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Uint32, - ffi.Pointer, -); - -typedef _c_git_repository_fetchhead_foreach = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer> callback, - ffi.Pointer payload, -); - -typedef _dart_git_repository_fetchhead_foreach = int Function( - ffi.Pointer repo, - ffi.Pointer> callback, - ffi.Pointer payload, -); - -typedef git_repository_mergehead_foreach_cb = ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, -); - -typedef _c_git_repository_mergehead_foreach = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer> callback, - ffi.Pointer payload, -); - -typedef _dart_git_repository_mergehead_foreach = int Function( - ffi.Pointer repo, - ffi.Pointer> callback, - ffi.Pointer payload, -); - -typedef _c_git_repository_hashfile = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer repo, - ffi.Pointer path, - ffi.Int32 type, - ffi.Pointer as_path, -); - -typedef _dart_git_repository_hashfile = int Function( - ffi.Pointer out, - ffi.Pointer repo, - ffi.Pointer path, - int type, - ffi.Pointer as_path, -); - -typedef _c_git_repository_set_head = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer refname, -); - -typedef _dart_git_repository_set_head = int Function( - ffi.Pointer repo, - ffi.Pointer refname, -); - -typedef _c_git_repository_set_head_detached = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer commitish, -); - -typedef _dart_git_repository_set_head_detached = int Function( - ffi.Pointer repo, - ffi.Pointer commitish, -); - -typedef _c_git_repository_set_head_detached_from_annotated = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer commitish, -); - -typedef _dart_git_repository_set_head_detached_from_annotated = int Function( - ffi.Pointer repo, - ffi.Pointer commitish, -); - -typedef _c_git_repository_detach_head = ffi.Int32 Function( - ffi.Pointer repo, -); - -typedef _dart_git_repository_detach_head = int Function( - ffi.Pointer repo, -); - -typedef _c_git_repository_state = ffi.Int32 Function( - ffi.Pointer repo, -); - -typedef _dart_git_repository_state = int Function( - ffi.Pointer repo, -); - -typedef _c_git_repository_set_namespace = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer nmspace, -); - -typedef _dart_git_repository_set_namespace = int Function( - ffi.Pointer repo, - ffi.Pointer nmspace, -); - -typedef _c_git_repository_get_namespace = ffi.Pointer Function( - ffi.Pointer repo, -); - -typedef _dart_git_repository_get_namespace = ffi.Pointer Function( - ffi.Pointer repo, -); - -typedef _c_git_repository_is_shallow = ffi.Int32 Function( - ffi.Pointer repo, -); - -typedef _dart_git_repository_is_shallow = int Function( - ffi.Pointer repo, -); - -typedef _c_git_repository_ident = ffi.Int32 Function( - ffi.Pointer> name, - ffi.Pointer> email, - ffi.Pointer repo, -); - -typedef _dart_git_repository_ident = int Function( - ffi.Pointer> name, - ffi.Pointer> email, - ffi.Pointer repo, -); - -typedef _c_git_repository_set_ident = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer name, - ffi.Pointer email, -); - -typedef _dart_git_repository_set_ident = int Function( - ffi.Pointer repo, - ffi.Pointer name, - ffi.Pointer email, -); - -typedef _c_git_annotated_commit_from_ref = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer ref, -); - -typedef _dart_git_annotated_commit_from_ref = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer ref, -); - -typedef _c_git_annotated_commit_from_fetchhead = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer branch_name, - ffi.Pointer remote_url, - ffi.Pointer id, -); - -typedef _dart_git_annotated_commit_from_fetchhead = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer branch_name, - ffi.Pointer remote_url, - ffi.Pointer id, -); - -typedef _c_git_annotated_commit_lookup = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer id, -); - -typedef _dart_git_annotated_commit_lookup = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer id, -); - -typedef _c_git_annotated_commit_from_revspec = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer revspec, -); - -typedef _dart_git_annotated_commit_from_revspec = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer revspec, -); - -typedef _c_git_annotated_commit_id = ffi.Pointer Function( - ffi.Pointer commit, -); - -typedef _dart_git_annotated_commit_id = ffi.Pointer Function( - ffi.Pointer commit, -); - -typedef _c_git_annotated_commit_ref = ffi.Pointer Function( - ffi.Pointer commit, -); - -typedef _dart_git_annotated_commit_ref = ffi.Pointer Function( - ffi.Pointer commit, -); - -typedef _c_git_annotated_commit_free = ffi.Void Function( - ffi.Pointer commit, -); - -typedef _dart_git_annotated_commit_free = void Function( - ffi.Pointer commit, -); - -typedef _c_git_object_lookup = ffi.Int32 Function( - ffi.Pointer> object, - ffi.Pointer repo, - ffi.Pointer id, - ffi.Int32 type, -); - -typedef _dart_git_object_lookup = int Function( - ffi.Pointer> object, - ffi.Pointer repo, - ffi.Pointer id, - int type, -); - -typedef _c_git_object_lookup_prefix = ffi.Int32 Function( - ffi.Pointer> object_out, - ffi.Pointer repo, - ffi.Pointer id, - ffi.Int32 len, - ffi.Int32 type, -); - -typedef _dart_git_object_lookup_prefix = int Function( - ffi.Pointer> object_out, - ffi.Pointer repo, - ffi.Pointer id, - int len, - int type, -); - -typedef _c_git_object_lookup_bypath = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer treeish, - ffi.Pointer path, - ffi.Int32 type, -); - -typedef _dart_git_object_lookup_bypath = int Function( - ffi.Pointer> out, - ffi.Pointer treeish, - ffi.Pointer path, - int type, -); - -typedef _c_git_object_id = ffi.Pointer Function( - ffi.Pointer obj, -); - -typedef _dart_git_object_id = ffi.Pointer Function( - ffi.Pointer obj, -); - -typedef _c_git_object_short_id = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer obj, -); - -typedef _dart_git_object_short_id = int Function( - ffi.Pointer out, - ffi.Pointer obj, -); - -typedef _c_git_object_type = ffi.Int32 Function( - ffi.Pointer obj, -); - -typedef _dart_git_object_type = int Function( - ffi.Pointer obj, -); - -typedef _c_git_object_owner = ffi.Pointer Function( - ffi.Pointer obj, -); - -typedef _dart_git_object_owner = ffi.Pointer Function( - ffi.Pointer obj, -); - -typedef _c_git_object_free = ffi.Void Function( - ffi.Pointer object, -); - -typedef _dart_git_object_free = void Function( - ffi.Pointer object, -); - -typedef _c_git_object_type2string = ffi.Pointer Function( - ffi.Int32 type, -); - -typedef _dart_git_object_type2string = ffi.Pointer Function( - int type, -); - -typedef _c_git_object_string2type = ffi.Int32 Function( - ffi.Pointer str, -); - -typedef _dart_git_object_string2type = int Function( - ffi.Pointer str, -); - -typedef _c_git_object_typeisloose = ffi.Int32 Function( - ffi.Int32 type, -); - -typedef _dart_git_object_typeisloose = int Function( - int type, -); - -typedef _c_git_object_peel = ffi.Int32 Function( - ffi.Pointer> peeled, - ffi.Pointer object, - ffi.Int32 target_type, -); - -typedef _dart_git_object_peel = int Function( - ffi.Pointer> peeled, - ffi.Pointer object, - int target_type, -); - -typedef _c_git_object_dup = ffi.Int32 Function( - ffi.Pointer> dest, - ffi.Pointer source, -); - -typedef _dart_git_object_dup = int Function( - ffi.Pointer> dest, - ffi.Pointer source, -); - -typedef _c_git_tree_lookup = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer id, -); - -typedef _dart_git_tree_lookup = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer id, -); - -typedef _c_git_tree_lookup_prefix = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer id, - ffi.Int32 len, -); - -typedef _dart_git_tree_lookup_prefix = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer id, - int len, -); - -typedef _c_git_tree_free = ffi.Void Function( - ffi.Pointer tree, -); - -typedef _dart_git_tree_free = void Function( - ffi.Pointer tree, -); - -typedef _c_git_tree_id = ffi.Pointer Function( - ffi.Pointer tree, -); - -typedef _dart_git_tree_id = ffi.Pointer Function( - ffi.Pointer tree, -); - -typedef _c_git_tree_owner = ffi.Pointer Function( - ffi.Pointer tree, -); - -typedef _dart_git_tree_owner = ffi.Pointer Function( - ffi.Pointer tree, -); - -typedef _c_git_tree_entrycount = ffi.Int32 Function( - ffi.Pointer tree, -); - -typedef _dart_git_tree_entrycount = int Function( - ffi.Pointer tree, -); - -typedef _c_git_tree_entry_byname = ffi.Pointer Function( - ffi.Pointer tree, - ffi.Pointer filename, -); - -typedef _dart_git_tree_entry_byname = ffi.Pointer Function( - ffi.Pointer tree, - ffi.Pointer filename, -); - -typedef _c_git_tree_entry_byindex = ffi.Pointer Function( - ffi.Pointer tree, - ffi.Int32 idx, -); - -typedef _dart_git_tree_entry_byindex = ffi.Pointer Function( - ffi.Pointer tree, - int idx, -); - -typedef _c_git_tree_entry_byid = ffi.Pointer Function( - ffi.Pointer tree, - ffi.Pointer id, -); - -typedef _dart_git_tree_entry_byid = ffi.Pointer Function( - ffi.Pointer tree, - ffi.Pointer id, -); - -typedef _c_git_tree_entry_bypath = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer root, - ffi.Pointer path, -); - -typedef _dart_git_tree_entry_bypath = int Function( - ffi.Pointer> out, - ffi.Pointer root, - ffi.Pointer path, -); - -typedef _c_git_tree_entry_dup = ffi.Int32 Function( - ffi.Pointer> dest, - ffi.Pointer source, -); - -typedef _dart_git_tree_entry_dup = int Function( - ffi.Pointer> dest, - ffi.Pointer source, -); - -typedef _c_git_tree_entry_free = ffi.Void Function( - ffi.Pointer entry, -); - -typedef _dart_git_tree_entry_free = void Function( - ffi.Pointer entry, -); - -typedef _c_git_tree_entry_name = ffi.Pointer Function( - ffi.Pointer entry, -); - -typedef _dart_git_tree_entry_name = ffi.Pointer Function( - ffi.Pointer entry, -); - -typedef _c_git_tree_entry_id = ffi.Pointer Function( - ffi.Pointer entry, -); - -typedef _dart_git_tree_entry_id = ffi.Pointer Function( - ffi.Pointer entry, -); - -typedef _c_git_tree_entry_type = ffi.Int32 Function( - ffi.Pointer entry, -); - -typedef _dart_git_tree_entry_type = int Function( - ffi.Pointer entry, -); - -typedef _c_git_tree_entry_filemode = ffi.Int32 Function( - ffi.Pointer entry, -); - -typedef _dart_git_tree_entry_filemode = int Function( - ffi.Pointer entry, -); - -typedef _c_git_tree_entry_filemode_raw = ffi.Int32 Function( - ffi.Pointer entry, -); - -typedef _dart_git_tree_entry_filemode_raw = int Function( - ffi.Pointer entry, -); - -typedef _c_git_tree_entry_cmp = ffi.Int32 Function( - ffi.Pointer e1, - ffi.Pointer e2, -); - -typedef _dart_git_tree_entry_cmp = int Function( - ffi.Pointer e1, - ffi.Pointer e2, -); - -typedef _c_git_tree_entry_to_object = ffi.Int32 Function( - ffi.Pointer> object_out, - ffi.Pointer repo, - ffi.Pointer entry, -); - -typedef _dart_git_tree_entry_to_object = int Function( - ffi.Pointer> object_out, - ffi.Pointer repo, - ffi.Pointer entry, -); - -typedef _c_git_treebuilder_new = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer source, -); - -typedef _dart_git_treebuilder_new = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer source, -); - -typedef _c_git_treebuilder_clear = ffi.Int32 Function( - ffi.Pointer bld, -); - -typedef _dart_git_treebuilder_clear = int Function( - ffi.Pointer bld, -); - -typedef _c_git_treebuilder_entrycount = ffi.Int32 Function( - ffi.Pointer bld, -); - -typedef _dart_git_treebuilder_entrycount = int Function( - ffi.Pointer bld, -); - -typedef _c_git_treebuilder_free = ffi.Void Function( - ffi.Pointer bld, -); - -typedef _dart_git_treebuilder_free = void Function( - ffi.Pointer bld, -); - -typedef _c_git_treebuilder_get = ffi.Pointer Function( - ffi.Pointer bld, - ffi.Pointer filename, -); - -typedef _dart_git_treebuilder_get = ffi.Pointer Function( - ffi.Pointer bld, - ffi.Pointer filename, -); - -typedef _c_git_treebuilder_insert = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer bld, - ffi.Pointer filename, - ffi.Pointer id, - ffi.Int32 filemode, -); - -typedef _dart_git_treebuilder_insert = int Function( - ffi.Pointer> out, - ffi.Pointer bld, - ffi.Pointer filename, - ffi.Pointer id, - int filemode, -); - -typedef _c_git_treebuilder_remove = ffi.Int32 Function( - ffi.Pointer bld, - ffi.Pointer filename, -); - -typedef _dart_git_treebuilder_remove = int Function( - ffi.Pointer bld, - ffi.Pointer filename, -); - -typedef git_treebuilder_filter_cb = ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, -); - -typedef _c_git_treebuilder_filter = ffi.Int32 Function( - ffi.Pointer bld, - ffi.Pointer> filter, - ffi.Pointer payload, -); - -typedef _dart_git_treebuilder_filter = int Function( - ffi.Pointer bld, - ffi.Pointer> filter, - ffi.Pointer payload, -); - -typedef _c_git_treebuilder_write = ffi.Int32 Function( - ffi.Pointer id, - ffi.Pointer bld, -); - -typedef _dart_git_treebuilder_write = int Function( - ffi.Pointer id, - ffi.Pointer bld, -); - -typedef git_treewalk_cb = ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, -); - -typedef _c_git_tree_walk = ffi.Int32 Function( - ffi.Pointer tree, - ffi.Int32 mode, - ffi.Pointer> callback, - ffi.Pointer payload, -); - -typedef _dart_git_tree_walk = int Function( - ffi.Pointer tree, - int mode, - ffi.Pointer> callback, - ffi.Pointer payload, -); - -typedef _c_git_tree_dup = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer source, -); - -typedef _dart_git_tree_dup = int Function( - ffi.Pointer> out, - ffi.Pointer source, -); - -typedef _c_git_tree_create_updated = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer repo, - ffi.Pointer baseline, - ffi.Int32 nupdates, - ffi.Pointer updates, -); - -typedef _dart_git_tree_create_updated = int Function( - ffi.Pointer out, - ffi.Pointer repo, - ffi.Pointer baseline, - int nupdates, - ffi.Pointer updates, -); - -typedef _c_git_strarray_dispose = ffi.Void Function( - ffi.Pointer array, -); - -typedef _dart_git_strarray_dispose = void Function( - ffi.Pointer array, -); - -typedef _c_git_strarray_copy = ffi.Int32 Function( - ffi.Pointer tgt, - ffi.Pointer src, -); - -typedef _dart_git_strarray_copy = int Function( - ffi.Pointer tgt, - ffi.Pointer src, -); - -typedef _c_git_reference_lookup = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer name, -); - -typedef _dart_git_reference_lookup = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer name, -); - -typedef _c_git_reference_name_to_id = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer repo, - ffi.Pointer name, -); - -typedef _dart_git_reference_name_to_id = int Function( - ffi.Pointer out, - ffi.Pointer repo, - ffi.Pointer name, -); - -typedef _c_git_reference_dwim = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer shorthand, -); - -typedef _dart_git_reference_dwim = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer shorthand, -); - -typedef _c_git_reference_symbolic_create_matching = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer name, - ffi.Pointer target, - ffi.Int32 force, - ffi.Pointer current_value, - ffi.Pointer log_message, -); - -typedef _dart_git_reference_symbolic_create_matching = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer name, - ffi.Pointer target, - int force, - ffi.Pointer current_value, - ffi.Pointer log_message, -); - -typedef _c_git_reference_symbolic_create = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer name, - ffi.Pointer target, - ffi.Int32 force, - ffi.Pointer log_message, -); - -typedef _dart_git_reference_symbolic_create = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer name, - ffi.Pointer target, - int force, - ffi.Pointer log_message, -); - -typedef _c_git_reference_create = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer name, - ffi.Pointer id, - ffi.Int32 force, - ffi.Pointer log_message, -); - -typedef _dart_git_reference_create = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer name, - ffi.Pointer id, - int force, - ffi.Pointer log_message, -); - -typedef _c_git_reference_create_matching = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer name, - ffi.Pointer id, - ffi.Int32 force, - ffi.Pointer current_id, - ffi.Pointer log_message, -); - -typedef _dart_git_reference_create_matching = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer name, - ffi.Pointer id, - int force, - ffi.Pointer current_id, - ffi.Pointer log_message, -); - -typedef _c_git_reference_target = ffi.Pointer Function( - ffi.Pointer ref, -); - -typedef _dart_git_reference_target = ffi.Pointer Function( - ffi.Pointer ref, -); - -typedef _c_git_reference_target_peel = ffi.Pointer Function( - ffi.Pointer ref, -); - -typedef _dart_git_reference_target_peel = ffi.Pointer Function( - ffi.Pointer ref, -); - -typedef _c_git_reference_symbolic_target = ffi.Pointer Function( - ffi.Pointer ref, -); - -typedef _dart_git_reference_symbolic_target = ffi.Pointer Function( - ffi.Pointer ref, -); - -typedef _c_git_reference_type = ffi.Int32 Function( - ffi.Pointer ref, -); - -typedef _dart_git_reference_type = int Function( - ffi.Pointer ref, -); - -typedef _c_git_reference_name = ffi.Pointer Function( - ffi.Pointer ref, -); - -typedef _dart_git_reference_name = ffi.Pointer Function( - ffi.Pointer ref, -); - -typedef _c_git_reference_resolve = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer ref, -); - -typedef _dart_git_reference_resolve = int Function( - ffi.Pointer> out, - ffi.Pointer ref, -); - -typedef _c_git_reference_owner = ffi.Pointer Function( - ffi.Pointer ref, -); - -typedef _dart_git_reference_owner = ffi.Pointer Function( - ffi.Pointer ref, -); - -typedef _c_git_reference_symbolic_set_target = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer ref, - ffi.Pointer target, - ffi.Pointer log_message, -); - -typedef _dart_git_reference_symbolic_set_target = int Function( - ffi.Pointer> out, - ffi.Pointer ref, - ffi.Pointer target, - ffi.Pointer log_message, -); - -typedef _c_git_reference_set_target = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer ref, - ffi.Pointer id, - ffi.Pointer log_message, -); - -typedef _dart_git_reference_set_target = int Function( - ffi.Pointer> out, - ffi.Pointer ref, - ffi.Pointer id, - ffi.Pointer log_message, -); - -typedef _c_git_reference_rename = ffi.Int32 Function( - ffi.Pointer> new_ref, - ffi.Pointer ref, - ffi.Pointer new_name, - ffi.Int32 force, - ffi.Pointer log_message, -); - -typedef _dart_git_reference_rename = int Function( - ffi.Pointer> new_ref, - ffi.Pointer ref, - ffi.Pointer new_name, - int force, - ffi.Pointer log_message, -); - -typedef _c_git_reference_delete = ffi.Int32 Function( - ffi.Pointer ref, -); - -typedef _dart_git_reference_delete = int Function( - ffi.Pointer ref, -); - -typedef _c_git_reference_remove = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer name, -); - -typedef _dart_git_reference_remove = int Function( - ffi.Pointer repo, - ffi.Pointer name, -); - -typedef _c_git_reference_list = ffi.Int32 Function( - ffi.Pointer array, - ffi.Pointer repo, -); - -typedef _dart_git_reference_list = int Function( - ffi.Pointer array, - ffi.Pointer repo, -); - -typedef git_reference_foreach_cb = ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, -); - -typedef _c_git_reference_foreach = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer> callback, - ffi.Pointer payload, -); - -typedef _dart_git_reference_foreach = int Function( - ffi.Pointer repo, - ffi.Pointer> callback, - ffi.Pointer payload, -); - -typedef git_reference_foreach_name_cb = ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, -); - -typedef _c_git_reference_foreach_name = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer> callback, - ffi.Pointer payload, -); - -typedef _dart_git_reference_foreach_name = int Function( - ffi.Pointer repo, - ffi.Pointer> callback, - ffi.Pointer payload, -); - -typedef _c_git_reference_dup = ffi.Int32 Function( - ffi.Pointer> dest, - ffi.Pointer source, -); - -typedef _dart_git_reference_dup = int Function( - ffi.Pointer> dest, - ffi.Pointer source, -); - -typedef _c_git_reference_free = ffi.Void Function( - ffi.Pointer ref, -); - -typedef _dart_git_reference_free = void Function( - ffi.Pointer ref, -); - -typedef _c_git_reference_cmp = ffi.Int32 Function( - ffi.Pointer ref1, - ffi.Pointer ref2, -); - -typedef _dart_git_reference_cmp = int Function( - ffi.Pointer ref1, - ffi.Pointer ref2, -); - -typedef _c_git_reference_iterator_new = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, -); - -typedef _dart_git_reference_iterator_new = int Function( - ffi.Pointer> out, - ffi.Pointer repo, -); - -typedef _c_git_reference_iterator_glob_new = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer glob, -); - -typedef _dart_git_reference_iterator_glob_new = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer glob, -); - -typedef _c_git_reference_next = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer iter, -); - -typedef _dart_git_reference_next = int Function( - ffi.Pointer> out, - ffi.Pointer iter, -); - -typedef _c_git_reference_next_name = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer iter, -); - -typedef _dart_git_reference_next_name = int Function( - ffi.Pointer> out, - ffi.Pointer iter, -); - -typedef _c_git_reference_iterator_free = ffi.Void Function( - ffi.Pointer iter, -); - -typedef _dart_git_reference_iterator_free = void Function( - ffi.Pointer iter, -); - -typedef _c_git_reference_foreach_glob = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer glob, - ffi.Pointer> callback, - ffi.Pointer payload, -); - -typedef _dart_git_reference_foreach_glob = int Function( - ffi.Pointer repo, - ffi.Pointer glob, - ffi.Pointer> callback, - ffi.Pointer payload, -); - -typedef _c_git_reference_has_log = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer refname, -); - -typedef _dart_git_reference_has_log = int Function( - ffi.Pointer repo, - ffi.Pointer refname, -); - -typedef _c_git_reference_ensure_log = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer refname, -); - -typedef _dart_git_reference_ensure_log = int Function( - ffi.Pointer repo, - ffi.Pointer refname, -); - -typedef _c_git_reference_is_branch = ffi.Int32 Function( - ffi.Pointer ref, -); - -typedef _dart_git_reference_is_branch = int Function( - ffi.Pointer ref, -); - -typedef _c_git_reference_is_remote = ffi.Int32 Function( - ffi.Pointer ref, -); - -typedef _dart_git_reference_is_remote = int Function( - ffi.Pointer ref, -); - -typedef _c_git_reference_is_tag = ffi.Int32 Function( - ffi.Pointer ref, -); - -typedef _dart_git_reference_is_tag = int Function( - ffi.Pointer ref, -); - -typedef _c_git_reference_is_note = ffi.Int32 Function( - ffi.Pointer ref, -); - -typedef _dart_git_reference_is_note = int Function( - ffi.Pointer ref, -); - -typedef _c_git_reference_normalize_name = ffi.Int32 Function( - ffi.Pointer buffer_out, - ffi.Int32 buffer_size, - ffi.Pointer name, - ffi.Uint32 flags, -); - -typedef _dart_git_reference_normalize_name = int Function( - ffi.Pointer buffer_out, - int buffer_size, - ffi.Pointer name, - int flags, -); - -typedef _c_git_reference_peel = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer ref, - ffi.Int32 type, -); - -typedef _dart_git_reference_peel = int Function( - ffi.Pointer> out, - ffi.Pointer ref, - int type, -); - -typedef _c_git_reference_name_is_valid = ffi.Int32 Function( - ffi.Pointer valid, - ffi.Pointer refname, -); - -typedef _dart_git_reference_name_is_valid = int Function( - ffi.Pointer valid, - ffi.Pointer refname, -); - -typedef _c_git_reference_shorthand = ffi.Pointer Function( - ffi.Pointer ref, -); - -typedef _dart_git_reference_shorthand = ffi.Pointer Function( - ffi.Pointer ref, -); - -typedef _c_git_diff_options_init = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_diff_options_init = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_diff_find_options_init = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_diff_find_options_init = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_diff_free = ffi.Void Function( - ffi.Pointer diff, -); - -typedef _dart_git_diff_free = void Function( - ffi.Pointer diff, -); - -typedef _c_git_diff_tree_to_tree = ffi.Int32 Function( - ffi.Pointer> diff, - ffi.Pointer repo, - ffi.Pointer old_tree, - ffi.Pointer new_tree, - ffi.Pointer opts, -); - -typedef _dart_git_diff_tree_to_tree = int Function( - ffi.Pointer> diff, - ffi.Pointer repo, - ffi.Pointer old_tree, - ffi.Pointer new_tree, - ffi.Pointer opts, -); - -typedef _c_git_diff_tree_to_index = ffi.Int32 Function( - ffi.Pointer> diff, - ffi.Pointer repo, - ffi.Pointer old_tree, - ffi.Pointer index, - ffi.Pointer opts, -); - -typedef _dart_git_diff_tree_to_index = int Function( - ffi.Pointer> diff, - ffi.Pointer repo, - ffi.Pointer old_tree, - ffi.Pointer index, - ffi.Pointer opts, -); - -typedef _c_git_diff_index_to_workdir = ffi.Int32 Function( - ffi.Pointer> diff, - ffi.Pointer repo, - ffi.Pointer index, - ffi.Pointer opts, -); - -typedef _dart_git_diff_index_to_workdir = int Function( - ffi.Pointer> diff, - ffi.Pointer repo, - ffi.Pointer index, - ffi.Pointer opts, -); - -typedef _c_git_diff_tree_to_workdir = ffi.Int32 Function( - ffi.Pointer> diff, - ffi.Pointer repo, - ffi.Pointer old_tree, - ffi.Pointer opts, -); - -typedef _dart_git_diff_tree_to_workdir = int Function( - ffi.Pointer> diff, - ffi.Pointer repo, - ffi.Pointer old_tree, - ffi.Pointer opts, -); - -typedef _c_git_diff_tree_to_workdir_with_index = ffi.Int32 Function( - ffi.Pointer> diff, - ffi.Pointer repo, - ffi.Pointer old_tree, - ffi.Pointer opts, -); - -typedef _dart_git_diff_tree_to_workdir_with_index = int Function( - ffi.Pointer> diff, - ffi.Pointer repo, - ffi.Pointer old_tree, - ffi.Pointer opts, -); - -typedef _c_git_diff_index_to_index = ffi.Int32 Function( - ffi.Pointer> diff, - ffi.Pointer repo, - ffi.Pointer old_index, - ffi.Pointer new_index, - ffi.Pointer opts, -); - -typedef _dart_git_diff_index_to_index = int Function( - ffi.Pointer> diff, - ffi.Pointer repo, - ffi.Pointer old_index, - ffi.Pointer new_index, - ffi.Pointer opts, -); - -typedef _c_git_diff_merge = ffi.Int32 Function( - ffi.Pointer onto, - ffi.Pointer from, -); - -typedef _dart_git_diff_merge = int Function( - ffi.Pointer onto, - ffi.Pointer from, -); - -typedef _c_git_diff_find_similar = ffi.Int32 Function( - ffi.Pointer diff, - ffi.Pointer options, -); - -typedef _dart_git_diff_find_similar = int Function( - ffi.Pointer diff, - ffi.Pointer options, -); - -typedef _c_git_diff_num_deltas = ffi.Int32 Function( - ffi.Pointer diff, -); - -typedef _dart_git_diff_num_deltas = int Function( - ffi.Pointer diff, -); - -typedef _c_git_diff_num_deltas_of_type = ffi.Int32 Function( - ffi.Pointer diff, - ffi.Int32 type, -); - -typedef _dart_git_diff_num_deltas_of_type = int Function( - ffi.Pointer diff, - int type, -); - -typedef _c_git_diff_get_delta = ffi.Pointer Function( - ffi.Pointer diff, - ffi.Int32 idx, -); - -typedef _dart_git_diff_get_delta = ffi.Pointer Function( - ffi.Pointer diff, - int idx, -); - -typedef _c_git_diff_is_sorted_icase = ffi.Int32 Function( - ffi.Pointer diff, -); - -typedef _dart_git_diff_is_sorted_icase = int Function( - ffi.Pointer diff, -); - -typedef git_diff_file_cb = ffi.Int32 Function( - ffi.Pointer, - ffi.Float, - ffi.Pointer, -); - -typedef git_diff_binary_cb = ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, -); - -typedef git_diff_hunk_cb = ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, -); - -typedef git_diff_line_cb = ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, -); - -typedef _c_git_diff_foreach = ffi.Int32 Function( - ffi.Pointer diff, - ffi.Pointer> file_cb, - ffi.Pointer> binary_cb, - ffi.Pointer> hunk_cb, - ffi.Pointer> line_cb, - ffi.Pointer payload, -); - -typedef _dart_git_diff_foreach = int Function( - ffi.Pointer diff, - ffi.Pointer> file_cb, - ffi.Pointer> binary_cb, - ffi.Pointer> hunk_cb, - ffi.Pointer> line_cb, - ffi.Pointer payload, -); - -typedef _c_git_diff_status_char = ffi.Int8 Function( - ffi.Int32 status, -); - -typedef _dart_git_diff_status_char = int Function( - int status, -); - -typedef _c_git_diff_print = ffi.Int32 Function( - ffi.Pointer diff, - ffi.Int32 format, - ffi.Pointer> print_cb, - ffi.Pointer payload, -); - -typedef _dart_git_diff_print = int Function( - ffi.Pointer diff, - int format, - ffi.Pointer> print_cb, - ffi.Pointer payload, -); - -typedef _c_git_diff_to_buf = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer diff, - ffi.Int32 format, -); - -typedef _dart_git_diff_to_buf = int Function( - ffi.Pointer out, - ffi.Pointer diff, - int format, -); - -typedef _c_git_diff_blobs = ffi.Int32 Function( - ffi.Pointer old_blob, - ffi.Pointer old_as_path, - ffi.Pointer new_blob, - ffi.Pointer new_as_path, - ffi.Pointer options, - ffi.Pointer> file_cb, - ffi.Pointer> binary_cb, - ffi.Pointer> hunk_cb, - ffi.Pointer> line_cb, - ffi.Pointer payload, -); - -typedef _dart_git_diff_blobs = int Function( - ffi.Pointer old_blob, - ffi.Pointer old_as_path, - ffi.Pointer new_blob, - ffi.Pointer new_as_path, - ffi.Pointer options, - ffi.Pointer> file_cb, - ffi.Pointer> binary_cb, - ffi.Pointer> hunk_cb, - ffi.Pointer> line_cb, - ffi.Pointer payload, -); - -typedef _c_git_diff_blob_to_buffer = ffi.Int32 Function( - ffi.Pointer old_blob, - ffi.Pointer old_as_path, - ffi.Pointer buffer, - ffi.Int32 buffer_len, - ffi.Pointer buffer_as_path, - ffi.Pointer options, - ffi.Pointer> file_cb, - ffi.Pointer> binary_cb, - ffi.Pointer> hunk_cb, - ffi.Pointer> line_cb, - ffi.Pointer payload, -); - -typedef _dart_git_diff_blob_to_buffer = int Function( - ffi.Pointer old_blob, - ffi.Pointer old_as_path, - ffi.Pointer buffer, - int buffer_len, - ffi.Pointer buffer_as_path, - ffi.Pointer options, - ffi.Pointer> file_cb, - ffi.Pointer> binary_cb, - ffi.Pointer> hunk_cb, - ffi.Pointer> line_cb, - ffi.Pointer payload, -); - -typedef _c_git_diff_buffers = ffi.Int32 Function( - ffi.Pointer old_buffer, - ffi.Int32 old_len, - ffi.Pointer old_as_path, - ffi.Pointer new_buffer, - ffi.Int32 new_len, - ffi.Pointer new_as_path, - ffi.Pointer options, - ffi.Pointer> file_cb, - ffi.Pointer> binary_cb, - ffi.Pointer> hunk_cb, - ffi.Pointer> line_cb, - ffi.Pointer payload, -); - -typedef _dart_git_diff_buffers = int Function( - ffi.Pointer old_buffer, - int old_len, - ffi.Pointer old_as_path, - ffi.Pointer new_buffer, - int new_len, - ffi.Pointer new_as_path, - ffi.Pointer options, - ffi.Pointer> file_cb, - ffi.Pointer> binary_cb, - ffi.Pointer> hunk_cb, - ffi.Pointer> line_cb, - ffi.Pointer payload, -); - -typedef _c_git_diff_from_buffer = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer content, - ffi.Int32 content_len, -); - -typedef _dart_git_diff_from_buffer = int Function( - ffi.Pointer> out, - ffi.Pointer content, - int content_len, -); - -typedef _c_git_diff_get_stats = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer diff, -); - -typedef _dart_git_diff_get_stats = int Function( - ffi.Pointer> out, - ffi.Pointer diff, -); - -typedef _c_git_diff_stats_files_changed = ffi.Int32 Function( - ffi.Pointer stats, -); - -typedef _dart_git_diff_stats_files_changed = int Function( - ffi.Pointer stats, -); - -typedef _c_git_diff_stats_insertions = ffi.Int32 Function( - ffi.Pointer stats, -); - -typedef _dart_git_diff_stats_insertions = int Function( - ffi.Pointer stats, -); - -typedef _c_git_diff_stats_deletions = ffi.Int32 Function( - ffi.Pointer stats, -); - -typedef _dart_git_diff_stats_deletions = int Function( - ffi.Pointer stats, -); - -typedef _c_git_diff_stats_to_buf = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer stats, - ffi.Int32 format, - ffi.Int32 width, -); - -typedef _dart_git_diff_stats_to_buf = int Function( - ffi.Pointer out, - ffi.Pointer stats, - int format, - int width, -); - -typedef _c_git_diff_stats_free = ffi.Void Function( - ffi.Pointer stats, -); - -typedef _dart_git_diff_stats_free = void Function( - ffi.Pointer stats, -); - -typedef _c_git_diff_format_email = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer diff, - ffi.Pointer opts, -); - -typedef _dart_git_diff_format_email = int Function( - ffi.Pointer out, - ffi.Pointer diff, - ffi.Pointer opts, -); - -typedef _c_git_diff_commit_as_email = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer repo, - ffi.Pointer commit, - ffi.Int32 patch_no, - ffi.Int32 total_patches, - ffi.Uint32 flags, - ffi.Pointer diff_opts, -); - -typedef _dart_git_diff_commit_as_email = int Function( - ffi.Pointer out, - ffi.Pointer repo, - ffi.Pointer commit, - int patch_no, - int total_patches, - int flags, - ffi.Pointer diff_opts, -); - -typedef _c_git_diff_format_email_options_init = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_diff_format_email_options_init = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_diff_patchid_options_init = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_diff_patchid_options_init = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_diff_patchid = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer diff, - ffi.Pointer opts, -); - -typedef _dart_git_diff_patchid = int Function( - ffi.Pointer out, - ffi.Pointer diff, - ffi.Pointer opts, -); - -typedef _c_git_apply_options_init = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_apply_options_init = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_apply_to_tree = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer preimage, - ffi.Pointer diff, - ffi.Pointer options, -); - -typedef _dart_git_apply_to_tree = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer preimage, - ffi.Pointer diff, - ffi.Pointer options, -); - -typedef _c_git_apply = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer diff, - ffi.Int32 location, - ffi.Pointer options, -); - -typedef _dart_git_apply = int Function( - ffi.Pointer repo, - ffi.Pointer diff, - int location, - ffi.Pointer options, -); - -typedef _c_git_attr_value = ffi.Int32 Function( - ffi.Pointer attr, -); - -typedef _dart_git_attr_value = int Function( - ffi.Pointer attr, -); - -typedef _c_git_attr_get = ffi.Int32 Function( - ffi.Pointer> value_out, - ffi.Pointer repo, - ffi.Uint32 flags, - ffi.Pointer path, - ffi.Pointer name, -); - -typedef _dart_git_attr_get = int Function( - ffi.Pointer> value_out, - ffi.Pointer repo, - int flags, - ffi.Pointer path, - ffi.Pointer name, -); - -typedef _c_git_attr_get_ext = ffi.Int32 Function( - ffi.Pointer> value_out, - ffi.Pointer repo, - ffi.Pointer opts, - ffi.Pointer path, - ffi.Pointer name, -); - -typedef _dart_git_attr_get_ext = int Function( - ffi.Pointer> value_out, - ffi.Pointer repo, - ffi.Pointer opts, - ffi.Pointer path, - ffi.Pointer name, -); - -typedef _c_git_attr_get_many = ffi.Int32 Function( - ffi.Pointer> values_out, - ffi.Pointer repo, - ffi.Uint32 flags, - ffi.Pointer path, - ffi.Int32 num_attr, - ffi.Pointer> names, -); - -typedef _dart_git_attr_get_many = int Function( - ffi.Pointer> values_out, - ffi.Pointer repo, - int flags, - ffi.Pointer path, - int num_attr, - ffi.Pointer> names, -); - -typedef _c_git_attr_get_many_ext = ffi.Int32 Function( - ffi.Pointer> values_out, - ffi.Pointer repo, - ffi.Pointer opts, - ffi.Pointer path, - ffi.Int32 num_attr, - ffi.Pointer> names, -); - -typedef _dart_git_attr_get_many_ext = int Function( - ffi.Pointer> values_out, - ffi.Pointer repo, - ffi.Pointer opts, - ffi.Pointer path, - int num_attr, - ffi.Pointer> names, -); - -typedef git_attr_foreach_cb = ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, -); - -typedef _c_git_attr_foreach = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Uint32 flags, - ffi.Pointer path, - ffi.Pointer> callback, - ffi.Pointer payload, -); - -typedef _dart_git_attr_foreach = int Function( - ffi.Pointer repo, - int flags, - ffi.Pointer path, - ffi.Pointer> callback, - ffi.Pointer payload, -); - -typedef _c_git_attr_foreach_ext = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer opts, - ffi.Pointer path, - ffi.Pointer> callback, - ffi.Pointer payload, -); - -typedef _dart_git_attr_foreach_ext = int Function( - ffi.Pointer repo, - ffi.Pointer opts, - ffi.Pointer path, - ffi.Pointer> callback, - ffi.Pointer payload, -); - -typedef _c_git_attr_cache_flush = ffi.Int32 Function( - ffi.Pointer repo, -); - -typedef _dart_git_attr_cache_flush = int Function( - ffi.Pointer repo, -); - -typedef _c_git_attr_add_macro = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer name, - ffi.Pointer values, -); - -typedef _dart_git_attr_add_macro = int Function( - ffi.Pointer repo, - ffi.Pointer name, - ffi.Pointer values, -); - -typedef _c_git_blob_lookup = ffi.Int32 Function( - ffi.Pointer> blob, - ffi.Pointer repo, - ffi.Pointer id, -); - -typedef _dart_git_blob_lookup = int Function( - ffi.Pointer> blob, - ffi.Pointer repo, - ffi.Pointer id, -); - -typedef _c_git_blob_lookup_prefix = ffi.Int32 Function( - ffi.Pointer> blob, - ffi.Pointer repo, - ffi.Pointer id, - ffi.Int32 len, -); - -typedef _dart_git_blob_lookup_prefix = int Function( - ffi.Pointer> blob, - ffi.Pointer repo, - ffi.Pointer id, - int len, -); - -typedef _c_git_blob_free = ffi.Void Function( - ffi.Pointer blob, -); - -typedef _dart_git_blob_free = void Function( - ffi.Pointer blob, -); - -typedef _c_git_blob_id = ffi.Pointer Function( - ffi.Pointer blob, -); - -typedef _dart_git_blob_id = ffi.Pointer Function( - ffi.Pointer blob, -); - -typedef _c_git_blob_owner = ffi.Pointer Function( - ffi.Pointer blob, -); - -typedef _dart_git_blob_owner = ffi.Pointer Function( - ffi.Pointer blob, -); - -typedef _c_git_blob_rawcontent = ffi.Pointer Function( - ffi.Pointer blob, -); - -typedef _dart_git_blob_rawcontent = ffi.Pointer Function( - ffi.Pointer blob, -); - -typedef _c_git_blob_rawsize = ffi.Uint64 Function( - ffi.Pointer blob, -); - -typedef _dart_git_blob_rawsize = int Function( - ffi.Pointer blob, -); - -typedef _c_git_blob_filter_options_init = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_blob_filter_options_init = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_blob_filter = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer blob, - ffi.Pointer as_path, - ffi.Pointer opts, -); - -typedef _dart_git_blob_filter = int Function( - ffi.Pointer out, - ffi.Pointer blob, - ffi.Pointer as_path, - ffi.Pointer opts, -); - -typedef _c_git_blob_create_from_workdir = ffi.Int32 Function( - ffi.Pointer id, - ffi.Pointer repo, - ffi.Pointer relative_path, -); - -typedef _dart_git_blob_create_from_workdir = int Function( - ffi.Pointer id, - ffi.Pointer repo, - ffi.Pointer relative_path, -); - -typedef _c_git_blob_create_from_disk = ffi.Int32 Function( - ffi.Pointer id, - ffi.Pointer repo, - ffi.Pointer path, -); - -typedef _dart_git_blob_create_from_disk = int Function( - ffi.Pointer id, - ffi.Pointer repo, - ffi.Pointer path, -); - -typedef _c_git_blob_create_from_stream = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer hintpath, -); - -typedef _dart_git_blob_create_from_stream = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer hintpath, -); - -typedef _c_git_blob_create_from_stream_commit = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer stream, -); - -typedef _dart_git_blob_create_from_stream_commit = int Function( - ffi.Pointer out, - ffi.Pointer stream, -); - -typedef _c_git_blob_create_from_buffer = ffi.Int32 Function( - ffi.Pointer id, - ffi.Pointer repo, - ffi.Pointer buffer, - ffi.Int32 len, -); - -typedef _dart_git_blob_create_from_buffer = int Function( - ffi.Pointer id, - ffi.Pointer repo, - ffi.Pointer buffer, - int len, -); - -typedef _c_git_blob_is_binary = ffi.Int32 Function( - ffi.Pointer blob, -); - -typedef _dart_git_blob_is_binary = int Function( - ffi.Pointer blob, -); - -typedef _c_git_blob_dup = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer source, -); - -typedef _dart_git_blob_dup = int Function( - ffi.Pointer> out, - ffi.Pointer source, -); - -typedef _c_git_blame_options_init = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_blame_options_init = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_blame_get_hunk_count = ffi.Uint32 Function( - ffi.Pointer blame, -); - -typedef _dart_git_blame_get_hunk_count = int Function( - ffi.Pointer blame, -); - -typedef _c_git_blame_get_hunk_byindex = ffi.Pointer Function( - ffi.Pointer blame, - ffi.Uint32 index, -); - -typedef _dart_git_blame_get_hunk_byindex = ffi.Pointer Function( - ffi.Pointer blame, - int index, -); - -typedef _c_git_blame_get_hunk_byline = ffi.Pointer Function( - ffi.Pointer blame, - ffi.Int32 lineno, -); - -typedef _dart_git_blame_get_hunk_byline = ffi.Pointer Function( - ffi.Pointer blame, - int lineno, -); - -typedef _c_git_blame_file = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer path, - ffi.Pointer options, -); - -typedef _dart_git_blame_file = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer path, - ffi.Pointer options, -); - -typedef _c_git_blame_buffer = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer reference, - ffi.Pointer buffer, - ffi.Int32 buffer_len, -); - -typedef _dart_git_blame_buffer = int Function( - ffi.Pointer> out, - ffi.Pointer reference, - ffi.Pointer buffer, - int buffer_len, -); - -typedef _c_git_blame_free = ffi.Void Function( - ffi.Pointer blame, -); - -typedef _dart_git_blame_free = void Function( - ffi.Pointer blame, -); - -typedef _c_git_branch_create = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer branch_name, - ffi.Pointer target, - ffi.Int32 force, -); - -typedef _dart_git_branch_create = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer branch_name, - ffi.Pointer target, - int force, -); - -typedef _c_git_branch_create_from_annotated = ffi.Int32 Function( - ffi.Pointer> ref_out, - ffi.Pointer repository, - ffi.Pointer branch_name, - ffi.Pointer commit, - ffi.Int32 force, -); - -typedef _dart_git_branch_create_from_annotated = int Function( - ffi.Pointer> ref_out, - ffi.Pointer repository, - ffi.Pointer branch_name, - ffi.Pointer commit, - int force, -); - -typedef _c_git_branch_delete = ffi.Int32 Function( - ffi.Pointer branch, -); - -typedef _dart_git_branch_delete = int Function( - ffi.Pointer branch, -); - -typedef _c_git_branch_iterator_new = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Int32 list_flags, -); - -typedef _dart_git_branch_iterator_new = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - int list_flags, -); - -typedef _c_git_branch_next = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer out_type, - ffi.Pointer iter, -); - -typedef _dart_git_branch_next = int Function( - ffi.Pointer> out, - ffi.Pointer out_type, - ffi.Pointer iter, -); - -typedef _c_git_branch_iterator_free = ffi.Void Function( - ffi.Pointer iter, -); - -typedef _dart_git_branch_iterator_free = void Function( - ffi.Pointer iter, -); - -typedef _c_git_branch_move = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer branch, - ffi.Pointer new_branch_name, - ffi.Int32 force, -); - -typedef _dart_git_branch_move = int Function( - ffi.Pointer> out, - ffi.Pointer branch, - ffi.Pointer new_branch_name, - int force, -); - -typedef _c_git_branch_lookup = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer branch_name, - ffi.Int32 branch_type, -); - -typedef _dart_git_branch_lookup = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer branch_name, - int branch_type, -); - -typedef _c_git_branch_name = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer ref, -); - -typedef _dart_git_branch_name = int Function( - ffi.Pointer> out, - ffi.Pointer ref, -); - -typedef _c_git_branch_upstream = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer branch, -); - -typedef _dart_git_branch_upstream = int Function( - ffi.Pointer> out, - ffi.Pointer branch, -); - -typedef _c_git_branch_set_upstream = ffi.Int32 Function( - ffi.Pointer branch, - ffi.Pointer branch_name, -); - -typedef _dart_git_branch_set_upstream = int Function( - ffi.Pointer branch, - ffi.Pointer branch_name, -); - -typedef _c_git_branch_upstream_name = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer repo, - ffi.Pointer refname, -); - -typedef _dart_git_branch_upstream_name = int Function( - ffi.Pointer out, - ffi.Pointer repo, - ffi.Pointer refname, -); - -typedef _c_git_branch_is_head = ffi.Int32 Function( - ffi.Pointer branch, -); - -typedef _dart_git_branch_is_head = int Function( - ffi.Pointer branch, -); - -typedef _c_git_branch_is_checked_out = ffi.Int32 Function( - ffi.Pointer branch, -); - -typedef _dart_git_branch_is_checked_out = int Function( - ffi.Pointer branch, -); - -typedef _c_git_branch_remote_name = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer repo, - ffi.Pointer refname, -); - -typedef _dart_git_branch_remote_name = int Function( - ffi.Pointer out, - ffi.Pointer repo, - ffi.Pointer refname, -); - -typedef _c_git_branch_upstream_remote = ffi.Int32 Function( - ffi.Pointer buf, - ffi.Pointer repo, - ffi.Pointer refname, -); - -typedef _dart_git_branch_upstream_remote = int Function( - ffi.Pointer buf, - ffi.Pointer repo, - ffi.Pointer refname, -); - -typedef _c_git_branch_upstream_merge = ffi.Int32 Function( - ffi.Pointer buf, - ffi.Pointer repo, - ffi.Pointer refname, -); - -typedef _dart_git_branch_upstream_merge = int Function( - ffi.Pointer buf, - ffi.Pointer repo, - ffi.Pointer refname, -); - -typedef _c_git_branch_name_is_valid = ffi.Int32 Function( - ffi.Pointer valid, - ffi.Pointer name, -); - -typedef _dart_git_branch_name_is_valid = int Function( - ffi.Pointer valid, - ffi.Pointer name, -); - -typedef _c_git_checkout_options_init = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_checkout_options_init = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_checkout_head = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer opts, -); - -typedef _dart_git_checkout_head = int Function( - ffi.Pointer repo, - ffi.Pointer opts, -); - -typedef _c_git_checkout_index = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer index, - ffi.Pointer opts, -); - -typedef _dart_git_checkout_index = int Function( - ffi.Pointer repo, - ffi.Pointer index, - ffi.Pointer opts, -); - -typedef _c_git_checkout_tree = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer treeish, - ffi.Pointer opts, -); - -typedef _dart_git_checkout_tree = int Function( - ffi.Pointer repo, - ffi.Pointer treeish, - ffi.Pointer opts, -); - -typedef _c_git_oidarray_free = ffi.Void Function( - ffi.Pointer array, -); - -typedef _dart_git_oidarray_free = void Function( - ffi.Pointer array, -); - -typedef _c_git_indexer_options_init = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_indexer_options_init = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_indexer_new = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer path, - ffi.Uint32 mode, - ffi.Pointer odb, - ffi.Pointer opts, -); - -typedef _dart_git_indexer_new = int Function( - ffi.Pointer> out, - ffi.Pointer path, - int mode, - ffi.Pointer odb, - ffi.Pointer opts, -); - -typedef _c_git_indexer_append = ffi.Int32 Function( - ffi.Pointer idx, - ffi.Pointer data, - ffi.Int32 size, - ffi.Pointer stats, -); - -typedef _dart_git_indexer_append = int Function( - ffi.Pointer idx, - ffi.Pointer data, - int size, - ffi.Pointer stats, -); - -typedef _c_git_indexer_commit = ffi.Int32 Function( - ffi.Pointer idx, - ffi.Pointer stats, -); - -typedef _dart_git_indexer_commit = int Function( - ffi.Pointer idx, - ffi.Pointer stats, -); - -typedef _c_git_indexer_hash = ffi.Pointer Function( - ffi.Pointer idx, -); - -typedef _dart_git_indexer_hash = ffi.Pointer Function( - ffi.Pointer idx, -); - -typedef _c_git_indexer_free = ffi.Void Function( - ffi.Pointer idx, -); - -typedef _dart_git_indexer_free = void Function( - ffi.Pointer idx, -); - -typedef _c_git_index_open = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer index_path, -); - -typedef _dart_git_index_open = int Function( - ffi.Pointer> out, - ffi.Pointer index_path, -); - -typedef _c_git_index_new = ffi.Int32 Function( - ffi.Pointer> out, -); - -typedef _dart_git_index_new = int Function( - ffi.Pointer> out, -); - -typedef _c_git_index_free = ffi.Void Function( - ffi.Pointer index, -); - -typedef _dart_git_index_free = void Function( - ffi.Pointer index, -); - -typedef _c_git_index_owner = ffi.Pointer Function( - ffi.Pointer index, -); - -typedef _dart_git_index_owner = ffi.Pointer Function( - ffi.Pointer index, -); - -typedef _c_git_index_caps = ffi.Int32 Function( - ffi.Pointer index, -); - -typedef _dart_git_index_caps = int Function( - ffi.Pointer index, -); - -typedef _c_git_index_set_caps = ffi.Int32 Function( - ffi.Pointer index, - ffi.Int32 caps, -); - -typedef _dart_git_index_set_caps = int Function( - ffi.Pointer index, - int caps, -); - -typedef _c_git_index_version = ffi.Uint32 Function( - ffi.Pointer index, -); - -typedef _dart_git_index_version = int Function( - ffi.Pointer index, -); - -typedef _c_git_index_set_version = ffi.Int32 Function( - ffi.Pointer index, - ffi.Uint32 version, -); - -typedef _dart_git_index_set_version = int Function( - ffi.Pointer index, - int version, -); - -typedef _c_git_index_read = ffi.Int32 Function( - ffi.Pointer index, - ffi.Int32 force, -); - -typedef _dart_git_index_read = int Function( - ffi.Pointer index, - int force, -); - -typedef _c_git_index_write = ffi.Int32 Function( - ffi.Pointer index, -); - -typedef _dart_git_index_write = int Function( - ffi.Pointer index, -); - -typedef _c_git_index_path = ffi.Pointer Function( - ffi.Pointer index, -); - -typedef _dart_git_index_path = ffi.Pointer Function( - ffi.Pointer index, -); - -typedef _c_git_index_checksum = ffi.Pointer Function( - ffi.Pointer index, -); - -typedef _dart_git_index_checksum = ffi.Pointer Function( - ffi.Pointer index, -); - -typedef _c_git_index_read_tree = ffi.Int32 Function( - ffi.Pointer index, - ffi.Pointer tree, -); - -typedef _dart_git_index_read_tree = int Function( - ffi.Pointer index, - ffi.Pointer tree, -); - -typedef _c_git_index_write_tree = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer index, -); - -typedef _dart_git_index_write_tree = int Function( - ffi.Pointer out, - ffi.Pointer index, -); - -typedef _c_git_index_write_tree_to = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer index, - ffi.Pointer repo, -); - -typedef _dart_git_index_write_tree_to = int Function( - ffi.Pointer out, - ffi.Pointer index, - ffi.Pointer repo, -); - -typedef _c_git_index_entrycount = ffi.Int32 Function( - ffi.Pointer index, -); - -typedef _dart_git_index_entrycount = int Function( - ffi.Pointer index, -); - -typedef _c_git_index_clear = ffi.Int32 Function( - ffi.Pointer index, -); - -typedef _dart_git_index_clear = int Function( - ffi.Pointer index, -); - -typedef _c_git_index_get_byindex = ffi.Pointer Function( - ffi.Pointer index, - ffi.Int32 n, -); - -typedef _dart_git_index_get_byindex = ffi.Pointer Function( - ffi.Pointer index, - int n, -); - -typedef _c_git_index_get_bypath = ffi.Pointer Function( - ffi.Pointer index, - ffi.Pointer path, - ffi.Int32 stage, -); - -typedef _dart_git_index_get_bypath = ffi.Pointer Function( - ffi.Pointer index, - ffi.Pointer path, - int stage, -); - -typedef _c_git_index_remove = ffi.Int32 Function( - ffi.Pointer index, - ffi.Pointer path, - ffi.Int32 stage, -); - -typedef _dart_git_index_remove = int Function( - ffi.Pointer index, - ffi.Pointer path, - int stage, -); - -typedef _c_git_index_remove_directory = ffi.Int32 Function( - ffi.Pointer index, - ffi.Pointer dir, - ffi.Int32 stage, -); - -typedef _dart_git_index_remove_directory = int Function( - ffi.Pointer index, - ffi.Pointer dir, - int stage, -); - -typedef _c_git_index_add = ffi.Int32 Function( - ffi.Pointer index, - ffi.Pointer source_entry, -); - -typedef _dart_git_index_add = int Function( - ffi.Pointer index, - ffi.Pointer source_entry, -); - -typedef _c_git_index_entry_stage = ffi.Int32 Function( - ffi.Pointer entry, -); - -typedef _dart_git_index_entry_stage = int Function( - ffi.Pointer entry, -); - -typedef _c_git_index_entry_is_conflict = ffi.Int32 Function( - ffi.Pointer entry, -); - -typedef _dart_git_index_entry_is_conflict = int Function( - ffi.Pointer entry, -); - -typedef _c_git_index_iterator_new = ffi.Int32 Function( - ffi.Pointer> iterator_out, - ffi.Pointer index, -); - -typedef _dart_git_index_iterator_new = int Function( - ffi.Pointer> iterator_out, - ffi.Pointer index, -); - -typedef _c_git_index_iterator_next = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer iterator, -); - -typedef _dart_git_index_iterator_next = int Function( - ffi.Pointer> out, - ffi.Pointer iterator, -); - -typedef _c_git_index_iterator_free = ffi.Void Function( - ffi.Pointer iterator, -); - -typedef _dart_git_index_iterator_free = void Function( - ffi.Pointer iterator, -); - -typedef _c_git_index_add_bypath = ffi.Int32 Function( - ffi.Pointer index, - ffi.Pointer path, -); - -typedef _dart_git_index_add_bypath = int Function( - ffi.Pointer index, - ffi.Pointer path, -); - -typedef _c_git_index_add_from_buffer = ffi.Int32 Function( - ffi.Pointer index, - ffi.Pointer entry, - ffi.Pointer buffer, - ffi.Int32 len, -); - -typedef _dart_git_index_add_from_buffer = int Function( - ffi.Pointer index, - ffi.Pointer entry, - ffi.Pointer buffer, - int len, -); - -typedef _c_git_index_remove_bypath = ffi.Int32 Function( - ffi.Pointer index, - ffi.Pointer path, -); - -typedef _dart_git_index_remove_bypath = int Function( - ffi.Pointer index, - ffi.Pointer path, -); - -typedef git_index_matched_path_cb = ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, -); - -typedef _c_git_index_add_all = ffi.Int32 Function( - ffi.Pointer index, - ffi.Pointer pathspec, - ffi.Uint32 flags, - ffi.Pointer> callback, - ffi.Pointer payload, -); - -typedef _dart_git_index_add_all = int Function( - ffi.Pointer index, - ffi.Pointer pathspec, - int flags, - ffi.Pointer> callback, - ffi.Pointer payload, -); - -typedef _c_git_index_remove_all = ffi.Int32 Function( - ffi.Pointer index, - ffi.Pointer pathspec, - ffi.Pointer> callback, - ffi.Pointer payload, -); - -typedef _dart_git_index_remove_all = int Function( - ffi.Pointer index, - ffi.Pointer pathspec, - ffi.Pointer> callback, - ffi.Pointer payload, -); - -typedef _c_git_index_update_all = ffi.Int32 Function( - ffi.Pointer index, - ffi.Pointer pathspec, - ffi.Pointer> callback, - ffi.Pointer payload, -); - -typedef _dart_git_index_update_all = int Function( - ffi.Pointer index, - ffi.Pointer pathspec, - ffi.Pointer> callback, - ffi.Pointer payload, -); - -typedef _c_git_index_find = ffi.Int32 Function( - ffi.Pointer at_pos, - ffi.Pointer index, - ffi.Pointer path, -); - -typedef _dart_git_index_find = int Function( - ffi.Pointer at_pos, - ffi.Pointer index, - ffi.Pointer path, -); - -typedef _c_git_index_find_prefix = ffi.Int32 Function( - ffi.Pointer at_pos, - ffi.Pointer index, - ffi.Pointer prefix, -); - -typedef _dart_git_index_find_prefix = int Function( - ffi.Pointer at_pos, - ffi.Pointer index, - ffi.Pointer prefix, -); - -typedef _c_git_index_conflict_add = ffi.Int32 Function( - ffi.Pointer index, - ffi.Pointer ancestor_entry, - ffi.Pointer our_entry, - ffi.Pointer their_entry, -); - -typedef _dart_git_index_conflict_add = int Function( - ffi.Pointer index, - ffi.Pointer ancestor_entry, - ffi.Pointer our_entry, - ffi.Pointer their_entry, -); - -typedef _c_git_index_conflict_get = ffi.Int32 Function( - ffi.Pointer> ancestor_out, - ffi.Pointer> our_out, - ffi.Pointer> their_out, - ffi.Pointer index, - ffi.Pointer path, -); - -typedef _dart_git_index_conflict_get = int Function( - ffi.Pointer> ancestor_out, - ffi.Pointer> our_out, - ffi.Pointer> their_out, - ffi.Pointer index, - ffi.Pointer path, -); - -typedef _c_git_index_conflict_remove = ffi.Int32 Function( - ffi.Pointer index, - ffi.Pointer path, -); - -typedef _dart_git_index_conflict_remove = int Function( - ffi.Pointer index, - ffi.Pointer path, -); - -typedef _c_git_index_conflict_cleanup = ffi.Int32 Function( - ffi.Pointer index, -); - -typedef _dart_git_index_conflict_cleanup = int Function( - ffi.Pointer index, -); - -typedef _c_git_index_has_conflicts = ffi.Int32 Function( - ffi.Pointer index, -); - -typedef _dart_git_index_has_conflicts = int Function( - ffi.Pointer index, -); - -typedef _c_git_index_conflict_iterator_new = ffi.Int32 Function( - ffi.Pointer> iterator_out, - ffi.Pointer index, -); - -typedef _dart_git_index_conflict_iterator_new = int Function( - ffi.Pointer> iterator_out, - ffi.Pointer index, -); - -typedef _c_git_index_conflict_next = ffi.Int32 Function( - ffi.Pointer> ancestor_out, - ffi.Pointer> our_out, - ffi.Pointer> their_out, - ffi.Pointer iterator, -); - -typedef _dart_git_index_conflict_next = int Function( - ffi.Pointer> ancestor_out, - ffi.Pointer> our_out, - ffi.Pointer> their_out, - ffi.Pointer iterator, -); - -typedef _c_git_index_conflict_iterator_free = ffi.Void Function( - ffi.Pointer iterator, -); - -typedef _dart_git_index_conflict_iterator_free = void Function( - ffi.Pointer iterator, -); - -typedef _c_git_merge_file_input_init = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_merge_file_input_init = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_merge_file_options_init = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_merge_file_options_init = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_merge_options_init = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_merge_options_init = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_merge_analysis = ffi.Int32 Function( - ffi.Pointer analysis_out, - ffi.Pointer preference_out, - ffi.Pointer repo, - ffi.Pointer> their_heads, - ffi.Int32 their_heads_len, -); - -typedef _dart_git_merge_analysis = int Function( - ffi.Pointer analysis_out, - ffi.Pointer preference_out, - ffi.Pointer repo, - ffi.Pointer> their_heads, - int their_heads_len, -); - -typedef _c_git_merge_analysis_for_ref = ffi.Int32 Function( - ffi.Pointer analysis_out, - ffi.Pointer preference_out, - ffi.Pointer repo, - ffi.Pointer our_ref, - ffi.Pointer> their_heads, - ffi.Int32 their_heads_len, -); - -typedef _dart_git_merge_analysis_for_ref = int Function( - ffi.Pointer analysis_out, - ffi.Pointer preference_out, - ffi.Pointer repo, - ffi.Pointer our_ref, - ffi.Pointer> their_heads, - int their_heads_len, -); - -typedef _c_git_merge_base = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer repo, - ffi.Pointer one, - ffi.Pointer two, -); - -typedef _dart_git_merge_base = int Function( - ffi.Pointer out, - ffi.Pointer repo, - ffi.Pointer one, - ffi.Pointer two, -); - -typedef _c_git_merge_bases = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer repo, - ffi.Pointer one, - ffi.Pointer two, -); - -typedef _dart_git_merge_bases = int Function( - ffi.Pointer out, - ffi.Pointer repo, - ffi.Pointer one, - ffi.Pointer two, -); - -typedef _c_git_merge_base_many = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer repo, - ffi.Int32 length, - ffi.Pointer input_array, -); - -typedef _dart_git_merge_base_many = int Function( - ffi.Pointer out, - ffi.Pointer repo, - int length, - ffi.Pointer input_array, -); - -typedef _c_git_merge_bases_many = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer repo, - ffi.Int32 length, - ffi.Pointer input_array, -); - -typedef _dart_git_merge_bases_many = int Function( - ffi.Pointer out, - ffi.Pointer repo, - int length, - ffi.Pointer input_array, -); - -typedef _c_git_merge_base_octopus = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer repo, - ffi.Int32 length, - ffi.Pointer input_array, -); - -typedef _dart_git_merge_base_octopus = int Function( - ffi.Pointer out, - ffi.Pointer repo, - int length, - ffi.Pointer input_array, -); - -typedef _c_git_merge_file = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer ancestor, - ffi.Pointer ours, - ffi.Pointer theirs, - ffi.Pointer opts, -); - -typedef _dart_git_merge_file = int Function( - ffi.Pointer out, - ffi.Pointer ancestor, - ffi.Pointer ours, - ffi.Pointer theirs, - ffi.Pointer opts, -); - -typedef _c_git_merge_file_from_index = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer repo, - ffi.Pointer ancestor, - ffi.Pointer ours, - ffi.Pointer theirs, - ffi.Pointer opts, -); - -typedef _dart_git_merge_file_from_index = int Function( - ffi.Pointer out, - ffi.Pointer repo, - ffi.Pointer ancestor, - ffi.Pointer ours, - ffi.Pointer theirs, - ffi.Pointer opts, -); - -typedef _c_git_merge_file_result_free = ffi.Void Function( - ffi.Pointer result, -); - -typedef _dart_git_merge_file_result_free = void Function( - ffi.Pointer result, -); - -typedef _c_git_merge_trees = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer ancestor_tree, - ffi.Pointer our_tree, - ffi.Pointer their_tree, - ffi.Pointer opts, -); - -typedef _dart_git_merge_trees = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer ancestor_tree, - ffi.Pointer our_tree, - ffi.Pointer their_tree, - ffi.Pointer opts, -); - -typedef _c_git_merge_commits = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer our_commit, - ffi.Pointer their_commit, - ffi.Pointer opts, -); - -typedef _dart_git_merge_commits = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer our_commit, - ffi.Pointer their_commit, - ffi.Pointer opts, -); - -typedef _c_git_merge = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer> their_heads, - ffi.Int32 their_heads_len, - ffi.Pointer merge_opts, - ffi.Pointer checkout_opts, -); - -typedef _dart_git_merge = int Function( - ffi.Pointer repo, - ffi.Pointer> their_heads, - int their_heads_len, - ffi.Pointer merge_opts, - ffi.Pointer checkout_opts, -); - -typedef _c_git_cherrypick_options_init = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_cherrypick_options_init = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_cherrypick_commit = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer cherrypick_commit, - ffi.Pointer our_commit, - ffi.Uint32 mainline, - ffi.Pointer merge_options, -); - -typedef _dart_git_cherrypick_commit = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer cherrypick_commit, - ffi.Pointer our_commit, - int mainline, - ffi.Pointer merge_options, -); - -typedef _c_git_cherrypick = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer commit, - ffi.Pointer cherrypick_options, -); - -typedef _dart_git_cherrypick = int Function( - ffi.Pointer repo, - ffi.Pointer commit, - ffi.Pointer cherrypick_options, -); - -typedef _c_git_refspec_parse = ffi.Int32 Function( - ffi.Pointer> refspec, - ffi.Pointer input, - ffi.Int32 is_fetch, -); - -typedef _dart_git_refspec_parse = int Function( - ffi.Pointer> refspec, - ffi.Pointer input, - int is_fetch, -); - -typedef _c_git_refspec_free = ffi.Void Function( - ffi.Pointer refspec, -); - -typedef _dart_git_refspec_free = void Function( - ffi.Pointer refspec, -); - -typedef _c_git_refspec_src = ffi.Pointer Function( - ffi.Pointer refspec, -); - -typedef _dart_git_refspec_src = ffi.Pointer Function( - ffi.Pointer refspec, -); - -typedef _c_git_refspec_dst = ffi.Pointer Function( - ffi.Pointer refspec, -); - -typedef _dart_git_refspec_dst = ffi.Pointer Function( - ffi.Pointer refspec, -); - -typedef _c_git_refspec_string = ffi.Pointer Function( - ffi.Pointer refspec, -); - -typedef _dart_git_refspec_string = ffi.Pointer Function( - ffi.Pointer refspec, -); - -typedef _c_git_refspec_force = ffi.Int32 Function( - ffi.Pointer refspec, -); - -typedef _dart_git_refspec_force = int Function( - ffi.Pointer refspec, -); - -typedef _c_git_refspec_direction = ffi.Int32 Function( - ffi.Pointer spec, -); - -typedef _dart_git_refspec_direction = int Function( - ffi.Pointer spec, -); - -typedef _c_git_refspec_src_matches = ffi.Int32 Function( - ffi.Pointer refspec, - ffi.Pointer refname, -); - -typedef _dart_git_refspec_src_matches = int Function( - ffi.Pointer refspec, - ffi.Pointer refname, -); - -typedef _c_git_refspec_dst_matches = ffi.Int32 Function( - ffi.Pointer refspec, - ffi.Pointer refname, -); - -typedef _dart_git_refspec_dst_matches = int Function( - ffi.Pointer refspec, - ffi.Pointer refname, -); - -typedef _c_git_refspec_transform = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer spec, - ffi.Pointer name, -); - -typedef _dart_git_refspec_transform = int Function( - ffi.Pointer out, - ffi.Pointer spec, - ffi.Pointer name, -); - -typedef _c_git_refspec_rtransform = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer spec, - ffi.Pointer name, -); - -typedef _dart_git_refspec_rtransform = int Function( - ffi.Pointer out, - ffi.Pointer spec, - ffi.Pointer name, -); - -typedef _c_git_credential_free = ffi.Void Function( - ffi.Pointer cred, -); - -typedef _dart_git_credential_free = void Function( - ffi.Pointer cred, -); - -typedef _c_git_credential_has_username = ffi.Int32 Function( - ffi.Pointer cred, -); - -typedef _dart_git_credential_has_username = int Function( - ffi.Pointer cred, -); - -typedef _c_git_credential_get_username = ffi.Pointer Function( - ffi.Pointer cred, -); - -typedef _dart_git_credential_get_username = ffi.Pointer Function( - ffi.Pointer cred, -); - -typedef _c_git_credential_userpass_plaintext_new = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer username, - ffi.Pointer password, -); - -typedef _dart_git_credential_userpass_plaintext_new = int Function( - ffi.Pointer> out, - ffi.Pointer username, - ffi.Pointer password, -); - -typedef _c_git_credential_default_new = ffi.Int32 Function( - ffi.Pointer> out, -); - -typedef _dart_git_credential_default_new = int Function( - ffi.Pointer> out, -); - -typedef _c_git_credential_username_new = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer username, -); - -typedef _dart_git_credential_username_new = int Function( - ffi.Pointer> out, - ffi.Pointer username, -); - -typedef _c_git_credential_ssh_key_new = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer username, - ffi.Pointer publickey, - ffi.Pointer privatekey, - ffi.Pointer passphrase, -); - -typedef _dart_git_credential_ssh_key_new = int Function( - ffi.Pointer> out, - ffi.Pointer username, - ffi.Pointer publickey, - ffi.Pointer privatekey, - ffi.Pointer passphrase, -); - -typedef _c_git_credential_ssh_key_memory_new = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer username, - ffi.Pointer publickey, - ffi.Pointer privatekey, - ffi.Pointer passphrase, -); - -typedef _dart_git_credential_ssh_key_memory_new = int Function( - ffi.Pointer> out, - ffi.Pointer username, - ffi.Pointer publickey, - ffi.Pointer privatekey, - ffi.Pointer passphrase, -); - -typedef git_credential_ssh_interactive_cb = ffi.Void Function( - ffi.Pointer, - ffi.Int32, - ffi.Pointer, - ffi.Int32, - ffi.Int32, - ffi.Pointer<_LIBSSH2_USERAUTH_KBDINT_PROMPT>, - ffi.Pointer<_LIBSSH2_USERAUTH_KBDINT_RESPONSE>, - ffi.Pointer>, -); - -typedef _c_git_credential_ssh_interactive_new = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer username, - ffi.Pointer> - prompt_callback, - ffi.Pointer payload, -); - -typedef _dart_git_credential_ssh_interactive_new = int Function( - ffi.Pointer> out, - ffi.Pointer username, - ffi.Pointer> - prompt_callback, - ffi.Pointer payload, -); - -typedef _c_git_credential_ssh_key_from_agent = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer username, -); - -typedef _dart_git_credential_ssh_key_from_agent = int Function( - ffi.Pointer> out, - ffi.Pointer username, -); - -typedef git_credential_sign_cb = ffi.Int32 Function( - ffi.Pointer<_LIBSSH2_SESSION>, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer>, -); - -typedef _c_git_credential_ssh_custom_new = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer username, - ffi.Pointer publickey, - ffi.Int32 publickey_len, - ffi.Pointer> sign_callback, - ffi.Pointer payload, -); - -typedef _dart_git_credential_ssh_custom_new = int Function( - ffi.Pointer> out, - ffi.Pointer username, - ffi.Pointer publickey, - int publickey_len, - ffi.Pointer> sign_callback, - ffi.Pointer payload, -); - -typedef _c_git_packbuilder_new = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, -); - -typedef _dart_git_packbuilder_new = int Function( - ffi.Pointer> out, - ffi.Pointer repo, -); - -typedef _c_git_packbuilder_set_threads = ffi.Uint32 Function( - ffi.Pointer pb, - ffi.Uint32 n, -); - -typedef _dart_git_packbuilder_set_threads = int Function( - ffi.Pointer pb, - int n, -); - -typedef _c_git_packbuilder_insert = ffi.Int32 Function( - ffi.Pointer pb, - ffi.Pointer id, - ffi.Pointer name, -); - -typedef _dart_git_packbuilder_insert = int Function( - ffi.Pointer pb, - ffi.Pointer id, - ffi.Pointer name, -); - -typedef _c_git_packbuilder_insert_tree = ffi.Int32 Function( - ffi.Pointer pb, - ffi.Pointer id, -); - -typedef _dart_git_packbuilder_insert_tree = int Function( - ffi.Pointer pb, - ffi.Pointer id, -); - -typedef _c_git_packbuilder_insert_commit = ffi.Int32 Function( - ffi.Pointer pb, - ffi.Pointer id, -); - -typedef _dart_git_packbuilder_insert_commit = int Function( - ffi.Pointer pb, - ffi.Pointer id, -); - -typedef _c_git_packbuilder_insert_walk = ffi.Int32 Function( - ffi.Pointer pb, - ffi.Pointer walk, -); - -typedef _dart_git_packbuilder_insert_walk = int Function( - ffi.Pointer pb, - ffi.Pointer walk, -); - -typedef _c_git_packbuilder_insert_recur = ffi.Int32 Function( - ffi.Pointer pb, - ffi.Pointer id, - ffi.Pointer name, -); - -typedef _dart_git_packbuilder_insert_recur = int Function( - ffi.Pointer pb, - ffi.Pointer id, - ffi.Pointer name, -); - -typedef _c_git_packbuilder_write_buf = ffi.Int32 Function( - ffi.Pointer buf, - ffi.Pointer pb, -); - -typedef _dart_git_packbuilder_write_buf = int Function( - ffi.Pointer buf, - ffi.Pointer pb, -); - -typedef git_indexer_progress_cb = ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, -); - -typedef _c_git_packbuilder_write = ffi.Int32 Function( - ffi.Pointer pb, - ffi.Pointer path, - ffi.Uint32 mode, - ffi.Pointer> progress_cb, - ffi.Pointer progress_cb_payload, -); - -typedef _dart_git_packbuilder_write = int Function( - ffi.Pointer pb, - ffi.Pointer path, - int mode, - ffi.Pointer> progress_cb, - ffi.Pointer progress_cb_payload, -); - -typedef _c_git_packbuilder_hash = ffi.Pointer Function( - ffi.Pointer pb, -); - -typedef _dart_git_packbuilder_hash = ffi.Pointer Function( - ffi.Pointer pb, -); - -typedef git_packbuilder_foreach_cb = ffi.Int32 Function( - ffi.Pointer, - ffi.Int32, - ffi.Pointer, -); - -typedef _c_git_packbuilder_foreach = ffi.Int32 Function( - ffi.Pointer pb, - ffi.Pointer> cb, - ffi.Pointer payload, -); - -typedef _dart_git_packbuilder_foreach = int Function( - ffi.Pointer pb, - ffi.Pointer> cb, - ffi.Pointer payload, -); - -typedef _c_git_packbuilder_object_count = ffi.Int32 Function( - ffi.Pointer pb, -); - -typedef _dart_git_packbuilder_object_count = int Function( - ffi.Pointer pb, -); - -typedef _c_git_packbuilder_written = ffi.Int32 Function( - ffi.Pointer pb, -); - -typedef _dart_git_packbuilder_written = int Function( - ffi.Pointer pb, -); - -typedef git_packbuilder_progress = ffi.Int32 Function( - ffi.Int32, - ffi.Uint32, - ffi.Uint32, - ffi.Pointer, -); - -typedef _c_git_packbuilder_set_callbacks = ffi.Int32 Function( - ffi.Pointer pb, - ffi.Pointer> progress_cb, - ffi.Pointer progress_cb_payload, -); - -typedef _dart_git_packbuilder_set_callbacks = int Function( - ffi.Pointer pb, - ffi.Pointer> progress_cb, - ffi.Pointer progress_cb_payload, -); - -typedef _c_git_packbuilder_free = ffi.Void Function( - ffi.Pointer pb, -); - -typedef _dart_git_packbuilder_free = void Function( - ffi.Pointer pb, -); - -typedef _c_git_proxy_options_init = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_proxy_options_init = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_remote_create = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer name, - ffi.Pointer url, -); - -typedef _dart_git_remote_create = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer name, - ffi.Pointer url, -); - -typedef _c_git_remote_create_options_init = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_remote_create_options_init = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_remote_create_with_opts = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer url, - ffi.Pointer opts, -); - -typedef _dart_git_remote_create_with_opts = int Function( - ffi.Pointer> out, - ffi.Pointer url, - ffi.Pointer opts, -); - -typedef _c_git_remote_create_with_fetchspec = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer name, - ffi.Pointer url, - ffi.Pointer fetch, -); - -typedef _dart_git_remote_create_with_fetchspec = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer name, - ffi.Pointer url, - ffi.Pointer fetch, -); - -typedef _c_git_remote_create_anonymous = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer url, -); - -typedef _dart_git_remote_create_anonymous = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer url, -); - -typedef _c_git_remote_create_detached = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer url, -); - -typedef _dart_git_remote_create_detached = int Function( - ffi.Pointer> out, - ffi.Pointer url, -); - -typedef _c_git_remote_lookup = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer name, -); - -typedef _dart_git_remote_lookup = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer name, -); - -typedef _c_git_remote_dup = ffi.Int32 Function( - ffi.Pointer> dest, - ffi.Pointer source, -); - -typedef _dart_git_remote_dup = int Function( - ffi.Pointer> dest, - ffi.Pointer source, -); - -typedef _c_git_remote_owner = ffi.Pointer Function( - ffi.Pointer remote, -); - -typedef _dart_git_remote_owner = ffi.Pointer Function( - ffi.Pointer remote, -); - -typedef _c_git_remote_name = ffi.Pointer Function( - ffi.Pointer remote, -); - -typedef _dart_git_remote_name = ffi.Pointer Function( - ffi.Pointer remote, -); - -typedef _c_git_remote_url = ffi.Pointer Function( - ffi.Pointer remote, -); - -typedef _dart_git_remote_url = ffi.Pointer Function( - ffi.Pointer remote, -); - -typedef _c_git_remote_pushurl = ffi.Pointer Function( - ffi.Pointer remote, -); - -typedef _dart_git_remote_pushurl = ffi.Pointer Function( - ffi.Pointer remote, -); - -typedef _c_git_remote_set_url = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer remote, - ffi.Pointer url, -); - -typedef _dart_git_remote_set_url = int Function( - ffi.Pointer repo, - ffi.Pointer remote, - ffi.Pointer url, -); - -typedef _c_git_remote_set_pushurl = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer remote, - ffi.Pointer url, -); - -typedef _dart_git_remote_set_pushurl = int Function( - ffi.Pointer repo, - ffi.Pointer remote, - ffi.Pointer url, -); - -typedef _c_git_remote_set_instance_url = ffi.Int32 Function( - ffi.Pointer remote, - ffi.Pointer url, -); - -typedef _dart_git_remote_set_instance_url = int Function( - ffi.Pointer remote, - ffi.Pointer url, -); - -typedef _c_git_remote_set_instance_pushurl = ffi.Int32 Function( - ffi.Pointer remote, - ffi.Pointer url, -); - -typedef _dart_git_remote_set_instance_pushurl = int Function( - ffi.Pointer remote, - ffi.Pointer url, -); - -typedef _c_git_remote_add_fetch = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer remote, - ffi.Pointer refspec, -); - -typedef _dart_git_remote_add_fetch = int Function( - ffi.Pointer repo, - ffi.Pointer remote, - ffi.Pointer refspec, -); - -typedef _c_git_remote_get_fetch_refspecs = ffi.Int32 Function( - ffi.Pointer array, - ffi.Pointer remote, -); - -typedef _dart_git_remote_get_fetch_refspecs = int Function( - ffi.Pointer array, - ffi.Pointer remote, -); - -typedef _c_git_remote_add_push = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer remote, - ffi.Pointer refspec, -); - -typedef _dart_git_remote_add_push = int Function( - ffi.Pointer repo, - ffi.Pointer remote, - ffi.Pointer refspec, -); - -typedef _c_git_remote_get_push_refspecs = ffi.Int32 Function( - ffi.Pointer array, - ffi.Pointer remote, -); - -typedef _dart_git_remote_get_push_refspecs = int Function( - ffi.Pointer array, - ffi.Pointer remote, -); - -typedef _c_git_remote_refspec_count = ffi.Int32 Function( - ffi.Pointer remote, -); - -typedef _dart_git_remote_refspec_count = int Function( - ffi.Pointer remote, -); - -typedef _c_git_remote_get_refspec = ffi.Pointer Function( - ffi.Pointer remote, - ffi.Int32 n, -); - -typedef _dart_git_remote_get_refspec = ffi.Pointer Function( - ffi.Pointer remote, - int n, -); - -typedef _c_git_remote_connect = ffi.Int32 Function( - ffi.Pointer remote, - ffi.Int32 direction, - ffi.Pointer callbacks, - ffi.Pointer proxy_opts, - ffi.Pointer custom_headers, -); - -typedef _dart_git_remote_connect = int Function( - ffi.Pointer remote, - int direction, - ffi.Pointer callbacks, - ffi.Pointer proxy_opts, - ffi.Pointer custom_headers, -); - -typedef _c_git_remote_ls = ffi.Int32 Function( - ffi.Pointer>> out, - ffi.Pointer size, - ffi.Pointer remote, -); - -typedef _dart_git_remote_ls = int Function( - ffi.Pointer>> out, - ffi.Pointer size, - ffi.Pointer remote, -); - -typedef _c_git_remote_connected = ffi.Int32 Function( - ffi.Pointer remote, -); - -typedef _dart_git_remote_connected = int Function( - ffi.Pointer remote, -); - -typedef _c_git_remote_stop = ffi.Int32 Function( - ffi.Pointer remote, -); - -typedef _dart_git_remote_stop = int Function( - ffi.Pointer remote, -); - -typedef _c_git_remote_disconnect = ffi.Int32 Function( - ffi.Pointer remote, -); - -typedef _dart_git_remote_disconnect = int Function( - ffi.Pointer remote, -); - -typedef _c_git_remote_free = ffi.Void Function( - ffi.Pointer remote, -); - -typedef _dart_git_remote_free = void Function( - ffi.Pointer remote, -); - -typedef _c_git_remote_list = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer repo, -); - -typedef _dart_git_remote_list = int Function( - ffi.Pointer out, - ffi.Pointer repo, -); - -typedef _c_git_remote_init_callbacks = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_remote_init_callbacks = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_fetch_options_init = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_fetch_options_init = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_push_options_init = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_push_options_init = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_remote_download = ffi.Int32 Function( - ffi.Pointer remote, - ffi.Pointer refspecs, - ffi.Pointer opts, -); - -typedef _dart_git_remote_download = int Function( - ffi.Pointer remote, - ffi.Pointer refspecs, - ffi.Pointer opts, -); - -typedef _c_git_remote_upload = ffi.Int32 Function( - ffi.Pointer remote, - ffi.Pointer refspecs, - ffi.Pointer opts, -); - -typedef _dart_git_remote_upload = int Function( - ffi.Pointer remote, - ffi.Pointer refspecs, - ffi.Pointer opts, -); - -typedef _c_git_remote_update_tips = ffi.Int32 Function( - ffi.Pointer remote, - ffi.Pointer callbacks, - ffi.Int32 update_fetchhead, - ffi.Int32 download_tags, - ffi.Pointer reflog_message, -); - -typedef _dart_git_remote_update_tips = int Function( - ffi.Pointer remote, - ffi.Pointer callbacks, - int update_fetchhead, - int download_tags, - ffi.Pointer reflog_message, -); - -typedef _c_git_remote_fetch = ffi.Int32 Function( - ffi.Pointer remote, - ffi.Pointer refspecs, - ffi.Pointer opts, - ffi.Pointer reflog_message, -); - -typedef _dart_git_remote_fetch = int Function( - ffi.Pointer remote, - ffi.Pointer refspecs, - ffi.Pointer opts, - ffi.Pointer reflog_message, -); - -typedef _c_git_remote_prune = ffi.Int32 Function( - ffi.Pointer remote, - ffi.Pointer callbacks, -); - -typedef _dart_git_remote_prune = int Function( - ffi.Pointer remote, - ffi.Pointer callbacks, -); - -typedef _c_git_remote_push = ffi.Int32 Function( - ffi.Pointer remote, - ffi.Pointer refspecs, - ffi.Pointer opts, -); - -typedef _dart_git_remote_push = int Function( - ffi.Pointer remote, - ffi.Pointer refspecs, - ffi.Pointer opts, -); - -typedef _c_git_remote_stats = ffi.Pointer Function( - ffi.Pointer remote, -); - -typedef _dart_git_remote_stats = ffi.Pointer Function( - ffi.Pointer remote, -); - -typedef _c_git_remote_autotag = ffi.Int32 Function( - ffi.Pointer remote, -); - -typedef _dart_git_remote_autotag = int Function( - ffi.Pointer remote, -); - -typedef _c_git_remote_set_autotag = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer remote, - ffi.Int32 value, -); - -typedef _dart_git_remote_set_autotag = int Function( - ffi.Pointer repo, - ffi.Pointer remote, - int value, -); - -typedef _c_git_remote_prune_refs = ffi.Int32 Function( - ffi.Pointer remote, -); - -typedef _dart_git_remote_prune_refs = int Function( - ffi.Pointer remote, -); - -typedef _c_git_remote_rename = ffi.Int32 Function( - ffi.Pointer problems, - ffi.Pointer repo, - ffi.Pointer name, - ffi.Pointer new_name, -); - -typedef _dart_git_remote_rename = int Function( - ffi.Pointer problems, - ffi.Pointer repo, - ffi.Pointer name, - ffi.Pointer new_name, -); - -typedef _c_git_remote_name_is_valid = ffi.Int32 Function( - ffi.Pointer valid, - ffi.Pointer remote_name, -); - -typedef _dart_git_remote_name_is_valid = int Function( - ffi.Pointer valid, - ffi.Pointer remote_name, -); - -typedef _c_git_remote_delete = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer name, -); - -typedef _dart_git_remote_delete = int Function( - ffi.Pointer repo, - ffi.Pointer name, -); - -typedef _c_git_remote_default_branch = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer remote, -); - -typedef _dart_git_remote_default_branch = int Function( - ffi.Pointer out, - ffi.Pointer remote, -); - -typedef _c_git_clone_options_init = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_clone_options_init = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_clone = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer url, - ffi.Pointer local_path, - ffi.Pointer options, -); - -typedef _dart_git_clone = int Function( - ffi.Pointer> out, - ffi.Pointer url, - ffi.Pointer local_path, - ffi.Pointer options, -); - -typedef _c_git_commit_lookup = ffi.Int32 Function( - ffi.Pointer> commit, - ffi.Pointer repo, - ffi.Pointer id, -); - -typedef _dart_git_commit_lookup = int Function( - ffi.Pointer> commit, - ffi.Pointer repo, - ffi.Pointer id, -); - -typedef _c_git_commit_lookup_prefix = ffi.Int32 Function( - ffi.Pointer> commit, - ffi.Pointer repo, - ffi.Pointer id, - ffi.Int32 len, -); - -typedef _dart_git_commit_lookup_prefix = int Function( - ffi.Pointer> commit, - ffi.Pointer repo, - ffi.Pointer id, - int len, -); - -typedef _c_git_commit_free = ffi.Void Function( - ffi.Pointer commit, -); - -typedef _dart_git_commit_free = void Function( - ffi.Pointer commit, -); - -typedef _c_git_commit_id = ffi.Pointer Function( - ffi.Pointer commit, -); - -typedef _dart_git_commit_id = ffi.Pointer Function( - ffi.Pointer commit, -); - -typedef _c_git_commit_owner = ffi.Pointer Function( - ffi.Pointer commit, -); - -typedef _dart_git_commit_owner = ffi.Pointer Function( - ffi.Pointer commit, -); - -typedef _c_git_commit_message_encoding = ffi.Pointer Function( - ffi.Pointer commit, -); - -typedef _dart_git_commit_message_encoding = ffi.Pointer Function( - ffi.Pointer commit, -); - -typedef _c_git_commit_message = ffi.Pointer Function( - ffi.Pointer commit, -); - -typedef _dart_git_commit_message = ffi.Pointer Function( - ffi.Pointer commit, -); - -typedef _c_git_commit_message_raw = ffi.Pointer Function( - ffi.Pointer commit, -); - -typedef _dart_git_commit_message_raw = ffi.Pointer Function( - ffi.Pointer commit, -); - -typedef _c_git_commit_summary = ffi.Pointer Function( - ffi.Pointer commit, -); - -typedef _dart_git_commit_summary = ffi.Pointer Function( - ffi.Pointer commit, -); - -typedef _c_git_commit_body = ffi.Pointer Function( - ffi.Pointer commit, -); - -typedef _dart_git_commit_body = ffi.Pointer Function( - ffi.Pointer commit, -); - -typedef _c_git_commit_time = ffi.Int64 Function( - ffi.Pointer commit, -); - -typedef _dart_git_commit_time = int Function( - ffi.Pointer commit, -); - -typedef _c_git_commit_time_offset = ffi.Int32 Function( - ffi.Pointer commit, -); - -typedef _dart_git_commit_time_offset = int Function( - ffi.Pointer commit, -); - -typedef _c_git_commit_committer = ffi.Pointer Function( - ffi.Pointer commit, -); - -typedef _dart_git_commit_committer = ffi.Pointer Function( - ffi.Pointer commit, -); - -typedef _c_git_commit_author = ffi.Pointer Function( - ffi.Pointer commit, -); - -typedef _dart_git_commit_author = ffi.Pointer Function( - ffi.Pointer commit, -); - -typedef _c_git_commit_committer_with_mailmap = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer commit, - ffi.Pointer mailmap, -); - -typedef _dart_git_commit_committer_with_mailmap = int Function( - ffi.Pointer> out, - ffi.Pointer commit, - ffi.Pointer mailmap, -); - -typedef _c_git_commit_author_with_mailmap = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer commit, - ffi.Pointer mailmap, -); - -typedef _dart_git_commit_author_with_mailmap = int Function( - ffi.Pointer> out, - ffi.Pointer commit, - ffi.Pointer mailmap, -); - -typedef _c_git_commit_raw_header = ffi.Pointer Function( - ffi.Pointer commit, -); - -typedef _dart_git_commit_raw_header = ffi.Pointer Function( - ffi.Pointer commit, -); - -typedef _c_git_commit_tree = ffi.Int32 Function( - ffi.Pointer> tree_out, - ffi.Pointer commit, -); - -typedef _dart_git_commit_tree = int Function( - ffi.Pointer> tree_out, - ffi.Pointer commit, -); - -typedef _c_git_commit_tree_id = ffi.Pointer Function( - ffi.Pointer commit, -); - -typedef _dart_git_commit_tree_id = ffi.Pointer Function( - ffi.Pointer commit, -); - -typedef _c_git_commit_parentcount = ffi.Uint32 Function( - ffi.Pointer commit, -); - -typedef _dart_git_commit_parentcount = int Function( - ffi.Pointer commit, -); - -typedef _c_git_commit_parent = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer commit, - ffi.Uint32 n, -); - -typedef _dart_git_commit_parent = int Function( - ffi.Pointer> out, - ffi.Pointer commit, - int n, -); - -typedef _c_git_commit_parent_id = ffi.Pointer Function( - ffi.Pointer commit, - ffi.Uint32 n, -); - -typedef _dart_git_commit_parent_id = ffi.Pointer Function( - ffi.Pointer commit, - int n, -); - -typedef _c_git_commit_nth_gen_ancestor = ffi.Int32 Function( - ffi.Pointer> ancestor, - ffi.Pointer commit, - ffi.Uint32 n, -); - -typedef _dart_git_commit_nth_gen_ancestor = int Function( - ffi.Pointer> ancestor, - ffi.Pointer commit, - int n, -); - -typedef _c_git_commit_header_field = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer commit, - ffi.Pointer field, -); - -typedef _dart_git_commit_header_field = int Function( - ffi.Pointer out, - ffi.Pointer commit, - ffi.Pointer field, -); - -typedef _c_git_commit_extract_signature = ffi.Int32 Function( - ffi.Pointer signature, - ffi.Pointer signed_data, - ffi.Pointer repo, - ffi.Pointer commit_id, - ffi.Pointer field, -); - -typedef _dart_git_commit_extract_signature = int Function( - ffi.Pointer signature, - ffi.Pointer signed_data, - ffi.Pointer repo, - ffi.Pointer commit_id, - ffi.Pointer field, -); - -typedef _c_git_commit_create = ffi.Int32 Function( - ffi.Pointer id, - ffi.Pointer repo, - ffi.Pointer update_ref, - ffi.Pointer author, - ffi.Pointer committer, - ffi.Pointer message_encoding, - ffi.Pointer message, - ffi.Pointer tree, - ffi.Int32 parent_count, - ffi.Pointer> parents, -); - -typedef _dart_git_commit_create = int Function( - ffi.Pointer id, - ffi.Pointer repo, - ffi.Pointer update_ref, - ffi.Pointer author, - ffi.Pointer committer, - ffi.Pointer message_encoding, - ffi.Pointer message, - ffi.Pointer tree, - int parent_count, - ffi.Pointer> parents, -); - -typedef _c_git_commit_create_v = ffi.Int32 Function( - ffi.Pointer id, - ffi.Pointer repo, - ffi.Pointer update_ref, - ffi.Pointer author, - ffi.Pointer committer, - ffi.Pointer message_encoding, - ffi.Pointer message, - ffi.Pointer tree, - ffi.Int32 parent_count, -); - -typedef _dart_git_commit_create_v = int Function( - ffi.Pointer id, - ffi.Pointer repo, - ffi.Pointer update_ref, - ffi.Pointer author, - ffi.Pointer committer, - ffi.Pointer message_encoding, - ffi.Pointer message, - ffi.Pointer tree, - int parent_count, -); - -typedef _c_git_commit_amend = ffi.Int32 Function( - ffi.Pointer id, - ffi.Pointer commit_to_amend, - ffi.Pointer update_ref, - ffi.Pointer author, - ffi.Pointer committer, - ffi.Pointer message_encoding, - ffi.Pointer message, - ffi.Pointer tree, -); - -typedef _dart_git_commit_amend = int Function( - ffi.Pointer id, - ffi.Pointer commit_to_amend, - ffi.Pointer update_ref, - ffi.Pointer author, - ffi.Pointer committer, - ffi.Pointer message_encoding, - ffi.Pointer message, - ffi.Pointer tree, -); - -typedef _c_git_commit_create_buffer = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer repo, - ffi.Pointer author, - ffi.Pointer committer, - ffi.Pointer message_encoding, - ffi.Pointer message, - ffi.Pointer tree, - ffi.Int32 parent_count, - ffi.Pointer> parents, -); - -typedef _dart_git_commit_create_buffer = int Function( - ffi.Pointer out, - ffi.Pointer repo, - ffi.Pointer author, - ffi.Pointer committer, - ffi.Pointer message_encoding, - ffi.Pointer message, - ffi.Pointer tree, - int parent_count, - ffi.Pointer> parents, -); - -typedef _c_git_commit_create_with_signature = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer repo, - ffi.Pointer commit_content, - ffi.Pointer signature, - ffi.Pointer signature_field, -); - -typedef _dart_git_commit_create_with_signature = int Function( - ffi.Pointer out, - ffi.Pointer repo, - ffi.Pointer commit_content, - ffi.Pointer signature, - ffi.Pointer signature_field, -); - -typedef _c_git_commit_dup = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer source, -); - -typedef _dart_git_commit_dup = int Function( - ffi.Pointer> out, - ffi.Pointer source, -); - -typedef _c_git_config_entry_free = ffi.Void Function( - ffi.Pointer arg0, -); - -typedef _dart_git_config_entry_free = void Function( - ffi.Pointer arg0, -); - -typedef _c_git_config_find_global = ffi.Int32 Function( - ffi.Pointer out, -); - -typedef _dart_git_config_find_global = int Function( - ffi.Pointer out, -); - -typedef _c_git_config_find_xdg = ffi.Int32 Function( - ffi.Pointer out, -); - -typedef _dart_git_config_find_xdg = int Function( - ffi.Pointer out, -); - -typedef _c_git_config_find_system = ffi.Int32 Function( - ffi.Pointer out, -); - -typedef _dart_git_config_find_system = int Function( - ffi.Pointer out, -); - -typedef _c_git_config_find_programdata = ffi.Int32 Function( - ffi.Pointer out, -); - -typedef _dart_git_config_find_programdata = int Function( - ffi.Pointer out, -); - -typedef _c_git_config_open_default = ffi.Int32 Function( - ffi.Pointer> out, -); - -typedef _dart_git_config_open_default = int Function( - ffi.Pointer> out, -); - -typedef _c_git_config_new = ffi.Int32 Function( - ffi.Pointer> out, -); - -typedef _dart_git_config_new = int Function( - ffi.Pointer> out, -); - -typedef _c_git_config_add_file_ondisk = ffi.Int32 Function( - ffi.Pointer cfg, - ffi.Pointer path, - ffi.Int32 level, - ffi.Pointer repo, - ffi.Int32 force, -); - -typedef _dart_git_config_add_file_ondisk = int Function( - ffi.Pointer cfg, - ffi.Pointer path, - int level, - ffi.Pointer repo, - int force, -); - -typedef _c_git_config_open_ondisk = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer path, -); - -typedef _dart_git_config_open_ondisk = int Function( - ffi.Pointer> out, - ffi.Pointer path, -); - -typedef _c_git_config_open_level = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer parent, - ffi.Int32 level, -); - -typedef _dart_git_config_open_level = int Function( - ffi.Pointer> out, - ffi.Pointer parent, - int level, -); - -typedef _c_git_config_open_global = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer config, -); - -typedef _dart_git_config_open_global = int Function( - ffi.Pointer> out, - ffi.Pointer config, -); - -typedef _c_git_config_snapshot = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer config, -); - -typedef _dart_git_config_snapshot = int Function( - ffi.Pointer> out, - ffi.Pointer config, -); - -typedef _c_git_config_free = ffi.Void Function( - ffi.Pointer cfg, -); - -typedef _dart_git_config_free = void Function( - ffi.Pointer cfg, -); - -typedef _c_git_config_get_entry = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer cfg, - ffi.Pointer name, -); - -typedef _dart_git_config_get_entry = int Function( - ffi.Pointer> out, - ffi.Pointer cfg, - ffi.Pointer name, -); - -typedef _c_git_config_get_int32 = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer cfg, - ffi.Pointer name, -); - -typedef _dart_git_config_get_int32 = int Function( - ffi.Pointer out, - ffi.Pointer cfg, - ffi.Pointer name, -); - -typedef _c_git_config_get_int64 = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer cfg, - ffi.Pointer name, -); - -typedef _dart_git_config_get_int64 = int Function( - ffi.Pointer out, - ffi.Pointer cfg, - ffi.Pointer name, -); - -typedef _c_git_config_get_bool = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer cfg, - ffi.Pointer name, -); - -typedef _dart_git_config_get_bool = int Function( - ffi.Pointer out, - ffi.Pointer cfg, - ffi.Pointer name, -); - -typedef _c_git_config_get_path = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer cfg, - ffi.Pointer name, -); - -typedef _dart_git_config_get_path = int Function( - ffi.Pointer out, - ffi.Pointer cfg, - ffi.Pointer name, -); - -typedef _c_git_config_get_string = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer cfg, - ffi.Pointer name, -); - -typedef _dart_git_config_get_string = int Function( - ffi.Pointer> out, - ffi.Pointer cfg, - ffi.Pointer name, -); - -typedef _c_git_config_get_string_buf = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer cfg, - ffi.Pointer name, -); - -typedef _dart_git_config_get_string_buf = int Function( - ffi.Pointer out, - ffi.Pointer cfg, - ffi.Pointer name, -); - -typedef git_config_foreach_cb = ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, -); - -typedef _c_git_config_get_multivar_foreach = ffi.Int32 Function( - ffi.Pointer cfg, - ffi.Pointer name, - ffi.Pointer regexp, - ffi.Pointer> callback, - ffi.Pointer payload, -); - -typedef _dart_git_config_get_multivar_foreach = int Function( - ffi.Pointer cfg, - ffi.Pointer name, - ffi.Pointer regexp, - ffi.Pointer> callback, - ffi.Pointer payload, -); - -typedef _c_git_config_multivar_iterator_new = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer cfg, - ffi.Pointer name, - ffi.Pointer regexp, -); - -typedef _dart_git_config_multivar_iterator_new = int Function( - ffi.Pointer> out, - ffi.Pointer cfg, - ffi.Pointer name, - ffi.Pointer regexp, -); - -typedef _c_git_config_next = ffi.Int32 Function( - ffi.Pointer> entry, - ffi.Pointer iter, -); - -typedef _dart_git_config_next = int Function( - ffi.Pointer> entry, - ffi.Pointer iter, -); - -typedef _c_git_config_iterator_free = ffi.Void Function( - ffi.Pointer iter, -); - -typedef _dart_git_config_iterator_free = void Function( - ffi.Pointer iter, -); - -typedef _c_git_config_set_int32 = ffi.Int32 Function( - ffi.Pointer cfg, - ffi.Pointer name, - ffi.Int32 value, -); - -typedef _dart_git_config_set_int32 = int Function( - ffi.Pointer cfg, - ffi.Pointer name, - int value, -); - -typedef _c_git_config_set_int64 = ffi.Int32 Function( - ffi.Pointer cfg, - ffi.Pointer name, - ffi.Int64 value, -); - -typedef _dart_git_config_set_int64 = int Function( - ffi.Pointer cfg, - ffi.Pointer name, - int value, -); - -typedef _c_git_config_set_bool = ffi.Int32 Function( - ffi.Pointer cfg, - ffi.Pointer name, - ffi.Int32 value, -); - -typedef _dart_git_config_set_bool = int Function( - ffi.Pointer cfg, - ffi.Pointer name, - int value, -); - -typedef _c_git_config_set_string = ffi.Int32 Function( - ffi.Pointer cfg, - ffi.Pointer name, - ffi.Pointer value, -); - -typedef _dart_git_config_set_string = int Function( - ffi.Pointer cfg, - ffi.Pointer name, - ffi.Pointer value, -); - -typedef _c_git_config_set_multivar = ffi.Int32 Function( - ffi.Pointer cfg, - ffi.Pointer name, - ffi.Pointer regexp, - ffi.Pointer value, -); - -typedef _dart_git_config_set_multivar = int Function( - ffi.Pointer cfg, - ffi.Pointer name, - ffi.Pointer regexp, - ffi.Pointer value, -); - -typedef _c_git_config_delete_entry = ffi.Int32 Function( - ffi.Pointer cfg, - ffi.Pointer name, -); - -typedef _dart_git_config_delete_entry = int Function( - ffi.Pointer cfg, - ffi.Pointer name, -); - -typedef _c_git_config_delete_multivar = ffi.Int32 Function( - ffi.Pointer cfg, - ffi.Pointer name, - ffi.Pointer regexp, -); - -typedef _dart_git_config_delete_multivar = int Function( - ffi.Pointer cfg, - ffi.Pointer name, - ffi.Pointer regexp, -); - -typedef _c_git_config_foreach = ffi.Int32 Function( - ffi.Pointer cfg, - ffi.Pointer> callback, - ffi.Pointer payload, -); - -typedef _dart_git_config_foreach = int Function( - ffi.Pointer cfg, - ffi.Pointer> callback, - ffi.Pointer payload, -); - -typedef _c_git_config_iterator_new = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer cfg, -); - -typedef _dart_git_config_iterator_new = int Function( - ffi.Pointer> out, - ffi.Pointer cfg, -); - -typedef _c_git_config_iterator_glob_new = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer cfg, - ffi.Pointer regexp, -); - -typedef _dart_git_config_iterator_glob_new = int Function( - ffi.Pointer> out, - ffi.Pointer cfg, - ffi.Pointer regexp, -); - -typedef _c_git_config_foreach_match = ffi.Int32 Function( - ffi.Pointer cfg, - ffi.Pointer regexp, - ffi.Pointer> callback, - ffi.Pointer payload, -); - -typedef _dart_git_config_foreach_match = int Function( - ffi.Pointer cfg, - ffi.Pointer regexp, - ffi.Pointer> callback, - ffi.Pointer payload, -); - -typedef _c_git_config_get_mapped = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer cfg, - ffi.Pointer name, - ffi.Pointer maps, - ffi.Int32 map_n, -); - -typedef _dart_git_config_get_mapped = int Function( - ffi.Pointer out, - ffi.Pointer cfg, - ffi.Pointer name, - ffi.Pointer maps, - int map_n, -); - -typedef _c_git_config_lookup_map_value = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer maps, - ffi.Int32 map_n, - ffi.Pointer value, -); - -typedef _dart_git_config_lookup_map_value = int Function( - ffi.Pointer out, - ffi.Pointer maps, - int map_n, - ffi.Pointer value, -); - -typedef _c_git_config_parse_bool = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer value, -); - -typedef _dart_git_config_parse_bool = int Function( - ffi.Pointer out, - ffi.Pointer value, -); - -typedef _c_git_config_parse_int32 = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer value, -); - -typedef _dart_git_config_parse_int32 = int Function( - ffi.Pointer out, - ffi.Pointer value, -); - -typedef _c_git_config_parse_int64 = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer value, -); - -typedef _dart_git_config_parse_int64 = int Function( - ffi.Pointer out, - ffi.Pointer value, -); - -typedef _c_git_config_parse_path = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer value, -); - -typedef _dart_git_config_parse_path = int Function( - ffi.Pointer out, - ffi.Pointer value, -); - -typedef _c_git_config_backend_foreach_match = ffi.Int32 Function( - ffi.Pointer backend, - ffi.Pointer regexp, - ffi.Pointer> callback, - ffi.Pointer payload, -); - -typedef _dart_git_config_backend_foreach_match = int Function( - ffi.Pointer backend, - ffi.Pointer regexp, - ffi.Pointer> callback, - ffi.Pointer payload, -); - -typedef _c_git_config_lock = ffi.Int32 Function( - ffi.Pointer> tx, - ffi.Pointer cfg, -); - -typedef _dart_git_config_lock = int Function( - ffi.Pointer> tx, - ffi.Pointer cfg, -); - -typedef _c_git_describe_options_init = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_describe_options_init = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_describe_format_options_init = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_describe_format_options_init = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_describe_commit = ffi.Int32 Function( - ffi.Pointer> result, - ffi.Pointer committish, - ffi.Pointer opts, -); - -typedef _dart_git_describe_commit = int Function( - ffi.Pointer> result, - ffi.Pointer committish, - ffi.Pointer opts, -); - -typedef _c_git_describe_workdir = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer opts, -); - -typedef _dart_git_describe_workdir = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer opts, -); - -typedef _c_git_describe_format = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer result, - ffi.Pointer opts, -); - -typedef _dart_git_describe_format = int Function( - ffi.Pointer out, - ffi.Pointer result, - ffi.Pointer opts, -); - -typedef _c_git_describe_result_free = ffi.Void Function( - ffi.Pointer result, -); - -typedef _dart_git_describe_result_free = void Function( - ffi.Pointer result, -); - -typedef _c_git_error_last = ffi.Pointer Function(); - -typedef _dart_git_error_last = ffi.Pointer Function(); - -typedef _c_git_error_clear = ffi.Void Function(); - -typedef _dart_git_error_clear = void Function(); - -typedef _c_git_error_set_str = ffi.Int32 Function( - ffi.Int32 error_class, - ffi.Pointer string, -); - -typedef _dart_git_error_set_str = int Function( - int error_class, - ffi.Pointer string, -); - -typedef _c_git_error_set_oom = ffi.Void Function(); - -typedef _dart_git_error_set_oom = void Function(); - -typedef _c_git_filter_list_load = ffi.Int32 Function( - ffi.Pointer> filters, - ffi.Pointer repo, - ffi.Pointer blob, - ffi.Pointer path, - ffi.Int32 mode, - ffi.Uint32 flags, -); - -typedef _dart_git_filter_list_load = int Function( - ffi.Pointer> filters, - ffi.Pointer repo, - ffi.Pointer blob, - ffi.Pointer path, - int mode, - int flags, -); - -typedef _c_git_filter_list_load_ext = ffi.Int32 Function( - ffi.Pointer> filters, - ffi.Pointer repo, - ffi.Pointer blob, - ffi.Pointer path, - ffi.Int32 mode, - ffi.Pointer opts, -); - -typedef _dart_git_filter_list_load_ext = int Function( - ffi.Pointer> filters, - ffi.Pointer repo, - ffi.Pointer blob, - ffi.Pointer path, - int mode, - ffi.Pointer opts, -); - -typedef _c_git_filter_list_contains = ffi.Int32 Function( - ffi.Pointer filters, - ffi.Pointer name, -); - -typedef _dart_git_filter_list_contains = int Function( - ffi.Pointer filters, - ffi.Pointer name, -); - -typedef _c_git_filter_list_apply_to_buffer = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer filters, - ffi.Pointer in_1, - ffi.Int32 in_len, -); - -typedef _dart_git_filter_list_apply_to_buffer = int Function( - ffi.Pointer out, - ffi.Pointer filters, - ffi.Pointer in_1, - int in_len, -); - -typedef _c_git_filter_list_apply_to_file = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer filters, - ffi.Pointer repo, - ffi.Pointer path, -); - -typedef _dart_git_filter_list_apply_to_file = int Function( - ffi.Pointer out, - ffi.Pointer filters, - ffi.Pointer repo, - ffi.Pointer path, -); - -typedef _c_git_filter_list_apply_to_blob = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer filters, - ffi.Pointer blob, -); - -typedef _dart_git_filter_list_apply_to_blob = int Function( - ffi.Pointer out, - ffi.Pointer filters, - ffi.Pointer blob, -); - -typedef _c_git_filter_list_stream_buffer = ffi.Int32 Function( - ffi.Pointer filters, - ffi.Pointer buffer, - ffi.Int32 len, - ffi.Pointer target, -); - -typedef _dart_git_filter_list_stream_buffer = int Function( - ffi.Pointer filters, - ffi.Pointer buffer, - int len, - ffi.Pointer target, -); - -typedef _c_git_filter_list_stream_file = ffi.Int32 Function( - ffi.Pointer filters, - ffi.Pointer repo, - ffi.Pointer path, - ffi.Pointer target, -); - -typedef _dart_git_filter_list_stream_file = int Function( - ffi.Pointer filters, - ffi.Pointer repo, - ffi.Pointer path, - ffi.Pointer target, -); - -typedef _c_git_filter_list_stream_blob = ffi.Int32 Function( - ffi.Pointer filters, - ffi.Pointer blob, - ffi.Pointer target, -); - -typedef _dart_git_filter_list_stream_blob = int Function( - ffi.Pointer filters, - ffi.Pointer blob, - ffi.Pointer target, -); - -typedef _c_git_filter_list_free = ffi.Void Function( - ffi.Pointer filters, -); - -typedef _dart_git_filter_list_free = void Function( - ffi.Pointer filters, -); - -typedef _c_git_rebase_options_init = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_rebase_options_init = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_rebase_init = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer branch, - ffi.Pointer upstream, - ffi.Pointer onto, - ffi.Pointer opts, -); - -typedef _dart_git_rebase_init = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer branch, - ffi.Pointer upstream, - ffi.Pointer onto, - ffi.Pointer opts, -); - -typedef _c_git_rebase_open = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer opts, -); - -typedef _dart_git_rebase_open = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer opts, -); - -typedef _c_git_rebase_orig_head_name = ffi.Pointer Function( - ffi.Pointer rebase, -); - -typedef _dart_git_rebase_orig_head_name = ffi.Pointer Function( - ffi.Pointer rebase, -); - -typedef _c_git_rebase_orig_head_id = ffi.Pointer Function( - ffi.Pointer rebase, -); - -typedef _dart_git_rebase_orig_head_id = ffi.Pointer Function( - ffi.Pointer rebase, -); - -typedef _c_git_rebase_onto_name = ffi.Pointer Function( - ffi.Pointer rebase, -); - -typedef _dart_git_rebase_onto_name = ffi.Pointer Function( - ffi.Pointer rebase, -); - -typedef _c_git_rebase_onto_id = ffi.Pointer Function( - ffi.Pointer rebase, -); - -typedef _dart_git_rebase_onto_id = ffi.Pointer Function( - ffi.Pointer rebase, -); - -typedef _c_git_rebase_operation_entrycount = ffi.Int32 Function( - ffi.Pointer rebase, -); - -typedef _dart_git_rebase_operation_entrycount = int Function( - ffi.Pointer rebase, -); - -typedef _c_git_rebase_operation_current = ffi.Int32 Function( - ffi.Pointer rebase, -); - -typedef _dart_git_rebase_operation_current = int Function( - ffi.Pointer rebase, -); - -typedef _c_git_rebase_operation_byindex = ffi.Pointer - Function( - ffi.Pointer rebase, - ffi.Int32 idx, -); - -typedef _dart_git_rebase_operation_byindex = ffi.Pointer - Function( - ffi.Pointer rebase, - int idx, -); - -typedef _c_git_rebase_next = ffi.Int32 Function( - ffi.Pointer> operation, - ffi.Pointer rebase, -); - -typedef _dart_git_rebase_next = int Function( - ffi.Pointer> operation, - ffi.Pointer rebase, -); - -typedef _c_git_rebase_inmemory_index = ffi.Int32 Function( - ffi.Pointer> index, - ffi.Pointer rebase, -); - -typedef _dart_git_rebase_inmemory_index = int Function( - ffi.Pointer> index, - ffi.Pointer rebase, -); - -typedef _c_git_rebase_commit = ffi.Int32 Function( - ffi.Pointer id, - ffi.Pointer rebase, - ffi.Pointer author, - ffi.Pointer committer, - ffi.Pointer message_encoding, - ffi.Pointer message, -); - -typedef _dart_git_rebase_commit = int Function( - ffi.Pointer id, - ffi.Pointer rebase, - ffi.Pointer author, - ffi.Pointer committer, - ffi.Pointer message_encoding, - ffi.Pointer message, -); - -typedef _c_git_rebase_abort = ffi.Int32 Function( - ffi.Pointer rebase, -); - -typedef _dart_git_rebase_abort = int Function( - ffi.Pointer rebase, -); - -typedef _c_git_rebase_finish = ffi.Int32 Function( - ffi.Pointer rebase, - ffi.Pointer signature, -); - -typedef _dart_git_rebase_finish = int Function( - ffi.Pointer rebase, - ffi.Pointer signature, -); - -typedef _c_git_rebase_free = ffi.Void Function( - ffi.Pointer rebase, -); - -typedef _dart_git_rebase_free = void Function( - ffi.Pointer rebase, -); - -typedef git_trace_cb = ffi.Void Function( - ffi.Int32, - ffi.Pointer, -); - -typedef _c_git_trace_set = ffi.Int32 Function( - ffi.Int32 level, - ffi.Pointer> cb, -); - -typedef _dart_git_trace_set = int Function( - int level, - ffi.Pointer> cb, -); - -typedef _c_git_revert_options_init = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_revert_options_init = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_revert_commit = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer revert_commit, - ffi.Pointer our_commit, - ffi.Uint32 mainline, - ffi.Pointer merge_options, -); - -typedef _dart_git_revert_commit = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer revert_commit, - ffi.Pointer our_commit, - int mainline, - ffi.Pointer merge_options, -); - -typedef _c_git_revert = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer commit, - ffi.Pointer given_opts, -); - -typedef _dart_git_revert = int Function( - ffi.Pointer repo, - ffi.Pointer commit, - ffi.Pointer given_opts, -); - -typedef _c_git_revparse_single = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer spec, -); - -typedef _dart_git_revparse_single = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer spec, -); - -typedef _c_git_revparse_ext = ffi.Int32 Function( - ffi.Pointer> object_out, - ffi.Pointer> reference_out, - ffi.Pointer repo, - ffi.Pointer spec, -); - -typedef _dart_git_revparse_ext = int Function( - ffi.Pointer> object_out, - ffi.Pointer> reference_out, - ffi.Pointer repo, - ffi.Pointer spec, -); - -typedef _c_git_revparse = ffi.Int32 Function( - ffi.Pointer revspec, - ffi.Pointer repo, - ffi.Pointer spec, -); - -typedef _dart_git_revparse = int Function( - ffi.Pointer revspec, - ffi.Pointer repo, - ffi.Pointer spec, -); - -typedef _c_git_stash_save = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer repo, - ffi.Pointer stasher, - ffi.Pointer message, - ffi.Uint32 flags, -); - -typedef _dart_git_stash_save = int Function( - ffi.Pointer out, - ffi.Pointer repo, - ffi.Pointer stasher, - ffi.Pointer message, - int flags, -); - -typedef _c_git_stash_apply_options_init = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_stash_apply_options_init = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_stash_apply = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Int32 index, - ffi.Pointer options, -); - -typedef _dart_git_stash_apply = int Function( - ffi.Pointer repo, - int index, - ffi.Pointer options, -); - -typedef git_stash_cb = ffi.Int32 Function( - ffi.Int32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, -); - -typedef _c_git_stash_foreach = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer> callback, - ffi.Pointer payload, -); - -typedef _dart_git_stash_foreach = int Function( - ffi.Pointer repo, - ffi.Pointer> callback, - ffi.Pointer payload, -); - -typedef _c_git_stash_drop = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Int32 index, -); - -typedef _dart_git_stash_drop = int Function( - ffi.Pointer repo, - int index, -); - -typedef _c_git_stash_pop = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Int32 index, - ffi.Pointer options, -); - -typedef _dart_git_stash_pop = int Function( - ffi.Pointer repo, - int index, - ffi.Pointer options, -); - -typedef _c_git_status_options_init = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_status_options_init = int Function( - ffi.Pointer opts, - int version, -); - -typedef git_status_cb = ffi.Int32 Function( - ffi.Pointer, - ffi.Uint32, - ffi.Pointer, -); - -typedef _c_git_status_foreach = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer> callback, - ffi.Pointer payload, -); - -typedef _dart_git_status_foreach = int Function( - ffi.Pointer repo, - ffi.Pointer> callback, - ffi.Pointer payload, -); - -typedef _c_git_status_foreach_ext = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer opts, - ffi.Pointer> callback, - ffi.Pointer payload, -); - -typedef _dart_git_status_foreach_ext = int Function( - ffi.Pointer repo, - ffi.Pointer opts, - ffi.Pointer> callback, - ffi.Pointer payload, -); - -typedef _c_git_status_file = ffi.Int32 Function( - ffi.Pointer status_flags, - ffi.Pointer repo, - ffi.Pointer path, -); - -typedef _dart_git_status_file = int Function( - ffi.Pointer status_flags, - ffi.Pointer repo, - ffi.Pointer path, -); - -typedef _c_git_status_list_new = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer opts, -); - -typedef _dart_git_status_list_new = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer opts, -); - -typedef _c_git_status_list_entrycount = ffi.Int32 Function( - ffi.Pointer statuslist, -); - -typedef _dart_git_status_list_entrycount = int Function( - ffi.Pointer statuslist, -); - -typedef _c_git_status_byindex = ffi.Pointer Function( - ffi.Pointer statuslist, - ffi.Int32 idx, -); - -typedef _dart_git_status_byindex = ffi.Pointer Function( - ffi.Pointer statuslist, - int idx, -); - -typedef _c_git_status_list_free = ffi.Void Function( - ffi.Pointer statuslist, -); - -typedef _dart_git_status_list_free = void Function( - ffi.Pointer statuslist, -); - -typedef _c_git_status_should_ignore = ffi.Int32 Function( - ffi.Pointer ignored, - ffi.Pointer repo, - ffi.Pointer path, -); - -typedef _dart_git_status_should_ignore = int Function( - ffi.Pointer ignored, - ffi.Pointer repo, - ffi.Pointer path, -); - -typedef _c_git_submodule_update_options_init = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_submodule_update_options_init = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_submodule_update = ffi.Int32 Function( - ffi.Pointer submodule, - ffi.Int32 init, - ffi.Pointer options, -); - -typedef _dart_git_submodule_update = int Function( - ffi.Pointer submodule, - int init, - ffi.Pointer options, -); - -typedef _c_git_submodule_lookup = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer name, -); - -typedef _dart_git_submodule_lookup = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer name, -); - -typedef _c_git_submodule_dup = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer source, -); - -typedef _dart_git_submodule_dup = int Function( - ffi.Pointer> out, - ffi.Pointer source, -); - -typedef _c_git_submodule_free = ffi.Void Function( - ffi.Pointer submodule, -); - -typedef _dart_git_submodule_free = void Function( - ffi.Pointer submodule, -); - -typedef git_submodule_cb = ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, -); - -typedef _c_git_submodule_foreach = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer> callback, - ffi.Pointer payload, -); - -typedef _dart_git_submodule_foreach = int Function( - ffi.Pointer repo, - ffi.Pointer> callback, - ffi.Pointer payload, -); - -typedef _c_git_submodule_add_setup = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer url, - ffi.Pointer path, - ffi.Int32 use_gitlink, -); - -typedef _dart_git_submodule_add_setup = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer url, - ffi.Pointer path, - int use_gitlink, -); - -typedef _c_git_submodule_clone = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer submodule, - ffi.Pointer opts, -); - -typedef _dart_git_submodule_clone = int Function( - ffi.Pointer> out, - ffi.Pointer submodule, - ffi.Pointer opts, -); - -typedef _c_git_submodule_add_finalize = ffi.Int32 Function( - ffi.Pointer submodule, -); - -typedef _dart_git_submodule_add_finalize = int Function( - ffi.Pointer submodule, -); - -typedef _c_git_submodule_add_to_index = ffi.Int32 Function( - ffi.Pointer submodule, - ffi.Int32 write_index, -); - -typedef _dart_git_submodule_add_to_index = int Function( - ffi.Pointer submodule, - int write_index, -); - -typedef _c_git_submodule_owner = ffi.Pointer Function( - ffi.Pointer submodule, -); - -typedef _dart_git_submodule_owner = ffi.Pointer Function( - ffi.Pointer submodule, -); - -typedef _c_git_submodule_name = ffi.Pointer Function( - ffi.Pointer submodule, -); - -typedef _dart_git_submodule_name = ffi.Pointer Function( - ffi.Pointer submodule, -); - -typedef _c_git_submodule_path = ffi.Pointer Function( - ffi.Pointer submodule, -); - -typedef _dart_git_submodule_path = ffi.Pointer Function( - ffi.Pointer submodule, -); - -typedef _c_git_submodule_url = ffi.Pointer Function( - ffi.Pointer submodule, -); - -typedef _dart_git_submodule_url = ffi.Pointer Function( - ffi.Pointer submodule, -); - -typedef _c_git_submodule_resolve_url = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer repo, - ffi.Pointer url, -); - -typedef _dart_git_submodule_resolve_url = int Function( - ffi.Pointer out, - ffi.Pointer repo, - ffi.Pointer url, -); - -typedef _c_git_submodule_branch = ffi.Pointer Function( - ffi.Pointer submodule, -); - -typedef _dart_git_submodule_branch = ffi.Pointer Function( - ffi.Pointer submodule, -); - -typedef _c_git_submodule_set_branch = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer name, - ffi.Pointer branch, -); - -typedef _dart_git_submodule_set_branch = int Function( - ffi.Pointer repo, - ffi.Pointer name, - ffi.Pointer branch, -); - -typedef _c_git_submodule_set_url = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer name, - ffi.Pointer url, -); - -typedef _dart_git_submodule_set_url = int Function( - ffi.Pointer repo, - ffi.Pointer name, - ffi.Pointer url, -); - -typedef _c_git_submodule_index_id = ffi.Pointer Function( - ffi.Pointer submodule, -); - -typedef _dart_git_submodule_index_id = ffi.Pointer Function( - ffi.Pointer submodule, -); - -typedef _c_git_submodule_head_id = ffi.Pointer Function( - ffi.Pointer submodule, -); - -typedef _dart_git_submodule_head_id = ffi.Pointer Function( - ffi.Pointer submodule, -); - -typedef _c_git_submodule_wd_id = ffi.Pointer Function( - ffi.Pointer submodule, -); - -typedef _dart_git_submodule_wd_id = ffi.Pointer Function( - ffi.Pointer submodule, -); - -typedef _c_git_submodule_ignore = ffi.Int32 Function( - ffi.Pointer submodule, -); - -typedef _dart_git_submodule_ignore = int Function( - ffi.Pointer submodule, -); - -typedef _c_git_submodule_set_ignore = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer name, - ffi.Int32 ignore, -); - -typedef _dart_git_submodule_set_ignore = int Function( - ffi.Pointer repo, - ffi.Pointer name, - int ignore, -); - -typedef _c_git_submodule_update_strategy = ffi.Int32 Function( - ffi.Pointer submodule, -); - -typedef _dart_git_submodule_update_strategy = int Function( - ffi.Pointer submodule, -); - -typedef _c_git_submodule_set_update = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer name, - ffi.Int32 update, -); - -typedef _dart_git_submodule_set_update = int Function( - ffi.Pointer repo, - ffi.Pointer name, - int update, -); - -typedef _c_git_submodule_fetch_recurse_submodules = ffi.Int32 Function( - ffi.Pointer submodule, -); - -typedef _dart_git_submodule_fetch_recurse_submodules = int Function( - ffi.Pointer submodule, -); - -typedef _c_git_submodule_set_fetch_recurse_submodules = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer name, - ffi.Int32 fetch_recurse_submodules, -); - -typedef _dart_git_submodule_set_fetch_recurse_submodules = int Function( - ffi.Pointer repo, - ffi.Pointer name, - int fetch_recurse_submodules, -); - -typedef _c_git_submodule_init = ffi.Int32 Function( - ffi.Pointer submodule, - ffi.Int32 overwrite, -); - -typedef _dart_git_submodule_init = int Function( - ffi.Pointer submodule, - int overwrite, -); - -typedef _c_git_submodule_repo_init = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer sm, - ffi.Int32 use_gitlink, -); - -typedef _dart_git_submodule_repo_init = int Function( - ffi.Pointer> out, - ffi.Pointer sm, - int use_gitlink, -); - -typedef _c_git_submodule_sync = ffi.Int32 Function( - ffi.Pointer submodule, -); - -typedef _dart_git_submodule_sync = int Function( - ffi.Pointer submodule, -); - -typedef _c_git_submodule_open = ffi.Int32 Function( - ffi.Pointer> repo, - ffi.Pointer submodule, -); - -typedef _dart_git_submodule_open = int Function( - ffi.Pointer> repo, - ffi.Pointer submodule, -); - -typedef _c_git_submodule_reload = ffi.Int32 Function( - ffi.Pointer submodule, - ffi.Int32 force, -); - -typedef _dart_git_submodule_reload = int Function( - ffi.Pointer submodule, - int force, -); - -typedef _c_git_submodule_status = ffi.Int32 Function( - ffi.Pointer status, - ffi.Pointer repo, - ffi.Pointer name, - ffi.Int32 ignore, -); - -typedef _dart_git_submodule_status = int Function( - ffi.Pointer status, - ffi.Pointer repo, - ffi.Pointer name, - int ignore, -); - -typedef _c_git_submodule_location = ffi.Int32 Function( - ffi.Pointer location_status, - ffi.Pointer submodule, -); - -typedef _dart_git_submodule_location = int Function( - ffi.Pointer location_status, - ffi.Pointer submodule, -); - -typedef _c_git_worktree_list = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer repo, -); - -typedef _dart_git_worktree_list = int Function( - ffi.Pointer out, - ffi.Pointer repo, -); - -typedef _c_git_worktree_lookup = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer name, -); - -typedef _dart_git_worktree_lookup = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer name, -); - -typedef _c_git_worktree_open_from_repository = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, -); - -typedef _dart_git_worktree_open_from_repository = int Function( - ffi.Pointer> out, - ffi.Pointer repo, -); - -typedef _c_git_worktree_free = ffi.Void Function( - ffi.Pointer wt, -); - -typedef _dart_git_worktree_free = void Function( - ffi.Pointer wt, -); - -typedef _c_git_worktree_validate = ffi.Int32 Function( - ffi.Pointer wt, -); - -typedef _dart_git_worktree_validate = int Function( - ffi.Pointer wt, -); - -typedef _c_git_worktree_add_options_init = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_worktree_add_options_init = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_worktree_add = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer name, - ffi.Pointer path, - ffi.Pointer opts, -); - -typedef _dart_git_worktree_add = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer name, - ffi.Pointer path, - ffi.Pointer opts, -); - -typedef _c_git_worktree_lock = ffi.Int32 Function( - ffi.Pointer wt, - ffi.Pointer reason, -); - -typedef _dart_git_worktree_lock = int Function( - ffi.Pointer wt, - ffi.Pointer reason, -); - -typedef _c_git_worktree_unlock = ffi.Int32 Function( - ffi.Pointer wt, -); - -typedef _dart_git_worktree_unlock = int Function( - ffi.Pointer wt, -); - -typedef _c_git_worktree_is_locked = ffi.Int32 Function( - ffi.Pointer reason, - ffi.Pointer wt, -); - -typedef _dart_git_worktree_is_locked = int Function( - ffi.Pointer reason, - ffi.Pointer wt, -); - -typedef _c_git_worktree_name = ffi.Pointer Function( - ffi.Pointer wt, -); - -typedef _dart_git_worktree_name = ffi.Pointer Function( - ffi.Pointer wt, -); - -typedef _c_git_worktree_path = ffi.Pointer Function( - ffi.Pointer wt, -); - -typedef _dart_git_worktree_path = ffi.Pointer Function( - ffi.Pointer wt, -); - -typedef _c_git_worktree_prune_options_init = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_worktree_prune_options_init = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_worktree_is_prunable = ffi.Int32 Function( - ffi.Pointer wt, - ffi.Pointer opts, -); - -typedef _dart_git_worktree_is_prunable = int Function( - ffi.Pointer wt, - ffi.Pointer opts, -); - -typedef _c_git_worktree_prune = ffi.Int32 Function( - ffi.Pointer wt, - ffi.Pointer opts, -); - -typedef _dart_git_worktree_prune = int Function( - ffi.Pointer wt, - ffi.Pointer opts, -); - -typedef _c_git_credential_userpass = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer url, - ffi.Pointer user_from_url, - ffi.Uint32 allowed_types, - ffi.Pointer payload, -); - -typedef _dart_git_credential_userpass = int Function( - ffi.Pointer> out, - ffi.Pointer url, - ffi.Pointer user_from_url, - int allowed_types, - ffi.Pointer payload, -); - -typedef _c_git_blob_create_fromworkdir = ffi.Int32 Function( - ffi.Pointer id, - ffi.Pointer repo, - ffi.Pointer relative_path, -); - -typedef _dart_git_blob_create_fromworkdir = int Function( - ffi.Pointer id, - ffi.Pointer repo, - ffi.Pointer relative_path, -); - -typedef _c_git_blob_create_fromdisk = ffi.Int32 Function( - ffi.Pointer id, - ffi.Pointer repo, - ffi.Pointer path, -); - -typedef _dart_git_blob_create_fromdisk = int Function( - ffi.Pointer id, - ffi.Pointer repo, - ffi.Pointer path, -); - -typedef _c_git_blob_create_fromstream = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer hintpath, -); - -typedef _dart_git_blob_create_fromstream = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer hintpath, -); - -typedef _c_git_blob_create_fromstream_commit = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer stream, -); - -typedef _dart_git_blob_create_fromstream_commit = int Function( - ffi.Pointer out, - ffi.Pointer stream, -); - -typedef _c_git_blob_create_frombuffer = ffi.Int32 Function( - ffi.Pointer id, - ffi.Pointer repo, - ffi.Pointer buffer, - ffi.Int32 len, -); - -typedef _dart_git_blob_create_frombuffer = int Function( - ffi.Pointer id, - ffi.Pointer repo, - ffi.Pointer buffer, - int len, -); - -typedef _c_git_blob_filtered_content = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer blob, - ffi.Pointer as_path, - ffi.Int32 check_for_binary_data, -); - -typedef _dart_git_blob_filtered_content = int Function( - ffi.Pointer out, - ffi.Pointer blob, - ffi.Pointer as_path, - int check_for_binary_data, -); - -typedef _c_git_filter_list_stream_data = ffi.Int32 Function( - ffi.Pointer filters, - ffi.Pointer data, - ffi.Pointer target, -); - -typedef _dart_git_filter_list_stream_data = int Function( - ffi.Pointer filters, - ffi.Pointer data, - ffi.Pointer target, -); - -typedef _c_git_filter_list_apply_to_data = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer filters, - ffi.Pointer in_1, -); - -typedef _dart_git_filter_list_apply_to_data = int Function( - ffi.Pointer out, - ffi.Pointer filters, - ffi.Pointer in_1, -); - -typedef _c_git_treebuilder_write_with_buffer = ffi.Int32 Function( - ffi.Pointer oid, - ffi.Pointer bld, - ffi.Pointer tree, -); - -typedef _dart_git_treebuilder_write_with_buffer = int Function( - ffi.Pointer oid, - ffi.Pointer bld, - ffi.Pointer tree, -); - -typedef _c_git_buf_free = ffi.Void Function( - ffi.Pointer buffer, -); - -typedef _dart_git_buf_free = void Function( - ffi.Pointer buffer, -); - -typedef _c_giterr_last = ffi.Pointer Function(); - -typedef _dart_giterr_last = ffi.Pointer Function(); - -typedef _c_giterr_clear = ffi.Void Function(); - -typedef _dart_giterr_clear = void Function(); - -typedef _c_giterr_set_str = ffi.Void Function( - ffi.Int32 error_class, - ffi.Pointer string, -); - -typedef _dart_giterr_set_str = void Function( - int error_class, - ffi.Pointer string, -); - -typedef _c_giterr_set_oom = ffi.Void Function(); - -typedef _dart_giterr_set_oom = void Function(); - -typedef _c_git_index_add_frombuffer = ffi.Int32 Function( - ffi.Pointer index, - ffi.Pointer entry, - ffi.Pointer buffer, - ffi.Int32 len, -); - -typedef _dart_git_index_add_frombuffer = int Function( - ffi.Pointer index, - ffi.Pointer entry, - ffi.Pointer buffer, - int len, -); - -typedef _c_git_object__size = ffi.Int32 Function( - ffi.Int32 type, -); - -typedef _dart_git_object__size = int Function( - int type, -); - -typedef _c_git_remote_is_valid_name = ffi.Int32 Function( - ffi.Pointer remote_name, -); - -typedef _dart_git_remote_is_valid_name = int Function( - ffi.Pointer remote_name, -); - -typedef _c_git_reference_is_valid_name = ffi.Int32 Function( - ffi.Pointer refname, -); - -typedef _dart_git_reference_is_valid_name = int Function( - ffi.Pointer refname, -); - -typedef _c_git_tag_create_frombuffer = ffi.Int32 Function( - ffi.Pointer oid, - ffi.Pointer repo, - ffi.Pointer buffer, - ffi.Int32 force, -); - -typedef _dart_git_tag_create_frombuffer = int Function( - ffi.Pointer oid, - ffi.Pointer repo, - ffi.Pointer buffer, - int force, -); - -typedef _c_git_cred_free = ffi.Void Function( - ffi.Pointer cred, -); - -typedef _dart_git_cred_free = void Function( - ffi.Pointer cred, -); - -typedef _c_git_cred_has_username = ffi.Int32 Function( - ffi.Pointer cred, -); - -typedef _dart_git_cred_has_username = int Function( - ffi.Pointer cred, -); - -typedef _c_git_cred_get_username = ffi.Pointer Function( - ffi.Pointer cred, -); - -typedef _dart_git_cred_get_username = ffi.Pointer Function( - ffi.Pointer cred, -); - -typedef _c_git_cred_userpass_plaintext_new = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer username, - ffi.Pointer password, -); - -typedef _dart_git_cred_userpass_plaintext_new = int Function( - ffi.Pointer> out, - ffi.Pointer username, - ffi.Pointer password, -); - -typedef _c_git_cred_default_new = ffi.Int32 Function( - ffi.Pointer> out, -); - -typedef _dart_git_cred_default_new = int Function( - ffi.Pointer> out, -); - -typedef _c_git_cred_username_new = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer username, -); - -typedef _dart_git_cred_username_new = int Function( - ffi.Pointer> out, - ffi.Pointer username, -); - -typedef _c_git_cred_ssh_key_new = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer username, - ffi.Pointer publickey, - ffi.Pointer privatekey, - ffi.Pointer passphrase, -); - -typedef _dart_git_cred_ssh_key_new = int Function( - ffi.Pointer> out, - ffi.Pointer username, - ffi.Pointer publickey, - ffi.Pointer privatekey, - ffi.Pointer passphrase, -); - -typedef _c_git_cred_ssh_key_memory_new = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer username, - ffi.Pointer publickey, - ffi.Pointer privatekey, - ffi.Pointer passphrase, -); - -typedef _dart_git_cred_ssh_key_memory_new = int Function( - ffi.Pointer> out, - ffi.Pointer username, - ffi.Pointer publickey, - ffi.Pointer privatekey, - ffi.Pointer passphrase, -); - -typedef _c_git_cred_ssh_interactive_new = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer username, - ffi.Pointer> - prompt_callback, - ffi.Pointer payload, -); - -typedef _dart_git_cred_ssh_interactive_new = int Function( - ffi.Pointer> out, - ffi.Pointer username, - ffi.Pointer> - prompt_callback, - ffi.Pointer payload, -); - -typedef _c_git_cred_ssh_key_from_agent = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer username, -); - -typedef _dart_git_cred_ssh_key_from_agent = int Function( - ffi.Pointer> out, - ffi.Pointer username, -); - -typedef _c_git_cred_ssh_custom_new = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer username, - ffi.Pointer publickey, - ffi.Int32 publickey_len, - ffi.Pointer> sign_callback, - ffi.Pointer payload, -); - -typedef _dart_git_cred_ssh_custom_new = int Function( - ffi.Pointer> out, - ffi.Pointer username, - ffi.Pointer publickey, - int publickey_len, - ffi.Pointer> sign_callback, - ffi.Pointer payload, -); - -typedef _c_git_cred_userpass = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer url, - ffi.Pointer user_from_url, - ffi.Uint32 allowed_types, - ffi.Pointer payload, -); - -typedef _dart_git_cred_userpass = int Function( - ffi.Pointer> out, - ffi.Pointer url, - ffi.Pointer user_from_url, - int allowed_types, - ffi.Pointer payload, -); - -typedef _c_git_oid_iszero = ffi.Int32 Function( - ffi.Pointer id, -); - -typedef _dart_git_oid_iszero = int Function( - ffi.Pointer id, -); - -typedef _c_git_strarray_free = ffi.Void Function( - ffi.Pointer array, -); - -typedef _dart_git_strarray_free = void Function( - ffi.Pointer array, -); - -typedef _c_git_blame_init_options = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_blame_init_options = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_checkout_init_options = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_checkout_init_options = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_cherrypick_init_options = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_cherrypick_init_options = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_clone_init_options = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_clone_init_options = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_describe_init_options = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_describe_init_options = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_describe_init_format_options = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_describe_init_format_options = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_diff_init_options = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_diff_init_options = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_diff_find_init_options = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_diff_find_init_options = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_diff_format_email_init_options = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_diff_format_email_init_options = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_diff_patchid_init_options = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_diff_patchid_init_options = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_fetch_init_options = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_fetch_init_options = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_indexer_init_options = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_indexer_init_options = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_merge_init_options = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_merge_init_options = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_merge_file_init_input = ffi.Int32 Function( - ffi.Pointer input, - ffi.Uint32 version, -); - -typedef _dart_git_merge_file_init_input = int Function( - ffi.Pointer input, - int version, -); - -typedef _c_git_merge_file_init_options = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_merge_file_init_options = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_proxy_init_options = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_proxy_init_options = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_push_init_options = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_push_init_options = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_rebase_init_options = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_rebase_init_options = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_remote_create_init_options = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_remote_create_init_options = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_repository_init_init_options = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_repository_init_init_options = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_revert_init_options = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_revert_init_options = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_stash_apply_init_options = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_stash_apply_init_options = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_status_init_options = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_status_init_options = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_submodule_update_init_options = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_submodule_update_init_options = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_worktree_add_init_options = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_worktree_add_init_options = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_worktree_prune_init_options = ffi.Int32 Function( - ffi.Pointer opts, - ffi.Uint32 version, -); - -typedef _dart_git_worktree_prune_init_options = int Function( - ffi.Pointer opts, - int version, -); - -typedef _c_git_libgit2_init = ffi.Int32 Function(); - -typedef _dart_git_libgit2_init = int Function(); - -typedef _c_git_libgit2_shutdown = ffi.Int32 Function(); - -typedef _dart_git_libgit2_shutdown = int Function(); - -typedef _c_git_graph_ahead_behind = ffi.Int32 Function( - ffi.Pointer ahead, - ffi.Pointer behind, - ffi.Pointer repo, - ffi.Pointer local, - ffi.Pointer upstream, -); - -typedef _dart_git_graph_ahead_behind = int Function( - ffi.Pointer ahead, - ffi.Pointer behind, - ffi.Pointer repo, - ffi.Pointer local, - ffi.Pointer upstream, -); - -typedef _c_git_graph_descendant_of = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer commit, - ffi.Pointer ancestor, -); - -typedef _dart_git_graph_descendant_of = int Function( - ffi.Pointer repo, - ffi.Pointer commit, - ffi.Pointer ancestor, -); - -typedef _c_git_graph_reachable_from_any = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer commit, - ffi.Pointer descendant_array, - ffi.Int32 length, -); - -typedef _dart_git_graph_reachable_from_any = int Function( - ffi.Pointer repo, - ffi.Pointer commit, - ffi.Pointer descendant_array, - int length, -); - -typedef _c_git_ignore_add_rule = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer rules, -); - -typedef _dart_git_ignore_add_rule = int Function( - ffi.Pointer repo, - ffi.Pointer rules, -); - -typedef _c_git_ignore_clear_internal_rules = ffi.Int32 Function( - ffi.Pointer repo, -); - -typedef _dart_git_ignore_clear_internal_rules = int Function( - ffi.Pointer repo, -); - -typedef _c_git_ignore_path_is_ignored = ffi.Int32 Function( - ffi.Pointer ignored, - ffi.Pointer repo, - ffi.Pointer path, -); - -typedef _dart_git_ignore_path_is_ignored = int Function( - ffi.Pointer ignored, - ffi.Pointer repo, - ffi.Pointer path, -); - -typedef _c_git_mailmap_new = ffi.Int32 Function( - ffi.Pointer> out, -); - -typedef _dart_git_mailmap_new = int Function( - ffi.Pointer> out, -); - -typedef _c_git_mailmap_free = ffi.Void Function( - ffi.Pointer mm, -); - -typedef _dart_git_mailmap_free = void Function( - ffi.Pointer mm, -); - -typedef _c_git_mailmap_add_entry = ffi.Int32 Function( - ffi.Pointer mm, - ffi.Pointer real_name, - ffi.Pointer real_email, - ffi.Pointer replace_name, - ffi.Pointer replace_email, -); - -typedef _dart_git_mailmap_add_entry = int Function( - ffi.Pointer mm, - ffi.Pointer real_name, - ffi.Pointer real_email, - ffi.Pointer replace_name, - ffi.Pointer replace_email, -); - -typedef _c_git_mailmap_from_buffer = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer buf, - ffi.Int32 len, -); - -typedef _dart_git_mailmap_from_buffer = int Function( - ffi.Pointer> out, - ffi.Pointer buf, - int len, -); - -typedef _c_git_mailmap_from_repository = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, -); - -typedef _dart_git_mailmap_from_repository = int Function( - ffi.Pointer> out, - ffi.Pointer repo, -); - -typedef _c_git_mailmap_resolve = ffi.Int32 Function( - ffi.Pointer> real_name, - ffi.Pointer> real_email, - ffi.Pointer mm, - ffi.Pointer name, - ffi.Pointer email, -); - -typedef _dart_git_mailmap_resolve = int Function( - ffi.Pointer> real_name, - ffi.Pointer> real_email, - ffi.Pointer mm, - ffi.Pointer name, - ffi.Pointer email, -); - -typedef _c_git_mailmap_resolve_signature = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer mm, - ffi.Pointer sig, -); - -typedef _dart_git_mailmap_resolve_signature = int Function( - ffi.Pointer> out, - ffi.Pointer mm, - ffi.Pointer sig, -); - -typedef _c_git_message_prettify = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer message, - ffi.Int32 strip_comments, - ffi.Int8 comment_char, -); - -typedef _dart_git_message_prettify = int Function( - ffi.Pointer out, - ffi.Pointer message, - int strip_comments, - int comment_char, -); - -typedef _c_git_message_trailers = ffi.Int32 Function( - ffi.Pointer arr, - ffi.Pointer message, -); - -typedef _dart_git_message_trailers = int Function( - ffi.Pointer arr, - ffi.Pointer message, -); - -typedef _c_git_message_trailer_array_free = ffi.Void Function( - ffi.Pointer arr, -); - -typedef _dart_git_message_trailer_array_free = void Function( - ffi.Pointer arr, -); - -typedef _c_git_note_iterator_new = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer notes_ref, -); - -typedef _dart_git_note_iterator_new = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer notes_ref, -); - -typedef _c_git_note_commit_iterator_new = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer notes_commit, -); - -typedef _dart_git_note_commit_iterator_new = int Function( - ffi.Pointer> out, - ffi.Pointer notes_commit, -); - -typedef _c_git_note_iterator_free = ffi.Void Function( - ffi.Pointer it, -); - -typedef _dart_git_note_iterator_free = void Function( - ffi.Pointer it, -); - -typedef _c_git_note_next = ffi.Int32 Function( - ffi.Pointer note_id, - ffi.Pointer annotated_id, - ffi.Pointer it, -); - -typedef _dart_git_note_next = int Function( - ffi.Pointer note_id, - ffi.Pointer annotated_id, - ffi.Pointer it, -); - -typedef _c_git_note_read = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer notes_ref, - ffi.Pointer oid, -); - -typedef _dart_git_note_read = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer notes_ref, - ffi.Pointer oid, -); - -typedef _c_git_note_commit_read = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer notes_commit, - ffi.Pointer oid, -); - -typedef _dart_git_note_commit_read = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer notes_commit, - ffi.Pointer oid, -); - -typedef _c_git_note_author = ffi.Pointer Function( - ffi.Pointer note, -); - -typedef _dart_git_note_author = ffi.Pointer Function( - ffi.Pointer note, -); - -typedef _c_git_note_committer = ffi.Pointer Function( - ffi.Pointer note, -); - -typedef _dart_git_note_committer = ffi.Pointer Function( - ffi.Pointer note, -); - -typedef _c_git_note_message = ffi.Pointer Function( - ffi.Pointer note, -); - -typedef _dart_git_note_message = ffi.Pointer Function( - ffi.Pointer note, -); - -typedef _c_git_note_id = ffi.Pointer Function( - ffi.Pointer note, -); - -typedef _dart_git_note_id = ffi.Pointer Function( - ffi.Pointer note, -); - -typedef _c_git_note_create = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer repo, - ffi.Pointer notes_ref, - ffi.Pointer author, - ffi.Pointer committer, - ffi.Pointer oid, - ffi.Pointer note, - ffi.Int32 force, -); - -typedef _dart_git_note_create = int Function( - ffi.Pointer out, - ffi.Pointer repo, - ffi.Pointer notes_ref, - ffi.Pointer author, - ffi.Pointer committer, - ffi.Pointer oid, - ffi.Pointer note, - int force, -); - -typedef _c_git_note_commit_create = ffi.Int32 Function( - ffi.Pointer notes_commit_out, - ffi.Pointer notes_blob_out, - ffi.Pointer repo, - ffi.Pointer parent, - ffi.Pointer author, - ffi.Pointer committer, - ffi.Pointer oid, - ffi.Pointer note, - ffi.Int32 allow_note_overwrite, -); - -typedef _dart_git_note_commit_create = int Function( - ffi.Pointer notes_commit_out, - ffi.Pointer notes_blob_out, - ffi.Pointer repo, - ffi.Pointer parent, - ffi.Pointer author, - ffi.Pointer committer, - ffi.Pointer oid, - ffi.Pointer note, - int allow_note_overwrite, -); - -typedef _c_git_note_remove = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer notes_ref, - ffi.Pointer author, - ffi.Pointer committer, - ffi.Pointer oid, -); - -typedef _dart_git_note_remove = int Function( - ffi.Pointer repo, - ffi.Pointer notes_ref, - ffi.Pointer author, - ffi.Pointer committer, - ffi.Pointer oid, -); - -typedef _c_git_note_commit_remove = ffi.Int32 Function( - ffi.Pointer notes_commit_out, - ffi.Pointer repo, - ffi.Pointer notes_commit, - ffi.Pointer author, - ffi.Pointer committer, - ffi.Pointer oid, -); - -typedef _dart_git_note_commit_remove = int Function( - ffi.Pointer notes_commit_out, - ffi.Pointer repo, - ffi.Pointer notes_commit, - ffi.Pointer author, - ffi.Pointer committer, - ffi.Pointer oid, -); - -typedef _c_git_note_free = ffi.Void Function( - ffi.Pointer note, -); - -typedef _dart_git_note_free = void Function( - ffi.Pointer note, -); - -typedef _c_git_note_default_ref = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer repo, -); - -typedef _dart_git_note_default_ref = int Function( - ffi.Pointer out, - ffi.Pointer repo, -); - -typedef git_note_foreach_cb = ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, -); - -typedef _c_git_note_foreach = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer notes_ref, - ffi.Pointer> note_cb, - ffi.Pointer payload, -); - -typedef _dart_git_note_foreach = int Function( - ffi.Pointer repo, - ffi.Pointer notes_ref, - ffi.Pointer> note_cb, - ffi.Pointer payload, -); - -typedef _c_git_odb_new = ffi.Int32 Function( - ffi.Pointer> out, -); - -typedef _dart_git_odb_new = int Function( - ffi.Pointer> out, -); - -typedef _c_git_odb_open = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer objects_dir, -); - -typedef _dart_git_odb_open = int Function( - ffi.Pointer> out, - ffi.Pointer objects_dir, -); - -typedef _c_git_odb_add_disk_alternate = ffi.Int32 Function( - ffi.Pointer odb, - ffi.Pointer path, -); - -typedef _dart_git_odb_add_disk_alternate = int Function( - ffi.Pointer odb, - ffi.Pointer path, -); - -typedef _c_git_odb_free = ffi.Void Function( - ffi.Pointer db, -); - -typedef _dart_git_odb_free = void Function( - ffi.Pointer db, -); - -typedef _c_git_odb_read = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer db, - ffi.Pointer id, -); - -typedef _dart_git_odb_read = int Function( - ffi.Pointer> out, - ffi.Pointer db, - ffi.Pointer id, -); - -typedef _c_git_odb_read_prefix = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer db, - ffi.Pointer short_id, - ffi.Int32 len, -); - -typedef _dart_git_odb_read_prefix = int Function( - ffi.Pointer> out, - ffi.Pointer db, - ffi.Pointer short_id, - int len, -); - -typedef _c_git_odb_read_header = ffi.Int32 Function( - ffi.Pointer len_out, - ffi.Pointer type_out, - ffi.Pointer db, - ffi.Pointer id, -); - -typedef _dart_git_odb_read_header = int Function( - ffi.Pointer len_out, - ffi.Pointer type_out, - ffi.Pointer db, - ffi.Pointer id, -); - -typedef _c_git_odb_exists = ffi.Int32 Function( - ffi.Pointer db, - ffi.Pointer id, -); - -typedef _dart_git_odb_exists = int Function( - ffi.Pointer db, - ffi.Pointer id, -); - -typedef _c_git_odb_exists_prefix = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer db, - ffi.Pointer short_id, - ffi.Int32 len, -); - -typedef _dart_git_odb_exists_prefix = int Function( - ffi.Pointer out, - ffi.Pointer db, - ffi.Pointer short_id, - int len, -); - -typedef _c_git_odb_expand_ids = ffi.Int32 Function( - ffi.Pointer db, - ffi.Pointer ids, - ffi.Int32 count, -); - -typedef _dart_git_odb_expand_ids = int Function( - ffi.Pointer db, - ffi.Pointer ids, - int count, -); - -typedef _c_git_odb_refresh = ffi.Int32 Function( - ffi.Pointer db, -); - -typedef _dart_git_odb_refresh = int Function( - ffi.Pointer db, -); - -typedef git_odb_foreach_cb = ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, -); - -typedef _c_git_odb_foreach = ffi.Int32 Function( - ffi.Pointer db, - ffi.Pointer> cb, - ffi.Pointer payload, -); - -typedef _dart_git_odb_foreach = int Function( - ffi.Pointer db, - ffi.Pointer> cb, - ffi.Pointer payload, -); - -typedef _c_git_odb_write = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer odb, - ffi.Pointer data, - ffi.Int32 len, - ffi.Int32 type, -); - -typedef _dart_git_odb_write = int Function( - ffi.Pointer out, - ffi.Pointer odb, - ffi.Pointer data, - int len, - int type, -); - -typedef _c_git_odb_open_wstream = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer db, - ffi.Uint64 size, - ffi.Int32 type, -); - -typedef _dart_git_odb_open_wstream = int Function( - ffi.Pointer> out, - ffi.Pointer db, - int size, - int type, -); - -typedef _c_git_odb_stream_write = ffi.Int32 Function( - ffi.Pointer stream, - ffi.Pointer buffer, - ffi.Int32 len, -); - -typedef _dart_git_odb_stream_write = int Function( - ffi.Pointer stream, - ffi.Pointer buffer, - int len, -); - -typedef _c_git_odb_stream_finalize_write = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer stream, -); - -typedef _dart_git_odb_stream_finalize_write = int Function( - ffi.Pointer out, - ffi.Pointer stream, -); - -typedef _c_git_odb_stream_read = ffi.Int32 Function( - ffi.Pointer stream, - ffi.Pointer buffer, - ffi.Int32 len, -); - -typedef _dart_git_odb_stream_read = int Function( - ffi.Pointer stream, - ffi.Pointer buffer, - int len, -); - -typedef _c_git_odb_stream_free = ffi.Void Function( - ffi.Pointer stream, -); - -typedef _dart_git_odb_stream_free = void Function( - ffi.Pointer stream, -); - -typedef _c_git_odb_open_rstream = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer len, - ffi.Pointer type, - ffi.Pointer db, - ffi.Pointer oid, -); - -typedef _dart_git_odb_open_rstream = int Function( - ffi.Pointer> out, - ffi.Pointer len, - ffi.Pointer type, - ffi.Pointer db, - ffi.Pointer oid, -); - -typedef _c_git_odb_write_pack = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer db, - ffi.Pointer> progress_cb, - ffi.Pointer progress_payload, -); - -typedef _dart_git_odb_write_pack = int Function( - ffi.Pointer> out, - ffi.Pointer db, - ffi.Pointer> progress_cb, - ffi.Pointer progress_payload, -); - -typedef _c_git_odb_write_multi_pack_index = ffi.Int32 Function( - ffi.Pointer db, -); - -typedef _dart_git_odb_write_multi_pack_index = int Function( - ffi.Pointer db, -); - -typedef _c_git_odb_hash = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer data, - ffi.Int32 len, - ffi.Int32 type, -); - -typedef _dart_git_odb_hash = int Function( - ffi.Pointer out, - ffi.Pointer data, - int len, - int type, -); - -typedef _c_git_odb_hashfile = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer path, - ffi.Int32 type, -); - -typedef _dart_git_odb_hashfile = int Function( - ffi.Pointer out, - ffi.Pointer path, - int type, -); - -typedef _c_git_odb_object_dup = ffi.Int32 Function( - ffi.Pointer> dest, - ffi.Pointer source, -); - -typedef _dart_git_odb_object_dup = int Function( - ffi.Pointer> dest, - ffi.Pointer source, -); - -typedef _c_git_odb_object_free = ffi.Void Function( - ffi.Pointer object, -); - -typedef _dart_git_odb_object_free = void Function( - ffi.Pointer object, -); - -typedef _c_git_odb_object_id = ffi.Pointer Function( - ffi.Pointer object, -); - -typedef _dart_git_odb_object_id = ffi.Pointer Function( - ffi.Pointer object, -); - -typedef _c_git_odb_object_data = ffi.Pointer Function( - ffi.Pointer object, -); - -typedef _dart_git_odb_object_data = ffi.Pointer Function( - ffi.Pointer object, -); - -typedef _c_git_odb_object_size = ffi.Int32 Function( - ffi.Pointer object, -); - -typedef _dart_git_odb_object_size = int Function( - ffi.Pointer object, -); - -typedef _c_git_odb_object_type = ffi.Int32 Function( - ffi.Pointer object, -); - -typedef _dart_git_odb_object_type = int Function( - ffi.Pointer object, -); - -typedef _c_git_odb_add_backend = ffi.Int32 Function( - ffi.Pointer odb, - ffi.Pointer backend, - ffi.Int32 priority, -); - -typedef _dart_git_odb_add_backend = int Function( - ffi.Pointer odb, - ffi.Pointer backend, - int priority, -); - -typedef _c_git_odb_add_alternate = ffi.Int32 Function( - ffi.Pointer odb, - ffi.Pointer backend, - ffi.Int32 priority, -); - -typedef _dart_git_odb_add_alternate = int Function( - ffi.Pointer odb, - ffi.Pointer backend, - int priority, -); - -typedef _c_git_odb_num_backends = ffi.Int32 Function( - ffi.Pointer odb, -); - -typedef _dart_git_odb_num_backends = int Function( - ffi.Pointer odb, -); - -typedef _c_git_odb_get_backend = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer odb, - ffi.Int32 pos, -); - -typedef _dart_git_odb_get_backend = int Function( - ffi.Pointer> out, - ffi.Pointer odb, - int pos, -); - -typedef _c_git_odb_set_commit_graph = ffi.Int32 Function( - ffi.Pointer odb, - ffi.Pointer cgraph, -); - -typedef _dart_git_odb_set_commit_graph = int Function( - ffi.Pointer odb, - ffi.Pointer cgraph, -); - -typedef _c_git_odb_backend_pack = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer objects_dir, -); - -typedef _dart_git_odb_backend_pack = int Function( - ffi.Pointer> out, - ffi.Pointer objects_dir, -); - -typedef _c_git_odb_backend_loose = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer objects_dir, - ffi.Int32 compression_level, - ffi.Int32 do_fsync, - ffi.Uint32 dir_mode, - ffi.Uint32 file_mode, -); - -typedef _dart_git_odb_backend_loose = int Function( - ffi.Pointer> out, - ffi.Pointer objects_dir, - int compression_level, - int do_fsync, - int dir_mode, - int file_mode, -); - -typedef _c_git_odb_backend_one_pack = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer index_file, -); - -typedef _dart_git_odb_backend_one_pack = int Function( - ffi.Pointer> out, - ffi.Pointer index_file, -); - -typedef _c_git_patch_owner = ffi.Pointer Function( - ffi.Pointer patch, -); - -typedef _dart_git_patch_owner = ffi.Pointer Function( - ffi.Pointer patch, -); - -typedef _c_git_patch_from_diff = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer diff, - ffi.Int32 idx, -); - -typedef _dart_git_patch_from_diff = int Function( - ffi.Pointer> out, - ffi.Pointer diff, - int idx, -); - -typedef _c_git_patch_from_blobs = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer old_blob, - ffi.Pointer old_as_path, - ffi.Pointer new_blob, - ffi.Pointer new_as_path, - ffi.Pointer opts, -); - -typedef _dart_git_patch_from_blobs = int Function( - ffi.Pointer> out, - ffi.Pointer old_blob, - ffi.Pointer old_as_path, - ffi.Pointer new_blob, - ffi.Pointer new_as_path, - ffi.Pointer opts, -); - -typedef _c_git_patch_from_blob_and_buffer = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer old_blob, - ffi.Pointer old_as_path, - ffi.Pointer buffer, - ffi.Int32 buffer_len, - ffi.Pointer buffer_as_path, - ffi.Pointer opts, -); - -typedef _dart_git_patch_from_blob_and_buffer = int Function( - ffi.Pointer> out, - ffi.Pointer old_blob, - ffi.Pointer old_as_path, - ffi.Pointer buffer, - int buffer_len, - ffi.Pointer buffer_as_path, - ffi.Pointer opts, -); - -typedef _c_git_patch_from_buffers = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer old_buffer, - ffi.Int32 old_len, - ffi.Pointer old_as_path, - ffi.Pointer new_buffer, - ffi.Int32 new_len, - ffi.Pointer new_as_path, - ffi.Pointer opts, -); - -typedef _dart_git_patch_from_buffers = int Function( - ffi.Pointer> out, - ffi.Pointer old_buffer, - int old_len, - ffi.Pointer old_as_path, - ffi.Pointer new_buffer, - int new_len, - ffi.Pointer new_as_path, - ffi.Pointer opts, -); - -typedef _c_git_patch_free = ffi.Void Function( - ffi.Pointer patch, -); - -typedef _dart_git_patch_free = void Function( - ffi.Pointer patch, -); - -typedef _c_git_patch_get_delta = ffi.Pointer Function( - ffi.Pointer patch, -); - -typedef _dart_git_patch_get_delta = ffi.Pointer Function( - ffi.Pointer patch, -); - -typedef _c_git_patch_num_hunks = ffi.Int32 Function( - ffi.Pointer patch, -); - -typedef _dart_git_patch_num_hunks = int Function( - ffi.Pointer patch, -); - -typedef _c_git_patch_line_stats = ffi.Int32 Function( - ffi.Pointer total_context, - ffi.Pointer total_additions, - ffi.Pointer total_deletions, - ffi.Pointer patch, -); - -typedef _dart_git_patch_line_stats = int Function( - ffi.Pointer total_context, - ffi.Pointer total_additions, - ffi.Pointer total_deletions, - ffi.Pointer patch, -); - -typedef _c_git_patch_get_hunk = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer lines_in_hunk, - ffi.Pointer patch, - ffi.Int32 hunk_idx, -); - -typedef _dart_git_patch_get_hunk = int Function( - ffi.Pointer> out, - ffi.Pointer lines_in_hunk, - ffi.Pointer patch, - int hunk_idx, -); - -typedef _c_git_patch_num_lines_in_hunk = ffi.Int32 Function( - ffi.Pointer patch, - ffi.Int32 hunk_idx, -); - -typedef _dart_git_patch_num_lines_in_hunk = int Function( - ffi.Pointer patch, - int hunk_idx, -); - -typedef _c_git_patch_get_line_in_hunk = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer patch, - ffi.Int32 hunk_idx, - ffi.Int32 line_of_hunk, -); - -typedef _dart_git_patch_get_line_in_hunk = int Function( - ffi.Pointer> out, - ffi.Pointer patch, - int hunk_idx, - int line_of_hunk, -); - -typedef _c_git_patch_size = ffi.Int32 Function( - ffi.Pointer patch, - ffi.Int32 include_context, - ffi.Int32 include_hunk_headers, - ffi.Int32 include_file_headers, -); - -typedef _dart_git_patch_size = int Function( - ffi.Pointer patch, - int include_context, - int include_hunk_headers, - int include_file_headers, -); - -typedef _c_git_patch_print = ffi.Int32 Function( - ffi.Pointer patch, - ffi.Pointer> print_cb, - ffi.Pointer payload, -); - -typedef _dart_git_patch_print = int Function( - ffi.Pointer patch, - ffi.Pointer> print_cb, - ffi.Pointer payload, -); - -typedef _c_git_patch_to_buf = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer patch, -); - -typedef _dart_git_patch_to_buf = int Function( - ffi.Pointer out, - ffi.Pointer patch, -); - -typedef _c_git_pathspec_new = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer pathspec, -); - -typedef _dart_git_pathspec_new = int Function( - ffi.Pointer> out, - ffi.Pointer pathspec, -); - -typedef _c_git_pathspec_free = ffi.Void Function( - ffi.Pointer ps, -); - -typedef _dart_git_pathspec_free = void Function( - ffi.Pointer ps, -); - -typedef _c_git_pathspec_matches_path = ffi.Int32 Function( - ffi.Pointer ps, - ffi.Uint32 flags, - ffi.Pointer path, -); - -typedef _dart_git_pathspec_matches_path = int Function( - ffi.Pointer ps, - int flags, - ffi.Pointer path, -); - -typedef _c_git_pathspec_match_workdir = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Uint32 flags, - ffi.Pointer ps, -); - -typedef _dart_git_pathspec_match_workdir = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - int flags, - ffi.Pointer ps, -); - -typedef _c_git_pathspec_match_index = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer index, - ffi.Uint32 flags, - ffi.Pointer ps, -); - -typedef _dart_git_pathspec_match_index = int Function( - ffi.Pointer> out, - ffi.Pointer index, - int flags, - ffi.Pointer ps, -); - -typedef _c_git_pathspec_match_tree = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer tree, - ffi.Uint32 flags, - ffi.Pointer ps, -); - -typedef _dart_git_pathspec_match_tree = int Function( - ffi.Pointer> out, - ffi.Pointer tree, - int flags, - ffi.Pointer ps, -); - -typedef _c_git_pathspec_match_diff = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer diff, - ffi.Uint32 flags, - ffi.Pointer ps, -); - -typedef _dart_git_pathspec_match_diff = int Function( - ffi.Pointer> out, - ffi.Pointer diff, - int flags, - ffi.Pointer ps, -); - -typedef _c_git_pathspec_match_list_free = ffi.Void Function( - ffi.Pointer m, -); - -typedef _dart_git_pathspec_match_list_free = void Function( - ffi.Pointer m, -); - -typedef _c_git_pathspec_match_list_entrycount = ffi.Int32 Function( - ffi.Pointer m, -); - -typedef _dart_git_pathspec_match_list_entrycount = int Function( - ffi.Pointer m, -); - -typedef _c_git_pathspec_match_list_entry = ffi.Pointer Function( - ffi.Pointer m, - ffi.Int32 pos, -); - -typedef _dart_git_pathspec_match_list_entry = ffi.Pointer Function( - ffi.Pointer m, - int pos, -); - -typedef _c_git_pathspec_match_list_diff_entry = ffi.Pointer - Function( - ffi.Pointer m, - ffi.Int32 pos, -); - -typedef _dart_git_pathspec_match_list_diff_entry = ffi.Pointer - Function( - ffi.Pointer m, - int pos, -); - -typedef _c_git_pathspec_match_list_failed_entrycount = ffi.Int32 Function( - ffi.Pointer m, -); - -typedef _dart_git_pathspec_match_list_failed_entrycount = int Function( - ffi.Pointer m, -); - -typedef _c_git_pathspec_match_list_failed_entry = ffi.Pointer - Function( - ffi.Pointer m, - ffi.Int32 pos, -); - -typedef _dart_git_pathspec_match_list_failed_entry = ffi.Pointer - Function( - ffi.Pointer m, - int pos, -); - -typedef _c_git_refdb_new = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, -); - -typedef _dart_git_refdb_new = int Function( - ffi.Pointer> out, - ffi.Pointer repo, -); - -typedef _c_git_refdb_open = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, -); - -typedef _dart_git_refdb_open = int Function( - ffi.Pointer> out, - ffi.Pointer repo, -); - -typedef _c_git_refdb_compress = ffi.Int32 Function( - ffi.Pointer refdb, -); - -typedef _dart_git_refdb_compress = int Function( - ffi.Pointer refdb, -); - -typedef _c_git_refdb_free = ffi.Void Function( - ffi.Pointer refdb, -); - -typedef _dart_git_refdb_free = void Function( - ffi.Pointer refdb, -); - -typedef _c_git_reflog_read = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer name, -); - -typedef _dart_git_reflog_read = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer name, -); - -typedef _c_git_reflog_write = ffi.Int32 Function( - ffi.Pointer reflog, -); - -typedef _dart_git_reflog_write = int Function( - ffi.Pointer reflog, -); - -typedef _c_git_reflog_append = ffi.Int32 Function( - ffi.Pointer reflog, - ffi.Pointer id, - ffi.Pointer committer, - ffi.Pointer msg, -); - -typedef _dart_git_reflog_append = int Function( - ffi.Pointer reflog, - ffi.Pointer id, - ffi.Pointer committer, - ffi.Pointer msg, -); - -typedef _c_git_reflog_rename = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer old_name, - ffi.Pointer name, -); - -typedef _dart_git_reflog_rename = int Function( - ffi.Pointer repo, - ffi.Pointer old_name, - ffi.Pointer name, -); - -typedef _c_git_reflog_delete = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer name, -); - -typedef _dart_git_reflog_delete = int Function( - ffi.Pointer repo, - ffi.Pointer name, -); - -typedef _c_git_reflog_entrycount = ffi.Int32 Function( - ffi.Pointer reflog, -); - -typedef _dart_git_reflog_entrycount = int Function( - ffi.Pointer reflog, -); - -typedef _c_git_reflog_entry_byindex = ffi.Pointer Function( - ffi.Pointer reflog, - ffi.Int32 idx, -); - -typedef _dart_git_reflog_entry_byindex = ffi.Pointer Function( - ffi.Pointer reflog, - int idx, -); - -typedef _c_git_reflog_drop = ffi.Int32 Function( - ffi.Pointer reflog, - ffi.Int32 idx, - ffi.Int32 rewrite_previous_entry, -); - -typedef _dart_git_reflog_drop = int Function( - ffi.Pointer reflog, - int idx, - int rewrite_previous_entry, -); - -typedef _c_git_reflog_entry_id_old = ffi.Pointer Function( - ffi.Pointer entry, -); - -typedef _dart_git_reflog_entry_id_old = ffi.Pointer Function( - ffi.Pointer entry, -); - -typedef _c_git_reflog_entry_id_new = ffi.Pointer Function( - ffi.Pointer entry, -); - -typedef _dart_git_reflog_entry_id_new = ffi.Pointer Function( - ffi.Pointer entry, -); - -typedef _c_git_reflog_entry_committer = ffi.Pointer Function( - ffi.Pointer entry, -); - -typedef _dart_git_reflog_entry_committer = ffi.Pointer Function( - ffi.Pointer entry, -); - -typedef _c_git_reflog_entry_message = ffi.Pointer Function( - ffi.Pointer entry, -); - -typedef _dart_git_reflog_entry_message = ffi.Pointer Function( - ffi.Pointer entry, -); - -typedef _c_git_reflog_free = ffi.Void Function( - ffi.Pointer reflog, -); - -typedef _dart_git_reflog_free = void Function( - ffi.Pointer reflog, -); - -typedef _c_git_reset = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer target, - ffi.Int32 reset_type, - ffi.Pointer checkout_opts, -); - -typedef _dart_git_reset = int Function( - ffi.Pointer repo, - ffi.Pointer target, - int reset_type, - ffi.Pointer checkout_opts, -); - -typedef _c_git_reset_from_annotated = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer commit, - ffi.Int32 reset_type, - ffi.Pointer checkout_opts, -); - -typedef _dart_git_reset_from_annotated = int Function( - ffi.Pointer repo, - ffi.Pointer commit, - int reset_type, - ffi.Pointer checkout_opts, -); - -typedef _c_git_reset_default = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer target, - ffi.Pointer pathspecs, -); - -typedef _dart_git_reset_default = int Function( - ffi.Pointer repo, - ffi.Pointer target, - ffi.Pointer pathspecs, -); - -typedef _c_git_revwalk_new = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, -); - -typedef _dart_git_revwalk_new = int Function( - ffi.Pointer> out, - ffi.Pointer repo, -); - -typedef _c_git_revwalk_reset = ffi.Int32 Function( - ffi.Pointer walker, -); - -typedef _dart_git_revwalk_reset = int Function( - ffi.Pointer walker, -); - -typedef _c_git_revwalk_push = ffi.Int32 Function( - ffi.Pointer walk, - ffi.Pointer id, -); - -typedef _dart_git_revwalk_push = int Function( - ffi.Pointer walk, - ffi.Pointer id, -); - -typedef _c_git_revwalk_push_glob = ffi.Int32 Function( - ffi.Pointer walk, - ffi.Pointer glob, -); - -typedef _dart_git_revwalk_push_glob = int Function( - ffi.Pointer walk, - ffi.Pointer glob, -); - -typedef _c_git_revwalk_push_head = ffi.Int32 Function( - ffi.Pointer walk, -); - -typedef _dart_git_revwalk_push_head = int Function( - ffi.Pointer walk, -); - -typedef _c_git_revwalk_hide = ffi.Int32 Function( - ffi.Pointer walk, - ffi.Pointer commit_id, -); - -typedef _dart_git_revwalk_hide = int Function( - ffi.Pointer walk, - ffi.Pointer commit_id, -); - -typedef _c_git_revwalk_hide_glob = ffi.Int32 Function( - ffi.Pointer walk, - ffi.Pointer glob, -); - -typedef _dart_git_revwalk_hide_glob = int Function( - ffi.Pointer walk, - ffi.Pointer glob, -); - -typedef _c_git_revwalk_hide_head = ffi.Int32 Function( - ffi.Pointer walk, -); - -typedef _dart_git_revwalk_hide_head = int Function( - ffi.Pointer walk, -); - -typedef _c_git_revwalk_push_ref = ffi.Int32 Function( - ffi.Pointer walk, - ffi.Pointer refname, -); - -typedef _dart_git_revwalk_push_ref = int Function( - ffi.Pointer walk, - ffi.Pointer refname, -); - -typedef _c_git_revwalk_hide_ref = ffi.Int32 Function( - ffi.Pointer walk, - ffi.Pointer refname, -); - -typedef _dart_git_revwalk_hide_ref = int Function( - ffi.Pointer walk, - ffi.Pointer refname, -); - -typedef _c_git_revwalk_next = ffi.Int32 Function( - ffi.Pointer out, - ffi.Pointer walk, -); - -typedef _dart_git_revwalk_next = int Function( - ffi.Pointer out, - ffi.Pointer walk, -); - -typedef _c_git_revwalk_sorting = ffi.Int32 Function( - ffi.Pointer walk, - ffi.Uint32 sort_mode, -); - -typedef _dart_git_revwalk_sorting = int Function( - ffi.Pointer walk, - int sort_mode, -); - -typedef _c_git_revwalk_push_range = ffi.Int32 Function( - ffi.Pointer walk, - ffi.Pointer range, -); - -typedef _dart_git_revwalk_push_range = int Function( - ffi.Pointer walk, - ffi.Pointer range, -); - -typedef _c_git_revwalk_simplify_first_parent = ffi.Int32 Function( - ffi.Pointer walk, -); - -typedef _dart_git_revwalk_simplify_first_parent = int Function( - ffi.Pointer walk, -); - -typedef _c_git_revwalk_free = ffi.Void Function( - ffi.Pointer walk, -); - -typedef _dart_git_revwalk_free = void Function( - ffi.Pointer walk, -); - -typedef _c_git_revwalk_repository = ffi.Pointer Function( - ffi.Pointer walk, -); - -typedef _dart_git_revwalk_repository = ffi.Pointer Function( - ffi.Pointer walk, -); - -typedef git_revwalk_hide_cb = ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, -); - -typedef _c_git_revwalk_add_hide_cb = ffi.Int32 Function( - ffi.Pointer walk, - ffi.Pointer> hide_cb, - ffi.Pointer payload, -); - -typedef _dart_git_revwalk_add_hide_cb = int Function( - ffi.Pointer walk, - ffi.Pointer> hide_cb, - ffi.Pointer payload, -); - -typedef _c_git_signature_new = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer name, - ffi.Pointer email, - ffi.Int64 time, - ffi.Int32 offset, -); - -typedef _dart_git_signature_new = int Function( - ffi.Pointer> out, - ffi.Pointer name, - ffi.Pointer email, - int time, - int offset, -); - -typedef _c_git_signature_now = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer name, - ffi.Pointer email, -); - -typedef _dart_git_signature_now = int Function( - ffi.Pointer> out, - ffi.Pointer name, - ffi.Pointer email, -); - -typedef _c_git_signature_default = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, -); - -typedef _dart_git_signature_default = int Function( - ffi.Pointer> out, - ffi.Pointer repo, -); - -typedef _c_git_signature_from_buffer = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer buf, -); - -typedef _dart_git_signature_from_buffer = int Function( - ffi.Pointer> out, - ffi.Pointer buf, -); - -typedef _c_git_signature_dup = ffi.Int32 Function( - ffi.Pointer> dest, - ffi.Pointer sig, -); - -typedef _dart_git_signature_dup = int Function( - ffi.Pointer> dest, - ffi.Pointer sig, -); - -typedef _c_git_signature_free = ffi.Void Function( - ffi.Pointer sig, -); - -typedef _dart_git_signature_free = void Function( - ffi.Pointer sig, -); - -typedef _c_git_tag_lookup = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer id, -); - -typedef _dart_git_tag_lookup = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer id, -); - -typedef _c_git_tag_lookup_prefix = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer id, - ffi.Int32 len, -); - -typedef _dart_git_tag_lookup_prefix = int Function( - ffi.Pointer> out, - ffi.Pointer repo, - ffi.Pointer id, - int len, -); - -typedef _c_git_tag_free = ffi.Void Function( - ffi.Pointer tag, -); - -typedef _dart_git_tag_free = void Function( - ffi.Pointer tag, -); - -typedef _c_git_tag_id = ffi.Pointer Function( - ffi.Pointer tag, -); - -typedef _dart_git_tag_id = ffi.Pointer Function( - ffi.Pointer tag, -); - -typedef _c_git_tag_owner = ffi.Pointer Function( - ffi.Pointer tag, -); - -typedef _dart_git_tag_owner = ffi.Pointer Function( - ffi.Pointer tag, -); - -typedef _c_git_tag_target = ffi.Int32 Function( - ffi.Pointer> target_out, - ffi.Pointer tag, -); - -typedef _dart_git_tag_target = int Function( - ffi.Pointer> target_out, - ffi.Pointer tag, -); - -typedef _c_git_tag_target_id = ffi.Pointer Function( - ffi.Pointer tag, -); - -typedef _dart_git_tag_target_id = ffi.Pointer Function( - ffi.Pointer tag, -); - -typedef _c_git_tag_target_type = ffi.Int32 Function( - ffi.Pointer tag, -); - -typedef _dart_git_tag_target_type = int Function( - ffi.Pointer tag, -); - -typedef _c_git_tag_name = ffi.Pointer Function( - ffi.Pointer tag, -); - -typedef _dart_git_tag_name = ffi.Pointer Function( - ffi.Pointer tag, -); - -typedef _c_git_tag_tagger = ffi.Pointer Function( - ffi.Pointer tag, -); - -typedef _dart_git_tag_tagger = ffi.Pointer Function( - ffi.Pointer tag, -); - -typedef _c_git_tag_message = ffi.Pointer Function( - ffi.Pointer tag, -); - -typedef _dart_git_tag_message = ffi.Pointer Function( - ffi.Pointer tag, -); - -typedef _c_git_tag_create = ffi.Int32 Function( - ffi.Pointer oid, - ffi.Pointer repo, - ffi.Pointer tag_name, - ffi.Pointer target, - ffi.Pointer tagger, - ffi.Pointer message, - ffi.Int32 force, -); - -typedef _dart_git_tag_create = int Function( - ffi.Pointer oid, - ffi.Pointer repo, - ffi.Pointer tag_name, - ffi.Pointer target, - ffi.Pointer tagger, - ffi.Pointer message, - int force, -); - -typedef _c_git_tag_annotation_create = ffi.Int32 Function( - ffi.Pointer oid, - ffi.Pointer repo, - ffi.Pointer tag_name, - ffi.Pointer target, - ffi.Pointer tagger, - ffi.Pointer message, -); - -typedef _dart_git_tag_annotation_create = int Function( - ffi.Pointer oid, - ffi.Pointer repo, - ffi.Pointer tag_name, - ffi.Pointer target, - ffi.Pointer tagger, - ffi.Pointer message, -); - -typedef _c_git_tag_create_from_buffer = ffi.Int32 Function( - ffi.Pointer oid, - ffi.Pointer repo, - ffi.Pointer buffer, - ffi.Int32 force, -); - -typedef _dart_git_tag_create_from_buffer = int Function( - ffi.Pointer oid, - ffi.Pointer repo, - ffi.Pointer buffer, - int force, -); - -typedef _c_git_tag_create_lightweight = ffi.Int32 Function( - ffi.Pointer oid, - ffi.Pointer repo, - ffi.Pointer tag_name, - ffi.Pointer target, - ffi.Int32 force, -); - -typedef _dart_git_tag_create_lightweight = int Function( - ffi.Pointer oid, - ffi.Pointer repo, - ffi.Pointer tag_name, - ffi.Pointer target, - int force, -); - -typedef _c_git_tag_delete = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer tag_name, -); - -typedef _dart_git_tag_delete = int Function( - ffi.Pointer repo, - ffi.Pointer tag_name, -); - -typedef _c_git_tag_list = ffi.Int32 Function( - ffi.Pointer tag_names, - ffi.Pointer repo, -); - -typedef _dart_git_tag_list = int Function( - ffi.Pointer tag_names, - ffi.Pointer repo, -); - -typedef _c_git_tag_list_match = ffi.Int32 Function( - ffi.Pointer tag_names, - ffi.Pointer pattern, - ffi.Pointer repo, -); - -typedef _dart_git_tag_list_match = int Function( - ffi.Pointer tag_names, - ffi.Pointer pattern, - ffi.Pointer repo, -); - -typedef git_tag_foreach_cb = ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, -); - -typedef _c_git_tag_foreach = ffi.Int32 Function( - ffi.Pointer repo, - ffi.Pointer> callback, - ffi.Pointer payload, -); - -typedef _dart_git_tag_foreach = int Function( - ffi.Pointer repo, - ffi.Pointer> callback, - ffi.Pointer payload, -); - -typedef _c_git_tag_peel = ffi.Int32 Function( - ffi.Pointer> tag_target_out, - ffi.Pointer tag, -); - -typedef _dart_git_tag_peel = int Function( - ffi.Pointer> tag_target_out, - ffi.Pointer tag, -); - -typedef _c_git_tag_dup = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer source, -); - -typedef _dart_git_tag_dup = int Function( - ffi.Pointer> out, - ffi.Pointer source, -); - -typedef _c_git_tag_name_is_valid = ffi.Int32 Function( - ffi.Pointer valid, - ffi.Pointer name, -); - -typedef _dart_git_tag_name_is_valid = int Function( - ffi.Pointer valid, - ffi.Pointer name, -); - -typedef _c_git_transaction_new = ffi.Int32 Function( - ffi.Pointer> out, - ffi.Pointer repo, -); - -typedef _dart_git_transaction_new = int Function( - ffi.Pointer> out, - ffi.Pointer repo, -); - -typedef _c_git_transaction_lock_ref = ffi.Int32 Function( - ffi.Pointer tx, - ffi.Pointer refname, -); - -typedef _dart_git_transaction_lock_ref = int Function( - ffi.Pointer tx, - ffi.Pointer refname, -); - -typedef _c_git_transaction_set_target = ffi.Int32 Function( - ffi.Pointer tx, - ffi.Pointer refname, - ffi.Pointer target, - ffi.Pointer sig, - ffi.Pointer msg, -); - -typedef _dart_git_transaction_set_target = int Function( - ffi.Pointer tx, - ffi.Pointer refname, - ffi.Pointer target, - ffi.Pointer sig, - ffi.Pointer msg, -); - -typedef _c_git_transaction_set_symbolic_target = ffi.Int32 Function( - ffi.Pointer tx, - ffi.Pointer refname, - ffi.Pointer target, - ffi.Pointer sig, - ffi.Pointer msg, -); - -typedef _dart_git_transaction_set_symbolic_target = int Function( - ffi.Pointer tx, - ffi.Pointer refname, - ffi.Pointer target, - ffi.Pointer sig, - ffi.Pointer msg, -); - -typedef _c_git_transaction_set_reflog = ffi.Int32 Function( - ffi.Pointer tx, - ffi.Pointer refname, - ffi.Pointer reflog, -); - -typedef _dart_git_transaction_set_reflog = int Function( - ffi.Pointer tx, - ffi.Pointer refname, - ffi.Pointer reflog, -); - -typedef _c_git_transaction_remove = ffi.Int32 Function( - ffi.Pointer tx, - ffi.Pointer refname, -); - -typedef _dart_git_transaction_remove = int Function( - ffi.Pointer tx, - ffi.Pointer refname, -); - -typedef _c_git_transaction_commit = ffi.Int32 Function( - ffi.Pointer tx, -); - -typedef _dart_git_transaction_commit = int Function( - ffi.Pointer tx, -); - -typedef _c_git_transaction_free = ffi.Void Function( - ffi.Pointer tx, -); - -typedef _dart_git_transaction_free = void Function( - ffi.Pointer tx, -); - -typedef _typedefC_4 = ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, -); - -typedef _typedefC_5 = ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, -); - -typedef _typedefC_6 = ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, -); - -typedef _typedefC_7 = ffi.Void Function( - ffi.Pointer, -); - -typedef _typedefC_8 = ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer, -); - -typedef _typedefC_9 = ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, -); - -typedef _typedefC_10 = ffi.Void Function( - ffi.Pointer, -); - -typedef _typedefC_12 = ffi.Void Function( - ffi.Pointer, -); - -typedef git_transport_message_cb = ffi.Int32 Function( - ffi.Pointer, - ffi.Int32, - ffi.Pointer, -); - -typedef _typedefC_11 = ffi.Int32 Function( - ffi.Int32, - ffi.Pointer, -); - -typedef git_credential_acquire_cb = ffi.Int32 Function( - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer, - ffi.Uint32, - ffi.Pointer, -); - -typedef git_transport_certificate_check_cb = ffi.Int32 Function( - ffi.Pointer, - ffi.Int32, - ffi.Pointer, - ffi.Pointer, -); - -typedef _typedefC_13 = ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, -); - -typedef git_push_transfer_progress_cb = ffi.Int32 Function( - ffi.Uint32, - ffi.Uint32, - ffi.Int32, - ffi.Pointer, -); - -typedef git_push_update_reference_cb = ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, -); - -typedef git_push_negotiation = ffi.Int32 Function( - ffi.Pointer>, - ffi.Int32, - ffi.Pointer, -); - -typedef git_transport_cb = ffi.Int32 Function( - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer, -); - -typedef git_remote_ready_cb = ffi.Int32 Function( - ffi.Pointer, - ffi.Int32, - ffi.Pointer, -); - -typedef git_url_resolve_cb = ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer, -); - -typedef _typedefC_14 = ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, -); - -typedef _typedefC_15 = ffi.Int32 Function( - ffi.Pointer, -); - -typedef _typedefC_16 = ffi.Void Function( - ffi.Pointer, -); - -typedef git_diff_notify_cb = ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, -); - -typedef git_diff_progress_cb = ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, -); - -typedef _typedefC_17 = ffi.Int32 Function( - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, -); - -typedef _typedefC_18 = ffi.Int32 Function( - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer, -); - -typedef _typedefC_19 = ffi.Void Function( - ffi.Pointer, - ffi.Pointer, -); - -typedef _typedefC_20 = ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, -); - -typedef git_apply_delta_cb = ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, -); - -typedef git_apply_hunk_cb = ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, -); - -typedef git_checkout_notify_cb = ffi.Int32 Function( - ffi.Int32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, -); - -typedef git_checkout_progress_cb = ffi.Void Function( - ffi.Pointer, - ffi.Int32, - ffi.Int32, - ffi.Pointer, -); - -typedef git_checkout_perfdata_cb = ffi.Void Function( - ffi.Pointer, - ffi.Pointer, -); - -typedef git_repository_create_cb = ffi.Int32 Function( - ffi.Pointer>, - ffi.Pointer, - ffi.Int32, - ffi.Pointer, -); - -typedef git_remote_create_cb = ffi.Int32 Function( - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, -); - -typedef _typedefC_21 = ffi.Void Function( - ffi.Pointer, -); - -typedef git_commit_create_cb = ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer>, - ffi.Pointer, -); - -typedef _typedefC_22 = ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, -); - -typedef git_stash_apply_progress_cb = ffi.Int32 Function( - ffi.Int32, - ffi.Pointer, -); diff --git a/lib/src/bindings/patch.dart b/lib/src/bindings/patch.dart index a47a54f..ef45846 100644 --- a/lib/src/bindings/patch.dart +++ b/lib/src/bindings/patch.dart @@ -193,7 +193,8 @@ int numHunks(Pointer patch) => libgit2.git_patch_num_hunks(patch); Map hunk(Pointer patch, int hunkIdx) { final out = calloc>(); final linesInHunk = calloc(); - final error = libgit2.git_patch_get_hunk(out, linesInHunk, patch, hunkIdx); + final error = + libgit2.git_patch_get_hunk(out, linesInHunk.cast(), patch, hunkIdx); final result = {}; if (error < 0) { diff --git a/libgit2/headers/git2/sys/credential.h b/libgit2/headers/git2/sys/credential.h index bb4c9f9..f274c91 100644 --- a/libgit2/headers/git2/sys/credential.h +++ b/libgit2/headers/git2/sys/credential.h @@ -7,8 +7,8 @@ #ifndef INCLUDE_sys_git_credential_h__ #define INCLUDE_sys_git_credential_h__ -#include "git2/common.h" -#include "git2/credential.h" +#include "../common.h" +#include "../credential.h" /** * @file git2/sys/cred.h diff --git a/pubspec.yaml b/pubspec.yaml index 4ca5f21..e961de8 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -3,13 +3,13 @@ description: Dart bindings to libgit2 version: 0.0.1 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.15.0-82.0.dev <3.0.0" dependencies: dev_dependencies: lints: ^1.0.1 - ffigen: ^3.1.0-dev.1 + ffigen: ^4.0.0 test: ^1.17.5 path: ^1.8.0 @@ -25,3 +25,5 @@ ffigen: length: full llvm-path: - "/usr/lib64/libclang.so" + compiler-opts: + - "-I/lib64/clang/12.0.1/include" diff --git a/test/commit_test.dart b/test/commit_test.dart index 0127792..3d14b27 100644 --- a/test/commit_test.dart +++ b/test/commit_test.dart @@ -94,7 +94,7 @@ void main() { expect(commit.parents[0].sha, mergeCommit); commit.free(); - }, skip: 'skipped because of flaky segfaults'); + }); test('successfully creates commit without parents', () { final oid = Commit.create( @@ -118,7 +118,7 @@ void main() { expect(commit.parents.length, 0); commit.free(); - }, skip: 'skipped because of flaky segfaults'); + }); test('successfully creates commit with 2 parents', () { final oid = Commit.create( @@ -144,7 +144,7 @@ void main() { expect(commit.parents[1].sha, 'fc38877b2552ab554752d9a77e1f48f738cca79b'); commit.free(); - }, skip: 'skipped because of flaky segfaults'); + }); test('successfully creates commit with short sha of tree', () { final oid = Commit.create( @@ -169,6 +169,6 @@ void main() { expect(commit.parents[0].sha, mergeCommit); commit.free(); - }, skip: 'skipped because of flaky segfaults'); + }); }); } diff --git a/test/diff_test.dart b/test/diff_test.dart index 848ca72..11bfbc9 100644 --- a/test/diff_test.dart +++ b/test/diff_test.dart @@ -315,7 +315,7 @@ index e69de29..c217c63 100644 expect(hunk.oldLines, 0); expect(hunk.newStart, 1); expect(hunk.newLines, 1); - expect(hunk.header, '\x00\x00\x00\x00@@ -0,0 +1'); + expect(hunk.header, '@@ -0,0 +1 @@\n'); patch.free(); diff.free();