github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/bluetoothprivate/bindings/import_wasm.go (about)

     1  // SPDX-License-Identifier: Apache-2.0
     2  // Copyright 2023 The Prime Citizens
     3  
     4  //go:build wasm
     5  
     6  package bindings
     7  
     8  import (
     9  	"unsafe"
    10  
    11  	"github.com/primecitizens/pcz/std/ffi/js"
    12  )
    13  
    14  type (
    15  	_ unsafe.Pointer
    16  	_ js.Ref
    17  )
    18  
    19  //go:wasmimport plat/js/webext/bluetoothprivate constof_ConnectResultType
    20  //go:noescape
    21  func ConstOfConnectResultType(str js.Ref) uint32
    22  
    23  //go:wasmimport plat/js/webext/bluetoothprivate constof_TransportType
    24  //go:noescape
    25  func ConstOfTransportType(str js.Ref) uint32
    26  
    27  //go:wasmimport plat/js/webext/bluetoothprivate store_DiscoveryFilter
    28  //go:noescape
    29  func DiscoveryFilterJSStore(
    30  	ptr unsafe.Pointer, ref js.Ref)
    31  
    32  //go:wasmimport plat/js/webext/bluetoothprivate load_DiscoveryFilter
    33  //go:noescape
    34  func DiscoveryFilterJSLoad(
    35  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    36  
    37  //go:wasmimport plat/js/webext/bluetoothprivate store_NewAdapterState
    38  //go:noescape
    39  func NewAdapterStateJSStore(
    40  	ptr unsafe.Pointer, ref js.Ref)
    41  
    42  //go:wasmimport plat/js/webext/bluetoothprivate load_NewAdapterState
    43  //go:noescape
    44  func NewAdapterStateJSLoad(
    45  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    46  
    47  //go:wasmimport plat/js/webext/bluetoothprivate constof_PairingEventType
    48  //go:noescape
    49  func ConstOfPairingEventType(str js.Ref) uint32
    50  
    51  //go:wasmimport plat/js/webext/bluetoothprivate store_PairingEvent
    52  //go:noescape
    53  func PairingEventJSStore(
    54  	ptr unsafe.Pointer, ref js.Ref)
    55  
    56  //go:wasmimport plat/js/webext/bluetoothprivate load_PairingEvent
    57  //go:noescape
    58  func PairingEventJSLoad(
    59  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    60  
    61  //go:wasmimport plat/js/webext/bluetoothprivate constof_PairingResponse
    62  //go:noescape
    63  func ConstOfPairingResponse(str js.Ref) uint32
    64  
    65  //go:wasmimport plat/js/webext/bluetoothprivate store_SetPairingResponseOptions
    66  //go:noescape
    67  func SetPairingResponseOptionsJSStore(
    68  	ptr unsafe.Pointer, ref js.Ref)
    69  
    70  //go:wasmimport plat/js/webext/bluetoothprivate load_SetPairingResponseOptions
    71  //go:noescape
    72  func SetPairingResponseOptionsJSLoad(
    73  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    74  
    75  //go:wasmimport plat/js/webext/bluetoothprivate has_Connect
    76  //go:noescape
    77  func HasFuncConnect() js.Ref
    78  
    79  //go:wasmimport plat/js/webext/bluetoothprivate func_Connect
    80  //go:noescape
    81  func FuncConnect(fn unsafe.Pointer)
    82  
    83  //go:wasmimport plat/js/webext/bluetoothprivate call_Connect
    84  //go:noescape
    85  func CallConnect(
    86  	retPtr unsafe.Pointer,
    87  	deviceAddress js.Ref)
    88  
    89  //go:wasmimport plat/js/webext/bluetoothprivate try_Connect
    90  //go:noescape
    91  func TryConnect(
    92  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
    93  	deviceAddress js.Ref) (ok js.Ref)
    94  
    95  //go:wasmimport plat/js/webext/bluetoothprivate has_DisconnectAll
    96  //go:noescape
    97  func HasFuncDisconnectAll() js.Ref
    98  
    99  //go:wasmimport plat/js/webext/bluetoothprivate func_DisconnectAll
   100  //go:noescape
   101  func FuncDisconnectAll(fn unsafe.Pointer)
   102  
   103  //go:wasmimport plat/js/webext/bluetoothprivate call_DisconnectAll
   104  //go:noescape
   105  func CallDisconnectAll(
   106  	retPtr unsafe.Pointer,
   107  	deviceAddress js.Ref)
   108  
   109  //go:wasmimport plat/js/webext/bluetoothprivate try_DisconnectAll
   110  //go:noescape
   111  func TryDisconnectAll(
   112  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   113  	deviceAddress js.Ref) (ok js.Ref)
   114  
   115  //go:wasmimport plat/js/webext/bluetoothprivate has_ForgetDevice
   116  //go:noescape
   117  func HasFuncForgetDevice() js.Ref
   118  
   119  //go:wasmimport plat/js/webext/bluetoothprivate func_ForgetDevice
   120  //go:noescape
   121  func FuncForgetDevice(fn unsafe.Pointer)
   122  
   123  //go:wasmimport plat/js/webext/bluetoothprivate call_ForgetDevice
   124  //go:noescape
   125  func CallForgetDevice(
   126  	retPtr unsafe.Pointer,
   127  	deviceAddress js.Ref)
   128  
   129  //go:wasmimport plat/js/webext/bluetoothprivate try_ForgetDevice
   130  //go:noescape
   131  func TryForgetDevice(
   132  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   133  	deviceAddress js.Ref) (ok js.Ref)
   134  
   135  //go:wasmimport plat/js/webext/bluetoothprivate has_OnDeviceAddressChanged
   136  //go:noescape
   137  func HasFuncOnDeviceAddressChanged() js.Ref
   138  
   139  //go:wasmimport plat/js/webext/bluetoothprivate func_OnDeviceAddressChanged
   140  //go:noescape
   141  func FuncOnDeviceAddressChanged(fn unsafe.Pointer)
   142  
   143  //go:wasmimport plat/js/webext/bluetoothprivate call_OnDeviceAddressChanged
   144  //go:noescape
   145  func CallOnDeviceAddressChanged(
   146  	retPtr unsafe.Pointer,
   147  	callback js.Ref)
   148  
   149  //go:wasmimport plat/js/webext/bluetoothprivate try_OnDeviceAddressChanged
   150  //go:noescape
   151  func TryOnDeviceAddressChanged(
   152  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   153  	callback js.Ref) (ok js.Ref)
   154  
   155  //go:wasmimport plat/js/webext/bluetoothprivate has_OffDeviceAddressChanged
   156  //go:noescape
   157  func HasFuncOffDeviceAddressChanged() js.Ref
   158  
   159  //go:wasmimport plat/js/webext/bluetoothprivate func_OffDeviceAddressChanged
   160  //go:noescape
   161  func FuncOffDeviceAddressChanged(fn unsafe.Pointer)
   162  
   163  //go:wasmimport plat/js/webext/bluetoothprivate call_OffDeviceAddressChanged
   164  //go:noescape
   165  func CallOffDeviceAddressChanged(
   166  	retPtr unsafe.Pointer,
   167  	callback js.Ref)
   168  
   169  //go:wasmimport plat/js/webext/bluetoothprivate try_OffDeviceAddressChanged
   170  //go:noescape
   171  func TryOffDeviceAddressChanged(
   172  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   173  	callback js.Ref) (ok js.Ref)
   174  
   175  //go:wasmimport plat/js/webext/bluetoothprivate has_HasOnDeviceAddressChanged
   176  //go:noescape
   177  func HasFuncHasOnDeviceAddressChanged() js.Ref
   178  
   179  //go:wasmimport plat/js/webext/bluetoothprivate func_HasOnDeviceAddressChanged
   180  //go:noescape
   181  func FuncHasOnDeviceAddressChanged(fn unsafe.Pointer)
   182  
   183  //go:wasmimport plat/js/webext/bluetoothprivate call_HasOnDeviceAddressChanged
   184  //go:noescape
   185  func CallHasOnDeviceAddressChanged(
   186  	retPtr unsafe.Pointer,
   187  	callback js.Ref)
   188  
   189  //go:wasmimport plat/js/webext/bluetoothprivate try_HasOnDeviceAddressChanged
   190  //go:noescape
   191  func TryHasOnDeviceAddressChanged(
   192  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   193  	callback js.Ref) (ok js.Ref)
   194  
   195  //go:wasmimport plat/js/webext/bluetoothprivate has_OnPairing
   196  //go:noescape
   197  func HasFuncOnPairing() js.Ref
   198  
   199  //go:wasmimport plat/js/webext/bluetoothprivate func_OnPairing
   200  //go:noescape
   201  func FuncOnPairing(fn unsafe.Pointer)
   202  
   203  //go:wasmimport plat/js/webext/bluetoothprivate call_OnPairing
   204  //go:noescape
   205  func CallOnPairing(
   206  	retPtr unsafe.Pointer,
   207  	callback js.Ref)
   208  
   209  //go:wasmimport plat/js/webext/bluetoothprivate try_OnPairing
   210  //go:noescape
   211  func TryOnPairing(
   212  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   213  	callback js.Ref) (ok js.Ref)
   214  
   215  //go:wasmimport plat/js/webext/bluetoothprivate has_OffPairing
   216  //go:noescape
   217  func HasFuncOffPairing() js.Ref
   218  
   219  //go:wasmimport plat/js/webext/bluetoothprivate func_OffPairing
   220  //go:noescape
   221  func FuncOffPairing(fn unsafe.Pointer)
   222  
   223  //go:wasmimport plat/js/webext/bluetoothprivate call_OffPairing
   224  //go:noescape
   225  func CallOffPairing(
   226  	retPtr unsafe.Pointer,
   227  	callback js.Ref)
   228  
   229  //go:wasmimport plat/js/webext/bluetoothprivate try_OffPairing
   230  //go:noescape
   231  func TryOffPairing(
   232  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   233  	callback js.Ref) (ok js.Ref)
   234  
   235  //go:wasmimport plat/js/webext/bluetoothprivate has_HasOnPairing
   236  //go:noescape
   237  func HasFuncHasOnPairing() js.Ref
   238  
   239  //go:wasmimport plat/js/webext/bluetoothprivate func_HasOnPairing
   240  //go:noescape
   241  func FuncHasOnPairing(fn unsafe.Pointer)
   242  
   243  //go:wasmimport plat/js/webext/bluetoothprivate call_HasOnPairing
   244  //go:noescape
   245  func CallHasOnPairing(
   246  	retPtr unsafe.Pointer,
   247  	callback js.Ref)
   248  
   249  //go:wasmimport plat/js/webext/bluetoothprivate try_HasOnPairing
   250  //go:noescape
   251  func TryHasOnPairing(
   252  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   253  	callback js.Ref) (ok js.Ref)
   254  
   255  //go:wasmimport plat/js/webext/bluetoothprivate has_Pair
   256  //go:noescape
   257  func HasFuncPair() js.Ref
   258  
   259  //go:wasmimport plat/js/webext/bluetoothprivate func_Pair
   260  //go:noescape
   261  func FuncPair(fn unsafe.Pointer)
   262  
   263  //go:wasmimport plat/js/webext/bluetoothprivate call_Pair
   264  //go:noescape
   265  func CallPair(
   266  	retPtr unsafe.Pointer,
   267  	deviceAddress js.Ref)
   268  
   269  //go:wasmimport plat/js/webext/bluetoothprivate try_Pair
   270  //go:noescape
   271  func TryPair(
   272  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   273  	deviceAddress js.Ref) (ok js.Ref)
   274  
   275  //go:wasmimport plat/js/webext/bluetoothprivate has_RecordDeviceSelection
   276  //go:noescape
   277  func HasFuncRecordDeviceSelection() js.Ref
   278  
   279  //go:wasmimport plat/js/webext/bluetoothprivate func_RecordDeviceSelection
   280  //go:noescape
   281  func FuncRecordDeviceSelection(fn unsafe.Pointer)
   282  
   283  //go:wasmimport plat/js/webext/bluetoothprivate call_RecordDeviceSelection
   284  //go:noescape
   285  func CallRecordDeviceSelection(
   286  	retPtr unsafe.Pointer,
   287  	selectionDurationMs int32,
   288  	wasPaired js.Ref,
   289  	transport uint32)
   290  
   291  //go:wasmimport plat/js/webext/bluetoothprivate try_RecordDeviceSelection
   292  //go:noescape
   293  func TryRecordDeviceSelection(
   294  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   295  	selectionDurationMs int32,
   296  	wasPaired js.Ref,
   297  	transport uint32) (ok js.Ref)
   298  
   299  //go:wasmimport plat/js/webext/bluetoothprivate has_RecordPairing
   300  //go:noescape
   301  func HasFuncRecordPairing() js.Ref
   302  
   303  //go:wasmimport plat/js/webext/bluetoothprivate func_RecordPairing
   304  //go:noescape
   305  func FuncRecordPairing(fn unsafe.Pointer)
   306  
   307  //go:wasmimport plat/js/webext/bluetoothprivate call_RecordPairing
   308  //go:noescape
   309  func CallRecordPairing(
   310  	retPtr unsafe.Pointer,
   311  	transport uint32,
   312  	pairingDurationMs int32,
   313  	result uint32)
   314  
   315  //go:wasmimport plat/js/webext/bluetoothprivate try_RecordPairing
   316  //go:noescape
   317  func TryRecordPairing(
   318  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   319  	transport uint32,
   320  	pairingDurationMs int32,
   321  	result uint32) (ok js.Ref)
   322  
   323  //go:wasmimport plat/js/webext/bluetoothprivate has_RecordReconnection
   324  //go:noescape
   325  func HasFuncRecordReconnection() js.Ref
   326  
   327  //go:wasmimport plat/js/webext/bluetoothprivate func_RecordReconnection
   328  //go:noescape
   329  func FuncRecordReconnection(fn unsafe.Pointer)
   330  
   331  //go:wasmimport plat/js/webext/bluetoothprivate call_RecordReconnection
   332  //go:noescape
   333  func CallRecordReconnection(
   334  	retPtr unsafe.Pointer,
   335  	result uint32)
   336  
   337  //go:wasmimport plat/js/webext/bluetoothprivate try_RecordReconnection
   338  //go:noescape
   339  func TryRecordReconnection(
   340  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   341  	result uint32) (ok js.Ref)
   342  
   343  //go:wasmimport plat/js/webext/bluetoothprivate has_SetAdapterState
   344  //go:noescape
   345  func HasFuncSetAdapterState() js.Ref
   346  
   347  //go:wasmimport plat/js/webext/bluetoothprivate func_SetAdapterState
   348  //go:noescape
   349  func FuncSetAdapterState(fn unsafe.Pointer)
   350  
   351  //go:wasmimport plat/js/webext/bluetoothprivate call_SetAdapterState
   352  //go:noescape
   353  func CallSetAdapterState(
   354  	retPtr unsafe.Pointer,
   355  	adapterState unsafe.Pointer)
   356  
   357  //go:wasmimport plat/js/webext/bluetoothprivate try_SetAdapterState
   358  //go:noescape
   359  func TrySetAdapterState(
   360  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   361  	adapterState unsafe.Pointer) (ok js.Ref)
   362  
   363  //go:wasmimport plat/js/webext/bluetoothprivate has_SetDiscoveryFilter
   364  //go:noescape
   365  func HasFuncSetDiscoveryFilter() js.Ref
   366  
   367  //go:wasmimport plat/js/webext/bluetoothprivate func_SetDiscoveryFilter
   368  //go:noescape
   369  func FuncSetDiscoveryFilter(fn unsafe.Pointer)
   370  
   371  //go:wasmimport plat/js/webext/bluetoothprivate call_SetDiscoveryFilter
   372  //go:noescape
   373  func CallSetDiscoveryFilter(
   374  	retPtr unsafe.Pointer,
   375  	discoveryFilter unsafe.Pointer)
   376  
   377  //go:wasmimport plat/js/webext/bluetoothprivate try_SetDiscoveryFilter
   378  //go:noescape
   379  func TrySetDiscoveryFilter(
   380  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   381  	discoveryFilter unsafe.Pointer) (ok js.Ref)
   382  
   383  //go:wasmimport plat/js/webext/bluetoothprivate has_SetPairingResponse
   384  //go:noescape
   385  func HasFuncSetPairingResponse() js.Ref
   386  
   387  //go:wasmimport plat/js/webext/bluetoothprivate func_SetPairingResponse
   388  //go:noescape
   389  func FuncSetPairingResponse(fn unsafe.Pointer)
   390  
   391  //go:wasmimport plat/js/webext/bluetoothprivate call_SetPairingResponse
   392  //go:noescape
   393  func CallSetPairingResponse(
   394  	retPtr unsafe.Pointer,
   395  	options unsafe.Pointer)
   396  
   397  //go:wasmimport plat/js/webext/bluetoothprivate try_SetPairingResponse
   398  //go:noescape
   399  func TrySetPairingResponse(
   400  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   401  	options unsafe.Pointer) (ok js.Ref)