diff options
Diffstat (limited to 'plugins/signal-protocol/vapi/signal-protocol-public.vapi')
-rw-r--r-- | plugins/signal-protocol/vapi/signal-protocol-public.vapi | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/plugins/signal-protocol/vapi/signal-protocol-public.vapi b/plugins/signal-protocol/vapi/signal-protocol-public.vapi index 40e85c7f..eaf73c0c 100644 --- a/plugins/signal-protocol/vapi/signal-protocol-public.vapi +++ b/plugins/signal-protocol/vapi/signal-protocol-public.vapi @@ -118,14 +118,7 @@ namespace Signal { [Compact] [CCode (cname = "session_pre_key", cprefix = "session_pre_key_", cheader_filename = "signal/session_pre_key.h,signal_helper.h")] public class PreKeyRecord : TypeBase { - public PreKeyRecord(uint32 id, ECKeyPair key_pair) throws GLib.Error { - int err; - this.new(id, key_pair, out err); - throw_by_code(err); - } - [CCode (cheader_filename = "signal_helper.h")] - private PreKeyRecord.new(uint32 id, ECKeyPair key_pair, out int err); - private static int create(out PreKeyRecord pre_key, uint32 id, ECKeyPair key_pair); + public static int create(out PreKeyRecord pre_key, uint32 id, ECKeyPair key_pair); //public static int deserialize(out PreKeyRecord pre_key, uint8[] data, NativeContext global_context); [CCode (instance_pos = 2)] public int serialze(out Buffer buffer); @@ -166,14 +159,7 @@ namespace Signal { [Compact] [CCode (cname = "session_signed_pre_key", cprefix = "session_signed_pre_key_", cheader_filename = "signal/session_pre_key.h")] public class SignedPreKeyRecord : TypeBase { - public SignedPreKeyRecord(uint32 id, uint64 timestamp, ECKeyPair key_pair, uint8[] signature) throws GLib.Error { - int err; - this.new(id, timestamp, key_pair, signature, out err); - throw_by_code(err); - } - [CCode (cheader_filename = "signal_helper.h")] - private SignedPreKeyRecord.new(uint32 id, uint64 timestamp, ECKeyPair key_pair, uint8[] signature, out int err); - private static int create(out SignedPreKeyRecord pre_key, uint32 id, uint64 timestamp, ECKeyPair key_pair, uint8[] signature); + public static int create(out SignedPreKeyRecord pre_key, uint32 id, uint64 timestamp, ECKeyPair key_pair, uint8[] signature); [CCode (instance_pos = 2)] public int serialze(out Buffer buffer); |