offline_protocol 0.33.0 → 0.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 330252f005937a592e90d5b5a307c3d3c57032737f5ba61ef35db77a1477d965
4
- data.tar.gz: 8966afdf7d449e578bf5fd8f67b9c51241c645b754ecc9f763f043d232285ee5
3
+ metadata.gz: 2d1bbe0149f7e0dfd4aa2b21c77119bf581ae54d0e6543e0230c7ac7499621df
4
+ data.tar.gz: ab4be6fd12f99d0cfbaa88d0d64c89daca1743aa4dddaf5b808402c3d885e03d
5
5
  SHA512:
6
- metadata.gz: ec21cda69b9a1d23c9bd9842da783c75e8074b68bea05e5a7cac032f4027afe2221b927f466f1f218202ed976ef9cda043021ae6341aca46cdc54352d7449777
7
- data.tar.gz: 87a06e1c37dcb956412df33bb149886d5075bc800303896b4ab38204d57cc62c167c3e2734271f0a949c46888e157b6176c05216706320ebaab3b054f388d8e4
6
+ metadata.gz: 68003a549be873e074111804b18ec6f968ef14e0969fc69c04c640eb27ec95c040c93170e70f599f1710405086bcd982c0b7b89adf62ca1d735553e6a9d02419
7
+ data.tar.gz: 431e5dd272175f28b7538c659aafd9c142d1afada96ad5e441fec40a1757ef6f5ced6501a8bfa08f761ba4d49be5f416469e9da8c17663b4ff2e01f8198ee3db
data/README.md CHANGED
@@ -128,3 +128,8 @@ bindings, which are one artifact set:
128
128
  The Ruby generator is part of `uniffi-bindgen`, so there is nothing more to
129
129
  install than the other bindings need. [`uniffi.toml`](uniffi.toml) names the
130
130
  library; see R1 in the contract.
131
+
132
+ ## Community
133
+
134
+ Questions, or stuck on an integration? Join the
135
+ [developer Discord](https://discord.gg/9TQGrxaPJk).
@@ -40,17 +40,17 @@ upstream source on each crate's page) — the exact versions are listed below.
40
40
 
41
41
  Used by:
42
42
 
43
- - [offline-protocol 0.33.0](https://github.com/Offline-Protocol/offline-protocol-sdk)
44
- - [offline-protocol-core 0.33.0](https://github.com/Offline-Protocol/offline-protocol-sdk)
45
- - [offline-protocol-data 0.33.0](https://github.com/Offline-Protocol/offline-protocol-sdk)
46
- - [offline-protocol-mls 0.33.0](https://github.com/Offline-Protocol/offline-protocol-sdk)
47
- - [offline-protocol-reliability 0.33.0](https://github.com/Offline-Protocol/offline-protocol-sdk)
48
- - [offline-protocol-router 0.33.0](https://github.com/Offline-Protocol/offline-protocol-sdk)
49
- - [offline-protocol-sealed 0.33.0](https://github.com/Offline-Protocol/offline-protocol-sdk)
50
- - [offline-protocol-services 0.33.0](https://github.com/Offline-Protocol/offline-protocol-sdk)
51
- - [offline-protocol-telemetry-wire 0.33.0](https://github.com/Offline-Protocol/offline-protocol-sdk)
52
- - [offline-protocol-transport 0.33.0](https://github.com/Offline-Protocol/offline-protocol-sdk)
53
- - [offline-protocol-uniffi 0.33.0](https://github.com/Offline-Protocol/offline-protocol-sdk)
43
+ - [offline-protocol 0.34.0](https://github.com/Offline-Protocol/offline-protocol-sdk)
44
+ - [offline-protocol-core 0.34.0](https://github.com/Offline-Protocol/offline-protocol-sdk)
45
+ - [offline-protocol-data 0.34.0](https://github.com/Offline-Protocol/offline-protocol-sdk)
46
+ - [offline-protocol-mls 0.34.0](https://github.com/Offline-Protocol/offline-protocol-sdk)
47
+ - [offline-protocol-reliability 0.34.0](https://github.com/Offline-Protocol/offline-protocol-sdk)
48
+ - [offline-protocol-router 0.34.0](https://github.com/Offline-Protocol/offline-protocol-sdk)
49
+ - [offline-protocol-sealed 0.34.0](https://github.com/Offline-Protocol/offline-protocol-sdk)
50
+ - [offline-protocol-services 0.34.0](https://github.com/Offline-Protocol/offline-protocol-sdk)
51
+ - [offline-protocol-telemetry-wire 0.34.0](https://github.com/Offline-Protocol/offline-protocol-sdk)
52
+ - [offline-protocol-transport 0.34.0](https://github.com/Offline-Protocol/offline-protocol-sdk)
53
+ - [offline-protocol-uniffi 0.34.0](https://github.com/Offline-Protocol/offline-protocol-sdk)
54
54
 
55
55
  ```
56
56
  GNU AFFERO GENERAL PUBLIC LICENSE
@@ -439,6 +439,33 @@ private_constant :UniffiHandleMap
439
439
  end
440
440
  end
441
441
 
442
+ # The Record type FastLinkDirective.
443
+
444
+ def self.check_lower_TypeFastLinkDirective(v)
445
+
446
+
447
+
448
+ RustBuffer.check_lower_Optionalstring(v.ssid)
449
+ RustBuffer.check_lower_Optionalstring(v.passphrase)
450
+ RustBuffer.check_lower_Optionalstring(v.host)
451
+ RustBuffer.check_lower_Optionalu16(v.port)
452
+
453
+ RustBuffer.check_lower_Optionalstring(v.reason)
454
+ end
455
+
456
+ def self.alloc_from_TypeFastLinkDirective(v)
457
+ RustBuffer.allocWithBuilder do |builder|
458
+ builder.write_TypeFastLinkDirective(v)
459
+ return builder.finalize
460
+ end
461
+ end
462
+
463
+ def consume_into_TypeFastLinkDirective
464
+ consumeWithStream do |stream|
465
+ return stream.read_TypeFastLinkDirective
466
+ end
467
+ end
468
+
442
469
  # The Record type FileProgress.
443
470
 
444
471
  def self.check_lower_TypeFileProgress(v)
@@ -1824,6 +1851,27 @@ private_constant :UniffiHandleMap
1824
1851
  end
1825
1852
  end
1826
1853
 
1854
+ # The Optional<T> type for u16.
1855
+
1856
+ def self.check_lower_Optionalu16(v)
1857
+ if !v.nil?
1858
+
1859
+ end
1860
+ end
1861
+
1862
+ def self.alloc_from_Optionalu16(v)
1863
+ RustBuffer.allocWithBuilder do |builder|
1864
+ builder.write_Optionalu16(v)
1865
+ return builder.finalize()
1866
+ end
1867
+ end
1868
+
1869
+ def consume_into_Optionalu16
1870
+ consumeWithStream do |stream|
1871
+ return stream.read_Optionalu16
1872
+ end
1873
+ end
1874
+
1827
1875
  # The Optional<T> type for i16.
1828
1876
 
1829
1877
  def self.check_lower_Optionali16(v)
@@ -2034,6 +2082,27 @@ private_constant :UniffiHandleMap
2034
2082
  end
2035
2083
  end
2036
2084
 
2085
+ # The Optional<T> type for TypeFastLinkDirective.
2086
+
2087
+ def self.check_lower_OptionalTypeFastLinkDirective(v)
2088
+ if !v.nil?
2089
+ RustBuffer.check_lower_TypeFastLinkDirective(v)
2090
+ end
2091
+ end
2092
+
2093
+ def self.alloc_from_OptionalTypeFastLinkDirective(v)
2094
+ RustBuffer.allocWithBuilder do |builder|
2095
+ builder.write_OptionalTypeFastLinkDirective(v)
2096
+ return builder.finalize()
2097
+ end
2098
+ end
2099
+
2100
+ def consume_into_OptionalTypeFastLinkDirective
2101
+ consumeWithStream do |stream|
2102
+ return stream.read_OptionalTypeFastLinkDirective
2103
+ end
2104
+ end
2105
+
2037
2106
  # The Optional<T> type for TypeFileProgress.
2038
2107
 
2039
2108
  def self.check_lower_OptionalTypeFileProgress(v)
@@ -2866,6 +2935,22 @@ class RustBufferStream
2866
2935
  )
2867
2936
  end
2868
2937
 
2938
+ # The Record type FastLinkDirective.
2939
+
2940
+ def read_TypeFastLinkDirective
2941
+ FastLinkDirective.new(
2942
+ kind: read_string,
2943
+ link_id: read_string,
2944
+ peer_id: read_string,
2945
+ ssid: read_Optionalstring,
2946
+ passphrase: read_Optionalstring,
2947
+ host: read_Optionalstring,
2948
+ port: read_Optionalu16,
2949
+ expires_in_ms: read_u64,
2950
+ reason: read_Optionalstring
2951
+ )
2952
+ end
2953
+
2869
2954
  # The Record type FileProgress.
2870
2955
 
2871
2956
  def read_TypeFileProgress
@@ -4050,6 +4135,21 @@ class RustBufferStream
4050
4135
  end
4051
4136
 
4052
4137
 
4138
+ # The Optional<T> type for u16.
4139
+
4140
+ def read_Optionalu16
4141
+ flag = unpack_from 1, 'c'
4142
+
4143
+ if flag == 0
4144
+ return nil
4145
+ elsif flag == 1
4146
+ return read_u16
4147
+ else
4148
+ raise InternalError, 'Unexpected flag byte for Optionalu16'
4149
+ end
4150
+ end
4151
+
4152
+
4053
4153
  # The Optional<T> type for i16.
4054
4154
 
4055
4155
  def read_Optionali16
@@ -4200,6 +4300,21 @@ class RustBufferStream
4200
4300
  end
4201
4301
 
4202
4302
 
4303
+ # The Optional<T> type for TypeFastLinkDirective.
4304
+
4305
+ def read_OptionalTypeFastLinkDirective
4306
+ flag = unpack_from 1, 'c'
4307
+
4308
+ if flag == 0
4309
+ return nil
4310
+ elsif flag == 1
4311
+ return read_TypeFastLinkDirective
4312
+ else
4313
+ raise InternalError, 'Unexpected flag byte for OptionalTypeFastLinkDirective'
4314
+ end
4315
+ end
4316
+
4317
+
4203
4318
  # The Optional<T> type for TypeFileProgress.
4204
4319
 
4205
4320
  def read_OptionalTypeFileProgress
@@ -4852,6 +4967,20 @@ class RustBufferBuilder
4852
4967
  self.write_TypePendingQueueConfig(v.pending_queue)
4853
4968
  end
4854
4969
 
4970
+ # The Record type FastLinkDirective.
4971
+
4972
+ def write_TypeFastLinkDirective(v)
4973
+ self.write_string(v.kind)
4974
+ self.write_string(v.link_id)
4975
+ self.write_string(v.peer_id)
4976
+ self.write_Optionalstring(v.ssid)
4977
+ self.write_Optionalstring(v.passphrase)
4978
+ self.write_Optionalstring(v.host)
4979
+ self.write_Optionalu16(v.port)
4980
+ self.write_u64(v.expires_in_ms)
4981
+ self.write_Optionalstring(v.reason)
4982
+ end
4983
+
4855
4984
  # The Record type FileProgress.
4856
4985
 
4857
4986
  def write_TypeFileProgress(v)
@@ -5791,6 +5920,17 @@ class RustBufferBuilder
5791
5920
  end
5792
5921
  end
5793
5922
 
5923
+ # The Optional<T> type for u16.
5924
+
5925
+ def write_Optionalu16(v)
5926
+ if v.nil?
5927
+ pack_into(1, 'c', 0)
5928
+ else
5929
+ pack_into(1, 'c', 1)
5930
+ self.write_u16(v)
5931
+ end
5932
+ end
5933
+
5794
5934
  # The Optional<T> type for i16.
5795
5935
 
5796
5936
  def write_Optionali16(v)
@@ -5901,6 +6041,17 @@ class RustBufferBuilder
5901
6041
  end
5902
6042
  end
5903
6043
 
6044
+ # The Optional<T> type for TypeFastLinkDirective.
6045
+
6046
+ def write_OptionalTypeFastLinkDirective(v)
6047
+ if v.nil?
6048
+ pack_into(1, 'c', 0)
6049
+ else
6050
+ pack_into(1, 'c', 1)
6051
+ self.write_TypeFastLinkDirective(v)
6052
+ end
6053
+ end
6054
+
5904
6055
  # The Optional<T> type for TypeFileProgress.
5905
6056
 
5906
6057
  def write_OptionalTypeFileProgress(v)
@@ -6945,6 +7096,10 @@ module UniFFILib
6945
7096
  [:uint64, RustBuffer.by_value, RustCallStatus.by_ref],
6946
7097
  :void
6947
7098
 
7099
+ attach_function :uniffi_offline_protocol_uniffi_fn_method_offlineprotocol_close_fast_link,
7100
+ [:uint64, RustBuffer.by_value, RustCallStatus.by_ref],
7101
+ :int8
7102
+
6948
7103
  attach_function :uniffi_offline_protocol_uniffi_fn_method_offlineprotocol_close_file_stores,
6949
7104
  [:uint64, RustCallStatus.by_ref],
6950
7105
  :void
@@ -7381,6 +7536,10 @@ module UniFFILib
7381
7536
  [:uint64, RustBuffer.by_value, RustBuffer.by_value, RustCallStatus.by_ref],
7382
7537
  :void
7383
7538
 
7539
+ attach_function :uniffi_offline_protocol_uniffi_fn_method_offlineprotocol_request_fast_link,
7540
+ [:uint64, RustBuffer.by_value, RustCallStatus.by_ref],
7541
+ RustBuffer.by_value
7542
+
7384
7543
  attach_function :uniffi_offline_protocol_uniffi_fn_method_offlineprotocol_request_group_relay_registration,
7385
7544
  [:uint64, RustBuffer.by_value, RustCallStatus.by_ref],
7386
7545
  :int8
@@ -7589,6 +7748,14 @@ module UniFFILib
7589
7748
  [:uint64, RustBuffer.by_value, RustBuffer.by_value, RustBuffer.by_value, RustCallStatus.by_ref],
7590
7749
  :int8
7591
7750
 
7751
+ attach_function :uniffi_offline_protocol_uniffi_fn_method_offlineprotocol_wifi_direct_fast_link_ended,
7752
+ [:uint64, RustBuffer.by_value, RustBuffer.by_value, RustCallStatus.by_ref],
7753
+ :void
7754
+
7755
+ attach_function :uniffi_offline_protocol_uniffi_fn_method_offlineprotocol_wifi_direct_fast_link_hosting,
7756
+ [:uint64, RustBuffer.by_value, RustBuffer.by_value, :uint16, RustCallStatus.by_ref],
7757
+ :void
7758
+
7592
7759
  attach_function :uniffi_offline_protocol_uniffi_fn_method_offlineprotocol_wifi_direct_get_next_message,
7593
7760
  [:uint64, RustCallStatus.by_ref],
7594
7761
  RustBuffer.by_value
@@ -7597,6 +7764,10 @@ module UniFFILib
7597
7764
  [:uint64, RustBuffer.by_value, RustBuffer.by_value, RustCallStatus.by_ref],
7598
7765
  :void
7599
7766
 
7767
+ attach_function :uniffi_offline_protocol_uniffi_fn_method_offlineprotocol_wifi_direct_next_fast_link_directive,
7768
+ [:uint64, RustCallStatus.by_ref],
7769
+ RustBuffer.by_value
7770
+
7600
7771
  attach_function :uniffi_offline_protocol_uniffi_fn_method_offlineprotocol_wifi_direct_peer_connected,
7601
7772
  [:uint64, RustBuffer.by_value, RustCallStatus.by_ref],
7602
7773
  :void
@@ -7605,6 +7776,10 @@ module UniFFILib
7605
7776
  [:uint64, RustBuffer.by_value, RustCallStatus.by_ref],
7606
7777
  :void
7607
7778
 
7779
+ attach_function :uniffi_offline_protocol_uniffi_fn_method_offlineprotocol_wifi_direct_set_fast_link_roles,
7780
+ [:uint64, :int8, :int8, :int8, RustCallStatus.by_ref],
7781
+ :void
7782
+
7608
7783
  attach_function :uniffi_offline_protocol_uniffi_fn_method_offlineprotocol_wifi_direct_status_changed,
7609
7784
  [:uint64, :int8, RustCallStatus.by_ref],
7610
7785
  :void
@@ -8133,6 +8308,10 @@ module UniFFILib
8133
8308
  [],
8134
8309
  :uint16
8135
8310
 
8311
+ attach_function :uniffi_offline_protocol_uniffi_checksum_method_offlineprotocol_close_fast_link,
8312
+ [],
8313
+ :uint16
8314
+
8136
8315
  attach_function :uniffi_offline_protocol_uniffi_checksum_method_offlineprotocol_close_file_stores,
8137
8316
  [],
8138
8317
  :uint16
@@ -8569,6 +8748,10 @@ module UniFFILib
8569
8748
  [],
8570
8749
  :uint16
8571
8750
 
8751
+ attach_function :uniffi_offline_protocol_uniffi_checksum_method_offlineprotocol_request_fast_link,
8752
+ [],
8753
+ :uint16
8754
+
8572
8755
  attach_function :uniffi_offline_protocol_uniffi_checksum_method_offlineprotocol_request_group_relay_registration,
8573
8756
  [],
8574
8757
  :uint16
@@ -8777,6 +8960,14 @@ module UniFFILib
8777
8960
  [],
8778
8961
  :uint16
8779
8962
 
8963
+ attach_function :uniffi_offline_protocol_uniffi_checksum_method_offlineprotocol_wifi_direct_fast_link_ended,
8964
+ [],
8965
+ :uint16
8966
+
8967
+ attach_function :uniffi_offline_protocol_uniffi_checksum_method_offlineprotocol_wifi_direct_fast_link_hosting,
8968
+ [],
8969
+ :uint16
8970
+
8780
8971
  attach_function :uniffi_offline_protocol_uniffi_checksum_method_offlineprotocol_wifi_direct_get_next_message,
8781
8972
  [],
8782
8973
  :uint16
@@ -8785,6 +8976,10 @@ module UniFFILib
8785
8976
  [],
8786
8977
  :uint16
8787
8978
 
8979
+ attach_function :uniffi_offline_protocol_uniffi_checksum_method_offlineprotocol_wifi_direct_next_fast_link_directive,
8980
+ [],
8981
+ :uint16
8982
+
8788
8983
  attach_function :uniffi_offline_protocol_uniffi_checksum_method_offlineprotocol_wifi_direct_peer_connected,
8789
8984
  [],
8790
8985
  :uint16
@@ -8793,6 +8988,10 @@ module UniFFILib
8793
8988
  [],
8794
8989
  :uint16
8795
8990
 
8991
+ attach_function :uniffi_offline_protocol_uniffi_checksum_method_offlineprotocol_wifi_direct_set_fast_link_roles,
8992
+ [],
8993
+ :uint16
8994
+
8796
8995
  attach_function :uniffi_offline_protocol_uniffi_checksum_method_offlineprotocol_wifi_direct_status_changed,
8797
8996
  [],
8798
8997
  :uint16
@@ -9467,6 +9666,56 @@ class EncryptionConfig
9467
9666
  true
9468
9667
  end
9469
9668
 
9669
+ end
9670
+
9671
+ # Record type FastLinkDirective
9672
+ class FastLinkDirective
9673
+ attr_reader :kind, :link_id, :peer_id, :ssid, :passphrase, :host, :port, :expires_in_ms, :reason
9674
+
9675
+ def initialize(kind:, link_id:, peer_id:, ssid:, passphrase:, host:, port:, expires_in_ms:, reason:)
9676
+ @kind = kind
9677
+ @link_id = link_id
9678
+ @peer_id = peer_id
9679
+ @ssid = ssid
9680
+ @passphrase = passphrase
9681
+ @host = host
9682
+ @port = port
9683
+ @expires_in_ms = expires_in_ms
9684
+ @reason = reason
9685
+ end
9686
+
9687
+ def ==(other)
9688
+ if @kind != other.kind
9689
+ return false
9690
+ end
9691
+ if @link_id != other.link_id
9692
+ return false
9693
+ end
9694
+ if @peer_id != other.peer_id
9695
+ return false
9696
+ end
9697
+ if @ssid != other.ssid
9698
+ return false
9699
+ end
9700
+ if @passphrase != other.passphrase
9701
+ return false
9702
+ end
9703
+ if @host != other.host
9704
+ return false
9705
+ end
9706
+ if @port != other.port
9707
+ return false
9708
+ end
9709
+ if @expires_in_ms != other.expires_in_ms
9710
+ return false
9711
+ end
9712
+ if @reason != other.reason
9713
+ return false
9714
+ end
9715
+
9716
+ true
9717
+ end
9718
+
9470
9719
  end
9471
9720
 
9472
9721
  # Record type FileProgress
@@ -11959,6 +12208,12 @@ end
11959
12208
  ::OfflineProtocol.rust_call_with_error(ProtocolError,:uniffi_offline_protocol_uniffi_fn_method_offlineprotocol_cancel_file_transfer,uniffi_clone_handle(),RustBuffer.alloc_from_string(file_id))
11960
12209
  end
11961
12210
 
12211
+ def close_fast_link(peer_id)
12212
+ peer_id = ::OfflineProtocol::uniffi_utf8(peer_id)
12213
+
12214
+ result = ::OfflineProtocol.rust_call(:uniffi_offline_protocol_uniffi_fn_method_offlineprotocol_close_fast_link,uniffi_clone_handle(),RustBuffer.alloc_from_string(peer_id))
12215
+ return 1 == result
12216
+ end
11962
12217
  def close_file_stores()
11963
12218
  ::OfflineProtocol.rust_call_with_error(ProtocolError,:uniffi_offline_protocol_uniffi_fn_method_offlineprotocol_close_file_stores,uniffi_clone_handle(),)
11964
12219
  end
@@ -12583,6 +12838,12 @@ end
12583
12838
  ::OfflineProtocol.rust_call_with_error(ProtocolError,:uniffi_offline_protocol_uniffi_fn_method_offlineprotocol_rename_group,uniffi_clone_handle(),RustBuffer.alloc_from_string(group_id),RustBuffer.alloc_from_string(new_name))
12584
12839
  end
12585
12840
 
12841
+ def request_fast_link(peer_id)
12842
+ peer_id = ::OfflineProtocol::uniffi_utf8(peer_id)
12843
+
12844
+ result = ::OfflineProtocol.rust_call_with_error(ProtocolError,:uniffi_offline_protocol_uniffi_fn_method_offlineprotocol_request_fast_link,uniffi_clone_handle(),RustBuffer.alloc_from_string(peer_id))
12845
+ return result.consume_into_string
12846
+ end
12586
12847
  def request_group_relay_registration(group_id)
12587
12848
  group_id = ::OfflineProtocol::uniffi_utf8(group_id)
12588
12849
 
@@ -12957,6 +13218,24 @@ end
12957
13218
  result = ::OfflineProtocol.rust_call_with_error(ProtocolError,:uniffi_offline_protocol_uniffi_fn_method_offlineprotocol_verify_signature_bytes,uniffi_clone_handle(),RustBuffer.alloc_from_bytes(public_key),RustBuffer.alloc_from_bytes(data),RustBuffer.alloc_from_bytes(signature))
12958
13219
  return 1 == result
12959
13220
  end
13221
+ def wifi_direct_fast_link_ended(link_id, reason)
13222
+ link_id = ::OfflineProtocol::uniffi_utf8(link_id)
13223
+
13224
+ reason = ::OfflineProtocol::uniffi_utf8(reason)
13225
+
13226
+ ::OfflineProtocol.rust_call(:uniffi_offline_protocol_uniffi_fn_method_offlineprotocol_wifi_direct_fast_link_ended,uniffi_clone_handle(),RustBuffer.alloc_from_string(link_id),RustBuffer.alloc_from_string(reason))
13227
+ end
13228
+
13229
+ def wifi_direct_fast_link_hosting(link_id, host, port)
13230
+ link_id = ::OfflineProtocol::uniffi_utf8(link_id)
13231
+
13232
+ host = ::OfflineProtocol::uniffi_utf8(host)
13233
+
13234
+ port = ::OfflineProtocol::uniffi_in_range(port, "u16", 0, 2**16)
13235
+
13236
+ ::OfflineProtocol.rust_call_with_error(ProtocolError,:uniffi_offline_protocol_uniffi_fn_method_offlineprotocol_wifi_direct_fast_link_hosting,uniffi_clone_handle(),RustBuffer.alloc_from_string(link_id),RustBuffer.alloc_from_string(host),port)
13237
+ end
13238
+
12960
13239
  def wifi_direct_get_next_message()
12961
13240
  result = ::OfflineProtocol.rust_call(:uniffi_offline_protocol_uniffi_fn_method_offlineprotocol_wifi_direct_get_next_message,uniffi_clone_handle(),)
12962
13241
  return result.consume_into_OptionalTypeWifiDirectMessage
@@ -12969,6 +13248,10 @@ end
12969
13248
  ::OfflineProtocol.rust_call_with_error(ProtocolError,:uniffi_offline_protocol_uniffi_fn_method_offlineprotocol_wifi_direct_message_received,uniffi_clone_handle(),RustBuffer.alloc_from_string(sender_id),RustBuffer.alloc_from_Sequenceu8(data))
12970
13249
  end
12971
13250
 
13251
+ def wifi_direct_next_fast_link_directive()
13252
+ result = ::OfflineProtocol.rust_call(:uniffi_offline_protocol_uniffi_fn_method_offlineprotocol_wifi_direct_next_fast_link_directive,uniffi_clone_handle(),)
13253
+ return result.consume_into_OptionalTypeFastLinkDirective
13254
+ end
12972
13255
  def wifi_direct_peer_connected(peer_id)
12973
13256
  peer_id = ::OfflineProtocol::uniffi_utf8(peer_id)
12974
13257
 
@@ -12981,6 +13264,16 @@ end
12981
13264
  ::OfflineProtocol.rust_call_with_error(ProtocolError,:uniffi_offline_protocol_uniffi_fn_method_offlineprotocol_wifi_direct_peer_disconnected,uniffi_clone_handle(),RustBuffer.alloc_from_string(peer_id))
12982
13265
  end
12983
13266
 
13267
+ def wifi_direct_set_fast_link_roles(can_host, can_join, accept_unrequested)
13268
+ can_host = can_host ? true : false
13269
+
13270
+ can_join = can_join ? true : false
13271
+
13272
+ accept_unrequested = accept_unrequested ? true : false
13273
+
13274
+ ::OfflineProtocol.rust_call(:uniffi_offline_protocol_uniffi_fn_method_offlineprotocol_wifi_direct_set_fast_link_roles,uniffi_clone_handle(),(can_host ? 1 : 0),(can_join ? 1 : 0),(accept_unrequested ? 1 : 0))
13275
+ end
13276
+
12984
13277
  def wifi_direct_status_changed(is_connected)
12985
13278
  is_connected = is_connected ? true : false
12986
13279
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: offline_protocol
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.33.0
4
+ version: 0.34.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Offline Protocol, Inc.