github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/search/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/search constof_Disposition 20 //go:noescape 21 func ConstOfDisposition(str js.Ref) uint32 22 23 //go:wasmimport plat/js/webext/search store_QueryInfo 24 //go:noescape 25 func QueryInfoJSStore( 26 ptr unsafe.Pointer, ref js.Ref) 27 28 //go:wasmimport plat/js/webext/search load_QueryInfo 29 //go:noescape 30 func QueryInfoJSLoad( 31 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 32 33 //go:wasmimport plat/js/webext/search has_Query 34 //go:noescape 35 func HasFuncQuery() js.Ref 36 37 //go:wasmimport plat/js/webext/search func_Query 38 //go:noescape 39 func FuncQuery(fn unsafe.Pointer) 40 41 //go:wasmimport plat/js/webext/search call_Query 42 //go:noescape 43 func CallQuery( 44 retPtr unsafe.Pointer, 45 queryInfo unsafe.Pointer) 46 47 //go:wasmimport plat/js/webext/search try_Query 48 //go:noescape 49 func TryQuery( 50 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 51 queryInfo unsafe.Pointer) (ok js.Ref)