Add bridge_fn_void and use it for SessionRecord_ArchiveCurrentState

This also builds on the mutable borrow groundwork in the previous
commit.
This commit is contained in:
Jordan Rose
2021-02-02 18:03:20 -08:00
parent 35dfd6ad28
commit 478e178ac4
13 changed files with 97 additions and 46 deletions

View File

@@ -210,7 +210,7 @@ public final class Native {
public static native byte[] SessionCipher_DecryptSignalMessage(long message, long protocolAddress, SessionStore sessionStore, IdentityKeyStore identityKeyStore);
public static native CiphertextMessage SessionCipher_EncryptMessage(byte[] message, long protocolAddress, SessionStore sessionStore, IdentityKeyStore identityKeyStore);
public static native void SessionRecord_ArchiveCurrentState(long handle);
public static native void SessionRecord_ArchiveCurrentState(long sessionRecord);
public static native long SessionRecord_Deserialize(byte[] data);
public static native void SessionRecord_Destroy(long handle);
public static native long SessionRecord_FromSingleSessionState(byte[] sessionState);