github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/printerprovider/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/printerprovider constof_PrintError 20 //go:noescape 21 func ConstOfPrintError(str js.Ref) uint32 22 23 //go:wasmimport plat/js/webext/printerprovider store_PrintJob 24 //go:noescape 25 func PrintJobJSStore( 26 ptr unsafe.Pointer, ref js.Ref) 27 28 //go:wasmimport plat/js/webext/printerprovider load_PrintJob 29 //go:noescape 30 func PrintJobJSLoad( 31 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 32 33 //go:wasmimport plat/js/webext/printerprovider store_PrinterInfo 34 //go:noescape 35 func PrinterInfoJSStore( 36 ptr unsafe.Pointer, ref js.Ref) 37 38 //go:wasmimport plat/js/webext/printerprovider load_PrinterInfo 39 //go:noescape 40 func PrinterInfoJSLoad( 41 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 42 43 //go:wasmimport plat/js/webext/printerprovider has_OnGetCapabilityRequested 44 //go:noescape 45 func HasFuncOnGetCapabilityRequested() js.Ref 46 47 //go:wasmimport plat/js/webext/printerprovider func_OnGetCapabilityRequested 48 //go:noescape 49 func FuncOnGetCapabilityRequested(fn unsafe.Pointer) 50 51 //go:wasmimport plat/js/webext/printerprovider call_OnGetCapabilityRequested 52 //go:noescape 53 func CallOnGetCapabilityRequested( 54 retPtr unsafe.Pointer, 55 callback js.Ref) 56 57 //go:wasmimport plat/js/webext/printerprovider try_OnGetCapabilityRequested 58 //go:noescape 59 func TryOnGetCapabilityRequested( 60 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 61 callback js.Ref) (ok js.Ref) 62 63 //go:wasmimport plat/js/webext/printerprovider has_OffGetCapabilityRequested 64 //go:noescape 65 func HasFuncOffGetCapabilityRequested() js.Ref 66 67 //go:wasmimport plat/js/webext/printerprovider func_OffGetCapabilityRequested 68 //go:noescape 69 func FuncOffGetCapabilityRequested(fn unsafe.Pointer) 70 71 //go:wasmimport plat/js/webext/printerprovider call_OffGetCapabilityRequested 72 //go:noescape 73 func CallOffGetCapabilityRequested( 74 retPtr unsafe.Pointer, 75 callback js.Ref) 76 77 //go:wasmimport plat/js/webext/printerprovider try_OffGetCapabilityRequested 78 //go:noescape 79 func TryOffGetCapabilityRequested( 80 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 81 callback js.Ref) (ok js.Ref) 82 83 //go:wasmimport plat/js/webext/printerprovider has_HasOnGetCapabilityRequested 84 //go:noescape 85 func HasFuncHasOnGetCapabilityRequested() js.Ref 86 87 //go:wasmimport plat/js/webext/printerprovider func_HasOnGetCapabilityRequested 88 //go:noescape 89 func FuncHasOnGetCapabilityRequested(fn unsafe.Pointer) 90 91 //go:wasmimport plat/js/webext/printerprovider call_HasOnGetCapabilityRequested 92 //go:noescape 93 func CallHasOnGetCapabilityRequested( 94 retPtr unsafe.Pointer, 95 callback js.Ref) 96 97 //go:wasmimport plat/js/webext/printerprovider try_HasOnGetCapabilityRequested 98 //go:noescape 99 func TryHasOnGetCapabilityRequested( 100 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 101 callback js.Ref) (ok js.Ref) 102 103 //go:wasmimport plat/js/webext/printerprovider has_OnGetPrintersRequested 104 //go:noescape 105 func HasFuncOnGetPrintersRequested() js.Ref 106 107 //go:wasmimport plat/js/webext/printerprovider func_OnGetPrintersRequested 108 //go:noescape 109 func FuncOnGetPrintersRequested(fn unsafe.Pointer) 110 111 //go:wasmimport plat/js/webext/printerprovider call_OnGetPrintersRequested 112 //go:noescape 113 func CallOnGetPrintersRequested( 114 retPtr unsafe.Pointer, 115 callback js.Ref) 116 117 //go:wasmimport plat/js/webext/printerprovider try_OnGetPrintersRequested 118 //go:noescape 119 func TryOnGetPrintersRequested( 120 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 121 callback js.Ref) (ok js.Ref) 122 123 //go:wasmimport plat/js/webext/printerprovider has_OffGetPrintersRequested 124 //go:noescape 125 func HasFuncOffGetPrintersRequested() js.Ref 126 127 //go:wasmimport plat/js/webext/printerprovider func_OffGetPrintersRequested 128 //go:noescape 129 func FuncOffGetPrintersRequested(fn unsafe.Pointer) 130 131 //go:wasmimport plat/js/webext/printerprovider call_OffGetPrintersRequested 132 //go:noescape 133 func CallOffGetPrintersRequested( 134 retPtr unsafe.Pointer, 135 callback js.Ref) 136 137 //go:wasmimport plat/js/webext/printerprovider try_OffGetPrintersRequested 138 //go:noescape 139 func TryOffGetPrintersRequested( 140 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 141 callback js.Ref) (ok js.Ref) 142 143 //go:wasmimport plat/js/webext/printerprovider has_HasOnGetPrintersRequested 144 //go:noescape 145 func HasFuncHasOnGetPrintersRequested() js.Ref 146 147 //go:wasmimport plat/js/webext/printerprovider func_HasOnGetPrintersRequested 148 //go:noescape 149 func FuncHasOnGetPrintersRequested(fn unsafe.Pointer) 150 151 //go:wasmimport plat/js/webext/printerprovider call_HasOnGetPrintersRequested 152 //go:noescape 153 func CallHasOnGetPrintersRequested( 154 retPtr unsafe.Pointer, 155 callback js.Ref) 156 157 //go:wasmimport plat/js/webext/printerprovider try_HasOnGetPrintersRequested 158 //go:noescape 159 func TryHasOnGetPrintersRequested( 160 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 161 callback js.Ref) (ok js.Ref) 162 163 //go:wasmimport plat/js/webext/printerprovider has_OnGetUsbPrinterInfoRequested 164 //go:noescape 165 func HasFuncOnGetUsbPrinterInfoRequested() js.Ref 166 167 //go:wasmimport plat/js/webext/printerprovider func_OnGetUsbPrinterInfoRequested 168 //go:noescape 169 func FuncOnGetUsbPrinterInfoRequested(fn unsafe.Pointer) 170 171 //go:wasmimport plat/js/webext/printerprovider call_OnGetUsbPrinterInfoRequested 172 //go:noescape 173 func CallOnGetUsbPrinterInfoRequested( 174 retPtr unsafe.Pointer, 175 callback js.Ref) 176 177 //go:wasmimport plat/js/webext/printerprovider try_OnGetUsbPrinterInfoRequested 178 //go:noescape 179 func TryOnGetUsbPrinterInfoRequested( 180 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 181 callback js.Ref) (ok js.Ref) 182 183 //go:wasmimport plat/js/webext/printerprovider has_OffGetUsbPrinterInfoRequested 184 //go:noescape 185 func HasFuncOffGetUsbPrinterInfoRequested() js.Ref 186 187 //go:wasmimport plat/js/webext/printerprovider func_OffGetUsbPrinterInfoRequested 188 //go:noescape 189 func FuncOffGetUsbPrinterInfoRequested(fn unsafe.Pointer) 190 191 //go:wasmimport plat/js/webext/printerprovider call_OffGetUsbPrinterInfoRequested 192 //go:noescape 193 func CallOffGetUsbPrinterInfoRequested( 194 retPtr unsafe.Pointer, 195 callback js.Ref) 196 197 //go:wasmimport plat/js/webext/printerprovider try_OffGetUsbPrinterInfoRequested 198 //go:noescape 199 func TryOffGetUsbPrinterInfoRequested( 200 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 201 callback js.Ref) (ok js.Ref) 202 203 //go:wasmimport plat/js/webext/printerprovider has_HasOnGetUsbPrinterInfoRequested 204 //go:noescape 205 func HasFuncHasOnGetUsbPrinterInfoRequested() js.Ref 206 207 //go:wasmimport plat/js/webext/printerprovider func_HasOnGetUsbPrinterInfoRequested 208 //go:noescape 209 func FuncHasOnGetUsbPrinterInfoRequested(fn unsafe.Pointer) 210 211 //go:wasmimport plat/js/webext/printerprovider call_HasOnGetUsbPrinterInfoRequested 212 //go:noescape 213 func CallHasOnGetUsbPrinterInfoRequested( 214 retPtr unsafe.Pointer, 215 callback js.Ref) 216 217 //go:wasmimport plat/js/webext/printerprovider try_HasOnGetUsbPrinterInfoRequested 218 //go:noescape 219 func TryHasOnGetUsbPrinterInfoRequested( 220 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 221 callback js.Ref) (ok js.Ref) 222 223 //go:wasmimport plat/js/webext/printerprovider has_OnPrintRequested 224 //go:noescape 225 func HasFuncOnPrintRequested() js.Ref 226 227 //go:wasmimport plat/js/webext/printerprovider func_OnPrintRequested 228 //go:noescape 229 func FuncOnPrintRequested(fn unsafe.Pointer) 230 231 //go:wasmimport plat/js/webext/printerprovider call_OnPrintRequested 232 //go:noescape 233 func CallOnPrintRequested( 234 retPtr unsafe.Pointer, 235 callback js.Ref) 236 237 //go:wasmimport plat/js/webext/printerprovider try_OnPrintRequested 238 //go:noescape 239 func TryOnPrintRequested( 240 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 241 callback js.Ref) (ok js.Ref) 242 243 //go:wasmimport plat/js/webext/printerprovider has_OffPrintRequested 244 //go:noescape 245 func HasFuncOffPrintRequested() js.Ref 246 247 //go:wasmimport plat/js/webext/printerprovider func_OffPrintRequested 248 //go:noescape 249 func FuncOffPrintRequested(fn unsafe.Pointer) 250 251 //go:wasmimport plat/js/webext/printerprovider call_OffPrintRequested 252 //go:noescape 253 func CallOffPrintRequested( 254 retPtr unsafe.Pointer, 255 callback js.Ref) 256 257 //go:wasmimport plat/js/webext/printerprovider try_OffPrintRequested 258 //go:noescape 259 func TryOffPrintRequested( 260 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 261 callback js.Ref) (ok js.Ref) 262 263 //go:wasmimport plat/js/webext/printerprovider has_HasOnPrintRequested 264 //go:noescape 265 func HasFuncHasOnPrintRequested() js.Ref 266 267 //go:wasmimport plat/js/webext/printerprovider func_HasOnPrintRequested 268 //go:noescape 269 func FuncHasOnPrintRequested(fn unsafe.Pointer) 270 271 //go:wasmimport plat/js/webext/printerprovider call_HasOnPrintRequested 272 //go:noescape 273 func CallHasOnPrintRequested( 274 retPtr unsafe.Pointer, 275 callback js.Ref) 276 277 //go:wasmimport plat/js/webext/printerprovider try_HasOnPrintRequested 278 //go:noescape 279 func TryHasOnPrintRequested( 280 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 281 callback js.Ref) (ok js.Ref)