@@ -451,6 +451,10 @@ public struct OrtApi
451451 public IntPtr Graph_GetModelMetadata ;
452452 public IntPtr GetModelCompatibilityForEpDevices ;
453453 public IntPtr CreateExternalInitializerInfo ;
454+
455+ public IntPtr TensorTypeAndShape_HasShape ;
456+ public IntPtr KernelInfo_GetConfigEntries ;
457+ public IntPtr RegisterExecutionProviderLibraryWithOptions ;
454458 }
455459
456460 internal static class NativeMethods
@@ -847,7 +851,7 @@ static NativeMethods()
847851 api_ . CreateSyncStreamForEpDevice ,
848852 typeof ( DOrtCreateSyncStreamForEpDevice ) ) ;
849853
850- OrtSyncStream_GetHandle =
854+ OrtSyncStream_GetHandle =
851855 ( DOrtSyncStream_GetHandle ) Marshal . GetDelegateForFunctionPointer (
852856 api_ . SyncStream_GetHandle ,
853857 typeof ( DOrtSyncStream_GetHandle ) ) ;
@@ -861,6 +865,11 @@ static NativeMethods()
861865 ( DOrtCopyTensors ) Marshal . GetDelegateForFunctionPointer (
862866 api_ . CopyTensors ,
863867 typeof ( DOrtCopyTensors ) ) ;
868+
869+ OrtRegisterExecutionProviderLibraryWithOptions =
870+ ( DOrtRegisterExecutionProviderLibraryWithOptions ) Marshal . GetDelegateForFunctionPointer (
871+ api_ . RegisterExecutionProviderLibraryWithOptions ,
872+ typeof ( DOrtRegisterExecutionProviderLibraryWithOptions ) ) ;
864873 }
865874
866875 internal class NativeLib
@@ -2780,6 +2789,22 @@ out IntPtr /* OrtSyncStream** */ stream
27802789 byte [ ] /* const char* */ registration_name ,
27812790 byte [ ] /* const ORTCHAR_T* */ path ) ;
27822791
2792+ /// <summary>
2793+ /// Register an execution provider library. The provided options are passed to EP factories after creation.
2794+ /// The library must implement CreateEpFactories and ReleaseEpFactory.
2795+ /// </summary>
2796+ /// <param name="env">Environment to add the EP library to.</param>
2797+ /// <param name="registration_name">Name to register the library under.</param>
2798+ /// <param name="path">Absolute path to the library.</param>
2799+ /// <param name="options">Options passed to OrtEpFactory::SetEnvironmentOptions after creation.</param>
2800+ /// <returns>OrtStatus*</returns>
2801+ [ UnmanagedFunctionPointer ( CallingConvention . Winapi ) ]
2802+ public delegate IntPtr /* OrtStatus* */ DOrtRegisterExecutionProviderLibraryWithOptions (
2803+ IntPtr /* OrtEnv* */ env ,
2804+ byte [ ] /* const char* */ registration_name ,
2805+ byte [ ] /* const ORTCHAR_T* */ path ,
2806+ IntPtr /* const OrtKeyValuePairs* */ options ) ;
2807+
27832808 /// <summary>
27842809 /// Unregister an execution provider library.
27852810 /// </summary>
@@ -2792,6 +2817,7 @@ out IntPtr /* OrtSyncStream** */ stream
27922817 byte [ ] /* const char* */ registration_name ) ;
27932818
27942819 public static DOrtRegisterExecutionProviderLibrary OrtRegisterExecutionProviderLibrary ;
2820+ public static DOrtRegisterExecutionProviderLibraryWithOptions OrtRegisterExecutionProviderLibraryWithOptions ;
27952821 public static DOrtUnregisterExecutionProviderLibrary OrtUnregisterExecutionProviderLibrary ;
27962822
27972823 /// <summary>
0 commit comments