github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/speechrecognitionprivate/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/speechrecognitionprivate constof_SpeechRecognitionType 20 //go:noescape 21 func ConstOfSpeechRecognitionType(str js.Ref) uint32 22 23 //go:wasmimport plat/js/webext/speechrecognitionprivate store_SpeechRecognitionErrorEvent 24 //go:noescape 25 func SpeechRecognitionErrorEventJSStore( 26 ptr unsafe.Pointer, ref js.Ref) 27 28 //go:wasmimport plat/js/webext/speechrecognitionprivate load_SpeechRecognitionErrorEvent 29 //go:noescape 30 func SpeechRecognitionErrorEventJSLoad( 31 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 32 33 //go:wasmimport plat/js/webext/speechrecognitionprivate store_SpeechRecognitionResultEvent 34 //go:noescape 35 func SpeechRecognitionResultEventJSStore( 36 ptr unsafe.Pointer, ref js.Ref) 37 38 //go:wasmimport plat/js/webext/speechrecognitionprivate load_SpeechRecognitionResultEvent 39 //go:noescape 40 func SpeechRecognitionResultEventJSLoad( 41 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 42 43 //go:wasmimport plat/js/webext/speechrecognitionprivate store_SpeechRecognitionStopEvent 44 //go:noescape 45 func SpeechRecognitionStopEventJSStore( 46 ptr unsafe.Pointer, ref js.Ref) 47 48 //go:wasmimport plat/js/webext/speechrecognitionprivate load_SpeechRecognitionStopEvent 49 //go:noescape 50 func SpeechRecognitionStopEventJSLoad( 51 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 52 53 //go:wasmimport plat/js/webext/speechrecognitionprivate store_StartOptions 54 //go:noescape 55 func StartOptionsJSStore( 56 ptr unsafe.Pointer, ref js.Ref) 57 58 //go:wasmimport plat/js/webext/speechrecognitionprivate load_StartOptions 59 //go:noescape 60 func StartOptionsJSLoad( 61 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 62 63 //go:wasmimport plat/js/webext/speechrecognitionprivate store_StopOptions 64 //go:noescape 65 func StopOptionsJSStore( 66 ptr unsafe.Pointer, ref js.Ref) 67 68 //go:wasmimport plat/js/webext/speechrecognitionprivate load_StopOptions 69 //go:noescape 70 func StopOptionsJSLoad( 71 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 72 73 //go:wasmimport plat/js/webext/speechrecognitionprivate has_OnError 74 //go:noescape 75 func HasFuncOnError() js.Ref 76 77 //go:wasmimport plat/js/webext/speechrecognitionprivate func_OnError 78 //go:noescape 79 func FuncOnError(fn unsafe.Pointer) 80 81 //go:wasmimport plat/js/webext/speechrecognitionprivate call_OnError 82 //go:noescape 83 func CallOnError( 84 retPtr unsafe.Pointer, 85 callback js.Ref) 86 87 //go:wasmimport plat/js/webext/speechrecognitionprivate try_OnError 88 //go:noescape 89 func TryOnError( 90 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 91 callback js.Ref) (ok js.Ref) 92 93 //go:wasmimport plat/js/webext/speechrecognitionprivate has_OffError 94 //go:noescape 95 func HasFuncOffError() js.Ref 96 97 //go:wasmimport plat/js/webext/speechrecognitionprivate func_OffError 98 //go:noescape 99 func FuncOffError(fn unsafe.Pointer) 100 101 //go:wasmimport plat/js/webext/speechrecognitionprivate call_OffError 102 //go:noescape 103 func CallOffError( 104 retPtr unsafe.Pointer, 105 callback js.Ref) 106 107 //go:wasmimport plat/js/webext/speechrecognitionprivate try_OffError 108 //go:noescape 109 func TryOffError( 110 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 111 callback js.Ref) (ok js.Ref) 112 113 //go:wasmimport plat/js/webext/speechrecognitionprivate has_HasOnError 114 //go:noescape 115 func HasFuncHasOnError() js.Ref 116 117 //go:wasmimport plat/js/webext/speechrecognitionprivate func_HasOnError 118 //go:noescape 119 func FuncHasOnError(fn unsafe.Pointer) 120 121 //go:wasmimport plat/js/webext/speechrecognitionprivate call_HasOnError 122 //go:noescape 123 func CallHasOnError( 124 retPtr unsafe.Pointer, 125 callback js.Ref) 126 127 //go:wasmimport plat/js/webext/speechrecognitionprivate try_HasOnError 128 //go:noescape 129 func TryHasOnError( 130 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 131 callback js.Ref) (ok js.Ref) 132 133 //go:wasmimport plat/js/webext/speechrecognitionprivate has_OnResult 134 //go:noescape 135 func HasFuncOnResult() js.Ref 136 137 //go:wasmimport plat/js/webext/speechrecognitionprivate func_OnResult 138 //go:noescape 139 func FuncOnResult(fn unsafe.Pointer) 140 141 //go:wasmimport plat/js/webext/speechrecognitionprivate call_OnResult 142 //go:noescape 143 func CallOnResult( 144 retPtr unsafe.Pointer, 145 callback js.Ref) 146 147 //go:wasmimport plat/js/webext/speechrecognitionprivate try_OnResult 148 //go:noescape 149 func TryOnResult( 150 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 151 callback js.Ref) (ok js.Ref) 152 153 //go:wasmimport plat/js/webext/speechrecognitionprivate has_OffResult 154 //go:noescape 155 func HasFuncOffResult() js.Ref 156 157 //go:wasmimport plat/js/webext/speechrecognitionprivate func_OffResult 158 //go:noescape 159 func FuncOffResult(fn unsafe.Pointer) 160 161 //go:wasmimport plat/js/webext/speechrecognitionprivate call_OffResult 162 //go:noescape 163 func CallOffResult( 164 retPtr unsafe.Pointer, 165 callback js.Ref) 166 167 //go:wasmimport plat/js/webext/speechrecognitionprivate try_OffResult 168 //go:noescape 169 func TryOffResult( 170 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 171 callback js.Ref) (ok js.Ref) 172 173 //go:wasmimport plat/js/webext/speechrecognitionprivate has_HasOnResult 174 //go:noescape 175 func HasFuncHasOnResult() js.Ref 176 177 //go:wasmimport plat/js/webext/speechrecognitionprivate func_HasOnResult 178 //go:noescape 179 func FuncHasOnResult(fn unsafe.Pointer) 180 181 //go:wasmimport plat/js/webext/speechrecognitionprivate call_HasOnResult 182 //go:noescape 183 func CallHasOnResult( 184 retPtr unsafe.Pointer, 185 callback js.Ref) 186 187 //go:wasmimport plat/js/webext/speechrecognitionprivate try_HasOnResult 188 //go:noescape 189 func TryHasOnResult( 190 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 191 callback js.Ref) (ok js.Ref) 192 193 //go:wasmimport plat/js/webext/speechrecognitionprivate has_OnStop 194 //go:noescape 195 func HasFuncOnStop() js.Ref 196 197 //go:wasmimport plat/js/webext/speechrecognitionprivate func_OnStop 198 //go:noescape 199 func FuncOnStop(fn unsafe.Pointer) 200 201 //go:wasmimport plat/js/webext/speechrecognitionprivate call_OnStop 202 //go:noescape 203 func CallOnStop( 204 retPtr unsafe.Pointer, 205 callback js.Ref) 206 207 //go:wasmimport plat/js/webext/speechrecognitionprivate try_OnStop 208 //go:noescape 209 func TryOnStop( 210 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 211 callback js.Ref) (ok js.Ref) 212 213 //go:wasmimport plat/js/webext/speechrecognitionprivate has_OffStop 214 //go:noescape 215 func HasFuncOffStop() js.Ref 216 217 //go:wasmimport plat/js/webext/speechrecognitionprivate func_OffStop 218 //go:noescape 219 func FuncOffStop(fn unsafe.Pointer) 220 221 //go:wasmimport plat/js/webext/speechrecognitionprivate call_OffStop 222 //go:noescape 223 func CallOffStop( 224 retPtr unsafe.Pointer, 225 callback js.Ref) 226 227 //go:wasmimport plat/js/webext/speechrecognitionprivate try_OffStop 228 //go:noescape 229 func TryOffStop( 230 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 231 callback js.Ref) (ok js.Ref) 232 233 //go:wasmimport plat/js/webext/speechrecognitionprivate has_HasOnStop 234 //go:noescape 235 func HasFuncHasOnStop() js.Ref 236 237 //go:wasmimport plat/js/webext/speechrecognitionprivate func_HasOnStop 238 //go:noescape 239 func FuncHasOnStop(fn unsafe.Pointer) 240 241 //go:wasmimport plat/js/webext/speechrecognitionprivate call_HasOnStop 242 //go:noescape 243 func CallHasOnStop( 244 retPtr unsafe.Pointer, 245 callback js.Ref) 246 247 //go:wasmimport plat/js/webext/speechrecognitionprivate try_HasOnStop 248 //go:noescape 249 func TryHasOnStop( 250 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 251 callback js.Ref) (ok js.Ref) 252 253 //go:wasmimport plat/js/webext/speechrecognitionprivate has_Start 254 //go:noescape 255 func HasFuncStart() js.Ref 256 257 //go:wasmimport plat/js/webext/speechrecognitionprivate func_Start 258 //go:noescape 259 func FuncStart(fn unsafe.Pointer) 260 261 //go:wasmimport plat/js/webext/speechrecognitionprivate call_Start 262 //go:noescape 263 func CallStart( 264 retPtr unsafe.Pointer, 265 options unsafe.Pointer) 266 267 //go:wasmimport plat/js/webext/speechrecognitionprivate try_Start 268 //go:noescape 269 func TryStart( 270 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 271 options unsafe.Pointer) (ok js.Ref) 272 273 //go:wasmimport plat/js/webext/speechrecognitionprivate has_Stop 274 //go:noescape 275 func HasFuncStop() js.Ref 276 277 //go:wasmimport plat/js/webext/speechrecognitionprivate func_Stop 278 //go:noescape 279 func FuncStop(fn unsafe.Pointer) 280 281 //go:wasmimport plat/js/webext/speechrecognitionprivate call_Stop 282 //go:noescape 283 func CallStop( 284 retPtr unsafe.Pointer, 285 options unsafe.Pointer) 286 287 //go:wasmimport plat/js/webext/speechrecognitionprivate try_Stop 288 //go:noescape 289 func TryStop( 290 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 291 options unsafe.Pointer) (ok js.Ref)