github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/contentscripts/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/contentscripts constof_RunAt
    20  //go:noescape
    21  func ConstOfRunAt(str js.Ref) uint32
    22  
    23  //go:wasmimport plat/js/webext/contentscripts store_ContentScript
    24  //go:noescape
    25  func ContentScriptJSStore(
    26  	ptr unsafe.Pointer, ref js.Ref)
    27  
    28  //go:wasmimport plat/js/webext/contentscripts load_ContentScript
    29  //go:noescape
    30  func ContentScriptJSLoad(
    31  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    32  
    33  //go:wasmimport plat/js/webext/contentscripts store_ManifestKeys
    34  //go:noescape
    35  func ManifestKeysJSStore(
    36  	ptr unsafe.Pointer, ref js.Ref)
    37  
    38  //go:wasmimport plat/js/webext/contentscripts load_ManifestKeys
    39  //go:noescape
    40  func ManifestKeysJSLoad(
    41  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref