Skip to content

Commit 430deab

Browse files
author
github-actions
committed
Bump SDK version to 25.09.16 (matrix-rust-sdk to d3a7d26c7d5e470b73c9f1af3081347246a80512)
1 parent 30c41d0 commit 430deab

File tree

2 files changed

+166
-1
lines changed

2 files changed

+166
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
object BuildVersionsSDK {
22
const val majorVersion = 25
33
const val minorVersion = 9
4-
const val patchVersion = 15
4+
const val patchVersion = 16
55
}

sdk/sdk-android/src/main/kotlin/org/matrix/rustcomponents/sdk/matrix_sdk_ffi.kt

Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -801,6 +801,9 @@ internal interface UniffiCallbackInterfaceSpaceRoomListEntriesListenerMethod0 :
801801
internal interface UniffiCallbackInterfaceSpaceRoomListPaginationStateListenerMethod0 : com.sun.jna.Callback {
802802
fun callback(`uniffiHandle`: Long,`paginationState`: RustBufferSpaceRoomListPaginationState.ByValue,`uniffiOutReturn`: Pointer,uniffiCallStatus: UniffiRustCallStatus,)
803803
}
804+
internal interface UniffiCallbackInterfaceSpaceRoomListSpaceListenerMethod0 : com.sun.jna.Callback {
805+
fun callback(`uniffiHandle`: Long,`space`: RustBuffer.ByValue,`uniffiOutReturn`: Pointer,uniffiCallStatus: UniffiRustCallStatus,)
806+
}
804807
internal interface UniffiCallbackInterfaceSpaceServiceJoinedSpacesListenerMethod0 : com.sun.jna.Callback {
805808
fun callback(`uniffiHandle`: Long,`roomUpdates`: RustBuffer.ByValue,`uniffiOutReturn`: Pointer,uniffiCallStatus: UniffiRustCallStatus,)
806809
}
@@ -1290,6 +1293,22 @@ internal open class UniffiVTableCallbackInterfaceSpaceRoomListPaginationStateLis
12901293
`uniffiFree` = other.`uniffiFree`
12911294
}
12921295

1296+
}
1297+
@Structure.FieldOrder("onUpdate", "uniffiFree")
1298+
internal open class UniffiVTableCallbackInterfaceSpaceRoomListSpaceListener(
1299+
@JvmField internal var `onUpdate`: UniffiCallbackInterfaceSpaceRoomListSpaceListenerMethod0? = null,
1300+
@JvmField internal var `uniffiFree`: UniffiCallbackInterfaceFree? = null,
1301+
) : Structure() {
1302+
class UniffiByValue(
1303+
`onUpdate`: UniffiCallbackInterfaceSpaceRoomListSpaceListenerMethod0? = null,
1304+
`uniffiFree`: UniffiCallbackInterfaceFree? = null,
1305+
): UniffiVTableCallbackInterfaceSpaceRoomListSpaceListener(`onUpdate`,`uniffiFree`,), Structure.ByValue
1306+
1307+
internal fun uniffiSetValue(other: UniffiVTableCallbackInterfaceSpaceRoomListSpaceListener) {
1308+
`onUpdate` = other.`onUpdate`
1309+
`uniffiFree` = other.`uniffiFree`
1310+
}
1311+
12931312
}
12941313
@Structure.FieldOrder("onUpdate", "uniffiFree")
12951314
internal open class UniffiVTableCallbackInterfaceSpaceServiceJoinedSpacesListener(
@@ -2521,6 +2540,12 @@ internal open class UniffiVTableCallbackInterfaceWidgetCapabilitiesProvider(
25212540

25222541

25232542

2543+
2544+
2545+
2546+
2547+
2548+
25242549

25252550

25262551

@@ -2566,6 +2591,7 @@ internal interface UniffiLib : Library {
25662591
uniffiCallbackInterfaceSessionVerificationControllerDelegate.register(lib)
25672592
uniffiCallbackInterfaceSpaceRoomListEntriesListener.register(lib)
25682593
uniffiCallbackInterfaceSpaceRoomListPaginationStateListener.register(lib)
2594+
uniffiCallbackInterfaceSpaceRoomListSpaceListener.register(lib)
25692595
uniffiCallbackInterfaceSpaceServiceJoinedSpacesListener.register(lib)
25702596
uniffiCallbackInterfaceSyncServiceStateObserver.register(lib)
25712597
uniffiCallbackInterfaceTimelineListener.register(lib)
@@ -3400,10 +3426,14 @@ internal interface UniffiLib : Library {
34003426
): RustBufferSpaceRoomListPaginationState.ByValue
34013427
fun uniffi_matrix_sdk_ffi_fn_method_spaceroomlist_rooms(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
34023428
): RustBuffer.ByValue
3429+
fun uniffi_matrix_sdk_ffi_fn_method_spaceroomlist_space(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
3430+
): RustBuffer.ByValue
34033431
fun uniffi_matrix_sdk_ffi_fn_method_spaceroomlist_subscribe_to_pagination_state_updates(`ptr`: Pointer,`listener`: Long,uniffi_out_err: UniffiRustCallStatus,
34043432
): Pointer
34053433
fun uniffi_matrix_sdk_ffi_fn_method_spaceroomlist_subscribe_to_room_update(`ptr`: Pointer,`listener`: Long,uniffi_out_err: UniffiRustCallStatus,
34063434
): Pointer
3435+
fun uniffi_matrix_sdk_ffi_fn_method_spaceroomlist_subscribe_to_space_updates(`ptr`: Pointer,`listener`: Long,uniffi_out_err: UniffiRustCallStatus,
3436+
): Pointer
34073437
fun uniffi_matrix_sdk_ffi_fn_clone_spaceservice(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
34083438
): Pointer
34093439
fun uniffi_matrix_sdk_ffi_fn_free_spaceservice(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
@@ -3668,6 +3698,8 @@ internal interface UniffiLib : Library {
36683698
): Unit
36693699
fun uniffi_matrix_sdk_ffi_fn_init_callback_vtable_spaceroomlistpaginationstatelistener(`vtable`: UniffiVTableCallbackInterfaceSpaceRoomListPaginationStateListener,
36703700
): Unit
3701+
fun uniffi_matrix_sdk_ffi_fn_init_callback_vtable_spaceroomlistspacelistener(`vtable`: UniffiVTableCallbackInterfaceSpaceRoomListSpaceListener,
3702+
): Unit
36713703
fun uniffi_matrix_sdk_ffi_fn_init_callback_vtable_spaceservicejoinedspaceslistener(`vtable`: UniffiVTableCallbackInterfaceSpaceServiceJoinedSpacesListener,
36723704
): Unit
36733705
fun uniffi_matrix_sdk_ffi_fn_init_callback_vtable_syncservicestateobserver(`vtable`: UniffiVTableCallbackInterfaceSyncServiceStateObserver,
@@ -4584,10 +4616,14 @@ internal interface UniffiLib : Library {
45844616
): Short
45854617
fun uniffi_matrix_sdk_ffi_checksum_method_spaceroomlist_rooms(
45864618
): Short
4619+
fun uniffi_matrix_sdk_ffi_checksum_method_spaceroomlist_space(
4620+
): Short
45874621
fun uniffi_matrix_sdk_ffi_checksum_method_spaceroomlist_subscribe_to_pagination_state_updates(
45884622
): Short
45894623
fun uniffi_matrix_sdk_ffi_checksum_method_spaceroomlist_subscribe_to_room_update(
45904624
): Short
4625+
fun uniffi_matrix_sdk_ffi_checksum_method_spaceroomlist_subscribe_to_space_updates(
4626+
): Short
45914627
fun uniffi_matrix_sdk_ffi_checksum_method_spaceservice_joined_spaces(
45924628
): Short
45934629
fun uniffi_matrix_sdk_ffi_checksum_method_spaceservice_space_room_list(
@@ -4814,6 +4850,8 @@ internal interface UniffiLib : Library {
48144850
): Short
48154851
fun uniffi_matrix_sdk_ffi_checksum_method_spaceroomlistpaginationstatelistener_on_update(
48164852
): Short
4853+
fun uniffi_matrix_sdk_ffi_checksum_method_spaceroomlistspacelistener_on_update(
4854+
): Short
48174855
fun uniffi_matrix_sdk_ffi_checksum_method_spaceservicejoinedspaceslistener_on_update(
48184856
): Short
48194857
fun uniffi_matrix_sdk_ffi_checksum_method_syncservicestateobserver_on_update(
@@ -5958,12 +5996,18 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
59585996
if (lib.uniffi_matrix_sdk_ffi_checksum_method_spaceroomlist_rooms() != 24664.toShort()) {
59595997
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
59605998
}
5999+
if (lib.uniffi_matrix_sdk_ffi_checksum_method_spaceroomlist_space() != 25368.toShort()) {
6000+
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
6001+
}
59616002
if (lib.uniffi_matrix_sdk_ffi_checksum_method_spaceroomlist_subscribe_to_pagination_state_updates() != 16775.toShort()) {
59626003
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
59636004
}
59646005
if (lib.uniffi_matrix_sdk_ffi_checksum_method_spaceroomlist_subscribe_to_room_update() != 55793.toShort()) {
59656006
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
59666007
}
6008+
if (lib.uniffi_matrix_sdk_ffi_checksum_method_spaceroomlist_subscribe_to_space_updates() != 26327.toShort()) {
6009+
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
6010+
}
59676011
if (lib.uniffi_matrix_sdk_ffi_checksum_method_spaceservice_joined_spaces() != 54285.toShort()) {
59686012
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
59696013
}
@@ -6303,6 +6347,9 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
63036347
if (lib.uniffi_matrix_sdk_ffi_checksum_method_spaceroomlistpaginationstatelistener_on_update() != 11960.toShort()) {
63046348
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
63056349
}
6350+
if (lib.uniffi_matrix_sdk_ffi_checksum_method_spaceroomlistspacelistener_on_update() != 39714.toShort()) {
6351+
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
6352+
}
63066353
if (lib.uniffi_matrix_sdk_ffi_checksum_method_spaceservicejoinedspaceslistener_on_update() != 19262.toShort()) {
63076354
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
63086355
}
@@ -22317,6 +22364,11 @@ public interface SpaceRoomListInterface {
2231722364
*/
2231822365
fun `rooms`(): List<SpaceRoom>
2231922366

22367+
/**
22368+
* Returns the space of the room list if known.
22369+
*/
22370+
fun `space`(): SpaceRoom?
22371+
2232022372
/**
2232122373
* Subscribe to pagination updates.
2232222374
*/
@@ -22327,6 +22379,11 @@ public interface SpaceRoomListInterface {
2232722379
*/
2232822380
fun `subscribeToRoomUpdate`(`listener`: SpaceRoomListEntriesListener): TaskHandle
2232922381

22382+
/**
22383+
* Subscribe to space updates.
22384+
*/
22385+
fun `subscribeToSpaceUpdates`(`listener`: SpaceRoomListSpaceListener): TaskHandle
22386+
2233022387
companion object
2233122388
}
2233222389

@@ -22479,6 +22536,21 @@ open class SpaceRoomList: Disposable, AutoCloseable, SpaceRoomListInterface {
2247922536

2248022537

2248122538

22539+
/**
22540+
* Returns the space of the room list if known.
22541+
*/override fun `space`(): SpaceRoom? {
22542+
return FfiConverterOptionalTypeSpaceRoom.lift(
22543+
callWithPointer {
22544+
uniffiRustCall() { _status ->
22545+
UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_spaceroomlist_space(
22546+
it, _status)
22547+
}
22548+
}
22549+
)
22550+
}
22551+
22552+
22553+
2248222554
/**
2248322555
* Subscribe to pagination updates.
2248422556
*/override fun `subscribeToPaginationStateUpdates`(`listener`: SpaceRoomListPaginationStateListener): TaskHandle {
@@ -22509,6 +22581,21 @@ open class SpaceRoomList: Disposable, AutoCloseable, SpaceRoomListInterface {
2250922581

2251022582

2251122583

22584+
/**
22585+
* Subscribe to space updates.
22586+
*/override fun `subscribeToSpaceUpdates`(`listener`: SpaceRoomListSpaceListener): TaskHandle {
22587+
return FfiConverterTypeTaskHandle.lift(
22588+
callWithPointer {
22589+
uniffiRustCall() { _status ->
22590+
UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_spaceroomlist_subscribe_to_space_updates(
22591+
it, FfiConverterTypeSpaceRoomListSpaceListener.lower(`listener`),_status)
22592+
}
22593+
}
22594+
)
22595+
}
22596+
22597+
22598+
2251222599

2251322600

2251422601

@@ -46397,6 +46484,55 @@ public object FfiConverterTypeSpaceRoomListPaginationStateListener: FfiConverter
4639746484

4639846485

4639946486

46487+
public interface SpaceRoomListSpaceListener {
46488+
46489+
fun `onUpdate`(`space`: SpaceRoom?)
46490+
46491+
companion object
46492+
}
46493+
46494+
46495+
46496+
// Put the implementation in an object so we don't pollute the top-level namespace
46497+
internal object uniffiCallbackInterfaceSpaceRoomListSpaceListener {
46498+
internal object `onUpdate`: UniffiCallbackInterfaceSpaceRoomListSpaceListenerMethod0 {
46499+
override fun callback(`uniffiHandle`: Long,`space`: RustBuffer.ByValue,`uniffiOutReturn`: Pointer,uniffiCallStatus: UniffiRustCallStatus,) {
46500+
val uniffiObj = FfiConverterTypeSpaceRoomListSpaceListener.handleMap.get(uniffiHandle)
46501+
val makeCall = { ->
46502+
uniffiObj.`onUpdate`(
46503+
FfiConverterOptionalTypeSpaceRoom.lift(`space`),
46504+
)
46505+
}
46506+
val writeReturn = { _: Unit -> Unit }
46507+
uniffiTraitInterfaceCall(uniffiCallStatus, makeCall, writeReturn)
46508+
}
46509+
}
46510+
46511+
internal object uniffiFree: UniffiCallbackInterfaceFree {
46512+
override fun callback(handle: Long) {
46513+
FfiConverterTypeSpaceRoomListSpaceListener.handleMap.remove(handle)
46514+
}
46515+
}
46516+
46517+
internal var vtable = UniffiVTableCallbackInterfaceSpaceRoomListSpaceListener.UniffiByValue(
46518+
`onUpdate`,
46519+
uniffiFree,
46520+
)
46521+
46522+
// Registers the foreign callback with the Rust side.
46523+
// This method is generated for each callback interface.
46524+
internal fun register(lib: UniffiLib) {
46525+
lib.uniffi_matrix_sdk_ffi_fn_init_callback_vtable_spaceroomlistspacelistener(vtable)
46526+
}
46527+
}
46528+
46529+
// The ffiConverter which transforms the Callbacks in to handles to pass to Rust.
46530+
public object FfiConverterTypeSpaceRoomListSpaceListener: FfiConverterCallbackInterface<SpaceRoomListSpaceListener>()
46531+
46532+
46533+
46534+
46535+
4640046536
public interface SpaceServiceJoinedSpacesListener {
4640146537

4640246538
fun `onUpdate`(`roomUpdates`: List<SpaceListUpdate>)
@@ -47812,6 +47948,35 @@ public object FfiConverterOptionalTypeRoomMemberWithSenderInfo: FfiConverterRust
4781247948

4781347949

4781447950

47951+
public object FfiConverterOptionalTypeSpaceRoom: FfiConverterRustBuffer<SpaceRoom?> {
47952+
override fun read(buf: ByteBuffer): SpaceRoom? {
47953+
if (buf.get().toInt() == 0) {
47954+
return null
47955+
}
47956+
return FfiConverterTypeSpaceRoom.read(buf)
47957+
}
47958+
47959+
override fun allocationSize(value: SpaceRoom?): ULong {
47960+
if (value == null) {
47961+
return 1UL
47962+
} else {
47963+
return 1UL + FfiConverterTypeSpaceRoom.allocationSize(value)
47964+
}
47965+
}
47966+
47967+
override fun write(value: SpaceRoom?, buf: ByteBuffer) {
47968+
if (value == null) {
47969+
buf.put(0)
47970+
} else {
47971+
buf.put(1)
47972+
FfiConverterTypeSpaceRoom.write(value, buf)
47973+
}
47974+
}
47975+
}
47976+
47977+
47978+
47979+
4781547980
public object FfiConverterOptionalTypeSuccessorRoom: FfiConverterRustBuffer<SuccessorRoom?> {
4781647981
override fun read(buf: ByteBuffer): SuccessorRoom? {
4781747982
if (buf.get().toInt() == 0) {

0 commit comments

Comments
 (0)