github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/topsites/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/topsites store_MostVisitedURL
    20  //go:noescape
    21  func MostVisitedURLJSStore(
    22  	ptr unsafe.Pointer, ref js.Ref)
    23  
    24  //go:wasmimport plat/js/webext/topsites load_MostVisitedURL
    25  //go:noescape
    26  func MostVisitedURLJSLoad(
    27  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    28  
    29  //go:wasmimport plat/js/webext/topsites has_Get
    30  //go:noescape
    31  func HasFuncGet() js.Ref
    32  
    33  //go:wasmimport plat/js/webext/topsites func_Get
    34  //go:noescape
    35  func FuncGet(fn unsafe.Pointer)
    36  
    37  //go:wasmimport plat/js/webext/topsites call_Get
    38  //go:noescape
    39  func CallGet(
    40  	retPtr unsafe.Pointer)
    41  
    42  //go:wasmimport plat/js/webext/topsites try_Get
    43  //go:noescape
    44  func TryGet(
    45  	retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref)