-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -118,13 +118,27 @@ public static extern IntPtr get_user_for_testing( | |
[DllImport(InteropConfig.DLL_NAME, EntryPoint = "shared_app_is_same_instance", CallingConvention = CallingConvention.Cdecl)] | ||
[return: MarshalAs(UnmanagedType.U1)] | ||
public static extern bool is_same_instance(AppHandle lhs, AppHandle rhs, out NativeException ex); | ||
|
||
[DllImport(InteropConfig.DLL_NAME, EntryPoint = "shared_app_get_default_url", CallingConvention = CallingConvention.Cdecl)] | ||
public static extern StringValue get_default_url(out NativeException ex); | ||
|
||
} | ||
Check warning on line 125 in Realm/Realm/Handles/AppHandle.cs GitHub Actions / Test / Weaver (ubuntu-latest, linux-x64)
Check warning on line 125 in Realm/Realm/Handles/AppHandle.cs GitHub Actions / Test / Weaver (ubuntu-latest, linux-x64)
Check warning on line 125 in Realm/Realm/Handles/AppHandle.cs GitHub Actions / Test / Weaver (ubuntu-latest, linux-x64)
Check warning on line 125 in Realm/Realm/Handles/AppHandle.cs GitHub Actions / Test / Weaver (ubuntu-latest, linux-x64)
Check warning on line 125 in Realm/Realm/Handles/AppHandle.cs GitHub Actions / Test / Source Generation
Check warning on line 125 in Realm/Realm/Handles/AppHandle.cs GitHub Actions / Test / Weaver (windows-latest, win-x64)
Check warning on line 125 in Realm/Realm/Handles/AppHandle.cs GitHub Actions / Test / Weaver (windows-latest, win-x64)
Check warning on line 125 in Realm/Realm/Handles/AppHandle.cs GitHub Actions / Test / Weaver (windows-latest, win-x64)
Check warning on line 125 in Realm/Realm/Handles/AppHandle.cs GitHub Actions / Test / Weaver (windows-latest, win-x64)
Check warning on line 125 in Realm/Realm/Handles/AppHandle.cs GitHub Actions / Test / Weaver (macos-latest, osx-x64)
Check warning on line 125 in Realm/Realm/Handles/AppHandle.cs GitHub Actions / Test / Weaver (macos-latest, osx-x64)
Check warning on line 125 in Realm/Realm/Handles/AppHandle.cs GitHub Actions / Test / Weaver (macos-latest, osx-x64)
Check warning on line 125 in Realm/Realm/Handles/AppHandle.cs GitHub Actions / Test / Weaver (macos-latest, osx-x64)
Check warning on line 125 in Realm/Realm/Handles/AppHandle.cs GitHub Actions / Analyze C#
Check warning on line 125 in Realm/Realm/Handles/AppHandle.cs GitHub Actions / Analyze C#
Check warning on line 125 in Realm/Realm/Handles/AppHandle.cs GitHub Actions / Package / NuGet
Check warning on line 125 in Realm/Realm/Handles/AppHandle.cs GitHub Actions / Package / NuGet
Check warning on line 125 in Realm/Realm/Handles/AppHandle.cs GitHub Actions / Test / Code Coverage
|
||
|
||
static AppHandle() | ||
{ | ||
NativeCommon.Initialize(); | ||
} | ||
|
||
public static Uri DefaultBaseUri | ||
{ | ||
get | ||
{ | ||
var value = NativeMethods.get_default_url(out var ex); | ||
ex.ThrowIfNecessary(); | ||
return new(value!); | ||
} | ||
} | ||
|
||
public static void Initialize() | ||
{ | ||
NativeMethods.UserCallback userLogin = HandleUserCallback; | ||
|