Bridge: move PreKeyBundle_New into bridge_fn

This is the first use of Option<&PublicKey> as an argument type.
This commit is contained in:
Jordan Rose
2021-02-01 11:57:08 -08:00
parent dac2074eb2
commit f92e670bfd
11 changed files with 77 additions and 138 deletions

View File

@@ -119,7 +119,7 @@ public final class Native {
public static native int PreKeyBundle_GetSignedPreKeyId(long handle);
public static native long PreKeyBundle_GetSignedPreKeyPublic(long handle);
public static native byte[] PreKeyBundle_GetSignedPreKeySignature(long handle);
public static native long PreKeyBundle_New(int registrationId, int deviceId, int prekeyId, long prekeyHandle, int signedPrekeyId, long signedPrekeyHandle, byte[] signedPrekeySignature, long identityKeyHandle);
public static native long PreKeyBundle_New(int registrationId, int deviceId, int prekeyId, long prekey, int signedPrekeyId, long signedPrekey, byte[] signedPrekeySignature, long identityKey);
public static native long PreKeyRecord_Deserialize(byte[] data);
public static native void PreKeyRecord_Destroy(long handle);