github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/app/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/app store_DOMWindow
    20  //go:noescape
    21  func DOMWindowJSStore(
    22  	ptr unsafe.Pointer, ref js.Ref)
    23  
    24  //go:wasmimport plat/js/webext/app load_DOMWindow
    25  //go:noescape
    26  func DOMWindowJSLoad(
    27  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    28  
    29  //go:wasmimport plat/js/webext/app store_Details
    30  //go:noescape
    31  func DetailsJSStore(
    32  	ptr unsafe.Pointer, ref js.Ref)
    33  
    34  //go:wasmimport plat/js/webext/app load_Details
    35  //go:noescape
    36  func DetailsJSLoad(
    37  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    38  
    39  //go:wasmimport plat/js/webext/app constof_InstallStateType
    40  //go:noescape
    41  func ConstOfInstallStateType(str js.Ref) uint32
    42  
    43  //go:wasmimport plat/js/webext/app constof_RunningStateType
    44  //go:noescape
    45  func ConstOfRunningStateType(str js.Ref) uint32
    46  
    47  //go:wasmimport plat/js/webext/app has_GetDetails
    48  //go:noescape
    49  func HasFuncGetDetails() js.Ref
    50  
    51  //go:wasmimport plat/js/webext/app func_GetDetails
    52  //go:noescape
    53  func FuncGetDetails(fn unsafe.Pointer)
    54  
    55  //go:wasmimport plat/js/webext/app call_GetDetails
    56  //go:noescape
    57  func CallGetDetails(
    58  	retPtr unsafe.Pointer)
    59  
    60  //go:wasmimport plat/js/webext/app try_GetDetails
    61  //go:noescape
    62  func TryGetDetails(
    63  	retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref)
    64  
    65  //go:wasmimport plat/js/webext/app has_GetIsInstalled
    66  //go:noescape
    67  func HasFuncGetIsInstalled() js.Ref
    68  
    69  //go:wasmimport plat/js/webext/app func_GetIsInstalled
    70  //go:noescape
    71  func FuncGetIsInstalled(fn unsafe.Pointer)
    72  
    73  //go:wasmimport plat/js/webext/app call_GetIsInstalled
    74  //go:noescape
    75  func CallGetIsInstalled(
    76  	retPtr unsafe.Pointer)
    77  
    78  //go:wasmimport plat/js/webext/app try_GetIsInstalled
    79  //go:noescape
    80  func TryGetIsInstalled(
    81  	retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref)
    82  
    83  //go:wasmimport plat/js/webext/app has_InstallState
    84  //go:noescape
    85  func HasFuncInstallState() js.Ref
    86  
    87  //go:wasmimport plat/js/webext/app func_InstallState
    88  //go:noescape
    89  func FuncInstallState(fn unsafe.Pointer)
    90  
    91  //go:wasmimport plat/js/webext/app call_InstallState
    92  //go:noescape
    93  func CallInstallState(
    94  	retPtr unsafe.Pointer)
    95  
    96  //go:wasmimport plat/js/webext/app try_InstallState
    97  //go:noescape
    98  func TryInstallState(
    99  	retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref)
   100  
   101  //go:wasmimport plat/js/webext/app has_RunningState
   102  //go:noescape
   103  func HasFuncRunningState() js.Ref
   104  
   105  //go:wasmimport plat/js/webext/app func_RunningState
   106  //go:noescape
   107  func FuncRunningState(fn unsafe.Pointer)
   108  
   109  //go:wasmimport plat/js/webext/app call_RunningState
   110  //go:noescape
   111  func CallRunningState(
   112  	retPtr unsafe.Pointer)
   113  
   114  //go:wasmimport plat/js/webext/app try_RunningState
   115  //go:noescape
   116  func TryRunningState(
   117  	retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref)