github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/enterprise/reportingprivate/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/enterprise/reportingprivate constof_AntiVirusProductState
    20  //go:noescape
    21  func ConstOfAntiVirusProductState(str js.Ref) uint32
    22  
    23  //go:wasmimport plat/js/webext/enterprise/reportingprivate store_AntiVirusSignal
    24  //go:noescape
    25  func AntiVirusSignalJSStore(
    26  	ptr unsafe.Pointer, ref js.Ref)
    27  
    28  //go:wasmimport plat/js/webext/enterprise/reportingprivate load_AntiVirusSignal
    29  //go:noescape
    30  func AntiVirusSignalJSLoad(
    31  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    32  
    33  //go:wasmimport plat/js/webext/enterprise/reportingprivate constof_CertificateStatus
    34  //go:noescape
    35  func ConstOfCertificateStatus(str js.Ref) uint32
    36  
    37  //go:wasmimport plat/js/webext/enterprise/reportingprivate store_Certificate
    38  //go:noescape
    39  func CertificateJSStore(
    40  	ptr unsafe.Pointer, ref js.Ref)
    41  
    42  //go:wasmimport plat/js/webext/enterprise/reportingprivate load_Certificate
    43  //go:noescape
    44  func CertificateJSLoad(
    45  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    46  
    47  //go:wasmimport plat/js/webext/enterprise/reportingprivate constof_RealtimeUrlCheckMode
    48  //go:noescape
    49  func ConstOfRealtimeUrlCheckMode(str js.Ref) uint32
    50  
    51  //go:wasmimport plat/js/webext/enterprise/reportingprivate constof_SafeBrowsingLevel
    52  //go:noescape
    53  func ConstOfSafeBrowsingLevel(str js.Ref) uint32
    54  
    55  //go:wasmimport plat/js/webext/enterprise/reportingprivate constof_PasswordProtectionTrigger
    56  //go:noescape
    57  func ConstOfPasswordProtectionTrigger(str js.Ref) uint32
    58  
    59  //go:wasmimport plat/js/webext/enterprise/reportingprivate constof_SettingValue
    60  //go:noescape
    61  func ConstOfSettingValue(str js.Ref) uint32
    62  
    63  //go:wasmimport plat/js/webext/enterprise/reportingprivate store_ContextInfo
    64  //go:noescape
    65  func ContextInfoJSStore(
    66  	ptr unsafe.Pointer, ref js.Ref)
    67  
    68  //go:wasmimport plat/js/webext/enterprise/reportingprivate load_ContextInfo
    69  //go:noescape
    70  func ContextInfoJSLoad(
    71  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    72  
    73  //go:wasmimport plat/js/webext/enterprise/reportingprivate store_DeviceInfo
    74  //go:noescape
    75  func DeviceInfoJSStore(
    76  	ptr unsafe.Pointer, ref js.Ref)
    77  
    78  //go:wasmimport plat/js/webext/enterprise/reportingprivate load_DeviceInfo
    79  //go:noescape
    80  func DeviceInfoJSLoad(
    81  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    82  
    83  //go:wasmimport plat/js/webext/enterprise/reportingprivate constof_EventType
    84  //go:noescape
    85  func ConstOfEventType(str js.Ref) uint32
    86  
    87  //go:wasmimport plat/js/webext/enterprise/reportingprivate store_EnqueueRecordRequest
    88  //go:noescape
    89  func EnqueueRecordRequestJSStore(
    90  	ptr unsafe.Pointer, ref js.Ref)
    91  
    92  //go:wasmimport plat/js/webext/enterprise/reportingprivate load_EnqueueRecordRequest
    93  //go:noescape
    94  func EnqueueRecordRequestJSLoad(
    95  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    96  
    97  //go:wasmimport plat/js/webext/enterprise/reportingprivate constof_PresenceValue
    98  //go:noescape
    99  func ConstOfPresenceValue(str js.Ref) uint32
   100  
   101  //go:wasmimport plat/js/webext/enterprise/reportingprivate store_GetFileSystemInfoResponse
   102  //go:noescape
   103  func GetFileSystemInfoResponseJSStore(
   104  	ptr unsafe.Pointer, ref js.Ref)
   105  
   106  //go:wasmimport plat/js/webext/enterprise/reportingprivate load_GetFileSystemInfoResponse
   107  //go:noescape
   108  func GetFileSystemInfoResponseJSLoad(
   109  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
   110  
   111  //go:wasmimport plat/js/webext/enterprise/reportingprivate store_GetFileSystemInfoOptions
   112  //go:noescape
   113  func GetFileSystemInfoOptionsJSStore(
   114  	ptr unsafe.Pointer, ref js.Ref)
   115  
   116  //go:wasmimport plat/js/webext/enterprise/reportingprivate load_GetFileSystemInfoOptions
   117  //go:noescape
   118  func GetFileSystemInfoOptionsJSLoad(
   119  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
   120  
   121  //go:wasmimport plat/js/webext/enterprise/reportingprivate store_UserContext
   122  //go:noescape
   123  func UserContextJSStore(
   124  	ptr unsafe.Pointer, ref js.Ref)
   125  
   126  //go:wasmimport plat/js/webext/enterprise/reportingprivate load_UserContext
   127  //go:noescape
   128  func UserContextJSLoad(
   129  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
   130  
   131  //go:wasmimport plat/js/webext/enterprise/reportingprivate store_GetFileSystemInfoRequest
   132  //go:noescape
   133  func GetFileSystemInfoRequestJSStore(
   134  	ptr unsafe.Pointer, ref js.Ref)
   135  
   136  //go:wasmimport plat/js/webext/enterprise/reportingprivate load_GetFileSystemInfoRequest
   137  //go:noescape
   138  func GetFileSystemInfoRequestJSLoad(
   139  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
   140  
   141  //go:wasmimport plat/js/webext/enterprise/reportingprivate constof_RegistryHive
   142  //go:noescape
   143  func ConstOfRegistryHive(str js.Ref) uint32
   144  
   145  //go:wasmimport plat/js/webext/enterprise/reportingprivate store_GetSettingsOptions
   146  //go:noescape
   147  func GetSettingsOptionsJSStore(
   148  	ptr unsafe.Pointer, ref js.Ref)
   149  
   150  //go:wasmimport plat/js/webext/enterprise/reportingprivate load_GetSettingsOptions
   151  //go:noescape
   152  func GetSettingsOptionsJSLoad(
   153  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
   154  
   155  //go:wasmimport plat/js/webext/enterprise/reportingprivate store_GetSettingsRequest
   156  //go:noescape
   157  func GetSettingsRequestJSStore(
   158  	ptr unsafe.Pointer, ref js.Ref)
   159  
   160  //go:wasmimport plat/js/webext/enterprise/reportingprivate load_GetSettingsRequest
   161  //go:noescape
   162  func GetSettingsRequestJSLoad(
   163  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
   164  
   165  //go:wasmimport plat/js/webext/enterprise/reportingprivate store_GetSettingsResponse
   166  //go:noescape
   167  func GetSettingsResponseJSStore(
   168  	ptr unsafe.Pointer, ref js.Ref)
   169  
   170  //go:wasmimport plat/js/webext/enterprise/reportingprivate load_GetSettingsResponse
   171  //go:noescape
   172  func GetSettingsResponseJSLoad(
   173  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
   174  
   175  //go:wasmimport plat/js/webext/enterprise/reportingprivate store_HotfixSignal
   176  //go:noescape
   177  func HotfixSignalJSStore(
   178  	ptr unsafe.Pointer, ref js.Ref)
   179  
   180  //go:wasmimport plat/js/webext/enterprise/reportingprivate load_HotfixSignal
   181  //go:noescape
   182  func HotfixSignalJSLoad(
   183  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
   184  
   185  //go:wasmimport plat/js/webext/enterprise/reportingprivate has_EnqueueRecord
   186  //go:noescape
   187  func HasFuncEnqueueRecord() js.Ref
   188  
   189  //go:wasmimport plat/js/webext/enterprise/reportingprivate func_EnqueueRecord
   190  //go:noescape
   191  func FuncEnqueueRecord(fn unsafe.Pointer)
   192  
   193  //go:wasmimport plat/js/webext/enterprise/reportingprivate call_EnqueueRecord
   194  //go:noescape
   195  func CallEnqueueRecord(
   196  	retPtr unsafe.Pointer,
   197  	request unsafe.Pointer)
   198  
   199  //go:wasmimport plat/js/webext/enterprise/reportingprivate try_EnqueueRecord
   200  //go:noescape
   201  func TryEnqueueRecord(
   202  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   203  	request unsafe.Pointer) (ok js.Ref)
   204  
   205  //go:wasmimport plat/js/webext/enterprise/reportingprivate has_GetAvInfo
   206  //go:noescape
   207  func HasFuncGetAvInfo() js.Ref
   208  
   209  //go:wasmimport plat/js/webext/enterprise/reportingprivate func_GetAvInfo
   210  //go:noescape
   211  func FuncGetAvInfo(fn unsafe.Pointer)
   212  
   213  //go:wasmimport plat/js/webext/enterprise/reportingprivate call_GetAvInfo
   214  //go:noescape
   215  func CallGetAvInfo(
   216  	retPtr unsafe.Pointer,
   217  	userContext unsafe.Pointer)
   218  
   219  //go:wasmimport plat/js/webext/enterprise/reportingprivate try_GetAvInfo
   220  //go:noescape
   221  func TryGetAvInfo(
   222  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   223  	userContext unsafe.Pointer) (ok js.Ref)
   224  
   225  //go:wasmimport plat/js/webext/enterprise/reportingprivate has_GetCertificate
   226  //go:noescape
   227  func HasFuncGetCertificate() js.Ref
   228  
   229  //go:wasmimport plat/js/webext/enterprise/reportingprivate func_GetCertificate
   230  //go:noescape
   231  func FuncGetCertificate(fn unsafe.Pointer)
   232  
   233  //go:wasmimport plat/js/webext/enterprise/reportingprivate call_GetCertificate
   234  //go:noescape
   235  func CallGetCertificate(
   236  	retPtr unsafe.Pointer,
   237  	url js.Ref)
   238  
   239  //go:wasmimport plat/js/webext/enterprise/reportingprivate try_GetCertificate
   240  //go:noescape
   241  func TryGetCertificate(
   242  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   243  	url js.Ref) (ok js.Ref)
   244  
   245  //go:wasmimport plat/js/webext/enterprise/reportingprivate has_GetContextInfo
   246  //go:noescape
   247  func HasFuncGetContextInfo() js.Ref
   248  
   249  //go:wasmimport plat/js/webext/enterprise/reportingprivate func_GetContextInfo
   250  //go:noescape
   251  func FuncGetContextInfo(fn unsafe.Pointer)
   252  
   253  //go:wasmimport plat/js/webext/enterprise/reportingprivate call_GetContextInfo
   254  //go:noescape
   255  func CallGetContextInfo(
   256  	retPtr unsafe.Pointer)
   257  
   258  //go:wasmimport plat/js/webext/enterprise/reportingprivate try_GetContextInfo
   259  //go:noescape
   260  func TryGetContextInfo(
   261  	retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref)
   262  
   263  //go:wasmimport plat/js/webext/enterprise/reportingprivate has_GetDeviceData
   264  //go:noescape
   265  func HasFuncGetDeviceData() js.Ref
   266  
   267  //go:wasmimport plat/js/webext/enterprise/reportingprivate func_GetDeviceData
   268  //go:noescape
   269  func FuncGetDeviceData(fn unsafe.Pointer)
   270  
   271  //go:wasmimport plat/js/webext/enterprise/reportingprivate call_GetDeviceData
   272  //go:noescape
   273  func CallGetDeviceData(
   274  	retPtr unsafe.Pointer,
   275  	id js.Ref)
   276  
   277  //go:wasmimport plat/js/webext/enterprise/reportingprivate try_GetDeviceData
   278  //go:noescape
   279  func TryGetDeviceData(
   280  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   281  	id js.Ref) (ok js.Ref)
   282  
   283  //go:wasmimport plat/js/webext/enterprise/reportingprivate has_GetDeviceId
   284  //go:noescape
   285  func HasFuncGetDeviceId() js.Ref
   286  
   287  //go:wasmimport plat/js/webext/enterprise/reportingprivate func_GetDeviceId
   288  //go:noescape
   289  func FuncGetDeviceId(fn unsafe.Pointer)
   290  
   291  //go:wasmimport plat/js/webext/enterprise/reportingprivate call_GetDeviceId
   292  //go:noescape
   293  func CallGetDeviceId(
   294  	retPtr unsafe.Pointer)
   295  
   296  //go:wasmimport plat/js/webext/enterprise/reportingprivate try_GetDeviceId
   297  //go:noescape
   298  func TryGetDeviceId(
   299  	retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref)
   300  
   301  //go:wasmimport plat/js/webext/enterprise/reportingprivate has_GetDeviceInfo
   302  //go:noescape
   303  func HasFuncGetDeviceInfo() js.Ref
   304  
   305  //go:wasmimport plat/js/webext/enterprise/reportingprivate func_GetDeviceInfo
   306  //go:noescape
   307  func FuncGetDeviceInfo(fn unsafe.Pointer)
   308  
   309  //go:wasmimport plat/js/webext/enterprise/reportingprivate call_GetDeviceInfo
   310  //go:noescape
   311  func CallGetDeviceInfo(
   312  	retPtr unsafe.Pointer)
   313  
   314  //go:wasmimport plat/js/webext/enterprise/reportingprivate try_GetDeviceInfo
   315  //go:noescape
   316  func TryGetDeviceInfo(
   317  	retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref)
   318  
   319  //go:wasmimport plat/js/webext/enterprise/reportingprivate has_GetFileSystemInfo
   320  //go:noescape
   321  func HasFuncGetFileSystemInfo() js.Ref
   322  
   323  //go:wasmimport plat/js/webext/enterprise/reportingprivate func_GetFileSystemInfo
   324  //go:noescape
   325  func FuncGetFileSystemInfo(fn unsafe.Pointer)
   326  
   327  //go:wasmimport plat/js/webext/enterprise/reportingprivate call_GetFileSystemInfo
   328  //go:noescape
   329  func CallGetFileSystemInfo(
   330  	retPtr unsafe.Pointer,
   331  	request unsafe.Pointer)
   332  
   333  //go:wasmimport plat/js/webext/enterprise/reportingprivate try_GetFileSystemInfo
   334  //go:noescape
   335  func TryGetFileSystemInfo(
   336  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   337  	request unsafe.Pointer) (ok js.Ref)
   338  
   339  //go:wasmimport plat/js/webext/enterprise/reportingprivate has_GetHotfixes
   340  //go:noescape
   341  func HasFuncGetHotfixes() js.Ref
   342  
   343  //go:wasmimport plat/js/webext/enterprise/reportingprivate func_GetHotfixes
   344  //go:noescape
   345  func FuncGetHotfixes(fn unsafe.Pointer)
   346  
   347  //go:wasmimport plat/js/webext/enterprise/reportingprivate call_GetHotfixes
   348  //go:noescape
   349  func CallGetHotfixes(
   350  	retPtr unsafe.Pointer,
   351  	userContext unsafe.Pointer)
   352  
   353  //go:wasmimport plat/js/webext/enterprise/reportingprivate try_GetHotfixes
   354  //go:noescape
   355  func TryGetHotfixes(
   356  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   357  	userContext unsafe.Pointer) (ok js.Ref)
   358  
   359  //go:wasmimport plat/js/webext/enterprise/reportingprivate has_GetPersistentSecret
   360  //go:noescape
   361  func HasFuncGetPersistentSecret() js.Ref
   362  
   363  //go:wasmimport plat/js/webext/enterprise/reportingprivate func_GetPersistentSecret
   364  //go:noescape
   365  func FuncGetPersistentSecret(fn unsafe.Pointer)
   366  
   367  //go:wasmimport plat/js/webext/enterprise/reportingprivate call_GetPersistentSecret
   368  //go:noescape
   369  func CallGetPersistentSecret(
   370  	retPtr unsafe.Pointer,
   371  	resetSecret js.Ref)
   372  
   373  //go:wasmimport plat/js/webext/enterprise/reportingprivate try_GetPersistentSecret
   374  //go:noescape
   375  func TryGetPersistentSecret(
   376  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   377  	resetSecret js.Ref) (ok js.Ref)
   378  
   379  //go:wasmimport plat/js/webext/enterprise/reportingprivate has_GetSettings
   380  //go:noescape
   381  func HasFuncGetSettings() js.Ref
   382  
   383  //go:wasmimport plat/js/webext/enterprise/reportingprivate func_GetSettings
   384  //go:noescape
   385  func FuncGetSettings(fn unsafe.Pointer)
   386  
   387  //go:wasmimport plat/js/webext/enterprise/reportingprivate call_GetSettings
   388  //go:noescape
   389  func CallGetSettings(
   390  	retPtr unsafe.Pointer,
   391  	request unsafe.Pointer)
   392  
   393  //go:wasmimport plat/js/webext/enterprise/reportingprivate try_GetSettings
   394  //go:noescape
   395  func TryGetSettings(
   396  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   397  	request unsafe.Pointer) (ok js.Ref)
   398  
   399  //go:wasmimport plat/js/webext/enterprise/reportingprivate has_SetDeviceData
   400  //go:noescape
   401  func HasFuncSetDeviceData() js.Ref
   402  
   403  //go:wasmimport plat/js/webext/enterprise/reportingprivate func_SetDeviceData
   404  //go:noescape
   405  func FuncSetDeviceData(fn unsafe.Pointer)
   406  
   407  //go:wasmimport plat/js/webext/enterprise/reportingprivate call_SetDeviceData
   408  //go:noescape
   409  func CallSetDeviceData(
   410  	retPtr unsafe.Pointer,
   411  	id js.Ref,
   412  	data js.Ref)
   413  
   414  //go:wasmimport plat/js/webext/enterprise/reportingprivate try_SetDeviceData
   415  //go:noescape
   416  func TrySetDeviceData(
   417  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   418  	id js.Ref,
   419  	data js.Ref) (ok js.Ref)