github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/terminalprivate/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/terminalprivate store_GetOSInfoReturnType 20 //go:noescape 21 func GetOSInfoReturnTypeJSStore( 22 ptr unsafe.Pointer, ref js.Ref) 23 24 //go:wasmimport plat/js/webext/terminalprivate load_GetOSInfoReturnType 25 //go:noescape 26 func GetOSInfoReturnTypeJSLoad( 27 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 28 29 //go:wasmimport plat/js/webext/terminalprivate store_OpenWindowArgData 30 //go:noescape 31 func OpenWindowArgDataJSStore( 32 ptr unsafe.Pointer, ref js.Ref) 33 34 //go:wasmimport plat/js/webext/terminalprivate load_OpenWindowArgData 35 //go:noescape 36 func OpenWindowArgDataJSLoad( 37 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 38 39 //go:wasmimport plat/js/webext/terminalprivate constof_OutputType 40 //go:noescape 41 func ConstOfOutputType(str js.Ref) uint32 42 43 //go:wasmimport plat/js/webext/terminalprivate has_AckOutput 44 //go:noescape 45 func HasFuncAckOutput() js.Ref 46 47 //go:wasmimport plat/js/webext/terminalprivate func_AckOutput 48 //go:noescape 49 func FuncAckOutput(fn unsafe.Pointer) 50 51 //go:wasmimport plat/js/webext/terminalprivate call_AckOutput 52 //go:noescape 53 func CallAckOutput( 54 retPtr unsafe.Pointer, 55 id js.Ref) 56 57 //go:wasmimport plat/js/webext/terminalprivate try_AckOutput 58 //go:noescape 59 func TryAckOutput( 60 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 61 id js.Ref) (ok js.Ref) 62 63 //go:wasmimport plat/js/webext/terminalprivate has_CloseTerminalProcess 64 //go:noescape 65 func HasFuncCloseTerminalProcess() js.Ref 66 67 //go:wasmimport plat/js/webext/terminalprivate func_CloseTerminalProcess 68 //go:noescape 69 func FuncCloseTerminalProcess(fn unsafe.Pointer) 70 71 //go:wasmimport plat/js/webext/terminalprivate call_CloseTerminalProcess 72 //go:noescape 73 func CallCloseTerminalProcess( 74 retPtr unsafe.Pointer, 75 id js.Ref) 76 77 //go:wasmimport plat/js/webext/terminalprivate try_CloseTerminalProcess 78 //go:noescape 79 func TryCloseTerminalProcess( 80 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 81 id js.Ref) (ok js.Ref) 82 83 //go:wasmimport plat/js/webext/terminalprivate has_GetOSInfo 84 //go:noescape 85 func HasFuncGetOSInfo() js.Ref 86 87 //go:wasmimport plat/js/webext/terminalprivate func_GetOSInfo 88 //go:noescape 89 func FuncGetOSInfo(fn unsafe.Pointer) 90 91 //go:wasmimport plat/js/webext/terminalprivate call_GetOSInfo 92 //go:noescape 93 func CallGetOSInfo( 94 retPtr unsafe.Pointer) 95 96 //go:wasmimport plat/js/webext/terminalprivate try_GetOSInfo 97 //go:noescape 98 func TryGetOSInfo( 99 retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref) 100 101 //go:wasmimport plat/js/webext/terminalprivate has_GetPrefs 102 //go:noescape 103 func HasFuncGetPrefs() js.Ref 104 105 //go:wasmimport plat/js/webext/terminalprivate func_GetPrefs 106 //go:noescape 107 func FuncGetPrefs(fn unsafe.Pointer) 108 109 //go:wasmimport plat/js/webext/terminalprivate call_GetPrefs 110 //go:noescape 111 func CallGetPrefs( 112 retPtr unsafe.Pointer, 113 paths js.Ref) 114 115 //go:wasmimport plat/js/webext/terminalprivate try_GetPrefs 116 //go:noescape 117 func TryGetPrefs( 118 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 119 paths js.Ref) (ok js.Ref) 120 121 //go:wasmimport plat/js/webext/terminalprivate has_OnPrefChanged 122 //go:noescape 123 func HasFuncOnPrefChanged() js.Ref 124 125 //go:wasmimport plat/js/webext/terminalprivate func_OnPrefChanged 126 //go:noescape 127 func FuncOnPrefChanged(fn unsafe.Pointer) 128 129 //go:wasmimport plat/js/webext/terminalprivate call_OnPrefChanged 130 //go:noescape 131 func CallOnPrefChanged( 132 retPtr unsafe.Pointer, 133 callback js.Ref) 134 135 //go:wasmimport plat/js/webext/terminalprivate try_OnPrefChanged 136 //go:noescape 137 func TryOnPrefChanged( 138 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 139 callback js.Ref) (ok js.Ref) 140 141 //go:wasmimport plat/js/webext/terminalprivate has_OffPrefChanged 142 //go:noescape 143 func HasFuncOffPrefChanged() js.Ref 144 145 //go:wasmimport plat/js/webext/terminalprivate func_OffPrefChanged 146 //go:noescape 147 func FuncOffPrefChanged(fn unsafe.Pointer) 148 149 //go:wasmimport plat/js/webext/terminalprivate call_OffPrefChanged 150 //go:noescape 151 func CallOffPrefChanged( 152 retPtr unsafe.Pointer, 153 callback js.Ref) 154 155 //go:wasmimport plat/js/webext/terminalprivate try_OffPrefChanged 156 //go:noescape 157 func TryOffPrefChanged( 158 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 159 callback js.Ref) (ok js.Ref) 160 161 //go:wasmimport plat/js/webext/terminalprivate has_HasOnPrefChanged 162 //go:noescape 163 func HasFuncHasOnPrefChanged() js.Ref 164 165 //go:wasmimport plat/js/webext/terminalprivate func_HasOnPrefChanged 166 //go:noescape 167 func FuncHasOnPrefChanged(fn unsafe.Pointer) 168 169 //go:wasmimport plat/js/webext/terminalprivate call_HasOnPrefChanged 170 //go:noescape 171 func CallHasOnPrefChanged( 172 retPtr unsafe.Pointer, 173 callback js.Ref) 174 175 //go:wasmimport plat/js/webext/terminalprivate try_HasOnPrefChanged 176 //go:noescape 177 func TryHasOnPrefChanged( 178 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 179 callback js.Ref) (ok js.Ref) 180 181 //go:wasmimport plat/js/webext/terminalprivate has_OnProcessOutput 182 //go:noescape 183 func HasFuncOnProcessOutput() js.Ref 184 185 //go:wasmimport plat/js/webext/terminalprivate func_OnProcessOutput 186 //go:noescape 187 func FuncOnProcessOutput(fn unsafe.Pointer) 188 189 //go:wasmimport plat/js/webext/terminalprivate call_OnProcessOutput 190 //go:noescape 191 func CallOnProcessOutput( 192 retPtr unsafe.Pointer, 193 callback js.Ref) 194 195 //go:wasmimport plat/js/webext/terminalprivate try_OnProcessOutput 196 //go:noescape 197 func TryOnProcessOutput( 198 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 199 callback js.Ref) (ok js.Ref) 200 201 //go:wasmimport plat/js/webext/terminalprivate has_OffProcessOutput 202 //go:noescape 203 func HasFuncOffProcessOutput() js.Ref 204 205 //go:wasmimport plat/js/webext/terminalprivate func_OffProcessOutput 206 //go:noescape 207 func FuncOffProcessOutput(fn unsafe.Pointer) 208 209 //go:wasmimport plat/js/webext/terminalprivate call_OffProcessOutput 210 //go:noescape 211 func CallOffProcessOutput( 212 retPtr unsafe.Pointer, 213 callback js.Ref) 214 215 //go:wasmimport plat/js/webext/terminalprivate try_OffProcessOutput 216 //go:noescape 217 func TryOffProcessOutput( 218 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 219 callback js.Ref) (ok js.Ref) 220 221 //go:wasmimport plat/js/webext/terminalprivate has_HasOnProcessOutput 222 //go:noescape 223 func HasFuncHasOnProcessOutput() js.Ref 224 225 //go:wasmimport plat/js/webext/terminalprivate func_HasOnProcessOutput 226 //go:noescape 227 func FuncHasOnProcessOutput(fn unsafe.Pointer) 228 229 //go:wasmimport plat/js/webext/terminalprivate call_HasOnProcessOutput 230 //go:noescape 231 func CallHasOnProcessOutput( 232 retPtr unsafe.Pointer, 233 callback js.Ref) 234 235 //go:wasmimport plat/js/webext/terminalprivate try_HasOnProcessOutput 236 //go:noescape 237 func TryHasOnProcessOutput( 238 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 239 callback js.Ref) (ok js.Ref) 240 241 //go:wasmimport plat/js/webext/terminalprivate has_OnTerminalResize 242 //go:noescape 243 func HasFuncOnTerminalResize() js.Ref 244 245 //go:wasmimport plat/js/webext/terminalprivate func_OnTerminalResize 246 //go:noescape 247 func FuncOnTerminalResize(fn unsafe.Pointer) 248 249 //go:wasmimport plat/js/webext/terminalprivate call_OnTerminalResize 250 //go:noescape 251 func CallOnTerminalResize( 252 retPtr unsafe.Pointer, 253 id js.Ref, 254 width float64, 255 height float64) 256 257 //go:wasmimport plat/js/webext/terminalprivate try_OnTerminalResize 258 //go:noescape 259 func TryOnTerminalResize( 260 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 261 id js.Ref, 262 width float64, 263 height float64) (ok js.Ref) 264 265 //go:wasmimport plat/js/webext/terminalprivate has_OpenOptionsPage 266 //go:noescape 267 func HasFuncOpenOptionsPage() js.Ref 268 269 //go:wasmimport plat/js/webext/terminalprivate func_OpenOptionsPage 270 //go:noescape 271 func FuncOpenOptionsPage(fn unsafe.Pointer) 272 273 //go:wasmimport plat/js/webext/terminalprivate call_OpenOptionsPage 274 //go:noescape 275 func CallOpenOptionsPage( 276 retPtr unsafe.Pointer) 277 278 //go:wasmimport plat/js/webext/terminalprivate try_OpenOptionsPage 279 //go:noescape 280 func TryOpenOptionsPage( 281 retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref) 282 283 //go:wasmimport plat/js/webext/terminalprivate has_OpenSettingsSubpage 284 //go:noescape 285 func HasFuncOpenSettingsSubpage() js.Ref 286 287 //go:wasmimport plat/js/webext/terminalprivate func_OpenSettingsSubpage 288 //go:noescape 289 func FuncOpenSettingsSubpage(fn unsafe.Pointer) 290 291 //go:wasmimport plat/js/webext/terminalprivate call_OpenSettingsSubpage 292 //go:noescape 293 func CallOpenSettingsSubpage( 294 retPtr unsafe.Pointer, 295 subpage js.Ref) 296 297 //go:wasmimport plat/js/webext/terminalprivate try_OpenSettingsSubpage 298 //go:noescape 299 func TryOpenSettingsSubpage( 300 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 301 subpage js.Ref) (ok js.Ref) 302 303 //go:wasmimport plat/js/webext/terminalprivate has_OpenTerminalProcess 304 //go:noescape 305 func HasFuncOpenTerminalProcess() js.Ref 306 307 //go:wasmimport plat/js/webext/terminalprivate func_OpenTerminalProcess 308 //go:noescape 309 func FuncOpenTerminalProcess(fn unsafe.Pointer) 310 311 //go:wasmimport plat/js/webext/terminalprivate call_OpenTerminalProcess 312 //go:noescape 313 func CallOpenTerminalProcess( 314 retPtr unsafe.Pointer, 315 processName js.Ref, 316 args js.Ref) 317 318 //go:wasmimport plat/js/webext/terminalprivate try_OpenTerminalProcess 319 //go:noescape 320 func TryOpenTerminalProcess( 321 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 322 processName js.Ref, 323 args js.Ref) (ok js.Ref) 324 325 //go:wasmimport plat/js/webext/terminalprivate has_OpenVmshellProcess 326 //go:noescape 327 func HasFuncOpenVmshellProcess() js.Ref 328 329 //go:wasmimport plat/js/webext/terminalprivate func_OpenVmshellProcess 330 //go:noescape 331 func FuncOpenVmshellProcess(fn unsafe.Pointer) 332 333 //go:wasmimport plat/js/webext/terminalprivate call_OpenVmshellProcess 334 //go:noescape 335 func CallOpenVmshellProcess( 336 retPtr unsafe.Pointer, 337 args js.Ref) 338 339 //go:wasmimport plat/js/webext/terminalprivate try_OpenVmshellProcess 340 //go:noescape 341 func TryOpenVmshellProcess( 342 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 343 args js.Ref) (ok js.Ref) 344 345 //go:wasmimport plat/js/webext/terminalprivate has_OpenWindow 346 //go:noescape 347 func HasFuncOpenWindow() js.Ref 348 349 //go:wasmimport plat/js/webext/terminalprivate func_OpenWindow 350 //go:noescape 351 func FuncOpenWindow(fn unsafe.Pointer) 352 353 //go:wasmimport plat/js/webext/terminalprivate call_OpenWindow 354 //go:noescape 355 func CallOpenWindow( 356 retPtr unsafe.Pointer, 357 data unsafe.Pointer) 358 359 //go:wasmimport plat/js/webext/terminalprivate try_OpenWindow 360 //go:noescape 361 func TryOpenWindow( 362 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 363 data unsafe.Pointer) (ok js.Ref) 364 365 //go:wasmimport plat/js/webext/terminalprivate has_SendInput 366 //go:noescape 367 func HasFuncSendInput() js.Ref 368 369 //go:wasmimport plat/js/webext/terminalprivate func_SendInput 370 //go:noescape 371 func FuncSendInput(fn unsafe.Pointer) 372 373 //go:wasmimport plat/js/webext/terminalprivate call_SendInput 374 //go:noescape 375 func CallSendInput( 376 retPtr unsafe.Pointer, 377 id js.Ref, 378 input js.Ref) 379 380 //go:wasmimport plat/js/webext/terminalprivate try_SendInput 381 //go:noescape 382 func TrySendInput( 383 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 384 id js.Ref, 385 input js.Ref) (ok js.Ref) 386 387 //go:wasmimport plat/js/webext/terminalprivate has_SetPrefs 388 //go:noescape 389 func HasFuncSetPrefs() js.Ref 390 391 //go:wasmimport plat/js/webext/terminalprivate func_SetPrefs 392 //go:noescape 393 func FuncSetPrefs(fn unsafe.Pointer) 394 395 //go:wasmimport plat/js/webext/terminalprivate call_SetPrefs 396 //go:noescape 397 func CallSetPrefs( 398 retPtr unsafe.Pointer, 399 prefs js.Ref) 400 401 //go:wasmimport plat/js/webext/terminalprivate try_SetPrefs 402 //go:noescape 403 func TrySetPrefs( 404 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 405 prefs js.Ref) (ok js.Ref)