Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update realm-core to v11.16.0 #572

Merged
merged 1 commit into from
May 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions lib/src/native/realm_bindings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8484,6 +8484,25 @@ class RealmLibrary {
ffi.Pointer<ffi.Void>,
realm_free_userdata_func_t)>();

/// In case of exception thrown in user code callbacks, this api will allow the sdk to store the user code exception
/// and retrieve a it later via realm_get_last_error.
/// Most importantly the SDK is responsible to handle the memory pointed by usercode_error.
/// @param usercode_error pointer representing whatever object the SDK treats as exception/error.
void realm_register_user_code_callback_error(
ffi.Pointer<ffi.Void> usercode_error,
) {
return _realm_register_user_code_callback_error(
usercode_error,
);
}

late final _realm_register_user_code_callback_errorPtr =
_lookup<ffi.NativeFunction<ffi.Void Function(ffi.Pointer<ffi.Void>)>>(
'realm_register_user_code_callback_error');
late final _realm_register_user_code_callback_error =
_realm_register_user_code_callback_errorPtr
.asFunction<void Function(ffi.Pointer<ffi.Void>)>();

void realm_initializeDartApiDL(
ffi.Pointer<ffi.Void> data,
) {
Expand Down Expand Up @@ -8955,6 +8974,8 @@ class realm_error extends ffi.Struct {

external ffi.Pointer<ffi.Int8> message;

external ffi.Pointer<ffi.Void> usercode_error;

external UnnamedUnion2 kind;
}

Expand Down