diff --git a/packages/realm_dart/lib/src/native/realm_bindings.dart b/packages/realm_dart/lib/src/native/realm_bindings.dart index 111b2e888..84dfe75b8 100644 --- a/packages/realm_dart/lib/src/native/realm_bindings.dart +++ b/packages/realm_dart/lib/src/native/realm_bindings.dart @@ -2614,6 +2614,22 @@ class RealmLibrary { _realm_config_get_schema_versionPtr .asFunction)>(); + /// True if you can open the file without a file_format_upgrade + bool realm_config_needs_file_format_upgrade( + ffi.Pointer arg0, + ) { + return _realm_config_needs_file_format_upgrade( + arg0, + ); + } + + late final _realm_config_needs_file_format_upgradePtr = _lookup< + ffi.NativeFunction)>>( + 'realm_config_needs_file_format_upgrade'); + late final _realm_config_needs_file_format_upgrade = + _realm_config_needs_file_format_upgradePtr + .asFunction)>(); + /// Allocate a new configuration with default options. ffi.Pointer realm_config_new() { return _realm_config_new(); @@ -10176,6 +10192,28 @@ class RealmLibrary { _realm_sync_session_get_connection_statePtr .asFunction)>(); + /// Gets the file ident/salt currently assigned to the realm by sync. Callers should supply a pointer token + /// a realm_salted_file_ident_t for this function to fill out. + void realm_sync_session_get_file_ident( + ffi.Pointer arg0, + ffi.Pointer out, + ) { + return _realm_sync_session_get_file_ident( + arg0, + out, + ); + } + + late final _realm_sync_session_get_file_identPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, + ffi.Pointer)>>( + 'realm_sync_session_get_file_ident'); + late final _realm_sync_session_get_file_ident = + _realm_sync_session_get_file_identPtr.asFunction< + void Function(ffi.Pointer, + ffi.Pointer)>(); + /// Get the filesystem path of the realm file backing this session. ffi.Pointer realm_sync_session_get_file_path( ffi.Pointer arg0, @@ -12688,6 +12726,16 @@ typedef Dartrealm_return_string_func_tFunction = void Function( ffi.Pointer, ffi.Pointer); +final class realm_salted_file_ident extends ffi.Struct { + @ffi.Uint64() + external int ident; + + @ffi.Int64() + external int salt; +} + +typedef realm_salted_file_ident_t = realm_salted_file_ident; + final class realm_scheduler extends ffi.Opaque {} typedef realm_scheduler_can_deliver_notifications_func_t = ffi.Pointer<