github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/dashboardprivate/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/dashboardprivate constof_Result
    20  //go:noescape
    21  func ConstOfResult(str js.Ref) uint32
    22  
    23  //go:wasmimport plat/js/webext/dashboardprivate store_ShowPermissionPromptForDelegatedInstallArgDetails
    24  //go:noescape
    25  func ShowPermissionPromptForDelegatedInstallArgDetailsJSStore(
    26  	ptr unsafe.Pointer, ref js.Ref)
    27  
    28  //go:wasmimport plat/js/webext/dashboardprivate load_ShowPermissionPromptForDelegatedInstallArgDetails
    29  //go:noescape
    30  func ShowPermissionPromptForDelegatedInstallArgDetailsJSLoad(
    31  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    32  
    33  //go:wasmimport plat/js/webext/dashboardprivate has_ShowPermissionPromptForDelegatedInstall
    34  //go:noescape
    35  func HasFuncShowPermissionPromptForDelegatedInstall() js.Ref
    36  
    37  //go:wasmimport plat/js/webext/dashboardprivate func_ShowPermissionPromptForDelegatedInstall
    38  //go:noescape
    39  func FuncShowPermissionPromptForDelegatedInstall(fn unsafe.Pointer)
    40  
    41  //go:wasmimport plat/js/webext/dashboardprivate call_ShowPermissionPromptForDelegatedInstall
    42  //go:noescape
    43  func CallShowPermissionPromptForDelegatedInstall(
    44  	retPtr unsafe.Pointer,
    45  	details unsafe.Pointer)
    46  
    47  //go:wasmimport plat/js/webext/dashboardprivate try_ShowPermissionPromptForDelegatedInstall
    48  //go:noescape
    49  func TryShowPermissionPromptForDelegatedInstall(
    50  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
    51  	details unsafe.Pointer) (ok js.Ref)