github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/echoprivate/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/echoprivate store_GetUserConsentArgConsentRequester 20 //go:noescape 21 func GetUserConsentArgConsentRequesterJSStore( 22 ptr unsafe.Pointer, ref js.Ref) 23 24 //go:wasmimport plat/js/webext/echoprivate load_GetUserConsentArgConsentRequester 25 //go:noescape 26 func GetUserConsentArgConsentRequesterJSLoad( 27 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 28 29 //go:wasmimport plat/js/webext/echoprivate has_GetOfferInfo 30 //go:noescape 31 func HasFuncGetOfferInfo() js.Ref 32 33 //go:wasmimport plat/js/webext/echoprivate func_GetOfferInfo 34 //go:noescape 35 func FuncGetOfferInfo(fn unsafe.Pointer) 36 37 //go:wasmimport plat/js/webext/echoprivate call_GetOfferInfo 38 //go:noescape 39 func CallGetOfferInfo( 40 retPtr unsafe.Pointer, 41 id js.Ref) 42 43 //go:wasmimport plat/js/webext/echoprivate try_GetOfferInfo 44 //go:noescape 45 func TryGetOfferInfo( 46 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 47 id js.Ref) (ok js.Ref) 48 49 //go:wasmimport plat/js/webext/echoprivate has_GetOobeTimestamp 50 //go:noescape 51 func HasFuncGetOobeTimestamp() js.Ref 52 53 //go:wasmimport plat/js/webext/echoprivate func_GetOobeTimestamp 54 //go:noescape 55 func FuncGetOobeTimestamp(fn unsafe.Pointer) 56 57 //go:wasmimport plat/js/webext/echoprivate call_GetOobeTimestamp 58 //go:noescape 59 func CallGetOobeTimestamp( 60 retPtr unsafe.Pointer) 61 62 //go:wasmimport plat/js/webext/echoprivate try_GetOobeTimestamp 63 //go:noescape 64 func TryGetOobeTimestamp( 65 retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref) 66 67 //go:wasmimport plat/js/webext/echoprivate has_GetRegistrationCode 68 //go:noescape 69 func HasFuncGetRegistrationCode() js.Ref 70 71 //go:wasmimport plat/js/webext/echoprivate func_GetRegistrationCode 72 //go:noescape 73 func FuncGetRegistrationCode(fn unsafe.Pointer) 74 75 //go:wasmimport plat/js/webext/echoprivate call_GetRegistrationCode 76 //go:noescape 77 func CallGetRegistrationCode( 78 retPtr unsafe.Pointer, 79 typ js.Ref) 80 81 //go:wasmimport plat/js/webext/echoprivate try_GetRegistrationCode 82 //go:noescape 83 func TryGetRegistrationCode( 84 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 85 typ js.Ref) (ok js.Ref) 86 87 //go:wasmimport plat/js/webext/echoprivate has_GetUserConsent 88 //go:noescape 89 func HasFuncGetUserConsent() js.Ref 90 91 //go:wasmimport plat/js/webext/echoprivate func_GetUserConsent 92 //go:noescape 93 func FuncGetUserConsent(fn unsafe.Pointer) 94 95 //go:wasmimport plat/js/webext/echoprivate call_GetUserConsent 96 //go:noescape 97 func CallGetUserConsent( 98 retPtr unsafe.Pointer, 99 consentRequester unsafe.Pointer) 100 101 //go:wasmimport plat/js/webext/echoprivate try_GetUserConsent 102 //go:noescape 103 func TryGetUserConsent( 104 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 105 consentRequester unsafe.Pointer) (ok js.Ref) 106 107 //go:wasmimport plat/js/webext/echoprivate has_SetOfferInfo 108 //go:noescape 109 func HasFuncSetOfferInfo() js.Ref 110 111 //go:wasmimport plat/js/webext/echoprivate func_SetOfferInfo 112 //go:noescape 113 func FuncSetOfferInfo(fn unsafe.Pointer) 114 115 //go:wasmimport plat/js/webext/echoprivate call_SetOfferInfo 116 //go:noescape 117 func CallSetOfferInfo( 118 retPtr unsafe.Pointer, 119 id js.Ref, 120 offerInfo js.Ref) 121 122 //go:wasmimport plat/js/webext/echoprivate try_SetOfferInfo 123 //go:noescape 124 func TrySetOfferInfo( 125 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 126 id js.Ref, 127 offerInfo js.Ref) (ok js.Ref)