github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/declarativewebrequest/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/declarativewebrequest store_RequestCookie 20 //go:noescape 21 func RequestCookieJSStore( 22 ptr unsafe.Pointer, ref js.Ref) 23 24 //go:wasmimport plat/js/webext/declarativewebrequest load_RequestCookie 25 //go:noescape 26 func RequestCookieJSLoad( 27 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 28 29 //go:wasmimport plat/js/webext/declarativewebrequest constof_AddRequestCookieInstanceType 30 //go:noescape 31 func ConstOfAddRequestCookieInstanceType(str js.Ref) uint32 32 33 //go:wasmimport plat/js/webext/declarativewebrequest store_AddRequestCookie 34 //go:noescape 35 func AddRequestCookieJSStore( 36 ptr unsafe.Pointer, ref js.Ref) 37 38 //go:wasmimport plat/js/webext/declarativewebrequest load_AddRequestCookie 39 //go:noescape 40 func AddRequestCookieJSLoad( 41 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 42 43 //go:wasmimport plat/js/webext/declarativewebrequest store_ResponseCookie 44 //go:noescape 45 func ResponseCookieJSStore( 46 ptr unsafe.Pointer, ref js.Ref) 47 48 //go:wasmimport plat/js/webext/declarativewebrequest load_ResponseCookie 49 //go:noescape 50 func ResponseCookieJSLoad( 51 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 52 53 //go:wasmimport plat/js/webext/declarativewebrequest constof_AddResponseCookieInstanceType 54 //go:noescape 55 func ConstOfAddResponseCookieInstanceType(str js.Ref) uint32 56 57 //go:wasmimport plat/js/webext/declarativewebrequest store_AddResponseCookie 58 //go:noescape 59 func AddResponseCookieJSStore( 60 ptr unsafe.Pointer, ref js.Ref) 61 62 //go:wasmimport plat/js/webext/declarativewebrequest load_AddResponseCookie 63 //go:noescape 64 func AddResponseCookieJSLoad( 65 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 66 67 //go:wasmimport plat/js/webext/declarativewebrequest constof_AddResponseHeaderInstanceType 68 //go:noescape 69 func ConstOfAddResponseHeaderInstanceType(str js.Ref) uint32 70 71 //go:wasmimport plat/js/webext/declarativewebrequest store_AddResponseHeader 72 //go:noescape 73 func AddResponseHeaderJSStore( 74 ptr unsafe.Pointer, ref js.Ref) 75 76 //go:wasmimport plat/js/webext/declarativewebrequest load_AddResponseHeader 77 //go:noescape 78 func AddResponseHeaderJSLoad( 79 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 80 81 //go:wasmimport plat/js/webext/declarativewebrequest constof_CancelRequestInstanceType 82 //go:noescape 83 func ConstOfCancelRequestInstanceType(str js.Ref) uint32 84 85 //go:wasmimport plat/js/webext/declarativewebrequest store_CancelRequest 86 //go:noescape 87 func CancelRequestJSStore( 88 ptr unsafe.Pointer, ref js.Ref) 89 90 //go:wasmimport plat/js/webext/declarativewebrequest load_CancelRequest 91 //go:noescape 92 func CancelRequestJSLoad( 93 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 94 95 //go:wasmimport plat/js/webext/declarativewebrequest constof_EditRequestCookieInstanceType 96 //go:noescape 97 func ConstOfEditRequestCookieInstanceType(str js.Ref) uint32 98 99 //go:wasmimport plat/js/webext/declarativewebrequest store_EditRequestCookie 100 //go:noescape 101 func EditRequestCookieJSStore( 102 ptr unsafe.Pointer, ref js.Ref) 103 104 //go:wasmimport plat/js/webext/declarativewebrequest load_EditRequestCookie 105 //go:noescape 106 func EditRequestCookieJSLoad( 107 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 108 109 //go:wasmimport plat/js/webext/declarativewebrequest store_FilterResponseCookie 110 //go:noescape 111 func FilterResponseCookieJSStore( 112 ptr unsafe.Pointer, ref js.Ref) 113 114 //go:wasmimport plat/js/webext/declarativewebrequest load_FilterResponseCookie 115 //go:noescape 116 func FilterResponseCookieJSLoad( 117 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 118 119 //go:wasmimport plat/js/webext/declarativewebrequest constof_EditResponseCookieInstanceType 120 //go:noescape 121 func ConstOfEditResponseCookieInstanceType(str js.Ref) uint32 122 123 //go:wasmimport plat/js/webext/declarativewebrequest store_EditResponseCookie 124 //go:noescape 125 func EditResponseCookieJSStore( 126 ptr unsafe.Pointer, ref js.Ref) 127 128 //go:wasmimport plat/js/webext/declarativewebrequest load_EditResponseCookie 129 //go:noescape 130 func EditResponseCookieJSLoad( 131 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 132 133 //go:wasmimport plat/js/webext/declarativewebrequest store_HeaderFilter 134 //go:noescape 135 func HeaderFilterJSStore( 136 ptr unsafe.Pointer, ref js.Ref) 137 138 //go:wasmimport plat/js/webext/declarativewebrequest load_HeaderFilter 139 //go:noescape 140 func HeaderFilterJSLoad( 141 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 142 143 //go:wasmimport plat/js/webext/declarativewebrequest constof_IgnoreRulesInstanceType 144 //go:noescape 145 func ConstOfIgnoreRulesInstanceType(str js.Ref) uint32 146 147 //go:wasmimport plat/js/webext/declarativewebrequest store_IgnoreRules 148 //go:noescape 149 func IgnoreRulesJSStore( 150 ptr unsafe.Pointer, ref js.Ref) 151 152 //go:wasmimport plat/js/webext/declarativewebrequest load_IgnoreRules 153 //go:noescape 154 func IgnoreRulesJSLoad( 155 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 156 157 //go:wasmimport plat/js/webext/declarativewebrequest constof_Stage 158 //go:noescape 159 func ConstOfStage(str js.Ref) uint32 160 161 //go:wasmimport plat/js/webext/declarativewebrequest store_OnMessageArgDetails 162 //go:noescape 163 func OnMessageArgDetailsJSStore( 164 ptr unsafe.Pointer, ref js.Ref) 165 166 //go:wasmimport plat/js/webext/declarativewebrequest load_OnMessageArgDetails 167 //go:noescape 168 func OnMessageArgDetailsJSLoad( 169 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 170 171 //go:wasmimport plat/js/webext/declarativewebrequest constof_RedirectByRegExInstanceType 172 //go:noescape 173 func ConstOfRedirectByRegExInstanceType(str js.Ref) uint32 174 175 //go:wasmimport plat/js/webext/declarativewebrequest store_RedirectByRegEx 176 //go:noescape 177 func RedirectByRegExJSStore( 178 ptr unsafe.Pointer, ref js.Ref) 179 180 //go:wasmimport plat/js/webext/declarativewebrequest load_RedirectByRegEx 181 //go:noescape 182 func RedirectByRegExJSLoad( 183 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 184 185 //go:wasmimport plat/js/webext/declarativewebrequest constof_RedirectRequestInstanceType 186 //go:noescape 187 func ConstOfRedirectRequestInstanceType(str js.Ref) uint32 188 189 //go:wasmimport plat/js/webext/declarativewebrequest store_RedirectRequest 190 //go:noescape 191 func RedirectRequestJSStore( 192 ptr unsafe.Pointer, ref js.Ref) 193 194 //go:wasmimport plat/js/webext/declarativewebrequest load_RedirectRequest 195 //go:noescape 196 func RedirectRequestJSLoad( 197 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 198 199 //go:wasmimport plat/js/webext/declarativewebrequest constof_RedirectToEmptyDocumentInstanceType 200 //go:noescape 201 func ConstOfRedirectToEmptyDocumentInstanceType(str js.Ref) uint32 202 203 //go:wasmimport plat/js/webext/declarativewebrequest store_RedirectToEmptyDocument 204 //go:noescape 205 func RedirectToEmptyDocumentJSStore( 206 ptr unsafe.Pointer, ref js.Ref) 207 208 //go:wasmimport plat/js/webext/declarativewebrequest load_RedirectToEmptyDocument 209 //go:noescape 210 func RedirectToEmptyDocumentJSLoad( 211 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 212 213 //go:wasmimport plat/js/webext/declarativewebrequest constof_RedirectToTransparentImageInstanceType 214 //go:noescape 215 func ConstOfRedirectToTransparentImageInstanceType(str js.Ref) uint32 216 217 //go:wasmimport plat/js/webext/declarativewebrequest store_RedirectToTransparentImage 218 //go:noescape 219 func RedirectToTransparentImageJSStore( 220 ptr unsafe.Pointer, ref js.Ref) 221 222 //go:wasmimport plat/js/webext/declarativewebrequest load_RedirectToTransparentImage 223 //go:noescape 224 func RedirectToTransparentImageJSLoad( 225 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 226 227 //go:wasmimport plat/js/webext/declarativewebrequest constof_RemoveRequestCookieInstanceType 228 //go:noescape 229 func ConstOfRemoveRequestCookieInstanceType(str js.Ref) uint32 230 231 //go:wasmimport plat/js/webext/declarativewebrequest store_RemoveRequestCookie 232 //go:noescape 233 func RemoveRequestCookieJSStore( 234 ptr unsafe.Pointer, ref js.Ref) 235 236 //go:wasmimport plat/js/webext/declarativewebrequest load_RemoveRequestCookie 237 //go:noescape 238 func RemoveRequestCookieJSLoad( 239 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 240 241 //go:wasmimport plat/js/webext/declarativewebrequest constof_RemoveRequestHeaderInstanceType 242 //go:noescape 243 func ConstOfRemoveRequestHeaderInstanceType(str js.Ref) uint32 244 245 //go:wasmimport plat/js/webext/declarativewebrequest store_RemoveRequestHeader 246 //go:noescape 247 func RemoveRequestHeaderJSStore( 248 ptr unsafe.Pointer, ref js.Ref) 249 250 //go:wasmimport plat/js/webext/declarativewebrequest load_RemoveRequestHeader 251 //go:noescape 252 func RemoveRequestHeaderJSLoad( 253 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 254 255 //go:wasmimport plat/js/webext/declarativewebrequest constof_RemoveResponseCookieInstanceType 256 //go:noescape 257 func ConstOfRemoveResponseCookieInstanceType(str js.Ref) uint32 258 259 //go:wasmimport plat/js/webext/declarativewebrequest store_RemoveResponseCookie 260 //go:noescape 261 func RemoveResponseCookieJSStore( 262 ptr unsafe.Pointer, ref js.Ref) 263 264 //go:wasmimport plat/js/webext/declarativewebrequest load_RemoveResponseCookie 265 //go:noescape 266 func RemoveResponseCookieJSLoad( 267 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 268 269 //go:wasmimport plat/js/webext/declarativewebrequest constof_RemoveResponseHeaderInstanceType 270 //go:noescape 271 func ConstOfRemoveResponseHeaderInstanceType(str js.Ref) uint32 272 273 //go:wasmimport plat/js/webext/declarativewebrequest store_RemoveResponseHeader 274 //go:noescape 275 func RemoveResponseHeaderJSStore( 276 ptr unsafe.Pointer, ref js.Ref) 277 278 //go:wasmimport plat/js/webext/declarativewebrequest load_RemoveResponseHeader 279 //go:noescape 280 func RemoveResponseHeaderJSLoad( 281 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 282 283 //go:wasmimport plat/js/webext/declarativewebrequest constof_RequestMatcherInstanceType 284 //go:noescape 285 func ConstOfRequestMatcherInstanceType(str js.Ref) uint32 286 287 //go:wasmimport plat/js/webext/declarativewebrequest store_RequestMatcher 288 //go:noescape 289 func RequestMatcherJSStore( 290 ptr unsafe.Pointer, ref js.Ref) 291 292 //go:wasmimport plat/js/webext/declarativewebrequest load_RequestMatcher 293 //go:noescape 294 func RequestMatcherJSLoad( 295 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 296 297 //go:wasmimport plat/js/webext/declarativewebrequest constof_SendMessageToExtensionInstanceType 298 //go:noescape 299 func ConstOfSendMessageToExtensionInstanceType(str js.Ref) uint32 300 301 //go:wasmimport plat/js/webext/declarativewebrequest store_SendMessageToExtension 302 //go:noescape 303 func SendMessageToExtensionJSStore( 304 ptr unsafe.Pointer, ref js.Ref) 305 306 //go:wasmimport plat/js/webext/declarativewebrequest load_SendMessageToExtension 307 //go:noescape 308 func SendMessageToExtensionJSLoad( 309 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 310 311 //go:wasmimport plat/js/webext/declarativewebrequest constof_SetRequestHeaderInstanceType 312 //go:noescape 313 func ConstOfSetRequestHeaderInstanceType(str js.Ref) uint32 314 315 //go:wasmimport plat/js/webext/declarativewebrequest store_SetRequestHeader 316 //go:noescape 317 func SetRequestHeaderJSStore( 318 ptr unsafe.Pointer, ref js.Ref) 319 320 //go:wasmimport plat/js/webext/declarativewebrequest load_SetRequestHeader 321 //go:noescape 322 func SetRequestHeaderJSLoad( 323 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 324 325 //go:wasmimport plat/js/webext/declarativewebrequest has_OnMessage 326 //go:noescape 327 func HasFuncOnMessage() js.Ref 328 329 //go:wasmimport plat/js/webext/declarativewebrequest func_OnMessage 330 //go:noescape 331 func FuncOnMessage(fn unsafe.Pointer) 332 333 //go:wasmimport plat/js/webext/declarativewebrequest call_OnMessage 334 //go:noescape 335 func CallOnMessage( 336 retPtr unsafe.Pointer, 337 callback js.Ref) 338 339 //go:wasmimport plat/js/webext/declarativewebrequest try_OnMessage 340 //go:noescape 341 func TryOnMessage( 342 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 343 callback js.Ref) (ok js.Ref) 344 345 //go:wasmimport plat/js/webext/declarativewebrequest has_OffMessage 346 //go:noescape 347 func HasFuncOffMessage() js.Ref 348 349 //go:wasmimport plat/js/webext/declarativewebrequest func_OffMessage 350 //go:noescape 351 func FuncOffMessage(fn unsafe.Pointer) 352 353 //go:wasmimport plat/js/webext/declarativewebrequest call_OffMessage 354 //go:noescape 355 func CallOffMessage( 356 retPtr unsafe.Pointer, 357 callback js.Ref) 358 359 //go:wasmimport plat/js/webext/declarativewebrequest try_OffMessage 360 //go:noescape 361 func TryOffMessage( 362 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 363 callback js.Ref) (ok js.Ref) 364 365 //go:wasmimport plat/js/webext/declarativewebrequest has_HasOnMessage 366 //go:noescape 367 func HasFuncHasOnMessage() js.Ref 368 369 //go:wasmimport plat/js/webext/declarativewebrequest func_HasOnMessage 370 //go:noescape 371 func FuncHasOnMessage(fn unsafe.Pointer) 372 373 //go:wasmimport plat/js/webext/declarativewebrequest call_HasOnMessage 374 //go:noescape 375 func CallHasOnMessage( 376 retPtr unsafe.Pointer, 377 callback js.Ref) 378 379 //go:wasmimport plat/js/webext/declarativewebrequest try_HasOnMessage 380 //go:noescape 381 func TryHasOnMessage( 382 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 383 callback js.Ref) (ok js.Ref) 384 385 //go:wasmimport plat/js/webext/declarativewebrequest has_OnRequest 386 //go:noescape 387 func HasFuncOnRequest() js.Ref 388 389 //go:wasmimport plat/js/webext/declarativewebrequest func_OnRequest 390 //go:noescape 391 func FuncOnRequest(fn unsafe.Pointer) 392 393 //go:wasmimport plat/js/webext/declarativewebrequest call_OnRequest 394 //go:noescape 395 func CallOnRequest( 396 retPtr unsafe.Pointer, 397 callback js.Ref) 398 399 //go:wasmimport plat/js/webext/declarativewebrequest try_OnRequest 400 //go:noescape 401 func TryOnRequest( 402 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 403 callback js.Ref) (ok js.Ref) 404 405 //go:wasmimport plat/js/webext/declarativewebrequest has_OffRequest 406 //go:noescape 407 func HasFuncOffRequest() js.Ref 408 409 //go:wasmimport plat/js/webext/declarativewebrequest func_OffRequest 410 //go:noescape 411 func FuncOffRequest(fn unsafe.Pointer) 412 413 //go:wasmimport plat/js/webext/declarativewebrequest call_OffRequest 414 //go:noescape 415 func CallOffRequest( 416 retPtr unsafe.Pointer, 417 callback js.Ref) 418 419 //go:wasmimport plat/js/webext/declarativewebrequest try_OffRequest 420 //go:noescape 421 func TryOffRequest( 422 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 423 callback js.Ref) (ok js.Ref) 424 425 //go:wasmimport plat/js/webext/declarativewebrequest has_HasOnRequest 426 //go:noescape 427 func HasFuncHasOnRequest() js.Ref 428 429 //go:wasmimport plat/js/webext/declarativewebrequest func_HasOnRequest 430 //go:noescape 431 func FuncHasOnRequest(fn unsafe.Pointer) 432 433 //go:wasmimport plat/js/webext/declarativewebrequest call_HasOnRequest 434 //go:noescape 435 func CallHasOnRequest( 436 retPtr unsafe.Pointer, 437 callback js.Ref) 438 439 //go:wasmimport plat/js/webext/declarativewebrequest try_HasOnRequest 440 //go:noescape 441 func TryHasOnRequest( 442 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 443 callback js.Ref) (ok js.Ref)