github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/browsingdata/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/browsingdata store_DataTypeSet
    20  //go:noescape
    21  func DataTypeSetJSStore(
    22  	ptr unsafe.Pointer, ref js.Ref)
    23  
    24  //go:wasmimport plat/js/webext/browsingdata load_DataTypeSet
    25  //go:noescape
    26  func DataTypeSetJSLoad(
    27  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    28  
    29  //go:wasmimport plat/js/webext/browsingdata store_RemovalOptionsFieldOriginTypes
    30  //go:noescape
    31  func RemovalOptionsFieldOriginTypesJSStore(
    32  	ptr unsafe.Pointer, ref js.Ref)
    33  
    34  //go:wasmimport plat/js/webext/browsingdata load_RemovalOptionsFieldOriginTypes
    35  //go:noescape
    36  func RemovalOptionsFieldOriginTypesJSLoad(
    37  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    38  
    39  //go:wasmimport plat/js/webext/browsingdata store_RemovalOptions
    40  //go:noescape
    41  func RemovalOptionsJSStore(
    42  	ptr unsafe.Pointer, ref js.Ref)
    43  
    44  //go:wasmimport plat/js/webext/browsingdata load_RemovalOptions
    45  //go:noescape
    46  func RemovalOptionsJSLoad(
    47  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    48  
    49  //go:wasmimport plat/js/webext/browsingdata store_SettingsReturnType
    50  //go:noescape
    51  func SettingsReturnTypeJSStore(
    52  	ptr unsafe.Pointer, ref js.Ref)
    53  
    54  //go:wasmimport plat/js/webext/browsingdata load_SettingsReturnType
    55  //go:noescape
    56  func SettingsReturnTypeJSLoad(
    57  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    58  
    59  //go:wasmimport plat/js/webext/browsingdata has_Remove
    60  //go:noescape
    61  func HasFuncRemove() js.Ref
    62  
    63  //go:wasmimport plat/js/webext/browsingdata func_Remove
    64  //go:noescape
    65  func FuncRemove(fn unsafe.Pointer)
    66  
    67  //go:wasmimport plat/js/webext/browsingdata call_Remove
    68  //go:noescape
    69  func CallRemove(
    70  	retPtr unsafe.Pointer,
    71  	options unsafe.Pointer,
    72  	dataToRemove unsafe.Pointer)
    73  
    74  //go:wasmimport plat/js/webext/browsingdata try_Remove
    75  //go:noescape
    76  func TryRemove(
    77  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
    78  	options unsafe.Pointer,
    79  	dataToRemove unsafe.Pointer) (ok js.Ref)
    80  
    81  //go:wasmimport plat/js/webext/browsingdata has_RemoveAppcache
    82  //go:noescape
    83  func HasFuncRemoveAppcache() js.Ref
    84  
    85  //go:wasmimport plat/js/webext/browsingdata func_RemoveAppcache
    86  //go:noescape
    87  func FuncRemoveAppcache(fn unsafe.Pointer)
    88  
    89  //go:wasmimport plat/js/webext/browsingdata call_RemoveAppcache
    90  //go:noescape
    91  func CallRemoveAppcache(
    92  	retPtr unsafe.Pointer,
    93  	options unsafe.Pointer)
    94  
    95  //go:wasmimport plat/js/webext/browsingdata try_RemoveAppcache
    96  //go:noescape
    97  func TryRemoveAppcache(
    98  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
    99  	options unsafe.Pointer) (ok js.Ref)
   100  
   101  //go:wasmimport plat/js/webext/browsingdata has_RemoveCache
   102  //go:noescape
   103  func HasFuncRemoveCache() js.Ref
   104  
   105  //go:wasmimport plat/js/webext/browsingdata func_RemoveCache
   106  //go:noescape
   107  func FuncRemoveCache(fn unsafe.Pointer)
   108  
   109  //go:wasmimport plat/js/webext/browsingdata call_RemoveCache
   110  //go:noescape
   111  func CallRemoveCache(
   112  	retPtr unsafe.Pointer,
   113  	options unsafe.Pointer)
   114  
   115  //go:wasmimport plat/js/webext/browsingdata try_RemoveCache
   116  //go:noescape
   117  func TryRemoveCache(
   118  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   119  	options unsafe.Pointer) (ok js.Ref)
   120  
   121  //go:wasmimport plat/js/webext/browsingdata has_RemoveCacheStorage
   122  //go:noescape
   123  func HasFuncRemoveCacheStorage() js.Ref
   124  
   125  //go:wasmimport plat/js/webext/browsingdata func_RemoveCacheStorage
   126  //go:noescape
   127  func FuncRemoveCacheStorage(fn unsafe.Pointer)
   128  
   129  //go:wasmimport plat/js/webext/browsingdata call_RemoveCacheStorage
   130  //go:noescape
   131  func CallRemoveCacheStorage(
   132  	retPtr unsafe.Pointer,
   133  	options unsafe.Pointer)
   134  
   135  //go:wasmimport plat/js/webext/browsingdata try_RemoveCacheStorage
   136  //go:noescape
   137  func TryRemoveCacheStorage(
   138  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   139  	options unsafe.Pointer) (ok js.Ref)
   140  
   141  //go:wasmimport plat/js/webext/browsingdata has_RemoveCookies
   142  //go:noescape
   143  func HasFuncRemoveCookies() js.Ref
   144  
   145  //go:wasmimport plat/js/webext/browsingdata func_RemoveCookies
   146  //go:noescape
   147  func FuncRemoveCookies(fn unsafe.Pointer)
   148  
   149  //go:wasmimport plat/js/webext/browsingdata call_RemoveCookies
   150  //go:noescape
   151  func CallRemoveCookies(
   152  	retPtr unsafe.Pointer,
   153  	options unsafe.Pointer)
   154  
   155  //go:wasmimport plat/js/webext/browsingdata try_RemoveCookies
   156  //go:noescape
   157  func TryRemoveCookies(
   158  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   159  	options unsafe.Pointer) (ok js.Ref)
   160  
   161  //go:wasmimport plat/js/webext/browsingdata has_RemoveDownloads
   162  //go:noescape
   163  func HasFuncRemoveDownloads() js.Ref
   164  
   165  //go:wasmimport plat/js/webext/browsingdata func_RemoveDownloads
   166  //go:noescape
   167  func FuncRemoveDownloads(fn unsafe.Pointer)
   168  
   169  //go:wasmimport plat/js/webext/browsingdata call_RemoveDownloads
   170  //go:noescape
   171  func CallRemoveDownloads(
   172  	retPtr unsafe.Pointer,
   173  	options unsafe.Pointer)
   174  
   175  //go:wasmimport plat/js/webext/browsingdata try_RemoveDownloads
   176  //go:noescape
   177  func TryRemoveDownloads(
   178  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   179  	options unsafe.Pointer) (ok js.Ref)
   180  
   181  //go:wasmimport plat/js/webext/browsingdata has_RemoveFileSystems
   182  //go:noescape
   183  func HasFuncRemoveFileSystems() js.Ref
   184  
   185  //go:wasmimport plat/js/webext/browsingdata func_RemoveFileSystems
   186  //go:noescape
   187  func FuncRemoveFileSystems(fn unsafe.Pointer)
   188  
   189  //go:wasmimport plat/js/webext/browsingdata call_RemoveFileSystems
   190  //go:noescape
   191  func CallRemoveFileSystems(
   192  	retPtr unsafe.Pointer,
   193  	options unsafe.Pointer)
   194  
   195  //go:wasmimport plat/js/webext/browsingdata try_RemoveFileSystems
   196  //go:noescape
   197  func TryRemoveFileSystems(
   198  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   199  	options unsafe.Pointer) (ok js.Ref)
   200  
   201  //go:wasmimport plat/js/webext/browsingdata has_RemoveFormData
   202  //go:noescape
   203  func HasFuncRemoveFormData() js.Ref
   204  
   205  //go:wasmimport plat/js/webext/browsingdata func_RemoveFormData
   206  //go:noescape
   207  func FuncRemoveFormData(fn unsafe.Pointer)
   208  
   209  //go:wasmimport plat/js/webext/browsingdata call_RemoveFormData
   210  //go:noescape
   211  func CallRemoveFormData(
   212  	retPtr unsafe.Pointer,
   213  	options unsafe.Pointer)
   214  
   215  //go:wasmimport plat/js/webext/browsingdata try_RemoveFormData
   216  //go:noescape
   217  func TryRemoveFormData(
   218  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   219  	options unsafe.Pointer) (ok js.Ref)
   220  
   221  //go:wasmimport plat/js/webext/browsingdata has_RemoveHistory
   222  //go:noescape
   223  func HasFuncRemoveHistory() js.Ref
   224  
   225  //go:wasmimport plat/js/webext/browsingdata func_RemoveHistory
   226  //go:noescape
   227  func FuncRemoveHistory(fn unsafe.Pointer)
   228  
   229  //go:wasmimport plat/js/webext/browsingdata call_RemoveHistory
   230  //go:noescape
   231  func CallRemoveHistory(
   232  	retPtr unsafe.Pointer,
   233  	options unsafe.Pointer)
   234  
   235  //go:wasmimport plat/js/webext/browsingdata try_RemoveHistory
   236  //go:noescape
   237  func TryRemoveHistory(
   238  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   239  	options unsafe.Pointer) (ok js.Ref)
   240  
   241  //go:wasmimport plat/js/webext/browsingdata has_RemoveIndexedDB
   242  //go:noescape
   243  func HasFuncRemoveIndexedDB() js.Ref
   244  
   245  //go:wasmimport plat/js/webext/browsingdata func_RemoveIndexedDB
   246  //go:noescape
   247  func FuncRemoveIndexedDB(fn unsafe.Pointer)
   248  
   249  //go:wasmimport plat/js/webext/browsingdata call_RemoveIndexedDB
   250  //go:noescape
   251  func CallRemoveIndexedDB(
   252  	retPtr unsafe.Pointer,
   253  	options unsafe.Pointer)
   254  
   255  //go:wasmimport plat/js/webext/browsingdata try_RemoveIndexedDB
   256  //go:noescape
   257  func TryRemoveIndexedDB(
   258  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   259  	options unsafe.Pointer) (ok js.Ref)
   260  
   261  //go:wasmimport plat/js/webext/browsingdata has_RemoveLocalStorage
   262  //go:noescape
   263  func HasFuncRemoveLocalStorage() js.Ref
   264  
   265  //go:wasmimport plat/js/webext/browsingdata func_RemoveLocalStorage
   266  //go:noescape
   267  func FuncRemoveLocalStorage(fn unsafe.Pointer)
   268  
   269  //go:wasmimport plat/js/webext/browsingdata call_RemoveLocalStorage
   270  //go:noescape
   271  func CallRemoveLocalStorage(
   272  	retPtr unsafe.Pointer,
   273  	options unsafe.Pointer)
   274  
   275  //go:wasmimport plat/js/webext/browsingdata try_RemoveLocalStorage
   276  //go:noescape
   277  func TryRemoveLocalStorage(
   278  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   279  	options unsafe.Pointer) (ok js.Ref)
   280  
   281  //go:wasmimport plat/js/webext/browsingdata has_RemovePasswords
   282  //go:noescape
   283  func HasFuncRemovePasswords() js.Ref
   284  
   285  //go:wasmimport plat/js/webext/browsingdata func_RemovePasswords
   286  //go:noescape
   287  func FuncRemovePasswords(fn unsafe.Pointer)
   288  
   289  //go:wasmimport plat/js/webext/browsingdata call_RemovePasswords
   290  //go:noescape
   291  func CallRemovePasswords(
   292  	retPtr unsafe.Pointer,
   293  	options unsafe.Pointer)
   294  
   295  //go:wasmimport plat/js/webext/browsingdata try_RemovePasswords
   296  //go:noescape
   297  func TryRemovePasswords(
   298  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   299  	options unsafe.Pointer) (ok js.Ref)
   300  
   301  //go:wasmimport plat/js/webext/browsingdata has_RemovePluginData
   302  //go:noescape
   303  func HasFuncRemovePluginData() js.Ref
   304  
   305  //go:wasmimport plat/js/webext/browsingdata func_RemovePluginData
   306  //go:noescape
   307  func FuncRemovePluginData(fn unsafe.Pointer)
   308  
   309  //go:wasmimport plat/js/webext/browsingdata call_RemovePluginData
   310  //go:noescape
   311  func CallRemovePluginData(
   312  	retPtr unsafe.Pointer,
   313  	options unsafe.Pointer)
   314  
   315  //go:wasmimport plat/js/webext/browsingdata try_RemovePluginData
   316  //go:noescape
   317  func TryRemovePluginData(
   318  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   319  	options unsafe.Pointer) (ok js.Ref)
   320  
   321  //go:wasmimport plat/js/webext/browsingdata has_RemoveServiceWorkers
   322  //go:noescape
   323  func HasFuncRemoveServiceWorkers() js.Ref
   324  
   325  //go:wasmimport plat/js/webext/browsingdata func_RemoveServiceWorkers
   326  //go:noescape
   327  func FuncRemoveServiceWorkers(fn unsafe.Pointer)
   328  
   329  //go:wasmimport plat/js/webext/browsingdata call_RemoveServiceWorkers
   330  //go:noescape
   331  func CallRemoveServiceWorkers(
   332  	retPtr unsafe.Pointer,
   333  	options unsafe.Pointer)
   334  
   335  //go:wasmimport plat/js/webext/browsingdata try_RemoveServiceWorkers
   336  //go:noescape
   337  func TryRemoveServiceWorkers(
   338  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   339  	options unsafe.Pointer) (ok js.Ref)
   340  
   341  //go:wasmimport plat/js/webext/browsingdata has_RemoveWebSQL
   342  //go:noescape
   343  func HasFuncRemoveWebSQL() js.Ref
   344  
   345  //go:wasmimport plat/js/webext/browsingdata func_RemoveWebSQL
   346  //go:noescape
   347  func FuncRemoveWebSQL(fn unsafe.Pointer)
   348  
   349  //go:wasmimport plat/js/webext/browsingdata call_RemoveWebSQL
   350  //go:noescape
   351  func CallRemoveWebSQL(
   352  	retPtr unsafe.Pointer,
   353  	options unsafe.Pointer)
   354  
   355  //go:wasmimport plat/js/webext/browsingdata try_RemoveWebSQL
   356  //go:noescape
   357  func TryRemoveWebSQL(
   358  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   359  	options unsafe.Pointer) (ok js.Ref)
   360  
   361  //go:wasmimport plat/js/webext/browsingdata has_Settings
   362  //go:noescape
   363  func HasFuncSettings() js.Ref
   364  
   365  //go:wasmimport plat/js/webext/browsingdata func_Settings
   366  //go:noescape
   367  func FuncSettings(fn unsafe.Pointer)
   368  
   369  //go:wasmimport plat/js/webext/browsingdata call_Settings
   370  //go:noescape
   371  func CallSettings(
   372  	retPtr unsafe.Pointer)
   373  
   374  //go:wasmimport plat/js/webext/browsingdata try_Settings
   375  //go:noescape
   376  func TrySettings(
   377  	retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref)