github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/tabcapture/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/tabcapture constof_TabCaptureState 20 //go:noescape 21 func ConstOfTabCaptureState(str js.Ref) uint32 22 23 //go:wasmimport plat/js/webext/tabcapture store_CaptureInfo 24 //go:noescape 25 func CaptureInfoJSStore( 26 ptr unsafe.Pointer, ref js.Ref) 27 28 //go:wasmimport plat/js/webext/tabcapture load_CaptureInfo 29 //go:noescape 30 func CaptureInfoJSLoad( 31 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 32 33 //go:wasmimport plat/js/webext/tabcapture store_MediaStreamConstraint 34 //go:noescape 35 func MediaStreamConstraintJSStore( 36 ptr unsafe.Pointer, ref js.Ref) 37 38 //go:wasmimport plat/js/webext/tabcapture load_MediaStreamConstraint 39 //go:noescape 40 func MediaStreamConstraintJSLoad( 41 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 42 43 //go:wasmimport plat/js/webext/tabcapture store_CaptureOptions 44 //go:noescape 45 func CaptureOptionsJSStore( 46 ptr unsafe.Pointer, ref js.Ref) 47 48 //go:wasmimport plat/js/webext/tabcapture load_CaptureOptions 49 //go:noescape 50 func CaptureOptionsJSLoad( 51 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 52 53 //go:wasmimport plat/js/webext/tabcapture store_GetMediaStreamOptions 54 //go:noescape 55 func GetMediaStreamOptionsJSStore( 56 ptr unsafe.Pointer, ref js.Ref) 57 58 //go:wasmimport plat/js/webext/tabcapture load_GetMediaStreamOptions 59 //go:noescape 60 func GetMediaStreamOptionsJSLoad( 61 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 62 63 //go:wasmimport plat/js/webext/tabcapture has_Capture 64 //go:noescape 65 func HasFuncCapture() js.Ref 66 67 //go:wasmimport plat/js/webext/tabcapture func_Capture 68 //go:noescape 69 func FuncCapture(fn unsafe.Pointer) 70 71 //go:wasmimport plat/js/webext/tabcapture call_Capture 72 //go:noescape 73 func CallCapture( 74 retPtr unsafe.Pointer, 75 options unsafe.Pointer, 76 callback js.Ref) 77 78 //go:wasmimport plat/js/webext/tabcapture try_Capture 79 //go:noescape 80 func TryCapture( 81 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 82 options unsafe.Pointer, 83 callback js.Ref) (ok js.Ref) 84 85 //go:wasmimport plat/js/webext/tabcapture has_GetCapturedTabs 86 //go:noescape 87 func HasFuncGetCapturedTabs() js.Ref 88 89 //go:wasmimport plat/js/webext/tabcapture func_GetCapturedTabs 90 //go:noescape 91 func FuncGetCapturedTabs(fn unsafe.Pointer) 92 93 //go:wasmimport plat/js/webext/tabcapture call_GetCapturedTabs 94 //go:noescape 95 func CallGetCapturedTabs( 96 retPtr unsafe.Pointer) 97 98 //go:wasmimport plat/js/webext/tabcapture try_GetCapturedTabs 99 //go:noescape 100 func TryGetCapturedTabs( 101 retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref) 102 103 //go:wasmimport plat/js/webext/tabcapture has_GetMediaStreamId 104 //go:noescape 105 func HasFuncGetMediaStreamId() js.Ref 106 107 //go:wasmimport plat/js/webext/tabcapture func_GetMediaStreamId 108 //go:noescape 109 func FuncGetMediaStreamId(fn unsafe.Pointer) 110 111 //go:wasmimport plat/js/webext/tabcapture call_GetMediaStreamId 112 //go:noescape 113 func CallGetMediaStreamId( 114 retPtr unsafe.Pointer, 115 options unsafe.Pointer) 116 117 //go:wasmimport plat/js/webext/tabcapture try_GetMediaStreamId 118 //go:noescape 119 func TryGetMediaStreamId( 120 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 121 options unsafe.Pointer) (ok js.Ref) 122 123 //go:wasmimport plat/js/webext/tabcapture has_OnStatusChanged 124 //go:noescape 125 func HasFuncOnStatusChanged() js.Ref 126 127 //go:wasmimport plat/js/webext/tabcapture func_OnStatusChanged 128 //go:noescape 129 func FuncOnStatusChanged(fn unsafe.Pointer) 130 131 //go:wasmimport plat/js/webext/tabcapture call_OnStatusChanged 132 //go:noescape 133 func CallOnStatusChanged( 134 retPtr unsafe.Pointer, 135 callback js.Ref) 136 137 //go:wasmimport plat/js/webext/tabcapture try_OnStatusChanged 138 //go:noescape 139 func TryOnStatusChanged( 140 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 141 callback js.Ref) (ok js.Ref) 142 143 //go:wasmimport plat/js/webext/tabcapture has_OffStatusChanged 144 //go:noescape 145 func HasFuncOffStatusChanged() js.Ref 146 147 //go:wasmimport plat/js/webext/tabcapture func_OffStatusChanged 148 //go:noescape 149 func FuncOffStatusChanged(fn unsafe.Pointer) 150 151 //go:wasmimport plat/js/webext/tabcapture call_OffStatusChanged 152 //go:noescape 153 func CallOffStatusChanged( 154 retPtr unsafe.Pointer, 155 callback js.Ref) 156 157 //go:wasmimport plat/js/webext/tabcapture try_OffStatusChanged 158 //go:noescape 159 func TryOffStatusChanged( 160 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 161 callback js.Ref) (ok js.Ref) 162 163 //go:wasmimport plat/js/webext/tabcapture has_HasOnStatusChanged 164 //go:noescape 165 func HasFuncHasOnStatusChanged() js.Ref 166 167 //go:wasmimport plat/js/webext/tabcapture func_HasOnStatusChanged 168 //go:noescape 169 func FuncHasOnStatusChanged(fn unsafe.Pointer) 170 171 //go:wasmimport plat/js/webext/tabcapture call_HasOnStatusChanged 172 //go:noescape 173 func CallHasOnStatusChanged( 174 retPtr unsafe.Pointer, 175 callback js.Ref) 176 177 //go:wasmimport plat/js/webext/tabcapture try_HasOnStatusChanged 178 //go:noescape 179 func TryHasOnStatusChanged( 180 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 181 callback js.Ref) (ok js.Ref)