github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/privacy/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/privacy constof_IPHandlingPolicy 20 //go:noescape 21 func ConstOfIPHandlingPolicy(str js.Ref) uint32 22 23 //go:wasmimport plat/js/webext/privacy store_NetworkProperty 24 //go:noescape 25 func NetworkPropertyJSStore( 26 ptr unsafe.Pointer, ref js.Ref) 27 28 //go:wasmimport plat/js/webext/privacy load_NetworkProperty 29 //go:noescape 30 func NetworkPropertyJSLoad( 31 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 32 33 //go:wasmimport plat/js/webext/privacy store_ServicesProperty 34 //go:noescape 35 func ServicesPropertyJSStore( 36 ptr unsafe.Pointer, ref js.Ref) 37 38 //go:wasmimport plat/js/webext/privacy load_ServicesProperty 39 //go:noescape 40 func ServicesPropertyJSLoad( 41 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 42 43 //go:wasmimport plat/js/webext/privacy store_WebsitesProperty 44 //go:noescape 45 func WebsitesPropertyJSStore( 46 ptr unsafe.Pointer, ref js.Ref) 47 48 //go:wasmimport plat/js/webext/privacy load_WebsitesProperty 49 //go:noescape 50 func WebsitesPropertyJSLoad( 51 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 52 53 //go:wasmimport plat/js/webext/privacy get_Network 54 //go:noescape 55 func GetNetwork(retPtr unsafe.Pointer) js.Ref 56 57 //go:wasmimport plat/js/webext/privacy set_Network 58 //go:noescape 59 func SetNetwork( 60 val unsafe.Pointer) js.Ref 61 62 //go:wasmimport plat/js/webext/privacy get_Services 63 //go:noescape 64 func GetServices(retPtr unsafe.Pointer) js.Ref 65 66 //go:wasmimport plat/js/webext/privacy set_Services 67 //go:noescape 68 func SetServices( 69 val unsafe.Pointer) js.Ref 70 71 //go:wasmimport plat/js/webext/privacy get_Websites 72 //go:noescape 73 func GetWebsites(retPtr unsafe.Pointer) js.Ref 74 75 //go:wasmimport plat/js/webext/privacy set_Websites 76 //go:noescape 77 func SetWebsites( 78 val unsafe.Pointer) js.Ref