1
1
using System ;
2
2
using System . IO ;
3
+ #if NET
3
4
using System . Reflection ;
5
+ #endif
4
6
using System . Runtime . CompilerServices ;
5
7
using System . Runtime . ConstrainedExecution ;
6
8
using System . Runtime . InteropServices ;
@@ -743,6 +745,7 @@ internal static extern int git_libgit2_opts(int option, uint level,
743
745
[ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string path ) ;
744
746
745
747
// git_libgit2_opts(GIT_OPT_ENABLE_*, int enabled)
748
+ // git_libgit2_opts(GIT_OPT_SET_OWNER_VALIDATION, int enabled)
746
749
[ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
747
750
internal static extern int git_libgit2_opts ( int option , int enabled ) ;
748
751
@@ -762,6 +765,10 @@ internal static extern int git_libgit2_opts(int option,
762
765
// git_libgit2_opts(GIT_OPT_GET_EXTENSIONS, git_strarray *out)
763
766
[ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
764
767
internal static extern int git_libgit2_opts ( int option , out GitStrArray extensions ) ;
768
+
769
+ // git_libgit2_opts(GIT_OPT_GET_OWNER_VALIDATION, int *enabled)
770
+ [ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
771
+ internal static extern unsafe int git_libgit2_opts ( int option , int * enabled ) ;
765
772
#endregion
766
773
767
774
#region git_libgit2_opts_osxarm64
@@ -779,6 +786,7 @@ internal static extern int git_libgit2_opts_osxarm64(int option, IntPtr nop2, In
779
786
[ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string path ) ;
780
787
781
788
// git_libgit2_opts(GIT_OPT_ENABLE_*, int enabled)
789
+ // git_libgit2_opts(GIT_OPT_SET_OWNER_VALIDATION, int enabled)
782
790
[ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl , EntryPoint = "git_libgit2_opts" ) ]
783
791
internal static extern int git_libgit2_opts_osxarm64 ( int option , IntPtr nop2 , IntPtr nop3 , IntPtr nop4 , IntPtr nop5 , IntPtr nop6 , IntPtr nop7 , IntPtr nop8 , int enabled ) ;
784
792
@@ -798,6 +806,10 @@ internal static extern int git_libgit2_opts_osxarm64(int option, IntPtr nop2, In
798
806
// git_libgit2_opts(GIT_OPT_GET_EXTENSIONS, git_strarray *out)
799
807
[ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl , EntryPoint = "git_libgit2_opts" ) ]
800
808
internal static extern int git_libgit2_opts_osxarm64 ( int option , IntPtr nop2 , IntPtr nop3 , IntPtr nop4 , IntPtr nop5 , IntPtr nop6 , IntPtr nop7 , IntPtr nop8 , out GitStrArray extensions ) ;
809
+
810
+ // git_libgit2_opts(GIT_OPT_GET_OWNER_VALIDATION, int *enabled)
811
+ [ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl , EntryPoint = "git_libgit2_opts" ) ]
812
+ internal static extern unsafe int git_libgit2_opts_osxarm64 ( int option , IntPtr nop2 , IntPtr nop3 , IntPtr nop4 , IntPtr nop5 , IntPtr nop6 , IntPtr nop7 , IntPtr nop8 , int * enabled ) ;
801
813
#endregion
802
814
803
815
[ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
0 commit comments