@@ -2165,10 +2165,6 @@ internal open class UniffiVTableCallbackInterfaceWidgetCapabilitiesProvider(
2165
2165
2166
2166
2167
2167
2168
-
2169
-
2170
-
2171
-
2172
2168
2173
2169
2174
2170
@@ -2219,16 +2215,6 @@ internal interface UniffiLib : Library {
2219
2215
}
2220
2216
}
2221
2217
2222
- fun uniffi_matrix_sdk_ffi_fn_clone_mediasource(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
2223
- ): Pointer
2224
- fun uniffi_matrix_sdk_ffi_fn_free_mediasource(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
2225
- ): Unit
2226
- fun uniffi_matrix_sdk_ffi_fn_constructor_mediasource_from_json(`json`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
2227
- ): Pointer
2228
- fun uniffi_matrix_sdk_ffi_fn_method_mediasource_to_json(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
2229
- ): RustBuffer.ByValue
2230
- fun uniffi_matrix_sdk_ffi_fn_method_mediasource_url(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
2231
- ): RustBuffer.ByValue
2232
2218
fun uniffi_matrix_sdk_ffi_fn_clone_roommessageeventcontentwithoutrelation(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
2233
2219
): Pointer
2234
2220
fun uniffi_matrix_sdk_ffi_fn_free_roommessageeventcontentwithoutrelation(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
@@ -2521,6 +2507,12 @@ internal interface UniffiLib : Library {
2521
2507
): RustBuffer.ByValue
2522
2508
fun uniffi_matrix_sdk_ffi_fn_method_mediafilehandle_persist(`ptr`: Pointer,`path`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
2523
2509
): Byte
2510
+ fun uniffi_matrix_sdk_ffi_fn_clone_mediasource(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
2511
+ ): Pointer
2512
+ fun uniffi_matrix_sdk_ffi_fn_free_mediasource(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
2513
+ ): Unit
2514
+ fun uniffi_matrix_sdk_ffi_fn_method_mediasource_url(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
2515
+ ): RustBuffer.ByValue
2524
2516
fun uniffi_matrix_sdk_ffi_fn_clone_notificationclient(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
2525
2517
): Pointer
2526
2518
fun uniffi_matrix_sdk_ffi_fn_free_notificationclient(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
@@ -3347,10 +3339,6 @@ internal interface UniffiLib : Library {
3347
3339
): Short
3348
3340
fun uniffi_matrix_sdk_ffi_checksum_func_suggested_role_for_power_level(
3349
3341
): Short
3350
- fun uniffi_matrix_sdk_ffi_checksum_method_mediasource_to_json(
3351
- ): Short
3352
- fun uniffi_matrix_sdk_ffi_checksum_method_mediasource_url(
3353
- ): Short
3354
3342
fun uniffi_matrix_sdk_ffi_checksum_method_roommessageeventcontentwithoutrelation_with_mentions(
3355
3343
): Short
3356
3344
fun uniffi_matrix_sdk_ffi_checksum_method_client_abort_oidc_auth(
@@ -3605,6 +3593,8 @@ internal interface UniffiLib : Library {
3605
3593
): Short
3606
3594
fun uniffi_matrix_sdk_ffi_checksum_method_mediafilehandle_persist(
3607
3595
): Short
3596
+ fun uniffi_matrix_sdk_ffi_checksum_method_mediasource_url(
3597
+ ): Short
3608
3598
fun uniffi_matrix_sdk_ffi_checksum_method_notificationclient_get_notification(
3609
3599
): Short
3610
3600
fun uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_can_homeserver_push_encrypted_event_to_device(
@@ -4041,8 +4031,6 @@ internal interface UniffiLib : Library {
4041
4031
): Short
4042
4032
fun uniffi_matrix_sdk_ffi_checksum_method_widgetdriverhandle_send(
4043
4033
): Short
4044
- fun uniffi_matrix_sdk_ffi_checksum_constructor_mediasource_from_json(
4045
- ): Short
4046
4034
fun uniffi_matrix_sdk_ffi_checksum_constructor_clientbuilder_new(
4047
4035
): Short
4048
4036
fun uniffi_matrix_sdk_ffi_checksum_constructor_qrcodedata_from_bytes(
@@ -4212,12 +4200,6 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
4212
4200
if (lib.uniffi_matrix_sdk_ffi_checksum_func_suggested_role_for_power_level() != 48532.toShort()) {
4213
4201
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
4214
4202
}
4215
- if (lib.uniffi_matrix_sdk_ffi_checksum_method_mediasource_to_json() != 2998.toShort()) {
4216
- throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
4217
- }
4218
- if (lib.uniffi_matrix_sdk_ffi_checksum_method_mediasource_url() != 34026.toShort()) {
4219
- throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
4220
- }
4221
4203
if (lib.uniffi_matrix_sdk_ffi_checksum_method_roommessageeventcontentwithoutrelation_with_mentions() != 8867.toShort()) {
4222
4204
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
4223
4205
}
@@ -4599,6 +4581,9 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
4599
4581
if (lib.uniffi_matrix_sdk_ffi_checksum_method_mediafilehandle_persist() != 12883.toShort()) {
4600
4582
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
4601
4583
}
4584
+ if (lib.uniffi_matrix_sdk_ffi_checksum_method_mediasource_url() != 62692.toShort()) {
4585
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
4586
+ }
4602
4587
if (lib.uniffi_matrix_sdk_ffi_checksum_method_notificationclient_get_notification() != 2524.toShort()) {
4603
4588
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
4604
4589
}
@@ -5253,9 +5238,6 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
5253
5238
if (lib.uniffi_matrix_sdk_ffi_checksum_method_widgetdriverhandle_send() != 18689.toShort()) {
5254
5239
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
5255
5240
}
5256
- if (lib.uniffi_matrix_sdk_ffi_checksum_constructor_mediasource_from_json() != 29216.toShort()) {
5257
- throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
5258
- }
5259
5241
if (lib.uniffi_matrix_sdk_ffi_checksum_constructor_clientbuilder_new() != 27991.toShort()) {
5260
5242
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
5261
5243
}
@@ -10688,8 +10670,6 @@ public object FfiConverterTypeMediaFileHandle: FfiConverter<MediaFileHandle, Poi
10688
10670
10689
10671
public interface MediaSourceInterface {
10690
10672
10691
- fun `toJson`(): kotlin.String
10692
-
10693
10673
fun `url`(): kotlin.String
10694
10674
10695
10675
companion object
@@ -10776,18 +10756,6 @@ open class MediaSource: Disposable, AutoCloseable, MediaSourceInterface {
10776
10756
}
10777
10757
}
10778
10758
10779
- override fun `toJson`(): kotlin.String {
10780
- return FfiConverterString.lift(
10781
- callWithPointer {
10782
- uniffiRustCall() { _status ->
10783
- UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_mediasource_to_json(
10784
- it, _status)
10785
- }
10786
- }
10787
- )
10788
- }
10789
-
10790
-
10791
10759
override fun `url`(): kotlin.String {
10792
10760
return FfiConverterString.lift(
10793
10761
callWithPointer {
@@ -10803,20 +10771,8 @@ open class MediaSource: Disposable, AutoCloseable, MediaSourceInterface {
10803
10771
10804
10772
10805
10773
10806
- companion object {
10807
-
10808
- @Throws(ClientException::class) fun `fromJson`(`json`: kotlin.String): MediaSource {
10809
- return FfiConverterTypeMediaSource.lift(
10810
- uniffiRustCallWithError(ClientException) { _status ->
10811
- UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_constructor_mediasource_from_json(
10812
- FfiConverterString.lower(`json`),_status)
10813
- }
10814
- )
10815
- }
10816
10774
10817
-
10818
-
10819
- }
10775
+ companion object
10820
10776
10821
10777
}
10822
10778
0 commit comments