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,13 +745,10 @@ 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
749
- // git_libgit2_opts(GIT_OPT_GET_*, int *enabled)
750
- [ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
751
- internal static extern unsafe int git_libgit2_opts ( int option , int * enabled ) ;
752
-
753
752
// git_libgit2_opts(GIT_OPT_SET_USER_AGENT, const char *path)
754
753
[ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
755
754
internal static extern int git_libgit2_opts ( int option ,
@@ -766,6 +765,10 @@ internal static extern int git_libgit2_opts(int option,
766
765
// git_libgit2_opts(GIT_OPT_GET_EXTENSIONS, git_strarray *out)
767
766
[ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
768
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 ) ;
769
772
#endregion
770
773
771
774
#region git_libgit2_opts_osxarm64
@@ -783,13 +786,10 @@ internal static extern int git_libgit2_opts_osxarm64(int option, IntPtr nop2, In
783
786
[ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string path ) ;
784
787
785
788
// git_libgit2_opts(GIT_OPT_ENABLE_*, int enabled)
789
+ // git_libgit2_opts(GIT_OPT_SET_OWNER_VALIDATION, int enabled)
786
790
[ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl , EntryPoint = "git_libgit2_opts" ) ]
787
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 ) ;
788
792
789
- // git_libgit2_opts(GIT_OPT_GET_*, int enabled)
790
- [ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl , EntryPoint = "git_libgit2_opts" ) ]
791
- 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 ) ;
792
-
793
793
// git_libgit2_opts(GIT_OPT_SET_USER_AGENT, const char *path)
794
794
[ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl , EntryPoint = "git_libgit2_opts" ) ]
795
795
internal static extern int git_libgit2_opts_osxarm64 ( int option , IntPtr nop2 , IntPtr nop3 , IntPtr nop4 , IntPtr nop5 , IntPtr nop6 , IntPtr nop7 , IntPtr nop8 ,
@@ -806,6 +806,10 @@ internal static extern int git_libgit2_opts_osxarm64(int option, IntPtr nop2, In
806
806
// git_libgit2_opts(GIT_OPT_GET_EXTENSIONS, git_strarray *out)
807
807
[ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl , EntryPoint = "git_libgit2_opts" ) ]
808
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 ) ;
809
813
#endregion
810
814
811
815
[ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
0 commit comments