11using System ;
22using System . IO ;
3+ #if NET
34using System . Reflection ;
5+ #endif
46using System . Runtime . CompilerServices ;
57using System . Runtime . ConstrainedExecution ;
68using System . Runtime . InteropServices ;
@@ -743,13 +745,10 @@ internal static extern int git_libgit2_opts(int option, uint level,
743745 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string path ) ;
744746
745747 // git_libgit2_opts(GIT_OPT_ENABLE_*, int enabled)
748+ // git_libgit2_opts(GIT_OPT_SET_OWNER_VALIDATION, int enabled)
746749 [ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
747750 internal static extern int git_libgit2_opts ( int option , int enabled ) ;
748751
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-
753752 // git_libgit2_opts(GIT_OPT_SET_USER_AGENT, const char *path)
754753 [ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
755754 internal static extern int git_libgit2_opts ( int option ,
@@ -766,6 +765,10 @@ internal static extern int git_libgit2_opts(int option,
766765 // git_libgit2_opts(GIT_OPT_GET_EXTENSIONS, git_strarray *out)
767766 [ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
768767 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 ) ;
769772 #endregion
770773
771774 #region git_libgit2_opts_osxarm64
@@ -783,13 +786,10 @@ internal static extern int git_libgit2_opts_osxarm64(int option, IntPtr nop2, In
783786 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string path ) ;
784787
785788 // git_libgit2_opts(GIT_OPT_ENABLE_*, int enabled)
789+ // git_libgit2_opts(GIT_OPT_SET_OWNER_VALIDATION, int enabled)
786790 [ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl , EntryPoint = "git_libgit2_opts" ) ]
787791 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 ) ;
788792
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-
793793 // git_libgit2_opts(GIT_OPT_SET_USER_AGENT, const char *path)
794794 [ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl , EntryPoint = "git_libgit2_opts" ) ]
795795 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
806806 // git_libgit2_opts(GIT_OPT_GET_EXTENSIONS, git_strarray *out)
807807 [ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl , EntryPoint = "git_libgit2_opts" ) ]
808808 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 ) ;
809813 #endregion
810814
811815 [ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
0 commit comments