github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/proxy/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/proxy constof_Mode
    20  //go:noescape
    21  func ConstOfMode(str js.Ref) uint32
    22  
    23  //go:wasmimport plat/js/webext/proxy store_OnProxyErrorArgDetails
    24  //go:noescape
    25  func OnProxyErrorArgDetailsJSStore(
    26  	ptr unsafe.Pointer, ref js.Ref)
    27  
    28  //go:wasmimport plat/js/webext/proxy load_OnProxyErrorArgDetails
    29  //go:noescape
    30  func OnProxyErrorArgDetailsJSLoad(
    31  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    32  
    33  //go:wasmimport plat/js/webext/proxy store_PacScript
    34  //go:noescape
    35  func PacScriptJSStore(
    36  	ptr unsafe.Pointer, ref js.Ref)
    37  
    38  //go:wasmimport plat/js/webext/proxy load_PacScript
    39  //go:noescape
    40  func PacScriptJSLoad(
    41  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    42  
    43  //go:wasmimport plat/js/webext/proxy constof_Scheme
    44  //go:noescape
    45  func ConstOfScheme(str js.Ref) uint32
    46  
    47  //go:wasmimport plat/js/webext/proxy store_ProxyServer
    48  //go:noescape
    49  func ProxyServerJSStore(
    50  	ptr unsafe.Pointer, ref js.Ref)
    51  
    52  //go:wasmimport plat/js/webext/proxy load_ProxyServer
    53  //go:noescape
    54  func ProxyServerJSLoad(
    55  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    56  
    57  //go:wasmimport plat/js/webext/proxy store_ProxyRules
    58  //go:noescape
    59  func ProxyRulesJSStore(
    60  	ptr unsafe.Pointer, ref js.Ref)
    61  
    62  //go:wasmimport plat/js/webext/proxy load_ProxyRules
    63  //go:noescape
    64  func ProxyRulesJSLoad(
    65  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    66  
    67  //go:wasmimport plat/js/webext/proxy store_ProxyConfig
    68  //go:noescape
    69  func ProxyConfigJSStore(
    70  	ptr unsafe.Pointer, ref js.Ref)
    71  
    72  //go:wasmimport plat/js/webext/proxy load_ProxyConfig
    73  //go:noescape
    74  func ProxyConfigJSLoad(
    75  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    76  
    77  //go:wasmimport plat/js/webext/proxy has_OnProxyError
    78  //go:noescape
    79  func HasFuncOnProxyError() js.Ref
    80  
    81  //go:wasmimport plat/js/webext/proxy func_OnProxyError
    82  //go:noescape
    83  func FuncOnProxyError(fn unsafe.Pointer)
    84  
    85  //go:wasmimport plat/js/webext/proxy call_OnProxyError
    86  //go:noescape
    87  func CallOnProxyError(
    88  	retPtr unsafe.Pointer,
    89  	callback js.Ref)
    90  
    91  //go:wasmimport plat/js/webext/proxy try_OnProxyError
    92  //go:noescape
    93  func TryOnProxyError(
    94  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
    95  	callback js.Ref) (ok js.Ref)
    96  
    97  //go:wasmimport plat/js/webext/proxy has_OffProxyError
    98  //go:noescape
    99  func HasFuncOffProxyError() js.Ref
   100  
   101  //go:wasmimport plat/js/webext/proxy func_OffProxyError
   102  //go:noescape
   103  func FuncOffProxyError(fn unsafe.Pointer)
   104  
   105  //go:wasmimport plat/js/webext/proxy call_OffProxyError
   106  //go:noescape
   107  func CallOffProxyError(
   108  	retPtr unsafe.Pointer,
   109  	callback js.Ref)
   110  
   111  //go:wasmimport plat/js/webext/proxy try_OffProxyError
   112  //go:noescape
   113  func TryOffProxyError(
   114  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   115  	callback js.Ref) (ok js.Ref)
   116  
   117  //go:wasmimport plat/js/webext/proxy has_HasOnProxyError
   118  //go:noescape
   119  func HasFuncHasOnProxyError() js.Ref
   120  
   121  //go:wasmimport plat/js/webext/proxy func_HasOnProxyError
   122  //go:noescape
   123  func FuncHasOnProxyError(fn unsafe.Pointer)
   124  
   125  //go:wasmimport plat/js/webext/proxy call_HasOnProxyError
   126  //go:noescape
   127  func CallHasOnProxyError(
   128  	retPtr unsafe.Pointer,
   129  	callback js.Ref)
   130  
   131  //go:wasmimport plat/js/webext/proxy try_HasOnProxyError
   132  //go:noescape
   133  func TryHasOnProxyError(
   134  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   135  	callback js.Ref) (ok js.Ref)
   136  
   137  //go:wasmimport plat/js/webext/proxy get_Settings
   138  //go:noescape
   139  func GetSettings(retPtr unsafe.Pointer) js.Ref
   140  
   141  //go:wasmimport plat/js/webext/proxy set_Settings
   142  //go:noescape
   143  func SetSettings(
   144  	val js.Ref) js.Ref