github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/tabs1/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/tabs1 has_Connect 20 //go:noescape 21 func HasFuncConnect() js.Ref 22 23 //go:wasmimport plat/js/webext/tabs1 func_Connect 24 //go:noescape 25 func FuncConnect(fn unsafe.Pointer) 26 27 //go:wasmimport plat/js/webext/tabs1 call_Connect 28 //go:noescape 29 func CallConnect( 30 retPtr unsafe.Pointer, 31 tabId float64, 32 connectInfo unsafe.Pointer) 33 34 //go:wasmimport plat/js/webext/tabs1 try_Connect 35 //go:noescape 36 func TryConnect( 37 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 38 tabId float64, 39 connectInfo unsafe.Pointer) (ok js.Ref) 40 41 //go:wasmimport plat/js/webext/tabs1 has_Highlight 42 //go:noescape 43 func HasFuncHighlight() js.Ref 44 45 //go:wasmimport plat/js/webext/tabs1 func_Highlight 46 //go:noescape 47 func FuncHighlight(fn unsafe.Pointer) 48 49 //go:wasmimport plat/js/webext/tabs1 call_Highlight 50 //go:noescape 51 func CallHighlight( 52 retPtr unsafe.Pointer, 53 highlightInfo unsafe.Pointer) 54 55 //go:wasmimport plat/js/webext/tabs1 try_Highlight 56 //go:noescape 57 func TryHighlight( 58 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 59 highlightInfo unsafe.Pointer) (ok js.Ref)