github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/imagewriterprivate/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/imagewriterprivate store_RemovableStorageDevice 20 //go:noescape 21 func RemovableStorageDeviceJSStore( 22 ptr unsafe.Pointer, ref js.Ref) 23 24 //go:wasmimport plat/js/webext/imagewriterprivate load_RemovableStorageDevice 25 //go:noescape 26 func RemovableStorageDeviceJSLoad( 27 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 28 29 //go:wasmimport plat/js/webext/imagewriterprivate constof_Stage 30 //go:noescape 31 func ConstOfStage(str js.Ref) uint32 32 33 //go:wasmimport plat/js/webext/imagewriterprivate store_ProgressInfo 34 //go:noescape 35 func ProgressInfoJSStore( 36 ptr unsafe.Pointer, ref js.Ref) 37 38 //go:wasmimport plat/js/webext/imagewriterprivate load_ProgressInfo 39 //go:noescape 40 func ProgressInfoJSLoad( 41 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 42 43 //go:wasmimport plat/js/webext/imagewriterprivate store_UrlWriteOptions 44 //go:noescape 45 func UrlWriteOptionsJSStore( 46 ptr unsafe.Pointer, ref js.Ref) 47 48 //go:wasmimport plat/js/webext/imagewriterprivate load_UrlWriteOptions 49 //go:noescape 50 func UrlWriteOptionsJSLoad( 51 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 52 53 //go:wasmimport plat/js/webext/imagewriterprivate has_CancelWrite 54 //go:noescape 55 func HasFuncCancelWrite() js.Ref 56 57 //go:wasmimport plat/js/webext/imagewriterprivate func_CancelWrite 58 //go:noescape 59 func FuncCancelWrite(fn unsafe.Pointer) 60 61 //go:wasmimport plat/js/webext/imagewriterprivate call_CancelWrite 62 //go:noescape 63 func CallCancelWrite( 64 retPtr unsafe.Pointer) 65 66 //go:wasmimport plat/js/webext/imagewriterprivate try_CancelWrite 67 //go:noescape 68 func TryCancelWrite( 69 retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref) 70 71 //go:wasmimport plat/js/webext/imagewriterprivate has_DestroyPartitions 72 //go:noescape 73 func HasFuncDestroyPartitions() js.Ref 74 75 //go:wasmimport plat/js/webext/imagewriterprivate func_DestroyPartitions 76 //go:noescape 77 func FuncDestroyPartitions(fn unsafe.Pointer) 78 79 //go:wasmimport plat/js/webext/imagewriterprivate call_DestroyPartitions 80 //go:noescape 81 func CallDestroyPartitions( 82 retPtr unsafe.Pointer, 83 storageUnitId js.Ref) 84 85 //go:wasmimport plat/js/webext/imagewriterprivate try_DestroyPartitions 86 //go:noescape 87 func TryDestroyPartitions( 88 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 89 storageUnitId js.Ref) (ok js.Ref) 90 91 //go:wasmimport plat/js/webext/imagewriterprivate has_ListRemovableStorageDevices 92 //go:noescape 93 func HasFuncListRemovableStorageDevices() js.Ref 94 95 //go:wasmimport plat/js/webext/imagewriterprivate func_ListRemovableStorageDevices 96 //go:noescape 97 func FuncListRemovableStorageDevices(fn unsafe.Pointer) 98 99 //go:wasmimport plat/js/webext/imagewriterprivate call_ListRemovableStorageDevices 100 //go:noescape 101 func CallListRemovableStorageDevices( 102 retPtr unsafe.Pointer) 103 104 //go:wasmimport plat/js/webext/imagewriterprivate try_ListRemovableStorageDevices 105 //go:noescape 106 func TryListRemovableStorageDevices( 107 retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref) 108 109 //go:wasmimport plat/js/webext/imagewriterprivate has_OnDeviceInserted 110 //go:noescape 111 func HasFuncOnDeviceInserted() js.Ref 112 113 //go:wasmimport plat/js/webext/imagewriterprivate func_OnDeviceInserted 114 //go:noescape 115 func FuncOnDeviceInserted(fn unsafe.Pointer) 116 117 //go:wasmimport plat/js/webext/imagewriterprivate call_OnDeviceInserted 118 //go:noescape 119 func CallOnDeviceInserted( 120 retPtr unsafe.Pointer, 121 callback js.Ref) 122 123 //go:wasmimport plat/js/webext/imagewriterprivate try_OnDeviceInserted 124 //go:noescape 125 func TryOnDeviceInserted( 126 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 127 callback js.Ref) (ok js.Ref) 128 129 //go:wasmimport plat/js/webext/imagewriterprivate has_OffDeviceInserted 130 //go:noescape 131 func HasFuncOffDeviceInserted() js.Ref 132 133 //go:wasmimport plat/js/webext/imagewriterprivate func_OffDeviceInserted 134 //go:noescape 135 func FuncOffDeviceInserted(fn unsafe.Pointer) 136 137 //go:wasmimport plat/js/webext/imagewriterprivate call_OffDeviceInserted 138 //go:noescape 139 func CallOffDeviceInserted( 140 retPtr unsafe.Pointer, 141 callback js.Ref) 142 143 //go:wasmimport plat/js/webext/imagewriterprivate try_OffDeviceInserted 144 //go:noescape 145 func TryOffDeviceInserted( 146 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 147 callback js.Ref) (ok js.Ref) 148 149 //go:wasmimport plat/js/webext/imagewriterprivate has_HasOnDeviceInserted 150 //go:noescape 151 func HasFuncHasOnDeviceInserted() js.Ref 152 153 //go:wasmimport plat/js/webext/imagewriterprivate func_HasOnDeviceInserted 154 //go:noescape 155 func FuncHasOnDeviceInserted(fn unsafe.Pointer) 156 157 //go:wasmimport plat/js/webext/imagewriterprivate call_HasOnDeviceInserted 158 //go:noescape 159 func CallHasOnDeviceInserted( 160 retPtr unsafe.Pointer, 161 callback js.Ref) 162 163 //go:wasmimport plat/js/webext/imagewriterprivate try_HasOnDeviceInserted 164 //go:noescape 165 func TryHasOnDeviceInserted( 166 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 167 callback js.Ref) (ok js.Ref) 168 169 //go:wasmimport plat/js/webext/imagewriterprivate has_OnDeviceRemoved 170 //go:noescape 171 func HasFuncOnDeviceRemoved() js.Ref 172 173 //go:wasmimport plat/js/webext/imagewriterprivate func_OnDeviceRemoved 174 //go:noescape 175 func FuncOnDeviceRemoved(fn unsafe.Pointer) 176 177 //go:wasmimport plat/js/webext/imagewriterprivate call_OnDeviceRemoved 178 //go:noescape 179 func CallOnDeviceRemoved( 180 retPtr unsafe.Pointer, 181 callback js.Ref) 182 183 //go:wasmimport plat/js/webext/imagewriterprivate try_OnDeviceRemoved 184 //go:noescape 185 func TryOnDeviceRemoved( 186 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 187 callback js.Ref) (ok js.Ref) 188 189 //go:wasmimport plat/js/webext/imagewriterprivate has_OffDeviceRemoved 190 //go:noescape 191 func HasFuncOffDeviceRemoved() js.Ref 192 193 //go:wasmimport plat/js/webext/imagewriterprivate func_OffDeviceRemoved 194 //go:noescape 195 func FuncOffDeviceRemoved(fn unsafe.Pointer) 196 197 //go:wasmimport plat/js/webext/imagewriterprivate call_OffDeviceRemoved 198 //go:noescape 199 func CallOffDeviceRemoved( 200 retPtr unsafe.Pointer, 201 callback js.Ref) 202 203 //go:wasmimport plat/js/webext/imagewriterprivate try_OffDeviceRemoved 204 //go:noescape 205 func TryOffDeviceRemoved( 206 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 207 callback js.Ref) (ok js.Ref) 208 209 //go:wasmimport plat/js/webext/imagewriterprivate has_HasOnDeviceRemoved 210 //go:noescape 211 func HasFuncHasOnDeviceRemoved() js.Ref 212 213 //go:wasmimport plat/js/webext/imagewriterprivate func_HasOnDeviceRemoved 214 //go:noescape 215 func FuncHasOnDeviceRemoved(fn unsafe.Pointer) 216 217 //go:wasmimport plat/js/webext/imagewriterprivate call_HasOnDeviceRemoved 218 //go:noescape 219 func CallHasOnDeviceRemoved( 220 retPtr unsafe.Pointer, 221 callback js.Ref) 222 223 //go:wasmimport plat/js/webext/imagewriterprivate try_HasOnDeviceRemoved 224 //go:noescape 225 func TryHasOnDeviceRemoved( 226 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 227 callback js.Ref) (ok js.Ref) 228 229 //go:wasmimport plat/js/webext/imagewriterprivate has_OnWriteComplete 230 //go:noescape 231 func HasFuncOnWriteComplete() js.Ref 232 233 //go:wasmimport plat/js/webext/imagewriterprivate func_OnWriteComplete 234 //go:noescape 235 func FuncOnWriteComplete(fn unsafe.Pointer) 236 237 //go:wasmimport plat/js/webext/imagewriterprivate call_OnWriteComplete 238 //go:noescape 239 func CallOnWriteComplete( 240 retPtr unsafe.Pointer, 241 callback js.Ref) 242 243 //go:wasmimport plat/js/webext/imagewriterprivate try_OnWriteComplete 244 //go:noescape 245 func TryOnWriteComplete( 246 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 247 callback js.Ref) (ok js.Ref) 248 249 //go:wasmimport plat/js/webext/imagewriterprivate has_OffWriteComplete 250 //go:noescape 251 func HasFuncOffWriteComplete() js.Ref 252 253 //go:wasmimport plat/js/webext/imagewriterprivate func_OffWriteComplete 254 //go:noescape 255 func FuncOffWriteComplete(fn unsafe.Pointer) 256 257 //go:wasmimport plat/js/webext/imagewriterprivate call_OffWriteComplete 258 //go:noescape 259 func CallOffWriteComplete( 260 retPtr unsafe.Pointer, 261 callback js.Ref) 262 263 //go:wasmimport plat/js/webext/imagewriterprivate try_OffWriteComplete 264 //go:noescape 265 func TryOffWriteComplete( 266 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 267 callback js.Ref) (ok js.Ref) 268 269 //go:wasmimport plat/js/webext/imagewriterprivate has_HasOnWriteComplete 270 //go:noescape 271 func HasFuncHasOnWriteComplete() js.Ref 272 273 //go:wasmimport plat/js/webext/imagewriterprivate func_HasOnWriteComplete 274 //go:noescape 275 func FuncHasOnWriteComplete(fn unsafe.Pointer) 276 277 //go:wasmimport plat/js/webext/imagewriterprivate call_HasOnWriteComplete 278 //go:noescape 279 func CallHasOnWriteComplete( 280 retPtr unsafe.Pointer, 281 callback js.Ref) 282 283 //go:wasmimport plat/js/webext/imagewriterprivate try_HasOnWriteComplete 284 //go:noescape 285 func TryHasOnWriteComplete( 286 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 287 callback js.Ref) (ok js.Ref) 288 289 //go:wasmimport plat/js/webext/imagewriterprivate has_OnWriteError 290 //go:noescape 291 func HasFuncOnWriteError() js.Ref 292 293 //go:wasmimport plat/js/webext/imagewriterprivate func_OnWriteError 294 //go:noescape 295 func FuncOnWriteError(fn unsafe.Pointer) 296 297 //go:wasmimport plat/js/webext/imagewriterprivate call_OnWriteError 298 //go:noescape 299 func CallOnWriteError( 300 retPtr unsafe.Pointer, 301 callback js.Ref) 302 303 //go:wasmimport plat/js/webext/imagewriterprivate try_OnWriteError 304 //go:noescape 305 func TryOnWriteError( 306 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 307 callback js.Ref) (ok js.Ref) 308 309 //go:wasmimport plat/js/webext/imagewriterprivate has_OffWriteError 310 //go:noescape 311 func HasFuncOffWriteError() js.Ref 312 313 //go:wasmimport plat/js/webext/imagewriterprivate func_OffWriteError 314 //go:noescape 315 func FuncOffWriteError(fn unsafe.Pointer) 316 317 //go:wasmimport plat/js/webext/imagewriterprivate call_OffWriteError 318 //go:noescape 319 func CallOffWriteError( 320 retPtr unsafe.Pointer, 321 callback js.Ref) 322 323 //go:wasmimport plat/js/webext/imagewriterprivate try_OffWriteError 324 //go:noescape 325 func TryOffWriteError( 326 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 327 callback js.Ref) (ok js.Ref) 328 329 //go:wasmimport plat/js/webext/imagewriterprivate has_HasOnWriteError 330 //go:noescape 331 func HasFuncHasOnWriteError() js.Ref 332 333 //go:wasmimport plat/js/webext/imagewriterprivate func_HasOnWriteError 334 //go:noescape 335 func FuncHasOnWriteError(fn unsafe.Pointer) 336 337 //go:wasmimport plat/js/webext/imagewriterprivate call_HasOnWriteError 338 //go:noescape 339 func CallHasOnWriteError( 340 retPtr unsafe.Pointer, 341 callback js.Ref) 342 343 //go:wasmimport plat/js/webext/imagewriterprivate try_HasOnWriteError 344 //go:noescape 345 func TryHasOnWriteError( 346 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 347 callback js.Ref) (ok js.Ref) 348 349 //go:wasmimport plat/js/webext/imagewriterprivate has_OnWriteProgress 350 //go:noescape 351 func HasFuncOnWriteProgress() js.Ref 352 353 //go:wasmimport plat/js/webext/imagewriterprivate func_OnWriteProgress 354 //go:noescape 355 func FuncOnWriteProgress(fn unsafe.Pointer) 356 357 //go:wasmimport plat/js/webext/imagewriterprivate call_OnWriteProgress 358 //go:noescape 359 func CallOnWriteProgress( 360 retPtr unsafe.Pointer, 361 callback js.Ref) 362 363 //go:wasmimport plat/js/webext/imagewriterprivate try_OnWriteProgress 364 //go:noescape 365 func TryOnWriteProgress( 366 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 367 callback js.Ref) (ok js.Ref) 368 369 //go:wasmimport plat/js/webext/imagewriterprivate has_OffWriteProgress 370 //go:noescape 371 func HasFuncOffWriteProgress() js.Ref 372 373 //go:wasmimport plat/js/webext/imagewriterprivate func_OffWriteProgress 374 //go:noescape 375 func FuncOffWriteProgress(fn unsafe.Pointer) 376 377 //go:wasmimport plat/js/webext/imagewriterprivate call_OffWriteProgress 378 //go:noescape 379 func CallOffWriteProgress( 380 retPtr unsafe.Pointer, 381 callback js.Ref) 382 383 //go:wasmimport plat/js/webext/imagewriterprivate try_OffWriteProgress 384 //go:noescape 385 func TryOffWriteProgress( 386 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 387 callback js.Ref) (ok js.Ref) 388 389 //go:wasmimport plat/js/webext/imagewriterprivate has_HasOnWriteProgress 390 //go:noescape 391 func HasFuncHasOnWriteProgress() js.Ref 392 393 //go:wasmimport plat/js/webext/imagewriterprivate func_HasOnWriteProgress 394 //go:noescape 395 func FuncHasOnWriteProgress(fn unsafe.Pointer) 396 397 //go:wasmimport plat/js/webext/imagewriterprivate call_HasOnWriteProgress 398 //go:noescape 399 func CallHasOnWriteProgress( 400 retPtr unsafe.Pointer, 401 callback js.Ref) 402 403 //go:wasmimport plat/js/webext/imagewriterprivate try_HasOnWriteProgress 404 //go:noescape 405 func TryHasOnWriteProgress( 406 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 407 callback js.Ref) (ok js.Ref) 408 409 //go:wasmimport plat/js/webext/imagewriterprivate has_WriteFromFile 410 //go:noescape 411 func HasFuncWriteFromFile() js.Ref 412 413 //go:wasmimport plat/js/webext/imagewriterprivate func_WriteFromFile 414 //go:noescape 415 func FuncWriteFromFile(fn unsafe.Pointer) 416 417 //go:wasmimport plat/js/webext/imagewriterprivate call_WriteFromFile 418 //go:noescape 419 func CallWriteFromFile( 420 retPtr unsafe.Pointer, 421 storageUnitId js.Ref, 422 fileEntry js.Ref) 423 424 //go:wasmimport plat/js/webext/imagewriterprivate try_WriteFromFile 425 //go:noescape 426 func TryWriteFromFile( 427 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 428 storageUnitId js.Ref, 429 fileEntry js.Ref) (ok js.Ref) 430 431 //go:wasmimport plat/js/webext/imagewriterprivate has_WriteFromUrl 432 //go:noescape 433 func HasFuncWriteFromUrl() js.Ref 434 435 //go:wasmimport plat/js/webext/imagewriterprivate func_WriteFromUrl 436 //go:noescape 437 func FuncWriteFromUrl(fn unsafe.Pointer) 438 439 //go:wasmimport plat/js/webext/imagewriterprivate call_WriteFromUrl 440 //go:noescape 441 func CallWriteFromUrl( 442 retPtr unsafe.Pointer, 443 storageUnitId js.Ref, 444 imageUrl js.Ref, 445 options unsafe.Pointer) 446 447 //go:wasmimport plat/js/webext/imagewriterprivate try_WriteFromUrl 448 //go:noescape 449 func TryWriteFromUrl( 450 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 451 storageUnitId js.Ref, 452 imageUrl js.Ref, 453 options unsafe.Pointer) (ok js.Ref)