diff --git a/README.md b/README.md index 67bbcc6..9dda1d9 100644 --- a/README.md +++ b/README.md @@ -96,17 +96,17 @@ This repo has bindings to the `matrix_sdk` crate in rust SDK, in order to mimic In order to generate these bindings, follow these instructions: - Check out https://github.com/matrix-org/matrix-rust-sdk/tree/kegan/complement-test-fork (TODO: go back to main when `_ffi_matrix_sdk_ffi_rust_future_continuation_callback_set` is defined) -- Get the bindings generator: (TODO: recheck if https://github.com/NordSecurity/uniffi-bindgen-go/pull/26 lands) +- Get the bindings generator: ``` -git clone https://github.com/dignifiedquire/uniffi-bindgen-go.git +git clone https://github.com/NordSecurity/uniffi-bindgen-go.git cd uniffi-bindgen-go -git checkout upgrade-uniffi-25 +git checkout v0.2.0+v0.25.0 git submodule init git submodule update cd .. cargo install uniffi-bindgen-go --path ./uniffi-bindgen-go/bindgen ``` -- Compile the rust SDK: `cargo build -p matrix-sdk-crypto-ffi -p matrix-sdk-ffi`. Check that `target/debug/libmatrix_sdk_ffi.a` exists. +- Compile the rust SDK: `cargo build -p matrix-sdk-ffi`. Check that `target/debug/libmatrix_sdk_ffi.a` exists. - Generate the Go bindings to `./rust`: `uniffi-bindgen-go -l ../matrix-rust-sdk/target/debug/libmatrix_sdk_ffi.a -o ./rust ../matrix-rust-sdk/bindings/matrix-sdk-ffi/src/api.udl` - Patch up the generated code as it's not quite right: * Add `// #cgo LDFLAGS: -lmatrix_sdk_ffi` immediately after `// #include ` at the top of `matrix_sdk_ffi.go`. diff --git a/rust/matrix_sdk_ffi/matrix_sdk_ffi.go b/rust/matrix_sdk_ffi/matrix_sdk_ffi.go index 84245ca..e82784a 100644 --- a/rust/matrix_sdk_ffi/matrix_sdk_ffi.go +++ b/rust/matrix_sdk_ffi/matrix_sdk_ffi.go @@ -1245,15 +1245,6 @@ func uniffiCheckChecksums() { panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_contains_keywords_rules: UniFFI API checksum mismatch") } } - { - checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { - return C.uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_contains_keywords_rules_blocking(uniffiStatus) - }) - if checksum != 49945 { - // If this happens try cleaning and rebuilding your project - panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_contains_keywords_rules_blocking: UniFFI API checksum mismatch") - } - } { checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { return C.uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_get_default_room_notification_mode(uniffiStatus) @@ -1263,15 +1254,6 @@ func uniffiCheckChecksums() { panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_get_default_room_notification_mode: UniFFI API checksum mismatch") } } - { - checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { - return C.uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_get_default_room_notification_mode_blocking(uniffiStatus) - }) - if checksum != 54691 { - // If this happens try cleaning and rebuilding your project - panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_get_default_room_notification_mode_blocking: UniFFI API checksum mismatch") - } - } { checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { return C.uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_get_room_notification_settings(uniffiStatus) @@ -1281,15 +1263,6 @@ func uniffiCheckChecksums() { panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_get_room_notification_settings: UniFFI API checksum mismatch") } } - { - checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { - return C.uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_get_room_notification_settings_blocking(uniffiStatus) - }) - if checksum != 14778 { - // If this happens try cleaning and rebuilding your project - panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_get_room_notification_settings_blocking: UniFFI API checksum mismatch") - } - } { checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { return C.uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_get_rooms_with_user_defined_rules(uniffiStatus) @@ -1299,15 +1272,6 @@ func uniffiCheckChecksums() { panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_get_rooms_with_user_defined_rules: UniFFI API checksum mismatch") } } - { - checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { - return C.uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_get_rooms_with_user_defined_rules_blocking(uniffiStatus) - }) - if checksum != 36007 { - // If this happens try cleaning and rebuilding your project - panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_get_rooms_with_user_defined_rules_blocking: UniFFI API checksum mismatch") - } - } { checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { return C.uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_get_user_defined_room_notification_mode(uniffiStatus) @@ -1317,15 +1281,6 @@ func uniffiCheckChecksums() { panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_get_user_defined_room_notification_mode: UniFFI API checksum mismatch") } } - { - checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { - return C.uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_get_user_defined_room_notification_mode_blocking(uniffiStatus) - }) - if checksum != 54350 { - // If this happens try cleaning and rebuilding your project - panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_get_user_defined_room_notification_mode_blocking: UniFFI API checksum mismatch") - } - } { checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { return C.uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_is_call_enabled(uniffiStatus) @@ -1335,15 +1290,6 @@ func uniffiCheckChecksums() { panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_is_call_enabled: UniFFI API checksum mismatch") } } - { - checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { - return C.uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_is_call_enabled_blocking(uniffiStatus) - }) - if checksum != 63240 { - // If this happens try cleaning and rebuilding your project - panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_is_call_enabled_blocking: UniFFI API checksum mismatch") - } - } { checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { return C.uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_is_room_mention_enabled(uniffiStatus) @@ -1353,15 +1299,6 @@ func uniffiCheckChecksums() { panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_is_room_mention_enabled: UniFFI API checksum mismatch") } } - { - checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { - return C.uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_is_room_mention_enabled_blocking(uniffiStatus) - }) - if checksum != 19453 { - // If this happens try cleaning and rebuilding your project - panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_is_room_mention_enabled_blocking: UniFFI API checksum mismatch") - } - } { checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { return C.uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_is_user_mention_enabled(uniffiStatus) @@ -1371,15 +1308,6 @@ func uniffiCheckChecksums() { panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_is_user_mention_enabled: UniFFI API checksum mismatch") } } - { - checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { - return C.uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_is_user_mention_enabled_blocking(uniffiStatus) - }) - if checksum != 3925 { - // If this happens try cleaning and rebuilding your project - panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_is_user_mention_enabled_blocking: UniFFI API checksum mismatch") - } - } { checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { return C.uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_restore_default_room_notification_mode(uniffiStatus) @@ -1389,15 +1317,6 @@ func uniffiCheckChecksums() { panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_restore_default_room_notification_mode: UniFFI API checksum mismatch") } } - { - checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { - return C.uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_restore_default_room_notification_mode_blocking(uniffiStatus) - }) - if checksum != 52229 { - // If this happens try cleaning and rebuilding your project - panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_restore_default_room_notification_mode_blocking: UniFFI API checksum mismatch") - } - } { checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { return C.uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_set_call_enabled(uniffiStatus) @@ -1407,15 +1326,6 @@ func uniffiCheckChecksums() { panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_set_call_enabled: UniFFI API checksum mismatch") } } - { - checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { - return C.uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_set_call_enabled_blocking(uniffiStatus) - }) - if checksum != 13674 { - // If this happens try cleaning and rebuilding your project - panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_set_call_enabled_blocking: UniFFI API checksum mismatch") - } - } { checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { return C.uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_set_default_room_notification_mode(uniffiStatus) @@ -1425,15 +1335,6 @@ func uniffiCheckChecksums() { panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_set_default_room_notification_mode: UniFFI API checksum mismatch") } } - { - checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { - return C.uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_set_default_room_notification_mode_blocking(uniffiStatus) - }) - if checksum != 45386 { - // If this happens try cleaning and rebuilding your project - panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_set_default_room_notification_mode_blocking: UniFFI API checksum mismatch") - } - } { checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { return C.uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_set_delegate(uniffiStatus) @@ -1452,15 +1353,6 @@ func uniffiCheckChecksums() { panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_set_room_mention_enabled: UniFFI API checksum mismatch") } } - { - checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { - return C.uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_set_room_mention_enabled_blocking(uniffiStatus) - }) - if checksum != 49766 { - // If this happens try cleaning and rebuilding your project - panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_set_room_mention_enabled_blocking: UniFFI API checksum mismatch") - } - } { checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { return C.uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_set_room_notification_mode(uniffiStatus) @@ -1470,15 +1362,6 @@ func uniffiCheckChecksums() { panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_set_room_notification_mode: UniFFI API checksum mismatch") } } - { - checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { - return C.uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_set_room_notification_mode_blocking(uniffiStatus) - }) - if checksum != 30630 { - // If this happens try cleaning and rebuilding your project - panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_set_room_notification_mode_blocking: UniFFI API checksum mismatch") - } - } { checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { return C.uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_set_user_mention_enabled(uniffiStatus) @@ -1488,15 +1371,6 @@ func uniffiCheckChecksums() { panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_set_user_mention_enabled: UniFFI API checksum mismatch") } } - { - checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { - return C.uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_set_user_mention_enabled_blocking(uniffiStatus) - }) - if checksum != 55113 { - // If this happens try cleaning and rebuilding your project - panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_set_user_mention_enabled_blocking: UniFFI API checksum mismatch") - } - } { checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { return C.uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_unmute_room(uniffiStatus) @@ -1506,15 +1380,6 @@ func uniffiCheckChecksums() { panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_unmute_room: UniFFI API checksum mismatch") } } - { - checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { - return C.uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_unmute_room_blocking(uniffiStatus) - }) - if checksum != 21159 { - // If this happens try cleaning and rebuilding your project - panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_unmute_room_blocking: UniFFI API checksum mismatch") - } - } { checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { return C.uniffi_matrix_sdk_ffi_checksum_method_oidcauthenticationdata_login_url(uniffiStatus) @@ -1535,20 +1400,20 @@ func uniffiCheckChecksums() { } { checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { - return C.uniffi_matrix_sdk_ffi_checksum_method_room_add_timeline_listener(uniffiStatus) + return C.uniffi_matrix_sdk_ffi_checksum_method_room_active_room_call_participants(uniffiStatus) }) - if checksum != 43137 { + if checksum != 5256 { // If this happens try cleaning and rebuilding your project - panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_room_add_timeline_listener: UniFFI API checksum mismatch") + panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_room_active_room_call_participants: UniFFI API checksum mismatch") } } { checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { - return C.uniffi_matrix_sdk_ffi_checksum_method_room_add_timeline_listener_blocking(uniffiStatus) + return C.uniffi_matrix_sdk_ffi_checksum_method_room_add_timeline_listener(uniffiStatus) }) - if checksum != 12689 { + if checksum != 43137 { // If this happens try cleaning and rebuilding your project - panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_room_add_timeline_listener_blocking: UniFFI API checksum mismatch") + panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_room_add_timeline_listener: UniFFI API checksum mismatch") } } { @@ -1578,15 +1443,6 @@ func uniffiCheckChecksums() { panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_room_can_user_ban: UniFFI API checksum mismatch") } } - { - checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { - return C.uniffi_matrix_sdk_ffi_checksum_method_room_can_user_ban_blocking(uniffiStatus) - }) - if checksum != 9553 { - // If this happens try cleaning and rebuilding your project - panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_room_can_user_ban_blocking: UniFFI API checksum mismatch") - } - } { checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { return C.uniffi_matrix_sdk_ffi_checksum_method_room_can_user_invite(uniffiStatus) @@ -1596,15 +1452,6 @@ func uniffiCheckChecksums() { panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_room_can_user_invite: UniFFI API checksum mismatch") } } - { - checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { - return C.uniffi_matrix_sdk_ffi_checksum_method_room_can_user_invite_blocking(uniffiStatus) - }) - if checksum != 1804 { - // If this happens try cleaning and rebuilding your project - panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_room_can_user_invite_blocking: UniFFI API checksum mismatch") - } - } { checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { return C.uniffi_matrix_sdk_ffi_checksum_method_room_can_user_kick(uniffiStatus) @@ -1614,15 +1461,6 @@ func uniffiCheckChecksums() { panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_room_can_user_kick: UniFFI API checksum mismatch") } } - { - checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { - return C.uniffi_matrix_sdk_ffi_checksum_method_room_can_user_kick_blocking(uniffiStatus) - }) - if checksum != 9352 { - // If this happens try cleaning and rebuilding your project - panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_room_can_user_kick_blocking: UniFFI API checksum mismatch") - } - } { checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { return C.uniffi_matrix_sdk_ffi_checksum_method_room_can_user_redact(uniffiStatus) @@ -1632,15 +1470,6 @@ func uniffiCheckChecksums() { panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_room_can_user_redact: UniFFI API checksum mismatch") } } - { - checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { - return C.uniffi_matrix_sdk_ffi_checksum_method_room_can_user_redact_blocking(uniffiStatus) - }) - if checksum != 17668 { - // If this happens try cleaning and rebuilding your project - panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_room_can_user_redact_blocking: UniFFI API checksum mismatch") - } - } { checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { return C.uniffi_matrix_sdk_ffi_checksum_method_room_can_user_send_message(uniffiStatus) @@ -1650,15 +1479,6 @@ func uniffiCheckChecksums() { panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_room_can_user_send_message: UniFFI API checksum mismatch") } } - { - checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { - return C.uniffi_matrix_sdk_ffi_checksum_method_room_can_user_send_message_blocking(uniffiStatus) - }) - if checksum != 45751 { - // If this happens try cleaning and rebuilding your project - panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_room_can_user_send_message_blocking: UniFFI API checksum mismatch") - } - } { checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { return C.uniffi_matrix_sdk_ffi_checksum_method_room_can_user_send_state(uniffiStatus) @@ -1668,15 +1488,6 @@ func uniffiCheckChecksums() { panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_room_can_user_send_state: UniFFI API checksum mismatch") } } - { - checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { - return C.uniffi_matrix_sdk_ffi_checksum_method_room_can_user_send_state_blocking(uniffiStatus) - }) - if checksum != 42484 { - // If this happens try cleaning and rebuilding your project - panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_room_can_user_send_state_blocking: UniFFI API checksum mismatch") - } - } { checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { return C.uniffi_matrix_sdk_ffi_checksum_method_room_can_user_trigger_room_notification(uniffiStatus) @@ -1686,15 +1497,6 @@ func uniffiCheckChecksums() { panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_room_can_user_trigger_room_notification: UniFFI API checksum mismatch") } } - { - checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { - return C.uniffi_matrix_sdk_ffi_checksum_method_room_can_user_trigger_room_notification_blocking(uniffiStatus) - }) - if checksum != 25135 { - // If this happens try cleaning and rebuilding your project - panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_room_can_user_trigger_room_notification_blocking: UniFFI API checksum mismatch") - } - } { checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { return C.uniffi_matrix_sdk_ffi_checksum_method_room_cancel_send(uniffiStatus) @@ -1767,15 +1569,6 @@ func uniffiCheckChecksums() { panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_room_fetch_members: UniFFI API checksum mismatch") } } - { - checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { - return C.uniffi_matrix_sdk_ffi_checksum_method_room_fetch_members_blocking(uniffiStatus) - }) - if checksum != 58127 { - // If this happens try cleaning and rebuilding your project - panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_room_fetch_members_blocking: UniFFI API checksum mismatch") - } - } { checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { return C.uniffi_matrix_sdk_ffi_checksum_method_room_get_event_timeline_item_by_event_id(uniffiStatus) @@ -1794,6 +1587,15 @@ func uniffiCheckChecksums() { panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_room_get_timeline_event_content_by_event_id: UniFFI API checksum mismatch") } } + { + checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { + return C.uniffi_matrix_sdk_ffi_checksum_method_room_has_active_room_call(uniffiStatus) + }) + if checksum != 59850 { + // If this happens try cleaning and rebuilding your project + panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_room_has_active_room_call: UniFFI API checksum mismatch") + } + } { checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { return C.uniffi_matrix_sdk_ffi_checksum_method_room_id(uniffiStatus) @@ -1929,15 +1731,6 @@ func uniffiCheckChecksums() { panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_room_member_avatar_url: UniFFI API checksum mismatch") } } - { - checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { - return C.uniffi_matrix_sdk_ffi_checksum_method_room_member_blocking(uniffiStatus) - }) - if checksum != 16632 { - // If this happens try cleaning and rebuilding your project - panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_room_member_blocking: UniFFI API checksum mismatch") - } - } { checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { return C.uniffi_matrix_sdk_ffi_checksum_method_room_member_display_name(uniffiStatus) @@ -1956,15 +1749,6 @@ func uniffiCheckChecksums() { panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_room_members: UniFFI API checksum mismatch") } } - { - checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { - return C.uniffi_matrix_sdk_ffi_checksum_method_room_members_blocking(uniffiStatus) - }) - if checksum != 30072 { - // If this happens try cleaning and rebuilding your project - panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_room_members_blocking: UniFFI API checksum mismatch") - } - } { checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { return C.uniffi_matrix_sdk_ffi_checksum_method_room_membership(uniffiStatus) @@ -2064,15 +1848,6 @@ func uniffiCheckChecksums() { panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_room_room_info: UniFFI API checksum mismatch") } } - { - checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { - return C.uniffi_matrix_sdk_ffi_checksum_method_room_room_info_blocking(uniffiStatus) - }) - if checksum != 23031 { - // If this happens try cleaning and rebuilding your project - panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_room_room_info_blocking: UniFFI API checksum mismatch") - } - } { checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { return C.uniffi_matrix_sdk_ffi_checksum_method_room_send(uniffiStatus) @@ -2379,15 +2154,6 @@ func uniffiCheckChecksums() { panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_room_info: UniFFI API checksum mismatch") } } - { - checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { - return C.uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_room_info_blocking(uniffiStatus) - }) - if checksum != 48948 { - // If this happens try cleaning and rebuilding your project - panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_room_info_blocking: UniFFI API checksum mismatch") - } - } { checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { return C.uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_subscribe(uniffiStatus) @@ -2667,15 +2433,6 @@ func uniffiCheckChecksums() { panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_sendattachmentjoinhandle_join: UniFFI API checksum mismatch") } } - { - checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { - return C.uniffi_matrix_sdk_ffi_checksum_method_sendattachmentjoinhandle_join_blocking(uniffiStatus) - }) - if checksum != 42780 { - // If this happens try cleaning and rebuilding your project - panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_sendattachmentjoinhandle_join_blocking: UniFFI API checksum mismatch") - } - } { checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { return C.uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_approve_verification(uniffiStatus) @@ -2685,15 +2442,6 @@ func uniffiCheckChecksums() { panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_approve_verification: UniFFI API checksum mismatch") } } - { - checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { - return C.uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_approve_verification_blocking(uniffiStatus) - }) - if checksum != 36353 { - // If this happens try cleaning and rebuilding your project - panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_approve_verification_blocking: UniFFI API checksum mismatch") - } - } { checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { return C.uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_cancel_verification(uniffiStatus) @@ -2703,15 +2451,6 @@ func uniffiCheckChecksums() { panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_cancel_verification: UniFFI API checksum mismatch") } } - { - checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { - return C.uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_cancel_verification_blocking(uniffiStatus) - }) - if checksum != 15930 { - // If this happens try cleaning and rebuilding your project - panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_cancel_verification_blocking: UniFFI API checksum mismatch") - } - } { checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { return C.uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_decline_verification(uniffiStatus) @@ -2721,20 +2460,11 @@ func uniffiCheckChecksums() { panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_decline_verification: UniFFI API checksum mismatch") } } - { - checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { - return C.uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_decline_verification_blocking(uniffiStatus) - }) - if checksum != 58069 { - // If this happens try cleaning and rebuilding your project - panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_decline_verification_blocking: UniFFI API checksum mismatch") - } - } { checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { return C.uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_is_verified(uniffiStatus) }) - if checksum != 949 { + if checksum != 3866 { // If this happens try cleaning and rebuilding your project panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_is_verified: UniFFI API checksum mismatch") } @@ -2748,15 +2478,6 @@ func uniffiCheckChecksums() { panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_request_verification: UniFFI API checksum mismatch") } } - { - checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { - return C.uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_request_verification_blocking(uniffiStatus) - }) - if checksum != 48371 { - // If this happens try cleaning and rebuilding your project - panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_request_verification_blocking: UniFFI API checksum mismatch") - } - } { checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { return C.uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_set_delegate(uniffiStatus) @@ -2775,15 +2496,6 @@ func uniffiCheckChecksums() { panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_start_sas_verification: UniFFI API checksum mismatch") } } - { - checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { - return C.uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_start_sas_verification_blocking(uniffiStatus) - }) - if checksum != 27679 { - // If this happens try cleaning and rebuilding your project - panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_start_sas_verification_blocking: UniFFI API checksum mismatch") - } - } { checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { return C.uniffi_matrix_sdk_ffi_checksum_method_sessionverificationemoji_description(uniffiStatus) @@ -2847,15 +2559,6 @@ func uniffiCheckChecksums() { panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_syncservice_start: UniFFI API checksum mismatch") } } - { - checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { - return C.uniffi_matrix_sdk_ffi_checksum_method_syncservice_start_blocking(uniffiStatus) - }) - if checksum != 46746 { - // If this happens try cleaning and rebuilding your project - panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_syncservice_start_blocking: UniFFI API checksum mismatch") - } - } { checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { return C.uniffi_matrix_sdk_ffi_checksum_method_syncservice_state(uniffiStatus) @@ -2874,15 +2577,6 @@ func uniffiCheckChecksums() { panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_syncservice_stop: UniFFI API checksum mismatch") } } - { - checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { - return C.uniffi_matrix_sdk_ffi_checksum_method_syncservice_stop_blocking(uniffiStatus) - }) - if checksum != 5460 { - // If this happens try cleaning and rebuilding your project - panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_syncservice_stop_blocking: UniFFI API checksum mismatch") - } - } { checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { return C.uniffi_matrix_sdk_ffi_checksum_method_syncservicebuilder_finish(uniffiStatus) @@ -2892,15 +2586,6 @@ func uniffiCheckChecksums() { panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_syncservicebuilder_finish: UniFFI API checksum mismatch") } } - { - checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { - return C.uniffi_matrix_sdk_ffi_checksum_method_syncservicebuilder_finish_blocking(uniffiStatus) - }) - if checksum != 8552 { - // If this happens try cleaning and rebuilding your project - panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_syncservicebuilder_finish_blocking: UniFFI API checksum mismatch") - } - } { checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { return C.uniffi_matrix_sdk_ffi_checksum_method_syncservicebuilder_with_cross_process_lock(uniffiStatus) @@ -3373,7 +3058,7 @@ func uniffiCheckChecksums() { checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t { return C.uniffi_matrix_sdk_ffi_checksum_method_widgetcapabilitiesprovider_acquire_capabilities(uniffiStatus) }) - if checksum != 16636 { + if checksum != 47314 { // If this happens try cleaning and rebuilding your project panic("matrix_sdk_ffi: uniffi_matrix_sdk_ffi_checksum_method_widgetcapabilitiesprovider_acquire_capabilities: UniFFI API checksum mismatch") } @@ -5200,15 +4885,6 @@ func (_self *NotificationSettings) ContainsKeywordsRules() bool { C.ffi_matrix_sdk_ffi_rust_future_free_i8(unsafe.Pointer(rustFuture), status) }) } -func (_self *NotificationSettings) ContainsKeywordsRulesBlocking() bool { - _pointer := _self.ffiObject.incrementPointer("*NotificationSettings") - defer _self.ffiObject.decrementPointer() - return FfiConverterBoolINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) C.int8_t { - return C.uniffi_matrix_sdk_ffi_fn_method_notificationsettings_contains_keywords_rules_blocking( - _pointer, _uniffiStatus) - })) -} - func (_self *NotificationSettings) GetDefaultRoomNotificationMode(isEncrypted bool, isOneToOne bool) RoomNotificationMode { _pointer := _self.ffiObject.incrementPointer("*NotificationSettings") defer _self.ffiObject.decrementPointer() @@ -5232,15 +4908,6 @@ func (_self *NotificationSettings) GetDefaultRoomNotificationMode(isEncrypted bo C.ffi_matrix_sdk_ffi_rust_future_free_rust_buffer(unsafe.Pointer(rustFuture), status) }) } -func (_self *NotificationSettings) GetDefaultRoomNotificationModeBlocking(isEncrypted bool, isOneToOne bool) RoomNotificationMode { - _pointer := _self.ffiObject.incrementPointer("*NotificationSettings") - defer _self.ffiObject.decrementPointer() - return FfiConverterTypeRoomNotificationModeINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) RustBufferI { - return C.uniffi_matrix_sdk_ffi_fn_method_notificationsettings_get_default_room_notification_mode_blocking( - _pointer, FfiConverterBoolINSTANCE.Lower(isEncrypted), FfiConverterBoolINSTANCE.Lower(isOneToOne), _uniffiStatus) - })) -} - func (_self *NotificationSettings) GetRoomNotificationSettings(roomId string, isEncrypted bool, isOneToOne bool) (RoomNotificationSettings, error) { _pointer := _self.ffiObject.incrementPointer("*NotificationSettings") defer _self.ffiObject.decrementPointer() @@ -5265,21 +4932,6 @@ func (_self *NotificationSettings) GetRoomNotificationSettings(roomId string, is C.ffi_matrix_sdk_ffi_rust_future_free_rust_buffer(unsafe.Pointer(rustFuture), status) }) } -func (_self *NotificationSettings) GetRoomNotificationSettingsBlocking(roomId string, isEncrypted bool, isOneToOne bool) (RoomNotificationSettings, error) { - _pointer := _self.ffiObject.incrementPointer("*NotificationSettings") - defer _self.ffiObject.decrementPointer() - _uniffiRV, _uniffiErr := rustCallWithError(FfiConverterTypeNotificationSettingsError{}, func(_uniffiStatus *C.RustCallStatus) RustBufferI { - return C.uniffi_matrix_sdk_ffi_fn_method_notificationsettings_get_room_notification_settings_blocking( - _pointer, FfiConverterStringINSTANCE.Lower(roomId), FfiConverterBoolINSTANCE.Lower(isEncrypted), FfiConverterBoolINSTANCE.Lower(isOneToOne), _uniffiStatus) - }) - if _uniffiErr != nil { - var _uniffiDefaultValue RoomNotificationSettings - return _uniffiDefaultValue, _uniffiErr - } else { - return FfiConverterTypeRoomNotificationSettingsINSTANCE.Lift(_uniffiRV), _uniffiErr - } -} - func (_self *NotificationSettings) GetRoomsWithUserDefinedRules(enabled *bool) []string { _pointer := _self.ffiObject.incrementPointer("*NotificationSettings") defer _self.ffiObject.decrementPointer() @@ -5303,15 +4955,6 @@ func (_self *NotificationSettings) GetRoomsWithUserDefinedRules(enabled *bool) [ C.ffi_matrix_sdk_ffi_rust_future_free_rust_buffer(unsafe.Pointer(rustFuture), status) }) } -func (_self *NotificationSettings) GetRoomsWithUserDefinedRulesBlocking(enabled *bool) []string { - _pointer := _self.ffiObject.incrementPointer("*NotificationSettings") - defer _self.ffiObject.decrementPointer() - return FfiConverterSequenceStringINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) RustBufferI { - return C.uniffi_matrix_sdk_ffi_fn_method_notificationsettings_get_rooms_with_user_defined_rules_blocking( - _pointer, FfiConverterOptionalBoolINSTANCE.Lower(enabled), _uniffiStatus) - })) -} - func (_self *NotificationSettings) GetUserDefinedRoomNotificationMode(roomId string) (*RoomNotificationMode, error) { _pointer := _self.ffiObject.incrementPointer("*NotificationSettings") defer _self.ffiObject.decrementPointer() @@ -5336,21 +4979,6 @@ func (_self *NotificationSettings) GetUserDefinedRoomNotificationMode(roomId str C.ffi_matrix_sdk_ffi_rust_future_free_rust_buffer(unsafe.Pointer(rustFuture), status) }) } -func (_self *NotificationSettings) GetUserDefinedRoomNotificationModeBlocking(roomId string) (*RoomNotificationMode, error) { - _pointer := _self.ffiObject.incrementPointer("*NotificationSettings") - defer _self.ffiObject.decrementPointer() - _uniffiRV, _uniffiErr := rustCallWithError(FfiConverterTypeNotificationSettingsError{}, func(_uniffiStatus *C.RustCallStatus) RustBufferI { - return C.uniffi_matrix_sdk_ffi_fn_method_notificationsettings_get_user_defined_room_notification_mode_blocking( - _pointer, FfiConverterStringINSTANCE.Lower(roomId), _uniffiStatus) - }) - if _uniffiErr != nil { - var _uniffiDefaultValue *RoomNotificationMode - return _uniffiDefaultValue, _uniffiErr - } else { - return FfiConverterOptionalTypeRoomNotificationModeINSTANCE.Lift(_uniffiRV), _uniffiErr - } -} - func (_self *NotificationSettings) IsCallEnabled() (bool, error) { _pointer := _self.ffiObject.incrementPointer("*NotificationSettings") defer _self.ffiObject.decrementPointer() @@ -5375,21 +5003,6 @@ func (_self *NotificationSettings) IsCallEnabled() (bool, error) { C.ffi_matrix_sdk_ffi_rust_future_free_i8(unsafe.Pointer(rustFuture), status) }) } -func (_self *NotificationSettings) IsCallEnabledBlocking() (bool, error) { - _pointer := _self.ffiObject.incrementPointer("*NotificationSettings") - defer _self.ffiObject.decrementPointer() - _uniffiRV, _uniffiErr := rustCallWithError(FfiConverterTypeNotificationSettingsError{}, func(_uniffiStatus *C.RustCallStatus) C.int8_t { - return C.uniffi_matrix_sdk_ffi_fn_method_notificationsettings_is_call_enabled_blocking( - _pointer, _uniffiStatus) - }) - if _uniffiErr != nil { - var _uniffiDefaultValue bool - return _uniffiDefaultValue, _uniffiErr - } else { - return FfiConverterBoolINSTANCE.Lift(_uniffiRV), _uniffiErr - } -} - func (_self *NotificationSettings) IsRoomMentionEnabled() (bool, error) { _pointer := _self.ffiObject.incrementPointer("*NotificationSettings") defer _self.ffiObject.decrementPointer() @@ -5414,21 +5027,6 @@ func (_self *NotificationSettings) IsRoomMentionEnabled() (bool, error) { C.ffi_matrix_sdk_ffi_rust_future_free_i8(unsafe.Pointer(rustFuture), status) }) } -func (_self *NotificationSettings) IsRoomMentionEnabledBlocking() (bool, error) { - _pointer := _self.ffiObject.incrementPointer("*NotificationSettings") - defer _self.ffiObject.decrementPointer() - _uniffiRV, _uniffiErr := rustCallWithError(FfiConverterTypeNotificationSettingsError{}, func(_uniffiStatus *C.RustCallStatus) C.int8_t { - return C.uniffi_matrix_sdk_ffi_fn_method_notificationsettings_is_room_mention_enabled_blocking( - _pointer, _uniffiStatus) - }) - if _uniffiErr != nil { - var _uniffiDefaultValue bool - return _uniffiDefaultValue, _uniffiErr - } else { - return FfiConverterBoolINSTANCE.Lift(_uniffiRV), _uniffiErr - } -} - func (_self *NotificationSettings) IsUserMentionEnabled() (bool, error) { _pointer := _self.ffiObject.incrementPointer("*NotificationSettings") defer _self.ffiObject.decrementPointer() @@ -5453,21 +5051,6 @@ func (_self *NotificationSettings) IsUserMentionEnabled() (bool, error) { C.ffi_matrix_sdk_ffi_rust_future_free_i8(unsafe.Pointer(rustFuture), status) }) } -func (_self *NotificationSettings) IsUserMentionEnabledBlocking() (bool, error) { - _pointer := _self.ffiObject.incrementPointer("*NotificationSettings") - defer _self.ffiObject.decrementPointer() - _uniffiRV, _uniffiErr := rustCallWithError(FfiConverterTypeNotificationSettingsError{}, func(_uniffiStatus *C.RustCallStatus) C.int8_t { - return C.uniffi_matrix_sdk_ffi_fn_method_notificationsettings_is_user_mention_enabled_blocking( - _pointer, _uniffiStatus) - }) - if _uniffiErr != nil { - var _uniffiDefaultValue bool - return _uniffiDefaultValue, _uniffiErr - } else { - return FfiConverterBoolINSTANCE.Lift(_uniffiRV), _uniffiErr - } -} - func (_self *NotificationSettings) RestoreDefaultRoomNotificationMode(roomId string) error { _pointer := _self.ffiObject.incrementPointer("*NotificationSettings") defer _self.ffiObject.decrementPointer() @@ -5492,17 +5075,6 @@ func (_self *NotificationSettings) RestoreDefaultRoomNotificationMode(roomId str C.ffi_matrix_sdk_ffi_rust_future_free_void(unsafe.Pointer(rustFuture), status) }) } -func (_self *NotificationSettings) RestoreDefaultRoomNotificationModeBlocking(roomId string) error { - _pointer := _self.ffiObject.incrementPointer("*NotificationSettings") - defer _self.ffiObject.decrementPointer() - _, _uniffiErr := rustCallWithError(FfiConverterTypeNotificationSettingsError{}, func(_uniffiStatus *C.RustCallStatus) bool { - C.uniffi_matrix_sdk_ffi_fn_method_notificationsettings_restore_default_room_notification_mode_blocking( - _pointer, FfiConverterStringINSTANCE.Lower(roomId), _uniffiStatus) - return false - }) - return _uniffiErr -} - func (_self *NotificationSettings) SetCallEnabled(enabled bool) error { _pointer := _self.ffiObject.incrementPointer("*NotificationSettings") defer _self.ffiObject.decrementPointer() @@ -5527,17 +5099,6 @@ func (_self *NotificationSettings) SetCallEnabled(enabled bool) error { C.ffi_matrix_sdk_ffi_rust_future_free_void(unsafe.Pointer(rustFuture), status) }) } -func (_self *NotificationSettings) SetCallEnabledBlocking(enabled bool) error { - _pointer := _self.ffiObject.incrementPointer("*NotificationSettings") - defer _self.ffiObject.decrementPointer() - _, _uniffiErr := rustCallWithError(FfiConverterTypeNotificationSettingsError{}, func(_uniffiStatus *C.RustCallStatus) bool { - C.uniffi_matrix_sdk_ffi_fn_method_notificationsettings_set_call_enabled_blocking( - _pointer, FfiConverterBoolINSTANCE.Lower(enabled), _uniffiStatus) - return false - }) - return _uniffiErr -} - func (_self *NotificationSettings) SetDefaultRoomNotificationMode(isEncrypted bool, isOneToOne bool, mode RoomNotificationMode) error { _pointer := _self.ffiObject.incrementPointer("*NotificationSettings") defer _self.ffiObject.decrementPointer() @@ -5562,17 +5123,6 @@ func (_self *NotificationSettings) SetDefaultRoomNotificationMode(isEncrypted bo C.ffi_matrix_sdk_ffi_rust_future_free_void(unsafe.Pointer(rustFuture), status) }) } -func (_self *NotificationSettings) SetDefaultRoomNotificationModeBlocking(isEncrypted bool, isOneToOne bool, mode RoomNotificationMode) error { - _pointer := _self.ffiObject.incrementPointer("*NotificationSettings") - defer _self.ffiObject.decrementPointer() - _, _uniffiErr := rustCallWithError(FfiConverterTypeNotificationSettingsError{}, func(_uniffiStatus *C.RustCallStatus) bool { - C.uniffi_matrix_sdk_ffi_fn_method_notificationsettings_set_default_room_notification_mode_blocking( - _pointer, FfiConverterBoolINSTANCE.Lower(isEncrypted), FfiConverterBoolINSTANCE.Lower(isOneToOne), FfiConverterTypeRoomNotificationModeINSTANCE.Lower(mode), _uniffiStatus) - return false - }) - return _uniffiErr -} - func (_self *NotificationSettings) SetDelegate(delegate *NotificationSettingsDelegate) { _pointer := _self.ffiObject.incrementPointer("*NotificationSettings") defer _self.ffiObject.decrementPointer() @@ -5607,17 +5157,6 @@ func (_self *NotificationSettings) SetRoomMentionEnabled(enabled bool) error { C.ffi_matrix_sdk_ffi_rust_future_free_void(unsafe.Pointer(rustFuture), status) }) } -func (_self *NotificationSettings) SetRoomMentionEnabledBlocking(enabled bool) error { - _pointer := _self.ffiObject.incrementPointer("*NotificationSettings") - defer _self.ffiObject.decrementPointer() - _, _uniffiErr := rustCallWithError(FfiConverterTypeNotificationSettingsError{}, func(_uniffiStatus *C.RustCallStatus) bool { - C.uniffi_matrix_sdk_ffi_fn_method_notificationsettings_set_room_mention_enabled_blocking( - _pointer, FfiConverterBoolINSTANCE.Lower(enabled), _uniffiStatus) - return false - }) - return _uniffiErr -} - func (_self *NotificationSettings) SetRoomNotificationMode(roomId string, mode RoomNotificationMode) error { _pointer := _self.ffiObject.incrementPointer("*NotificationSettings") defer _self.ffiObject.decrementPointer() @@ -5642,17 +5181,6 @@ func (_self *NotificationSettings) SetRoomNotificationMode(roomId string, mode R C.ffi_matrix_sdk_ffi_rust_future_free_void(unsafe.Pointer(rustFuture), status) }) } -func (_self *NotificationSettings) SetRoomNotificationModeBlocking(roomId string, mode RoomNotificationMode) error { - _pointer := _self.ffiObject.incrementPointer("*NotificationSettings") - defer _self.ffiObject.decrementPointer() - _, _uniffiErr := rustCallWithError(FfiConverterTypeNotificationSettingsError{}, func(_uniffiStatus *C.RustCallStatus) bool { - C.uniffi_matrix_sdk_ffi_fn_method_notificationsettings_set_room_notification_mode_blocking( - _pointer, FfiConverterStringINSTANCE.Lower(roomId), FfiConverterTypeRoomNotificationModeINSTANCE.Lower(mode), _uniffiStatus) - return false - }) - return _uniffiErr -} - func (_self *NotificationSettings) SetUserMentionEnabled(enabled bool) error { _pointer := _self.ffiObject.incrementPointer("*NotificationSettings") defer _self.ffiObject.decrementPointer() @@ -5677,17 +5205,6 @@ func (_self *NotificationSettings) SetUserMentionEnabled(enabled bool) error { C.ffi_matrix_sdk_ffi_rust_future_free_void(unsafe.Pointer(rustFuture), status) }) } -func (_self *NotificationSettings) SetUserMentionEnabledBlocking(enabled bool) error { - _pointer := _self.ffiObject.incrementPointer("*NotificationSettings") - defer _self.ffiObject.decrementPointer() - _, _uniffiErr := rustCallWithError(FfiConverterTypeNotificationSettingsError{}, func(_uniffiStatus *C.RustCallStatus) bool { - C.uniffi_matrix_sdk_ffi_fn_method_notificationsettings_set_user_mention_enabled_blocking( - _pointer, FfiConverterBoolINSTANCE.Lower(enabled), _uniffiStatus) - return false - }) - return _uniffiErr -} - func (_self *NotificationSettings) UnmuteRoom(roomId string, isEncrypted bool, isOneToOne bool) error { _pointer := _self.ffiObject.incrementPointer("*NotificationSettings") defer _self.ffiObject.decrementPointer() @@ -5712,16 +5229,6 @@ func (_self *NotificationSettings) UnmuteRoom(roomId string, isEncrypted bool, i C.ffi_matrix_sdk_ffi_rust_future_free_void(unsafe.Pointer(rustFuture), status) }) } -func (_self *NotificationSettings) UnmuteRoomBlocking(roomId string, isEncrypted bool, isOneToOne bool) error { - _pointer := _self.ffiObject.incrementPointer("*NotificationSettings") - defer _self.ffiObject.decrementPointer() - _, _uniffiErr := rustCallWithError(FfiConverterTypeNotificationSettingsError{}, func(_uniffiStatus *C.RustCallStatus) bool { - C.uniffi_matrix_sdk_ffi_fn_method_notificationsettings_unmute_room_blocking( - _pointer, FfiConverterStringINSTANCE.Lower(roomId), FfiConverterBoolINSTANCE.Lower(isEncrypted), FfiConverterBoolINSTANCE.Lower(isOneToOne), _uniffiStatus) - return false - }) - return _uniffiErr -} func (object *NotificationSettings) Destroy() { runtime.SetFinalizer(object, nil) @@ -5837,6 +5344,15 @@ func (_self *Room) ActiveMembersCount() uint64 { })) } +func (_self *Room) ActiveRoomCallParticipants() []string { + _pointer := _self.ffiObject.incrementPointer("*Room") + defer _self.ffiObject.decrementPointer() + return FfiConverterSequenceStringINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) RustBufferI { + return C.uniffi_matrix_sdk_ffi_fn_method_room_active_room_call_participants( + _pointer, _uniffiStatus) + })) +} + func (_self *Room) AddTimelineListener(listener TimelineListener) RoomTimelineListenerResult { _pointer := _self.ffiObject.incrementPointer("*Room") defer _self.ffiObject.decrementPointer() @@ -5860,15 +5376,6 @@ func (_self *Room) AddTimelineListener(listener TimelineListener) RoomTimelineLi C.ffi_matrix_sdk_ffi_rust_future_free_rust_buffer(unsafe.Pointer(rustFuture), status) }) } -func (_self *Room) AddTimelineListenerBlocking(listener TimelineListener) RoomTimelineListenerResult { - _pointer := _self.ffiObject.incrementPointer("*Room") - defer _self.ffiObject.decrementPointer() - return FfiConverterTypeRoomTimelineListenerResultINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) RustBufferI { - return C.uniffi_matrix_sdk_ffi_fn_method_room_add_timeline_listener_blocking( - _pointer, FfiConverterCallbackInterfaceTimelineListenerINSTANCE.Lower(listener), _uniffiStatus) - })) -} - func (_self *Room) AlternativeAliases() []string { _pointer := _self.ffiObject.incrementPointer("*Room") defer _self.ffiObject.decrementPointer() @@ -5911,21 +5418,6 @@ func (_self *Room) CanUserBan(userId string) (bool, error) { C.ffi_matrix_sdk_ffi_rust_future_free_i8(unsafe.Pointer(rustFuture), status) }) } -func (_self *Room) CanUserBanBlocking(userId string) (bool, error) { - _pointer := _self.ffiObject.incrementPointer("*Room") - defer _self.ffiObject.decrementPointer() - _uniffiRV, _uniffiErr := rustCallWithError(FfiConverterTypeClientError{}, func(_uniffiStatus *C.RustCallStatus) C.int8_t { - return C.uniffi_matrix_sdk_ffi_fn_method_room_can_user_ban_blocking( - _pointer, FfiConverterStringINSTANCE.Lower(userId), _uniffiStatus) - }) - if _uniffiErr != nil { - var _uniffiDefaultValue bool - return _uniffiDefaultValue, _uniffiErr - } else { - return FfiConverterBoolINSTANCE.Lift(_uniffiRV), _uniffiErr - } -} - func (_self *Room) CanUserInvite(userId string) (bool, error) { _pointer := _self.ffiObject.incrementPointer("*Room") defer _self.ffiObject.decrementPointer() @@ -5950,21 +5442,6 @@ func (_self *Room) CanUserInvite(userId string) (bool, error) { C.ffi_matrix_sdk_ffi_rust_future_free_i8(unsafe.Pointer(rustFuture), status) }) } -func (_self *Room) CanUserInviteBlocking(userId string) (bool, error) { - _pointer := _self.ffiObject.incrementPointer("*Room") - defer _self.ffiObject.decrementPointer() - _uniffiRV, _uniffiErr := rustCallWithError(FfiConverterTypeClientError{}, func(_uniffiStatus *C.RustCallStatus) C.int8_t { - return C.uniffi_matrix_sdk_ffi_fn_method_room_can_user_invite_blocking( - _pointer, FfiConverterStringINSTANCE.Lower(userId), _uniffiStatus) - }) - if _uniffiErr != nil { - var _uniffiDefaultValue bool - return _uniffiDefaultValue, _uniffiErr - } else { - return FfiConverterBoolINSTANCE.Lift(_uniffiRV), _uniffiErr - } -} - func (_self *Room) CanUserKick(userId string) (bool, error) { _pointer := _self.ffiObject.incrementPointer("*Room") defer _self.ffiObject.decrementPointer() @@ -5989,21 +5466,6 @@ func (_self *Room) CanUserKick(userId string) (bool, error) { C.ffi_matrix_sdk_ffi_rust_future_free_i8(unsafe.Pointer(rustFuture), status) }) } -func (_self *Room) CanUserKickBlocking(userId string) (bool, error) { - _pointer := _self.ffiObject.incrementPointer("*Room") - defer _self.ffiObject.decrementPointer() - _uniffiRV, _uniffiErr := rustCallWithError(FfiConverterTypeClientError{}, func(_uniffiStatus *C.RustCallStatus) C.int8_t { - return C.uniffi_matrix_sdk_ffi_fn_method_room_can_user_kick_blocking( - _pointer, FfiConverterStringINSTANCE.Lower(userId), _uniffiStatus) - }) - if _uniffiErr != nil { - var _uniffiDefaultValue bool - return _uniffiDefaultValue, _uniffiErr - } else { - return FfiConverterBoolINSTANCE.Lift(_uniffiRV), _uniffiErr - } -} - func (_self *Room) CanUserRedact(userId string) (bool, error) { _pointer := _self.ffiObject.incrementPointer("*Room") defer _self.ffiObject.decrementPointer() @@ -6028,21 +5490,6 @@ func (_self *Room) CanUserRedact(userId string) (bool, error) { C.ffi_matrix_sdk_ffi_rust_future_free_i8(unsafe.Pointer(rustFuture), status) }) } -func (_self *Room) CanUserRedactBlocking(userId string) (bool, error) { - _pointer := _self.ffiObject.incrementPointer("*Room") - defer _self.ffiObject.decrementPointer() - _uniffiRV, _uniffiErr := rustCallWithError(FfiConverterTypeClientError{}, func(_uniffiStatus *C.RustCallStatus) C.int8_t { - return C.uniffi_matrix_sdk_ffi_fn_method_room_can_user_redact_blocking( - _pointer, FfiConverterStringINSTANCE.Lower(userId), _uniffiStatus) - }) - if _uniffiErr != nil { - var _uniffiDefaultValue bool - return _uniffiDefaultValue, _uniffiErr - } else { - return FfiConverterBoolINSTANCE.Lift(_uniffiRV), _uniffiErr - } -} - func (_self *Room) CanUserSendMessage(userId string, message MessageLikeEventType) (bool, error) { _pointer := _self.ffiObject.incrementPointer("*Room") defer _self.ffiObject.decrementPointer() @@ -6064,24 +5511,9 @@ func (_self *Room) CanUserSendMessage(userId string, message MessageLikeEventTyp }, FfiConverterBoolINSTANCE.Lift, func(rustFuture *C.void, status *C.RustCallStatus) { // freeFunc - C.ffi_matrix_sdk_ffi_rust_future_free_i8(unsafe.Pointer(rustFuture), status) - }) -} -func (_self *Room) CanUserSendMessageBlocking(userId string, message MessageLikeEventType) (bool, error) { - _pointer := _self.ffiObject.incrementPointer("*Room") - defer _self.ffiObject.decrementPointer() - _uniffiRV, _uniffiErr := rustCallWithError(FfiConverterTypeClientError{}, func(_uniffiStatus *C.RustCallStatus) C.int8_t { - return C.uniffi_matrix_sdk_ffi_fn_method_room_can_user_send_message_blocking( - _pointer, FfiConverterStringINSTANCE.Lower(userId), FfiConverterTypeMessageLikeEventTypeINSTANCE.Lower(message), _uniffiStatus) - }) - if _uniffiErr != nil { - var _uniffiDefaultValue bool - return _uniffiDefaultValue, _uniffiErr - } else { - return FfiConverterBoolINSTANCE.Lift(_uniffiRV), _uniffiErr - } + C.ffi_matrix_sdk_ffi_rust_future_free_i8(unsafe.Pointer(rustFuture), status) + }) } - func (_self *Room) CanUserSendState(userId string, stateEvent StateEventType) (bool, error) { _pointer := _self.ffiObject.incrementPointer("*Room") defer _self.ffiObject.decrementPointer() @@ -6106,21 +5538,6 @@ func (_self *Room) CanUserSendState(userId string, stateEvent StateEventType) (b C.ffi_matrix_sdk_ffi_rust_future_free_i8(unsafe.Pointer(rustFuture), status) }) } -func (_self *Room) CanUserSendStateBlocking(userId string, stateEvent StateEventType) (bool, error) { - _pointer := _self.ffiObject.incrementPointer("*Room") - defer _self.ffiObject.decrementPointer() - _uniffiRV, _uniffiErr := rustCallWithError(FfiConverterTypeClientError{}, func(_uniffiStatus *C.RustCallStatus) C.int8_t { - return C.uniffi_matrix_sdk_ffi_fn_method_room_can_user_send_state_blocking( - _pointer, FfiConverterStringINSTANCE.Lower(userId), FfiConverterTypeStateEventTypeINSTANCE.Lower(stateEvent), _uniffiStatus) - }) - if _uniffiErr != nil { - var _uniffiDefaultValue bool - return _uniffiDefaultValue, _uniffiErr - } else { - return FfiConverterBoolINSTANCE.Lift(_uniffiRV), _uniffiErr - } -} - func (_self *Room) CanUserTriggerRoomNotification(userId string) (bool, error) { _pointer := _self.ffiObject.incrementPointer("*Room") defer _self.ffiObject.decrementPointer() @@ -6145,21 +5562,6 @@ func (_self *Room) CanUserTriggerRoomNotification(userId string) (bool, error) { C.ffi_matrix_sdk_ffi_rust_future_free_i8(unsafe.Pointer(rustFuture), status) }) } -func (_self *Room) CanUserTriggerRoomNotificationBlocking(userId string) (bool, error) { - _pointer := _self.ffiObject.incrementPointer("*Room") - defer _self.ffiObject.decrementPointer() - _uniffiRV, _uniffiErr := rustCallWithError(FfiConverterTypeClientError{}, func(_uniffiStatus *C.RustCallStatus) C.int8_t { - return C.uniffi_matrix_sdk_ffi_fn_method_room_can_user_trigger_room_notification_blocking( - _pointer, FfiConverterStringINSTANCE.Lower(userId), _uniffiStatus) - }) - if _uniffiErr != nil { - var _uniffiDefaultValue bool - return _uniffiDefaultValue, _uniffiErr - } else { - return FfiConverterBoolINSTANCE.Lift(_uniffiRV), _uniffiErr - } -} - func (_self *Room) CancelSend(txnId string) { _pointer := _self.ffiObject.incrementPointer("*Room") defer _self.ffiObject.decrementPointer() @@ -6262,17 +5664,6 @@ func (_self *Room) FetchMembers() error { C.ffi_matrix_sdk_ffi_rust_future_free_void(unsafe.Pointer(rustFuture), status) }) } -func (_self *Room) FetchMembersBlocking() error { - _pointer := _self.ffiObject.incrementPointer("*Room") - defer _self.ffiObject.decrementPointer() - _, _uniffiErr := rustCallWithError(FfiConverterTypeClientError{}, func(_uniffiStatus *C.RustCallStatus) bool { - C.uniffi_matrix_sdk_ffi_fn_method_room_fetch_members_blocking( - _pointer, _uniffiStatus) - return false - }) - return _uniffiErr -} - func (_self *Room) GetEventTimelineItemByEventId(eventId string) (*EventTimelineItem, error) { _pointer := _self.ffiObject.incrementPointer("*Room") defer _self.ffiObject.decrementPointer() @@ -6303,6 +5694,15 @@ func (_self *Room) GetTimelineEventContentByEventId(eventId string) (*RoomMessag } } +func (_self *Room) HasActiveRoomCall() bool { + _pointer := _self.ffiObject.incrementPointer("*Room") + defer _self.ffiObject.decrementPointer() + return FfiConverterBoolINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) C.int8_t { + return C.uniffi_matrix_sdk_ffi_fn_method_room_has_active_room_call( + _pointer, _uniffiStatus) + })) +} + func (_self *Room) Id() string { _pointer := _self.ffiObject.incrementPointer("*Room") defer _self.ffiObject.decrementPointer() @@ -6473,21 +5873,6 @@ func (_self *Room) MemberAvatarUrl(userId string) (*string, error) { } } -func (_self *Room) MemberBlocking(userId string) (*RoomMember, error) { - _pointer := _self.ffiObject.incrementPointer("*Room") - defer _self.ffiObject.decrementPointer() - _uniffiRV, _uniffiErr := rustCallWithError(FfiConverterTypeClientError{}, func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer { - return C.uniffi_matrix_sdk_ffi_fn_method_room_member_blocking( - _pointer, FfiConverterStringINSTANCE.Lower(userId), _uniffiStatus) - }) - if _uniffiErr != nil { - var _uniffiDefaultValue *RoomMember - return _uniffiDefaultValue, _uniffiErr - } else { - return FfiConverterRoomMemberINSTANCE.Lift(_uniffiRV), _uniffiErr - } -} - func (_self *Room) MemberDisplayName(userId string) (*string, error) { _pointer := _self.ffiObject.incrementPointer("*Room") defer _self.ffiObject.decrementPointer() @@ -6527,21 +5912,6 @@ func (_self *Room) Members() (*RoomMembersIterator, error) { C.ffi_matrix_sdk_ffi_rust_future_free_pointer(unsafe.Pointer(rustFuture), status) }) } -func (_self *Room) MembersBlocking() (*RoomMembersIterator, error) { - _pointer := _self.ffiObject.incrementPointer("*Room") - defer _self.ffiObject.decrementPointer() - _uniffiRV, _uniffiErr := rustCallWithError(FfiConverterTypeClientError{}, func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer { - return C.uniffi_matrix_sdk_ffi_fn_method_room_members_blocking( - _pointer, _uniffiStatus) - }) - if _uniffiErr != nil { - var _uniffiDefaultValue *RoomMembersIterator - return _uniffiDefaultValue, _uniffiErr - } else { - return FfiConverterRoomMembersIteratorINSTANCE.Lift(_uniffiRV), _uniffiErr - } -} - func (_self *Room) Membership() Membership { _pointer := _self.ffiObject.incrementPointer("*Room") defer _self.ffiObject.decrementPointer() @@ -6667,21 +6037,6 @@ func (_self *Room) RoomInfo() (RoomInfo, error) { C.ffi_matrix_sdk_ffi_rust_future_free_rust_buffer(unsafe.Pointer(rustFuture), status) }) } -func (_self *Room) RoomInfoBlocking() (RoomInfo, error) { - _pointer := _self.ffiObject.incrementPointer("*Room") - defer _self.ffiObject.decrementPointer() - _uniffiRV, _uniffiErr := rustCallWithError(FfiConverterTypeClientError{}, func(_uniffiStatus *C.RustCallStatus) RustBufferI { - return C.uniffi_matrix_sdk_ffi_fn_method_room_room_info_blocking( - _pointer, _uniffiStatus) - }) - if _uniffiErr != nil { - var _uniffiDefaultValue RoomInfo - return _uniffiDefaultValue, _uniffiErr - } else { - return FfiConverterTypeRoomInfoINSTANCE.Lift(_uniffiRV), _uniffiErr - } -} - func (_self *Room) Send(msg *RoomMessageEventContentWithoutRelation) { _pointer := _self.ffiObject.incrementPointer("*Room") defer _self.ffiObject.decrementPointer() @@ -7211,21 +6566,6 @@ func (_self *RoomListItem) RoomInfo() (RoomInfo, error) { C.ffi_matrix_sdk_ffi_rust_future_free_rust_buffer(unsafe.Pointer(rustFuture), status) }) } -func (_self *RoomListItem) RoomInfoBlocking() (RoomInfo, error) { - _pointer := _self.ffiObject.incrementPointer("*RoomListItem") - defer _self.ffiObject.decrementPointer() - _uniffiRV, _uniffiErr := rustCallWithError(FfiConverterTypeClientError{}, func(_uniffiStatus *C.RustCallStatus) RustBufferI { - return C.uniffi_matrix_sdk_ffi_fn_method_roomlistitem_room_info_blocking( - _pointer, _uniffiStatus) - }) - if _uniffiErr != nil { - var _uniffiDefaultValue RoomInfo - return _uniffiDefaultValue, _uniffiErr - } else { - return FfiConverterTypeRoomInfoINSTANCE.Lift(_uniffiRV), _uniffiErr - } -} - func (_self *RoomListItem) Subscribe(settings *RoomSubscription) { _pointer := _self.ffiObject.incrementPointer("*RoomListItem") defer _self.ffiObject.decrementPointer() @@ -7827,16 +7167,6 @@ func (_self *SendAttachmentJoinHandle) Join() error { C.ffi_matrix_sdk_ffi_rust_future_free_void(unsafe.Pointer(rustFuture), status) }) } -func (_self *SendAttachmentJoinHandle) JoinBlocking() error { - _pointer := _self.ffiObject.incrementPointer("*SendAttachmentJoinHandle") - defer _self.ffiObject.decrementPointer() - _, _uniffiErr := rustCallWithError(FfiConverterTypeRoomError{}, func(_uniffiStatus *C.RustCallStatus) bool { - C.uniffi_matrix_sdk_ffi_fn_method_sendattachmentjoinhandle_join_blocking( - _pointer, _uniffiStatus) - return false - }) - return _uniffiErr -} func (object *SendAttachmentJoinHandle) Destroy() { runtime.SetFinalizer(object, nil) @@ -7910,17 +7240,6 @@ func (_self *SessionVerificationController) ApproveVerification() error { C.ffi_matrix_sdk_ffi_rust_future_free_void(unsafe.Pointer(rustFuture), status) }) } -func (_self *SessionVerificationController) ApproveVerificationBlocking() error { - _pointer := _self.ffiObject.incrementPointer("*SessionVerificationController") - defer _self.ffiObject.decrementPointer() - _, _uniffiErr := rustCallWithError(FfiConverterTypeClientError{}, func(_uniffiStatus *C.RustCallStatus) bool { - C.uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_approve_verification_blocking( - _pointer, _uniffiStatus) - return false - }) - return _uniffiErr -} - func (_self *SessionVerificationController) CancelVerification() error { _pointer := _self.ffiObject.incrementPointer("*SessionVerificationController") defer _self.ffiObject.decrementPointer() @@ -7945,17 +7264,6 @@ func (_self *SessionVerificationController) CancelVerification() error { C.ffi_matrix_sdk_ffi_rust_future_free_void(unsafe.Pointer(rustFuture), status) }) } -func (_self *SessionVerificationController) CancelVerificationBlocking() error { - _pointer := _self.ffiObject.incrementPointer("*SessionVerificationController") - defer _self.ffiObject.decrementPointer() - _, _uniffiErr := rustCallWithError(FfiConverterTypeClientError{}, func(_uniffiStatus *C.RustCallStatus) bool { - C.uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_cancel_verification_blocking( - _pointer, _uniffiStatus) - return false - }) - return _uniffiErr -} - func (_self *SessionVerificationController) DeclineVerification() error { _pointer := _self.ffiObject.incrementPointer("*SessionVerificationController") defer _self.ffiObject.decrementPointer() @@ -7980,26 +7288,30 @@ func (_self *SessionVerificationController) DeclineVerification() error { C.ffi_matrix_sdk_ffi_rust_future_free_void(unsafe.Pointer(rustFuture), status) }) } -func (_self *SessionVerificationController) DeclineVerificationBlocking() error { - _pointer := _self.ffiObject.incrementPointer("*SessionVerificationController") - defer _self.ffiObject.decrementPointer() - _, _uniffiErr := rustCallWithError(FfiConverterTypeClientError{}, func(_uniffiStatus *C.RustCallStatus) bool { - C.uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_decline_verification_blocking( - _pointer, _uniffiStatus) - return false - }) - return _uniffiErr -} - -func (_self *SessionVerificationController) IsVerified() bool { +func (_self *SessionVerificationController) IsVerified() (bool, error) { _pointer := _self.ffiObject.incrementPointer("*SessionVerificationController") defer _self.ffiObject.decrementPointer() - return FfiConverterBoolINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) C.int8_t { - return C.uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_is_verified( - _pointer, _uniffiStatus) - })) + return uniffiRustCallAsyncWithErrorAndResult( + FfiConverterTypeClientError{}, func(status *C.RustCallStatus) *C.void { + // rustFutureFunc + return (*C.void)(C.uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_is_verified( + _pointer, + status, + )) + }, + func(handle *C.void, ptr unsafe.Pointer, status *C.RustCallStatus) { + // pollFunc + C.ffi_matrix_sdk_ffi_rust_future_poll_i8(unsafe.Pointer(handle), ptr, status) + }, + func(handle *C.void, status *C.RustCallStatus) C.int8_t { + // completeFunc + return C.ffi_matrix_sdk_ffi_rust_future_complete_i8(unsafe.Pointer(handle), status) + }, + FfiConverterBoolINSTANCE.Lift, func(rustFuture *C.void, status *C.RustCallStatus) { + // freeFunc + C.ffi_matrix_sdk_ffi_rust_future_free_i8(unsafe.Pointer(rustFuture), status) + }) } - func (_self *SessionVerificationController) RequestVerification() error { _pointer := _self.ffiObject.incrementPointer("*SessionVerificationController") defer _self.ffiObject.decrementPointer() @@ -8024,17 +7336,6 @@ func (_self *SessionVerificationController) RequestVerification() error { C.ffi_matrix_sdk_ffi_rust_future_free_void(unsafe.Pointer(rustFuture), status) }) } -func (_self *SessionVerificationController) RequestVerificationBlocking() error { - _pointer := _self.ffiObject.incrementPointer("*SessionVerificationController") - defer _self.ffiObject.decrementPointer() - _, _uniffiErr := rustCallWithError(FfiConverterTypeClientError{}, func(_uniffiStatus *C.RustCallStatus) bool { - C.uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_request_verification_blocking( - _pointer, _uniffiStatus) - return false - }) - return _uniffiErr -} - func (_self *SessionVerificationController) SetDelegate(delegate *SessionVerificationControllerDelegate) { _pointer := _self.ffiObject.incrementPointer("*SessionVerificationController") defer _self.ffiObject.decrementPointer() @@ -8069,16 +7370,6 @@ func (_self *SessionVerificationController) StartSasVerification() error { C.ffi_matrix_sdk_ffi_rust_future_free_void(unsafe.Pointer(rustFuture), status) }) } -func (_self *SessionVerificationController) StartSasVerificationBlocking() error { - _pointer := _self.ffiObject.incrementPointer("*SessionVerificationController") - defer _self.ffiObject.decrementPointer() - _, _uniffiErr := rustCallWithError(FfiConverterTypeClientError{}, func(_uniffiStatus *C.RustCallStatus) bool { - C.uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_start_sas_verification_blocking( - _pointer, _uniffiStatus) - return false - }) - return _uniffiErr -} func (object *SessionVerificationController) Destroy() { runtime.SetFinalizer(object, nil) @@ -8315,16 +7606,6 @@ func (_self *SyncService) Start() { C.ffi_matrix_sdk_ffi_rust_future_free_void(unsafe.Pointer(rustFuture), status) }) } -func (_self *SyncService) StartBlocking() { - _pointer := _self.ffiObject.incrementPointer("*SyncService") - defer _self.ffiObject.decrementPointer() - rustCall(func(_uniffiStatus *C.RustCallStatus) bool { - C.uniffi_matrix_sdk_ffi_fn_method_syncservice_start_blocking( - _pointer, _uniffiStatus) - return false - }) -} - func (_self *SyncService) State(listener SyncServiceStateObserver) *TaskHandle { _pointer := _self.ffiObject.incrementPointer("*SyncService") defer _self.ffiObject.decrementPointer() @@ -8358,16 +7639,6 @@ func (_self *SyncService) Stop() error { C.ffi_matrix_sdk_ffi_rust_future_free_void(unsafe.Pointer(rustFuture), status) }) } -func (_self *SyncService) StopBlocking() error { - _pointer := _self.ffiObject.incrementPointer("*SyncService") - defer _self.ffiObject.decrementPointer() - _, _uniffiErr := rustCallWithError(FfiConverterTypeClientError{}, func(_uniffiStatus *C.RustCallStatus) bool { - C.uniffi_matrix_sdk_ffi_fn_method_syncservice_stop_blocking( - _pointer, _uniffiStatus) - return false - }) - return _uniffiErr -} func (object *SyncService) Destroy() { runtime.SetFinalizer(object, nil) @@ -8441,21 +7712,6 @@ func (_self *SyncServiceBuilder) Finish() (*SyncService, error) { C.ffi_matrix_sdk_ffi_rust_future_free_pointer(unsafe.Pointer(rustFuture), status) }) } -func (_self *SyncServiceBuilder) FinishBlocking() (*SyncService, error) { - _pointer := _self.ffiObject.incrementPointer("*SyncServiceBuilder") - defer _self.ffiObject.decrementPointer() - _uniffiRV, _uniffiErr := rustCallWithError(FfiConverterTypeClientError{}, func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer { - return C.uniffi_matrix_sdk_ffi_fn_method_syncservicebuilder_finish_blocking( - _pointer, _uniffiStatus) - }) - if _uniffiErr != nil { - var _uniffiDefaultValue *SyncService - return _uniffiDefaultValue, _uniffiErr - } else { - return FfiConverterSyncServiceINSTANCE.Lift(_uniffiRV), _uniffiErr - } -} - func (_self *SyncServiceBuilder) WithCrossProcessLock(appIdentifier *string) *SyncServiceBuilder { _pointer := _self.ffiObject.incrementPointer("*SyncServiceBuilder") defer _self.ffiObject.decrementPointer() @@ -10490,6 +9746,8 @@ type RoomInfo struct { HighlightCount uint64 NotificationCount uint64 UserDefinedNotificationMode *RoomNotificationMode + HasRoomCall bool + ActiveRoomCallParticipants []string } func (r *RoomInfo) Destroy() { @@ -10512,6 +9770,8 @@ func (r *RoomInfo) Destroy() { FfiDestroyerUint64{}.Destroy(r.HighlightCount) FfiDestroyerUint64{}.Destroy(r.NotificationCount) FfiDestroyerOptionalTypeRoomNotificationMode{}.Destroy(r.UserDefinedNotificationMode) + FfiDestroyerBool{}.Destroy(r.HasRoomCall) + FfiDestroyerSequenceString{}.Destroy(r.ActiveRoomCallParticipants) } type FfiConverterTypeRoomInfo struct{} @@ -10543,6 +9803,8 @@ func (c FfiConverterTypeRoomInfo) Read(reader io.Reader) RoomInfo { FfiConverterUint64INSTANCE.Read(reader), FfiConverterUint64INSTANCE.Read(reader), FfiConverterOptionalTypeRoomNotificationModeINSTANCE.Read(reader), + FfiConverterBoolINSTANCE.Read(reader), + FfiConverterSequenceStringINSTANCE.Read(reader), } } @@ -10570,6 +9832,8 @@ func (c FfiConverterTypeRoomInfo) Write(writer io.Writer, value RoomInfo) { FfiConverterUint64INSTANCE.Write(writer, value.HighlightCount) FfiConverterUint64INSTANCE.Write(writer, value.NotificationCount) FfiConverterOptionalTypeRoomNotificationModeINSTANCE.Write(writer, value.UserDefinedNotificationMode) + FfiConverterBoolINSTANCE.Write(writer, value.HasRoomCall) + FfiConverterSequenceStringINSTANCE.Write(writer, value.ActiveRoomCallParticipants) } type FfiDestroyerTypeRoomInfo struct{} @@ -11514,6 +10778,50 @@ func (_ FfiDestroyerTypeVirtualElementCallWidgetOptions) Destroy(value VirtualEl value.Destroy() } +type WidgetCapabilities struct { + Read []WidgetEventFilter + Send []WidgetEventFilter + RequiresClient bool +} + +func (r *WidgetCapabilities) Destroy() { + FfiDestroyerSequenceTypeWidgetEventFilter{}.Destroy(r.Read) + FfiDestroyerSequenceTypeWidgetEventFilter{}.Destroy(r.Send) + FfiDestroyerBool{}.Destroy(r.RequiresClient) +} + +type FfiConverterTypeWidgetCapabilities struct{} + +var FfiConverterTypeWidgetCapabilitiesINSTANCE = FfiConverterTypeWidgetCapabilities{} + +func (c FfiConverterTypeWidgetCapabilities) Lift(rb RustBufferI) WidgetCapabilities { + return LiftFromRustBuffer[WidgetCapabilities](c, rb) +} + +func (c FfiConverterTypeWidgetCapabilities) Read(reader io.Reader) WidgetCapabilities { + return WidgetCapabilities{ + FfiConverterSequenceTypeWidgetEventFilterINSTANCE.Read(reader), + FfiConverterSequenceTypeWidgetEventFilterINSTANCE.Read(reader), + FfiConverterBoolINSTANCE.Read(reader), + } +} + +func (c FfiConverterTypeWidgetCapabilities) Lower(value WidgetCapabilities) RustBuffer { + return LowerIntoRustBuffer[WidgetCapabilities](c, value) +} + +func (c FfiConverterTypeWidgetCapabilities) Write(writer io.Writer, value WidgetCapabilities) { + FfiConverterSequenceTypeWidgetEventFilterINSTANCE.Write(writer, value.Read) + FfiConverterSequenceTypeWidgetEventFilterINSTANCE.Write(writer, value.Send) + FfiConverterBoolINSTANCE.Write(writer, value.RequiresClient) +} + +type FfiDestroyerTypeWidgetCapabilities struct{} + +func (_ FfiDestroyerTypeWidgetCapabilities) Destroy(value WidgetCapabilities) { + value.Destroy() +} + type WidgetDriverAndHandle struct { Driver *WidgetDriver Handle *WidgetDriverHandle @@ -11554,50 +10862,6 @@ func (_ FfiDestroyerTypeWidgetDriverAndHandle) Destroy(value WidgetDriverAndHand value.Destroy() } -type WidgetPermissions struct { - Read []WidgetEventFilter - Send []WidgetEventFilter - RequiresClient bool -} - -func (r *WidgetPermissions) Destroy() { - FfiDestroyerSequenceTypeWidgetEventFilter{}.Destroy(r.Read) - FfiDestroyerSequenceTypeWidgetEventFilter{}.Destroy(r.Send) - FfiDestroyerBool{}.Destroy(r.RequiresClient) -} - -type FfiConverterTypeWidgetPermissions struct{} - -var FfiConverterTypeWidgetPermissionsINSTANCE = FfiConverterTypeWidgetPermissions{} - -func (c FfiConverterTypeWidgetPermissions) Lift(rb RustBufferI) WidgetPermissions { - return LiftFromRustBuffer[WidgetPermissions](c, rb) -} - -func (c FfiConverterTypeWidgetPermissions) Read(reader io.Reader) WidgetPermissions { - return WidgetPermissions{ - FfiConverterSequenceTypeWidgetEventFilterINSTANCE.Read(reader), - FfiConverterSequenceTypeWidgetEventFilterINSTANCE.Read(reader), - FfiConverterBoolINSTANCE.Read(reader), - } -} - -func (c FfiConverterTypeWidgetPermissions) Lower(value WidgetPermissions) RustBuffer { - return LowerIntoRustBuffer[WidgetPermissions](c, value) -} - -func (c FfiConverterTypeWidgetPermissions) Write(writer io.Writer, value WidgetPermissions) { - FfiConverterSequenceTypeWidgetEventFilterINSTANCE.Write(writer, value.Read) - FfiConverterSequenceTypeWidgetEventFilterINSTANCE.Write(writer, value.Send) - FfiConverterBoolINSTANCE.Write(writer, value.RequiresClient) -} - -type FfiDestroyerTypeWidgetPermissions struct{} - -func (_ FfiDestroyerTypeWidgetPermissions) Destroy(value WidgetPermissions) { - value.Destroy() -} - type WidgetSettings struct { WidgetId string InitAfterContentLoad bool @@ -16379,7 +15643,7 @@ type concurrentHandleMap[T any] struct { leftMap map[uint64]*T rightMap map[*T]uint64 currentHandle uint64 - lock sync.Mutex + lock sync.RWMutex } func newConcurrentHandleMap[T any]() *concurrentHandleMap[T] { @@ -16392,6 +15656,7 @@ func newConcurrentHandleMap[T any]() *concurrentHandleMap[T] { func (cm *concurrentHandleMap[T]) insert(obj *T) uint64 { cm.lock.Lock() defer cm.lock.Unlock() + if existingHandle, ok := cm.rightMap[obj]; ok { return existingHandle } @@ -16404,6 +15669,7 @@ func (cm *concurrentHandleMap[T]) insert(obj *T) uint64 { func (cm *concurrentHandleMap[T]) remove(handle uint64) bool { cm.lock.Lock() defer cm.lock.Unlock() + if val, ok := cm.leftMap[handle]; ok { delete(cm.leftMap, handle) delete(cm.rightMap, val) @@ -16412,6 +15678,9 @@ func (cm *concurrentHandleMap[T]) remove(handle uint64) bool { } func (cm *concurrentHandleMap[T]) tryGet(handle uint64) (*T, bool) { + cm.lock.RLock() + defer cm.lock.RUnlock() + val, ok := cm.leftMap[handle] return val, ok } @@ -17353,7 +16622,7 @@ func (FfiDestroyerCallbackInterfaceTimelineListener) Destroy(value TimelineListe // Declaration and FfiConverters for WidgetCapabilitiesProvider Callback Interface type WidgetCapabilitiesProvider interface { - AcquireCapabilities(capabilities WidgetPermissions) WidgetPermissions + AcquireCapabilities(capabilities WidgetCapabilities) WidgetCapabilities } // foreignCallbackCallbackInterfaceWidgetCapabilitiesProvider cannot be callable be a compiled function at a same time @@ -17386,9 +16655,9 @@ func matrix_sdk_ffi_cgo_WidgetCapabilitiesProvider(handle C.uint64_t, method C.i func (foreignCallbackCallbackInterfaceWidgetCapabilitiesProvider) InvokeAcquireCapabilities(callback WidgetCapabilitiesProvider, args []byte, outBuf *C.RustBuffer) uniffiCallbackResult { reader := bytes.NewReader(args) - result := callback.AcquireCapabilities(FfiConverterTypeWidgetPermissionsINSTANCE.Read(reader)) + result := callback.AcquireCapabilities(FfiConverterTypeWidgetCapabilitiesINSTANCE.Read(reader)) - *outBuf = LowerIntoRustBuffer[WidgetPermissions](FfiConverterTypeWidgetPermissionsINSTANCE, result) + *outBuf = LowerIntoRustBuffer[WidgetCapabilities](FfiConverterTypeWidgetCapabilitiesINSTANCE, result) return uniffiCallbackResultSuccess } diff --git a/rust/matrix_sdk_ffi/matrix_sdk_ffi.h b/rust/matrix_sdk_ffi/matrix_sdk_ffi.h index 64454cb..62d18bf 100644 --- a/rust/matrix_sdk_ffi/matrix_sdk_ffi.h +++ b/rust/matrix_sdk_ffi/matrix_sdk_ffi.h @@ -628,11 +628,6 @@ void* uniffi_matrix_sdk_ffi_fn_method_notificationsettings_contains_keywords_rul RustCallStatus* out_status ); -int8_t uniffi_matrix_sdk_ffi_fn_method_notificationsettings_contains_keywords_rules_blocking( - void* ptr, - RustCallStatus* out_status -); - void* uniffi_matrix_sdk_ffi_fn_method_notificationsettings_get_default_room_notification_mode( void* ptr, int8_t is_encrypted, @@ -640,13 +635,6 @@ void* uniffi_matrix_sdk_ffi_fn_method_notificationsettings_get_default_room_noti RustCallStatus* out_status ); -RustBuffer uniffi_matrix_sdk_ffi_fn_method_notificationsettings_get_default_room_notification_mode_blocking( - void* ptr, - int8_t is_encrypted, - int8_t is_one_to_one, - RustCallStatus* out_status -); - void* uniffi_matrix_sdk_ffi_fn_method_notificationsettings_get_room_notification_settings( void* ptr, RustBuffer room_id, @@ -655,92 +643,45 @@ void* uniffi_matrix_sdk_ffi_fn_method_notificationsettings_get_room_notification RustCallStatus* out_status ); -RustBuffer uniffi_matrix_sdk_ffi_fn_method_notificationsettings_get_room_notification_settings_blocking( - void* ptr, - RustBuffer room_id, - int8_t is_encrypted, - int8_t is_one_to_one, - RustCallStatus* out_status -); - void* uniffi_matrix_sdk_ffi_fn_method_notificationsettings_get_rooms_with_user_defined_rules( void* ptr, RustBuffer enabled, RustCallStatus* out_status ); -RustBuffer uniffi_matrix_sdk_ffi_fn_method_notificationsettings_get_rooms_with_user_defined_rules_blocking( - void* ptr, - RustBuffer enabled, - RustCallStatus* out_status -); - void* uniffi_matrix_sdk_ffi_fn_method_notificationsettings_get_user_defined_room_notification_mode( void* ptr, RustBuffer room_id, RustCallStatus* out_status ); -RustBuffer uniffi_matrix_sdk_ffi_fn_method_notificationsettings_get_user_defined_room_notification_mode_blocking( - void* ptr, - RustBuffer room_id, - RustCallStatus* out_status -); - void* uniffi_matrix_sdk_ffi_fn_method_notificationsettings_is_call_enabled( void* ptr, RustCallStatus* out_status ); -int8_t uniffi_matrix_sdk_ffi_fn_method_notificationsettings_is_call_enabled_blocking( - void* ptr, - RustCallStatus* out_status -); - void* uniffi_matrix_sdk_ffi_fn_method_notificationsettings_is_room_mention_enabled( void* ptr, RustCallStatus* out_status ); -int8_t uniffi_matrix_sdk_ffi_fn_method_notificationsettings_is_room_mention_enabled_blocking( - void* ptr, - RustCallStatus* out_status -); - void* uniffi_matrix_sdk_ffi_fn_method_notificationsettings_is_user_mention_enabled( void* ptr, RustCallStatus* out_status ); -int8_t uniffi_matrix_sdk_ffi_fn_method_notificationsettings_is_user_mention_enabled_blocking( - void* ptr, - RustCallStatus* out_status -); - void* uniffi_matrix_sdk_ffi_fn_method_notificationsettings_restore_default_room_notification_mode( void* ptr, RustBuffer room_id, RustCallStatus* out_status ); -void uniffi_matrix_sdk_ffi_fn_method_notificationsettings_restore_default_room_notification_mode_blocking( - void* ptr, - RustBuffer room_id, - RustCallStatus* out_status -); - void* uniffi_matrix_sdk_ffi_fn_method_notificationsettings_set_call_enabled( void* ptr, int8_t enabled, RustCallStatus* out_status ); -void uniffi_matrix_sdk_ffi_fn_method_notificationsettings_set_call_enabled_blocking( - void* ptr, - int8_t enabled, - RustCallStatus* out_status -); - void* uniffi_matrix_sdk_ffi_fn_method_notificationsettings_set_default_room_notification_mode( void* ptr, int8_t is_encrypted, @@ -749,14 +690,6 @@ void* uniffi_matrix_sdk_ffi_fn_method_notificationsettings_set_default_room_noti RustCallStatus* out_status ); -void uniffi_matrix_sdk_ffi_fn_method_notificationsettings_set_default_room_notification_mode_blocking( - void* ptr, - int8_t is_encrypted, - int8_t is_one_to_one, - RustBuffer mode, - RustCallStatus* out_status -); - void uniffi_matrix_sdk_ffi_fn_method_notificationsettings_set_delegate( void* ptr, RustBuffer delegate, @@ -769,12 +702,6 @@ void* uniffi_matrix_sdk_ffi_fn_method_notificationsettings_set_room_mention_enab RustCallStatus* out_status ); -void uniffi_matrix_sdk_ffi_fn_method_notificationsettings_set_room_mention_enabled_blocking( - void* ptr, - int8_t enabled, - RustCallStatus* out_status -); - void* uniffi_matrix_sdk_ffi_fn_method_notificationsettings_set_room_notification_mode( void* ptr, RustBuffer room_id, @@ -782,25 +709,12 @@ void* uniffi_matrix_sdk_ffi_fn_method_notificationsettings_set_room_notification RustCallStatus* out_status ); -void uniffi_matrix_sdk_ffi_fn_method_notificationsettings_set_room_notification_mode_blocking( - void* ptr, - RustBuffer room_id, - RustBuffer mode, - RustCallStatus* out_status -); - void* uniffi_matrix_sdk_ffi_fn_method_notificationsettings_set_user_mention_enabled( void* ptr, int8_t enabled, RustCallStatus* out_status ); -void uniffi_matrix_sdk_ffi_fn_method_notificationsettings_set_user_mention_enabled_blocking( - void* ptr, - int8_t enabled, - RustCallStatus* out_status -); - void* uniffi_matrix_sdk_ffi_fn_method_notificationsettings_unmute_room( void* ptr, RustBuffer room_id, @@ -809,14 +723,6 @@ void* uniffi_matrix_sdk_ffi_fn_method_notificationsettings_unmute_room( RustCallStatus* out_status ); -void uniffi_matrix_sdk_ffi_fn_method_notificationsettings_unmute_room_blocking( - void* ptr, - RustBuffer room_id, - int8_t is_encrypted, - int8_t is_one_to_one, - RustCallStatus* out_status -); - void uniffi_matrix_sdk_ffi_fn_free_oidcauthenticationdata( void* ptr, RustCallStatus* out_status @@ -837,13 +743,12 @@ uint64_t uniffi_matrix_sdk_ffi_fn_method_room_active_members_count( RustCallStatus* out_status ); -void* uniffi_matrix_sdk_ffi_fn_method_room_add_timeline_listener( +RustBuffer uniffi_matrix_sdk_ffi_fn_method_room_active_room_call_participants( void* ptr, - uint64_t listener, RustCallStatus* out_status ); -RustBuffer uniffi_matrix_sdk_ffi_fn_method_room_add_timeline_listener_blocking( +void* uniffi_matrix_sdk_ffi_fn_method_room_add_timeline_listener( void* ptr, uint64_t listener, RustCallStatus* out_status @@ -865,48 +770,24 @@ void* uniffi_matrix_sdk_ffi_fn_method_room_can_user_ban( RustCallStatus* out_status ); -int8_t uniffi_matrix_sdk_ffi_fn_method_room_can_user_ban_blocking( - void* ptr, - RustBuffer user_id, - RustCallStatus* out_status -); - void* uniffi_matrix_sdk_ffi_fn_method_room_can_user_invite( void* ptr, RustBuffer user_id, RustCallStatus* out_status ); -int8_t uniffi_matrix_sdk_ffi_fn_method_room_can_user_invite_blocking( - void* ptr, - RustBuffer user_id, - RustCallStatus* out_status -); - void* uniffi_matrix_sdk_ffi_fn_method_room_can_user_kick( void* ptr, RustBuffer user_id, RustCallStatus* out_status ); -int8_t uniffi_matrix_sdk_ffi_fn_method_room_can_user_kick_blocking( - void* ptr, - RustBuffer user_id, - RustCallStatus* out_status -); - void* uniffi_matrix_sdk_ffi_fn_method_room_can_user_redact( void* ptr, RustBuffer user_id, RustCallStatus* out_status ); -int8_t uniffi_matrix_sdk_ffi_fn_method_room_can_user_redact_blocking( - void* ptr, - RustBuffer user_id, - RustCallStatus* out_status -); - void* uniffi_matrix_sdk_ffi_fn_method_room_can_user_send_message( void* ptr, RustBuffer user_id, @@ -914,13 +795,6 @@ void* uniffi_matrix_sdk_ffi_fn_method_room_can_user_send_message( RustCallStatus* out_status ); -int8_t uniffi_matrix_sdk_ffi_fn_method_room_can_user_send_message_blocking( - void* ptr, - RustBuffer user_id, - RustBuffer message, - RustCallStatus* out_status -); - void* uniffi_matrix_sdk_ffi_fn_method_room_can_user_send_state( void* ptr, RustBuffer user_id, @@ -928,25 +802,12 @@ void* uniffi_matrix_sdk_ffi_fn_method_room_can_user_send_state( RustCallStatus* out_status ); -int8_t uniffi_matrix_sdk_ffi_fn_method_room_can_user_send_state_blocking( - void* ptr, - RustBuffer user_id, - RustBuffer state_event, - RustCallStatus* out_status -); - void* uniffi_matrix_sdk_ffi_fn_method_room_can_user_trigger_room_notification( void* ptr, RustBuffer user_id, RustCallStatus* out_status ); -int8_t uniffi_matrix_sdk_ffi_fn_method_room_can_user_trigger_room_notification_blocking( - void* ptr, - RustBuffer user_id, - RustCallStatus* out_status -); - void uniffi_matrix_sdk_ffi_fn_method_room_cancel_send( void* ptr, RustBuffer txn_id, @@ -997,20 +858,20 @@ void* uniffi_matrix_sdk_ffi_fn_method_room_fetch_members( RustCallStatus* out_status ); -void uniffi_matrix_sdk_ffi_fn_method_room_fetch_members_blocking( +void* uniffi_matrix_sdk_ffi_fn_method_room_get_event_timeline_item_by_event_id( void* ptr, + RustBuffer event_id, RustCallStatus* out_status ); -void* uniffi_matrix_sdk_ffi_fn_method_room_get_event_timeline_item_by_event_id( +void* uniffi_matrix_sdk_ffi_fn_method_room_get_timeline_event_content_by_event_id( void* ptr, RustBuffer event_id, RustCallStatus* out_status ); -void* uniffi_matrix_sdk_ffi_fn_method_room_get_timeline_event_content_by_event_id( +int8_t uniffi_matrix_sdk_ffi_fn_method_room_has_active_room_call( void* ptr, - RustBuffer event_id, RustCallStatus* out_status ); @@ -1093,12 +954,6 @@ RustBuffer uniffi_matrix_sdk_ffi_fn_method_room_member_avatar_url( RustCallStatus* out_status ); -void* uniffi_matrix_sdk_ffi_fn_method_room_member_blocking( - void* ptr, - RustBuffer user_id, - RustCallStatus* out_status -); - RustBuffer uniffi_matrix_sdk_ffi_fn_method_room_member_display_name( void* ptr, RustBuffer user_id, @@ -1110,11 +965,6 @@ void* uniffi_matrix_sdk_ffi_fn_method_room_members( RustCallStatus* out_status ); -void* uniffi_matrix_sdk_ffi_fn_method_room_members_blocking( - void* ptr, - RustCallStatus* out_status -); - RustBuffer uniffi_matrix_sdk_ffi_fn_method_room_membership( void* ptr, RustCallStatus* out_status @@ -1178,11 +1028,6 @@ void* uniffi_matrix_sdk_ffi_fn_method_room_room_info( RustCallStatus* out_status ); -RustBuffer uniffi_matrix_sdk_ffi_fn_method_room_room_info_blocking( - void* ptr, - RustCallStatus* out_status -); - void uniffi_matrix_sdk_ffi_fn_method_room_send( void* ptr, void* msg, @@ -1412,11 +1257,6 @@ void* uniffi_matrix_sdk_ffi_fn_method_roomlistitem_room_info( RustCallStatus* out_status ); -RustBuffer uniffi_matrix_sdk_ffi_fn_method_roomlistitem_room_info_blocking( - void* ptr, - RustCallStatus* out_status -); - void uniffi_matrix_sdk_ffi_fn_method_roomlistitem_subscribe( void* ptr, RustBuffer settings, @@ -1602,11 +1442,6 @@ void* uniffi_matrix_sdk_ffi_fn_method_sendattachmentjoinhandle_join( RustCallStatus* out_status ); -void uniffi_matrix_sdk_ffi_fn_method_sendattachmentjoinhandle_join_blocking( - void* ptr, - RustCallStatus* out_status -); - void uniffi_matrix_sdk_ffi_fn_free_sessionverificationcontroller( void* ptr, RustCallStatus* out_status @@ -1617,32 +1452,17 @@ void* uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_approve_veri RustCallStatus* out_status ); -void uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_approve_verification_blocking( - void* ptr, - RustCallStatus* out_status -); - void* uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_cancel_verification( void* ptr, RustCallStatus* out_status ); -void uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_cancel_verification_blocking( - void* ptr, - RustCallStatus* out_status -); - void* uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_decline_verification( void* ptr, RustCallStatus* out_status ); -void uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_decline_verification_blocking( - void* ptr, - RustCallStatus* out_status -); - -int8_t uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_is_verified( +void* uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_is_verified( void* ptr, RustCallStatus* out_status ); @@ -1652,11 +1472,6 @@ void* uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_request_veri RustCallStatus* out_status ); -void uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_request_verification_blocking( - void* ptr, - RustCallStatus* out_status -); - void uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_set_delegate( void* ptr, RustBuffer delegate, @@ -1668,11 +1483,6 @@ void* uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_start_sas_ve RustCallStatus* out_status ); -void uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_start_sas_verification_blocking( - void* ptr, - RustCallStatus* out_status -); - void uniffi_matrix_sdk_ffi_fn_free_sessionverificationemoji( void* ptr, RustCallStatus* out_status @@ -1736,11 +1546,6 @@ void* uniffi_matrix_sdk_ffi_fn_method_syncservice_start( RustCallStatus* out_status ); -void uniffi_matrix_sdk_ffi_fn_method_syncservice_start_blocking( - void* ptr, - RustCallStatus* out_status -); - void* uniffi_matrix_sdk_ffi_fn_method_syncservice_state( void* ptr, uint64_t listener, @@ -1752,11 +1557,6 @@ void* uniffi_matrix_sdk_ffi_fn_method_syncservice_stop( RustCallStatus* out_status ); -void uniffi_matrix_sdk_ffi_fn_method_syncservice_stop_blocking( - void* ptr, - RustCallStatus* out_status -); - void uniffi_matrix_sdk_ffi_fn_free_syncservicebuilder( void* ptr, RustCallStatus* out_status @@ -1767,11 +1567,6 @@ void* uniffi_matrix_sdk_ffi_fn_method_syncservicebuilder_finish( RustCallStatus* out_status ); -void* uniffi_matrix_sdk_ffi_fn_method_syncservicebuilder_finish_blocking( - void* ptr, - RustCallStatus* out_status -); - void* uniffi_matrix_sdk_ffi_fn_method_syncservicebuilder_with_cross_process_lock( void* ptr, RustBuffer app_identifier, @@ -2788,90 +2583,46 @@ uint16_t uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_contains_key RustCallStatus* out_status ); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_contains_keywords_rules_blocking( - RustCallStatus* out_status -); - uint16_t uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_get_default_room_notification_mode( RustCallStatus* out_status ); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_get_default_room_notification_mode_blocking( - RustCallStatus* out_status -); - uint16_t uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_get_room_notification_settings( RustCallStatus* out_status ); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_get_room_notification_settings_blocking( - RustCallStatus* out_status -); - uint16_t uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_get_rooms_with_user_defined_rules( RustCallStatus* out_status ); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_get_rooms_with_user_defined_rules_blocking( - RustCallStatus* out_status -); - uint16_t uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_get_user_defined_room_notification_mode( RustCallStatus* out_status ); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_get_user_defined_room_notification_mode_blocking( - RustCallStatus* out_status -); - uint16_t uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_is_call_enabled( RustCallStatus* out_status ); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_is_call_enabled_blocking( - RustCallStatus* out_status -); - uint16_t uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_is_room_mention_enabled( RustCallStatus* out_status ); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_is_room_mention_enabled_blocking( - RustCallStatus* out_status -); - uint16_t uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_is_user_mention_enabled( RustCallStatus* out_status ); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_is_user_mention_enabled_blocking( - RustCallStatus* out_status -); - uint16_t uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_restore_default_room_notification_mode( RustCallStatus* out_status ); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_restore_default_room_notification_mode_blocking( - RustCallStatus* out_status -); - uint16_t uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_set_call_enabled( RustCallStatus* out_status ); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_set_call_enabled_blocking( - RustCallStatus* out_status -); - uint16_t uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_set_default_room_notification_mode( RustCallStatus* out_status ); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_set_default_room_notification_mode_blocking( - RustCallStatus* out_status -); - uint16_t uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_set_delegate( RustCallStatus* out_status ); @@ -2880,34 +2631,18 @@ uint16_t uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_set_room_men RustCallStatus* out_status ); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_set_room_mention_enabled_blocking( - RustCallStatus* out_status -); - uint16_t uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_set_room_notification_mode( RustCallStatus* out_status ); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_set_room_notification_mode_blocking( - RustCallStatus* out_status -); - uint16_t uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_set_user_mention_enabled( RustCallStatus* out_status ); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_set_user_mention_enabled_blocking( - RustCallStatus* out_status -); - uint16_t uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_unmute_room( RustCallStatus* out_status ); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_unmute_room_blocking( - RustCallStatus* out_status -); - uint16_t uniffi_matrix_sdk_ffi_checksum_method_oidcauthenticationdata_login_url( RustCallStatus* out_status ); @@ -2916,11 +2651,11 @@ uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_active_members_count( RustCallStatus* out_status ); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_add_timeline_listener( +uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_active_room_call_participants( RustCallStatus* out_status ); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_add_timeline_listener_blocking( +uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_add_timeline_listener( RustCallStatus* out_status ); @@ -2936,58 +2671,30 @@ uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_can_user_ban( RustCallStatus* out_status ); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_can_user_ban_blocking( - RustCallStatus* out_status -); - uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_can_user_invite( RustCallStatus* out_status ); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_can_user_invite_blocking( - RustCallStatus* out_status -); - uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_can_user_kick( RustCallStatus* out_status ); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_can_user_kick_blocking( - RustCallStatus* out_status -); - uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_can_user_redact( RustCallStatus* out_status ); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_can_user_redact_blocking( - RustCallStatus* out_status -); - uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_can_user_send_message( RustCallStatus* out_status ); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_can_user_send_message_blocking( - RustCallStatus* out_status -); - uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_can_user_send_state( RustCallStatus* out_status ); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_can_user_send_state_blocking( - RustCallStatus* out_status -); - uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_can_user_trigger_room_notification( RustCallStatus* out_status ); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_can_user_trigger_room_notification_blocking( - RustCallStatus* out_status -); - uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_cancel_send( RustCallStatus* out_status ); @@ -3020,15 +2727,15 @@ uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_fetch_members( RustCallStatus* out_status ); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_fetch_members_blocking( +uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_get_event_timeline_item_by_event_id( RustCallStatus* out_status ); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_get_event_timeline_item_by_event_id( +uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_get_timeline_event_content_by_event_id( RustCallStatus* out_status ); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_get_timeline_event_content_by_event_id( +uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_has_active_room_call( RustCallStatus* out_status ); @@ -3092,10 +2799,6 @@ uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_member_avatar_url( RustCallStatus* out_status ); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_member_blocking( - RustCallStatus* out_status -); - uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_member_display_name( RustCallStatus* out_status ); @@ -3104,10 +2807,6 @@ uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_members( RustCallStatus* out_status ); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_members_blocking( - RustCallStatus* out_status -); - uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_membership( RustCallStatus* out_status ); @@ -3152,10 +2851,6 @@ uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_room_info( RustCallStatus* out_status ); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_room_info_blocking( - RustCallStatus* out_status -); - uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_send( RustCallStatus* out_status ); @@ -3292,10 +2987,6 @@ uint16_t uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_room_info( RustCallStatus* out_status ); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_room_info_blocking( - RustCallStatus* out_status -); - uint16_t uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_subscribe( RustCallStatus* out_status ); @@ -3420,34 +3111,18 @@ uint16_t uniffi_matrix_sdk_ffi_checksum_method_sendattachmentjoinhandle_join( RustCallStatus* out_status ); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_sendattachmentjoinhandle_join_blocking( - RustCallStatus* out_status -); - uint16_t uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_approve_verification( RustCallStatus* out_status ); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_approve_verification_blocking( - RustCallStatus* out_status -); - uint16_t uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_cancel_verification( RustCallStatus* out_status ); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_cancel_verification_blocking( - RustCallStatus* out_status -); - uint16_t uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_decline_verification( RustCallStatus* out_status ); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_decline_verification_blocking( - RustCallStatus* out_status -); - uint16_t uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_is_verified( RustCallStatus* out_status ); @@ -3456,10 +3131,6 @@ uint16_t uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_req RustCallStatus* out_status ); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_request_verification_blocking( - RustCallStatus* out_status -); - uint16_t uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_set_delegate( RustCallStatus* out_status ); @@ -3468,10 +3139,6 @@ uint16_t uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_sta RustCallStatus* out_status ); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_start_sas_verification_blocking( - RustCallStatus* out_status -); - uint16_t uniffi_matrix_sdk_ffi_checksum_method_sessionverificationemoji_description( RustCallStatus* out_status ); @@ -3500,10 +3167,6 @@ uint16_t uniffi_matrix_sdk_ffi_checksum_method_syncservice_start( RustCallStatus* out_status ); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_syncservice_start_blocking( - RustCallStatus* out_status -); - uint16_t uniffi_matrix_sdk_ffi_checksum_method_syncservice_state( RustCallStatus* out_status ); @@ -3512,18 +3175,10 @@ uint16_t uniffi_matrix_sdk_ffi_checksum_method_syncservice_stop( RustCallStatus* out_status ); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_syncservice_stop_blocking( - RustCallStatus* out_status -); - uint16_t uniffi_matrix_sdk_ffi_checksum_method_syncservicebuilder_finish( RustCallStatus* out_status ); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_syncservicebuilder_finish_blocking( - RustCallStatus* out_status -); - uint16_t uniffi_matrix_sdk_ffi_checksum_method_syncservicebuilder_with_cross_process_lock( RustCallStatus* out_status );