github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/events/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/events store_Rule 20 //go:noescape 21 func RuleJSStore( 22 ptr unsafe.Pointer, ref js.Ref) 23 24 //go:wasmimport plat/js/webext/events load_Rule 25 //go:noescape 26 func RuleJSLoad( 27 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 28 29 //go:wasmimport plat/js/webext/events has_Event_AddListener 30 //go:noescape 31 func HasFuncEventAddListener(this js.Ref) js.Ref 32 33 //go:wasmimport plat/js/webext/events func_Event_AddListener 34 //go:noescape 35 func FuncEventAddListener(this js.Ref, fn unsafe.Pointer) 36 37 //go:wasmimport plat/js/webext/events call_Event_AddListener 38 //go:noescape 39 func CallEventAddListener( 40 this js.Ref, retPtr unsafe.Pointer, 41 callback js.Ref) 42 43 //go:wasmimport plat/js/webext/events try_Event_AddListener 44 //go:noescape 45 func TryEventAddListener( 46 this js.Ref, retPtr unsafe.Pointer, errPtr unsafe.Pointer, 47 callback js.Ref) (ok js.Ref) 48 49 //go:wasmimport plat/js/webext/events has_Event_RemoveListener 50 //go:noescape 51 func HasFuncEventRemoveListener(this js.Ref) js.Ref 52 53 //go:wasmimport plat/js/webext/events func_Event_RemoveListener 54 //go:noescape 55 func FuncEventRemoveListener(this js.Ref, fn unsafe.Pointer) 56 57 //go:wasmimport plat/js/webext/events call_Event_RemoveListener 58 //go:noescape 59 func CallEventRemoveListener( 60 this js.Ref, retPtr unsafe.Pointer, 61 callback js.Ref) 62 63 //go:wasmimport plat/js/webext/events try_Event_RemoveListener 64 //go:noescape 65 func TryEventRemoveListener( 66 this js.Ref, retPtr unsafe.Pointer, errPtr unsafe.Pointer, 67 callback js.Ref) (ok js.Ref) 68 69 //go:wasmimport plat/js/webext/events has_Event_HasListener 70 //go:noescape 71 func HasFuncEventHasListener(this js.Ref) js.Ref 72 73 //go:wasmimport plat/js/webext/events func_Event_HasListener 74 //go:noescape 75 func FuncEventHasListener(this js.Ref, fn unsafe.Pointer) 76 77 //go:wasmimport plat/js/webext/events call_Event_HasListener 78 //go:noescape 79 func CallEventHasListener( 80 this js.Ref, retPtr unsafe.Pointer, 81 callback js.Ref) 82 83 //go:wasmimport plat/js/webext/events try_Event_HasListener 84 //go:noescape 85 func TryEventHasListener( 86 this js.Ref, retPtr unsafe.Pointer, errPtr unsafe.Pointer, 87 callback js.Ref) (ok js.Ref) 88 89 //go:wasmimport plat/js/webext/events has_Event_HasListeners 90 //go:noescape 91 func HasFuncEventHasListeners(this js.Ref) js.Ref 92 93 //go:wasmimport plat/js/webext/events func_Event_HasListeners 94 //go:noescape 95 func FuncEventHasListeners(this js.Ref, fn unsafe.Pointer) 96 97 //go:wasmimport plat/js/webext/events call_Event_HasListeners 98 //go:noescape 99 func CallEventHasListeners( 100 this js.Ref, retPtr unsafe.Pointer) 101 102 //go:wasmimport plat/js/webext/events try_Event_HasListeners 103 //go:noescape 104 func TryEventHasListeners( 105 this js.Ref, retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref) 106 107 //go:wasmimport plat/js/webext/events has_Event_AddRules 108 //go:noescape 109 func HasFuncEventAddRules(this js.Ref) js.Ref 110 111 //go:wasmimport plat/js/webext/events func_Event_AddRules 112 //go:noescape 113 func FuncEventAddRules(this js.Ref, fn unsafe.Pointer) 114 115 //go:wasmimport plat/js/webext/events call_Event_AddRules 116 //go:noescape 117 func CallEventAddRules( 118 this js.Ref, retPtr unsafe.Pointer, 119 eventName js.Ref, 120 webViewInstanceId float64, 121 rules js.Ref, 122 callback js.Ref) 123 124 //go:wasmimport plat/js/webext/events try_Event_AddRules 125 //go:noescape 126 func TryEventAddRules( 127 this js.Ref, retPtr unsafe.Pointer, errPtr unsafe.Pointer, 128 eventName js.Ref, 129 webViewInstanceId float64, 130 rules js.Ref, 131 callback js.Ref) (ok js.Ref) 132 133 //go:wasmimport plat/js/webext/events has_Event_AddRules1 134 //go:noescape 135 func HasFuncEventAddRules1(this js.Ref) js.Ref 136 137 //go:wasmimport plat/js/webext/events func_Event_AddRules1 138 //go:noescape 139 func FuncEventAddRules1(this js.Ref, fn unsafe.Pointer) 140 141 //go:wasmimport plat/js/webext/events call_Event_AddRules1 142 //go:noescape 143 func CallEventAddRules1( 144 this js.Ref, retPtr unsafe.Pointer, 145 eventName js.Ref, 146 webViewInstanceId float64, 147 rules js.Ref) 148 149 //go:wasmimport plat/js/webext/events try_Event_AddRules1 150 //go:noescape 151 func TryEventAddRules1( 152 this js.Ref, retPtr unsafe.Pointer, errPtr unsafe.Pointer, 153 eventName js.Ref, 154 webViewInstanceId float64, 155 rules js.Ref) (ok js.Ref) 156 157 //go:wasmimport plat/js/webext/events has_Event_GetRules 158 //go:noescape 159 func HasFuncEventGetRules(this js.Ref) js.Ref 160 161 //go:wasmimport plat/js/webext/events func_Event_GetRules 162 //go:noescape 163 func FuncEventGetRules(this js.Ref, fn unsafe.Pointer) 164 165 //go:wasmimport plat/js/webext/events call_Event_GetRules 166 //go:noescape 167 func CallEventGetRules( 168 this js.Ref, retPtr unsafe.Pointer, 169 eventName js.Ref, 170 webViewInstanceId float64, 171 ruleIdentifiers js.Ref, 172 callback js.Ref) 173 174 //go:wasmimport plat/js/webext/events try_Event_GetRules 175 //go:noescape 176 func TryEventGetRules( 177 this js.Ref, retPtr unsafe.Pointer, errPtr unsafe.Pointer, 178 eventName js.Ref, 179 webViewInstanceId float64, 180 ruleIdentifiers js.Ref, 181 callback js.Ref) (ok js.Ref) 182 183 //go:wasmimport plat/js/webext/events has_Event_GetRules1 184 //go:noescape 185 func HasFuncEventGetRules1(this js.Ref) js.Ref 186 187 //go:wasmimport plat/js/webext/events func_Event_GetRules1 188 //go:noescape 189 func FuncEventGetRules1(this js.Ref, fn unsafe.Pointer) 190 191 //go:wasmimport plat/js/webext/events call_Event_GetRules1 192 //go:noescape 193 func CallEventGetRules1( 194 this js.Ref, retPtr unsafe.Pointer, 195 eventName js.Ref, 196 webViewInstanceId float64) 197 198 //go:wasmimport plat/js/webext/events try_Event_GetRules1 199 //go:noescape 200 func TryEventGetRules1( 201 this js.Ref, retPtr unsafe.Pointer, errPtr unsafe.Pointer, 202 eventName js.Ref, 203 webViewInstanceId float64) (ok js.Ref) 204 205 //go:wasmimport plat/js/webext/events has_Event_RemoveRules 206 //go:noescape 207 func HasFuncEventRemoveRules(this js.Ref) js.Ref 208 209 //go:wasmimport plat/js/webext/events func_Event_RemoveRules 210 //go:noescape 211 func FuncEventRemoveRules(this js.Ref, fn unsafe.Pointer) 212 213 //go:wasmimport plat/js/webext/events call_Event_RemoveRules 214 //go:noescape 215 func CallEventRemoveRules( 216 this js.Ref, retPtr unsafe.Pointer, 217 eventName js.Ref, 218 webViewInstanceId float64, 219 ruleIdentifiers js.Ref, 220 callback js.Ref) 221 222 //go:wasmimport plat/js/webext/events try_Event_RemoveRules 223 //go:noescape 224 func TryEventRemoveRules( 225 this js.Ref, retPtr unsafe.Pointer, errPtr unsafe.Pointer, 226 eventName js.Ref, 227 webViewInstanceId float64, 228 ruleIdentifiers js.Ref, 229 callback js.Ref) (ok js.Ref) 230 231 //go:wasmimport plat/js/webext/events has_Event_RemoveRules1 232 //go:noescape 233 func HasFuncEventRemoveRules1(this js.Ref) js.Ref 234 235 //go:wasmimport plat/js/webext/events func_Event_RemoveRules1 236 //go:noescape 237 func FuncEventRemoveRules1(this js.Ref, fn unsafe.Pointer) 238 239 //go:wasmimport plat/js/webext/events call_Event_RemoveRules1 240 //go:noescape 241 func CallEventRemoveRules1( 242 this js.Ref, retPtr unsafe.Pointer, 243 eventName js.Ref, 244 webViewInstanceId float64, 245 ruleIdentifiers js.Ref) 246 247 //go:wasmimport plat/js/webext/events try_Event_RemoveRules1 248 //go:noescape 249 func TryEventRemoveRules1( 250 this js.Ref, retPtr unsafe.Pointer, errPtr unsafe.Pointer, 251 eventName js.Ref, 252 webViewInstanceId float64, 253 ruleIdentifiers js.Ref) (ok js.Ref) 254 255 //go:wasmimport plat/js/webext/events has_Event_RemoveRules2 256 //go:noescape 257 func HasFuncEventRemoveRules2(this js.Ref) js.Ref 258 259 //go:wasmimport plat/js/webext/events func_Event_RemoveRules2 260 //go:noescape 261 func FuncEventRemoveRules2(this js.Ref, fn unsafe.Pointer) 262 263 //go:wasmimport plat/js/webext/events call_Event_RemoveRules2 264 //go:noescape 265 func CallEventRemoveRules2( 266 this js.Ref, retPtr unsafe.Pointer, 267 eventName js.Ref, 268 webViewInstanceId float64) 269 270 //go:wasmimport plat/js/webext/events try_Event_RemoveRules2 271 //go:noescape 272 func TryEventRemoveRules2( 273 this js.Ref, retPtr unsafe.Pointer, errPtr unsafe.Pointer, 274 eventName js.Ref, 275 webViewInstanceId float64) (ok js.Ref) 276 277 //go:wasmimport plat/js/webext/events store_UrlFilter 278 //go:noescape 279 func UrlFilterJSStore( 280 ptr unsafe.Pointer, ref js.Ref) 281 282 //go:wasmimport plat/js/webext/events load_UrlFilter 283 //go:noescape 284 func UrlFilterJSLoad( 285 ptr unsafe.Pointer, create, ref js.Ref) js.Ref