github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/quickunlockprivate/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/quickunlockprivate constof_CredentialProblem 20 //go:noescape 21 func ConstOfCredentialProblem(str js.Ref) uint32 22 23 //go:wasmimport plat/js/webext/quickunlockprivate store_CredentialCheck 24 //go:noescape 25 func CredentialCheckJSStore( 26 ptr unsafe.Pointer, ref js.Ref) 27 28 //go:wasmimport plat/js/webext/quickunlockprivate load_CredentialCheck 29 //go:noescape 30 func CredentialCheckJSLoad( 31 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 32 33 //go:wasmimport plat/js/webext/quickunlockprivate store_CredentialRequirements 34 //go:noescape 35 func CredentialRequirementsJSStore( 36 ptr unsafe.Pointer, ref js.Ref) 37 38 //go:wasmimport plat/js/webext/quickunlockprivate load_CredentialRequirements 39 //go:noescape 40 func CredentialRequirementsJSLoad( 41 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 42 43 //go:wasmimport plat/js/webext/quickunlockprivate constof_QuickUnlockMode 44 //go:noescape 45 func ConstOfQuickUnlockMode(str js.Ref) uint32 46 47 //go:wasmimport plat/js/webext/quickunlockprivate store_TokenInfo 48 //go:noescape 49 func TokenInfoJSStore( 50 ptr unsafe.Pointer, ref js.Ref) 51 52 //go:wasmimport plat/js/webext/quickunlockprivate load_TokenInfo 53 //go:noescape 54 func TokenInfoJSLoad( 55 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 56 57 //go:wasmimport plat/js/webext/quickunlockprivate has_CanAuthenticatePin 58 //go:noescape 59 func HasFuncCanAuthenticatePin() js.Ref 60 61 //go:wasmimport plat/js/webext/quickunlockprivate func_CanAuthenticatePin 62 //go:noescape 63 func FuncCanAuthenticatePin(fn unsafe.Pointer) 64 65 //go:wasmimport plat/js/webext/quickunlockprivate call_CanAuthenticatePin 66 //go:noescape 67 func CallCanAuthenticatePin( 68 retPtr unsafe.Pointer) 69 70 //go:wasmimport plat/js/webext/quickunlockprivate try_CanAuthenticatePin 71 //go:noescape 72 func TryCanAuthenticatePin( 73 retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref) 74 75 //go:wasmimport plat/js/webext/quickunlockprivate has_CheckCredential 76 //go:noescape 77 func HasFuncCheckCredential() js.Ref 78 79 //go:wasmimport plat/js/webext/quickunlockprivate func_CheckCredential 80 //go:noescape 81 func FuncCheckCredential(fn unsafe.Pointer) 82 83 //go:wasmimport plat/js/webext/quickunlockprivate call_CheckCredential 84 //go:noescape 85 func CallCheckCredential( 86 retPtr unsafe.Pointer, 87 mode uint32, 88 credential js.Ref) 89 90 //go:wasmimport plat/js/webext/quickunlockprivate try_CheckCredential 91 //go:noescape 92 func TryCheckCredential( 93 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 94 mode uint32, 95 credential js.Ref) (ok js.Ref) 96 97 //go:wasmimport plat/js/webext/quickunlockprivate has_GetActiveModes 98 //go:noescape 99 func HasFuncGetActiveModes() js.Ref 100 101 //go:wasmimport plat/js/webext/quickunlockprivate func_GetActiveModes 102 //go:noescape 103 func FuncGetActiveModes(fn unsafe.Pointer) 104 105 //go:wasmimport plat/js/webext/quickunlockprivate call_GetActiveModes 106 //go:noescape 107 func CallGetActiveModes( 108 retPtr unsafe.Pointer) 109 110 //go:wasmimport plat/js/webext/quickunlockprivate try_GetActiveModes 111 //go:noescape 112 func TryGetActiveModes( 113 retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref) 114 115 //go:wasmimport plat/js/webext/quickunlockprivate has_GetAuthToken 116 //go:noescape 117 func HasFuncGetAuthToken() js.Ref 118 119 //go:wasmimport plat/js/webext/quickunlockprivate func_GetAuthToken 120 //go:noescape 121 func FuncGetAuthToken(fn unsafe.Pointer) 122 123 //go:wasmimport plat/js/webext/quickunlockprivate call_GetAuthToken 124 //go:noescape 125 func CallGetAuthToken( 126 retPtr unsafe.Pointer, 127 accountPassword js.Ref) 128 129 //go:wasmimport plat/js/webext/quickunlockprivate try_GetAuthToken 130 //go:noescape 131 func TryGetAuthToken( 132 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 133 accountPassword js.Ref) (ok js.Ref) 134 135 //go:wasmimport plat/js/webext/quickunlockprivate has_GetAvailableModes 136 //go:noescape 137 func HasFuncGetAvailableModes() js.Ref 138 139 //go:wasmimport plat/js/webext/quickunlockprivate func_GetAvailableModes 140 //go:noescape 141 func FuncGetAvailableModes(fn unsafe.Pointer) 142 143 //go:wasmimport plat/js/webext/quickunlockprivate call_GetAvailableModes 144 //go:noescape 145 func CallGetAvailableModes( 146 retPtr unsafe.Pointer) 147 148 //go:wasmimport plat/js/webext/quickunlockprivate try_GetAvailableModes 149 //go:noescape 150 func TryGetAvailableModes( 151 retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref) 152 153 //go:wasmimport plat/js/webext/quickunlockprivate has_GetCredentialRequirements 154 //go:noescape 155 func HasFuncGetCredentialRequirements() js.Ref 156 157 //go:wasmimport plat/js/webext/quickunlockprivate func_GetCredentialRequirements 158 //go:noescape 159 func FuncGetCredentialRequirements(fn unsafe.Pointer) 160 161 //go:wasmimport plat/js/webext/quickunlockprivate call_GetCredentialRequirements 162 //go:noescape 163 func CallGetCredentialRequirements( 164 retPtr unsafe.Pointer, 165 mode uint32) 166 167 //go:wasmimport plat/js/webext/quickunlockprivate try_GetCredentialRequirements 168 //go:noescape 169 func TryGetCredentialRequirements( 170 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 171 mode uint32) (ok js.Ref) 172 173 //go:wasmimport plat/js/webext/quickunlockprivate has_OnActiveModesChanged 174 //go:noescape 175 func HasFuncOnActiveModesChanged() js.Ref 176 177 //go:wasmimport plat/js/webext/quickunlockprivate func_OnActiveModesChanged 178 //go:noescape 179 func FuncOnActiveModesChanged(fn unsafe.Pointer) 180 181 //go:wasmimport plat/js/webext/quickunlockprivate call_OnActiveModesChanged 182 //go:noescape 183 func CallOnActiveModesChanged( 184 retPtr unsafe.Pointer, 185 callback js.Ref) 186 187 //go:wasmimport plat/js/webext/quickunlockprivate try_OnActiveModesChanged 188 //go:noescape 189 func TryOnActiveModesChanged( 190 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 191 callback js.Ref) (ok js.Ref) 192 193 //go:wasmimport plat/js/webext/quickunlockprivate has_OffActiveModesChanged 194 //go:noescape 195 func HasFuncOffActiveModesChanged() js.Ref 196 197 //go:wasmimport plat/js/webext/quickunlockprivate func_OffActiveModesChanged 198 //go:noescape 199 func FuncOffActiveModesChanged(fn unsafe.Pointer) 200 201 //go:wasmimport plat/js/webext/quickunlockprivate call_OffActiveModesChanged 202 //go:noescape 203 func CallOffActiveModesChanged( 204 retPtr unsafe.Pointer, 205 callback js.Ref) 206 207 //go:wasmimport plat/js/webext/quickunlockprivate try_OffActiveModesChanged 208 //go:noescape 209 func TryOffActiveModesChanged( 210 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 211 callback js.Ref) (ok js.Ref) 212 213 //go:wasmimport plat/js/webext/quickunlockprivate has_HasOnActiveModesChanged 214 //go:noescape 215 func HasFuncHasOnActiveModesChanged() js.Ref 216 217 //go:wasmimport plat/js/webext/quickunlockprivate func_HasOnActiveModesChanged 218 //go:noescape 219 func FuncHasOnActiveModesChanged(fn unsafe.Pointer) 220 221 //go:wasmimport plat/js/webext/quickunlockprivate call_HasOnActiveModesChanged 222 //go:noescape 223 func CallHasOnActiveModesChanged( 224 retPtr unsafe.Pointer, 225 callback js.Ref) 226 227 //go:wasmimport plat/js/webext/quickunlockprivate try_HasOnActiveModesChanged 228 //go:noescape 229 func TryHasOnActiveModesChanged( 230 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 231 callback js.Ref) (ok js.Ref) 232 233 //go:wasmimport plat/js/webext/quickunlockprivate has_SetLockScreenEnabled 234 //go:noescape 235 func HasFuncSetLockScreenEnabled() js.Ref 236 237 //go:wasmimport plat/js/webext/quickunlockprivate func_SetLockScreenEnabled 238 //go:noescape 239 func FuncSetLockScreenEnabled(fn unsafe.Pointer) 240 241 //go:wasmimport plat/js/webext/quickunlockprivate call_SetLockScreenEnabled 242 //go:noescape 243 func CallSetLockScreenEnabled( 244 retPtr unsafe.Pointer, 245 token js.Ref, 246 enabled js.Ref) 247 248 //go:wasmimport plat/js/webext/quickunlockprivate try_SetLockScreenEnabled 249 //go:noescape 250 func TrySetLockScreenEnabled( 251 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 252 token js.Ref, 253 enabled js.Ref) (ok js.Ref) 254 255 //go:wasmimport plat/js/webext/quickunlockprivate has_SetModes 256 //go:noescape 257 func HasFuncSetModes() js.Ref 258 259 //go:wasmimport plat/js/webext/quickunlockprivate func_SetModes 260 //go:noescape 261 func FuncSetModes(fn unsafe.Pointer) 262 263 //go:wasmimport plat/js/webext/quickunlockprivate call_SetModes 264 //go:noescape 265 func CallSetModes( 266 retPtr unsafe.Pointer, 267 token js.Ref, 268 modes js.Ref, 269 credentials js.Ref) 270 271 //go:wasmimport plat/js/webext/quickunlockprivate try_SetModes 272 //go:noescape 273 func TrySetModes( 274 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 275 token js.Ref, 276 modes js.Ref, 277 credentials js.Ref) (ok js.Ref) 278 279 //go:wasmimport plat/js/webext/quickunlockprivate has_SetPinAutosubmitEnabled 280 //go:noescape 281 func HasFuncSetPinAutosubmitEnabled() js.Ref 282 283 //go:wasmimport plat/js/webext/quickunlockprivate func_SetPinAutosubmitEnabled 284 //go:noescape 285 func FuncSetPinAutosubmitEnabled(fn unsafe.Pointer) 286 287 //go:wasmimport plat/js/webext/quickunlockprivate call_SetPinAutosubmitEnabled 288 //go:noescape 289 func CallSetPinAutosubmitEnabled( 290 retPtr unsafe.Pointer, 291 token js.Ref, 292 pin js.Ref, 293 enabled js.Ref) 294 295 //go:wasmimport plat/js/webext/quickunlockprivate try_SetPinAutosubmitEnabled 296 //go:noescape 297 func TrySetPinAutosubmitEnabled( 298 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 299 token js.Ref, 300 pin js.Ref, 301 enabled js.Ref) (ok js.Ref)