github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/management/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/management constof_ExtensionDisabledReason
    20  //go:noescape
    21  func ConstOfExtensionDisabledReason(str js.Ref) uint32
    22  
    23  //go:wasmimport plat/js/webext/management constof_LaunchType
    24  //go:noescape
    25  func ConstOfLaunchType(str js.Ref) uint32
    26  
    27  //go:wasmimport plat/js/webext/management store_IconInfo
    28  //go:noescape
    29  func IconInfoJSStore(
    30  	ptr unsafe.Pointer, ref js.Ref)
    31  
    32  //go:wasmimport plat/js/webext/management load_IconInfo
    33  //go:noescape
    34  func IconInfoJSLoad(
    35  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    36  
    37  //go:wasmimport plat/js/webext/management constof_ExtensionInstallType
    38  //go:noescape
    39  func ConstOfExtensionInstallType(str js.Ref) uint32
    40  
    41  //go:wasmimport plat/js/webext/management constof_ExtensionType
    42  //go:noescape
    43  func ConstOfExtensionType(str js.Ref) uint32
    44  
    45  //go:wasmimport plat/js/webext/management store_ExtensionInfo
    46  //go:noescape
    47  func ExtensionInfoJSStore(
    48  	ptr unsafe.Pointer, ref js.Ref)
    49  
    50  //go:wasmimport plat/js/webext/management load_ExtensionInfo
    51  //go:noescape
    52  func ExtensionInfoJSLoad(
    53  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    54  
    55  //go:wasmimport plat/js/webext/management store_UninstallOptions
    56  //go:noescape
    57  func UninstallOptionsJSStore(
    58  	ptr unsafe.Pointer, ref js.Ref)
    59  
    60  //go:wasmimport plat/js/webext/management load_UninstallOptions
    61  //go:noescape
    62  func UninstallOptionsJSLoad(
    63  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    64  
    65  //go:wasmimport plat/js/webext/management has_CreateAppShortcut
    66  //go:noescape
    67  func HasFuncCreateAppShortcut() js.Ref
    68  
    69  //go:wasmimport plat/js/webext/management func_CreateAppShortcut
    70  //go:noescape
    71  func FuncCreateAppShortcut(fn unsafe.Pointer)
    72  
    73  //go:wasmimport plat/js/webext/management call_CreateAppShortcut
    74  //go:noescape
    75  func CallCreateAppShortcut(
    76  	retPtr unsafe.Pointer,
    77  	id js.Ref)
    78  
    79  //go:wasmimport plat/js/webext/management try_CreateAppShortcut
    80  //go:noescape
    81  func TryCreateAppShortcut(
    82  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
    83  	id js.Ref) (ok js.Ref)
    84  
    85  //go:wasmimport plat/js/webext/management has_GenerateAppForLink
    86  //go:noescape
    87  func HasFuncGenerateAppForLink() js.Ref
    88  
    89  //go:wasmimport plat/js/webext/management func_GenerateAppForLink
    90  //go:noescape
    91  func FuncGenerateAppForLink(fn unsafe.Pointer)
    92  
    93  //go:wasmimport plat/js/webext/management call_GenerateAppForLink
    94  //go:noescape
    95  func CallGenerateAppForLink(
    96  	retPtr unsafe.Pointer,
    97  	url js.Ref,
    98  	title js.Ref)
    99  
   100  //go:wasmimport plat/js/webext/management try_GenerateAppForLink
   101  //go:noescape
   102  func TryGenerateAppForLink(
   103  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   104  	url js.Ref,
   105  	title js.Ref) (ok js.Ref)
   106  
   107  //go:wasmimport plat/js/webext/management has_Get
   108  //go:noescape
   109  func HasFuncGet() js.Ref
   110  
   111  //go:wasmimport plat/js/webext/management func_Get
   112  //go:noescape
   113  func FuncGet(fn unsafe.Pointer)
   114  
   115  //go:wasmimport plat/js/webext/management call_Get
   116  //go:noescape
   117  func CallGet(
   118  	retPtr unsafe.Pointer,
   119  	id js.Ref)
   120  
   121  //go:wasmimport plat/js/webext/management try_Get
   122  //go:noescape
   123  func TryGet(
   124  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   125  	id js.Ref) (ok js.Ref)
   126  
   127  //go:wasmimport plat/js/webext/management has_GetAll
   128  //go:noescape
   129  func HasFuncGetAll() js.Ref
   130  
   131  //go:wasmimport plat/js/webext/management func_GetAll
   132  //go:noescape
   133  func FuncGetAll(fn unsafe.Pointer)
   134  
   135  //go:wasmimport plat/js/webext/management call_GetAll
   136  //go:noescape
   137  func CallGetAll(
   138  	retPtr unsafe.Pointer)
   139  
   140  //go:wasmimport plat/js/webext/management try_GetAll
   141  //go:noescape
   142  func TryGetAll(
   143  	retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref)
   144  
   145  //go:wasmimport plat/js/webext/management has_GetPermissionWarningsById
   146  //go:noescape
   147  func HasFuncGetPermissionWarningsById() js.Ref
   148  
   149  //go:wasmimport plat/js/webext/management func_GetPermissionWarningsById
   150  //go:noescape
   151  func FuncGetPermissionWarningsById(fn unsafe.Pointer)
   152  
   153  //go:wasmimport plat/js/webext/management call_GetPermissionWarningsById
   154  //go:noescape
   155  func CallGetPermissionWarningsById(
   156  	retPtr unsafe.Pointer,
   157  	id js.Ref)
   158  
   159  //go:wasmimport plat/js/webext/management try_GetPermissionWarningsById
   160  //go:noescape
   161  func TryGetPermissionWarningsById(
   162  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   163  	id js.Ref) (ok js.Ref)
   164  
   165  //go:wasmimport plat/js/webext/management has_GetPermissionWarningsByManifest
   166  //go:noescape
   167  func HasFuncGetPermissionWarningsByManifest() js.Ref
   168  
   169  //go:wasmimport plat/js/webext/management func_GetPermissionWarningsByManifest
   170  //go:noescape
   171  func FuncGetPermissionWarningsByManifest(fn unsafe.Pointer)
   172  
   173  //go:wasmimport plat/js/webext/management call_GetPermissionWarningsByManifest
   174  //go:noescape
   175  func CallGetPermissionWarningsByManifest(
   176  	retPtr unsafe.Pointer,
   177  	manifestStr js.Ref)
   178  
   179  //go:wasmimport plat/js/webext/management try_GetPermissionWarningsByManifest
   180  //go:noescape
   181  func TryGetPermissionWarningsByManifest(
   182  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   183  	manifestStr js.Ref) (ok js.Ref)
   184  
   185  //go:wasmimport plat/js/webext/management has_GetSelf
   186  //go:noescape
   187  func HasFuncGetSelf() js.Ref
   188  
   189  //go:wasmimport plat/js/webext/management func_GetSelf
   190  //go:noescape
   191  func FuncGetSelf(fn unsafe.Pointer)
   192  
   193  //go:wasmimport plat/js/webext/management call_GetSelf
   194  //go:noescape
   195  func CallGetSelf(
   196  	retPtr unsafe.Pointer)
   197  
   198  //go:wasmimport plat/js/webext/management try_GetSelf
   199  //go:noescape
   200  func TryGetSelf(
   201  	retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref)
   202  
   203  //go:wasmimport plat/js/webext/management has_InstallReplacementWebApp
   204  //go:noescape
   205  func HasFuncInstallReplacementWebApp() js.Ref
   206  
   207  //go:wasmimport plat/js/webext/management func_InstallReplacementWebApp
   208  //go:noescape
   209  func FuncInstallReplacementWebApp(fn unsafe.Pointer)
   210  
   211  //go:wasmimport plat/js/webext/management call_InstallReplacementWebApp
   212  //go:noescape
   213  func CallInstallReplacementWebApp(
   214  	retPtr unsafe.Pointer)
   215  
   216  //go:wasmimport plat/js/webext/management try_InstallReplacementWebApp
   217  //go:noescape
   218  func TryInstallReplacementWebApp(
   219  	retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref)
   220  
   221  //go:wasmimport plat/js/webext/management has_LaunchApp
   222  //go:noescape
   223  func HasFuncLaunchApp() js.Ref
   224  
   225  //go:wasmimport plat/js/webext/management func_LaunchApp
   226  //go:noescape
   227  func FuncLaunchApp(fn unsafe.Pointer)
   228  
   229  //go:wasmimport plat/js/webext/management call_LaunchApp
   230  //go:noescape
   231  func CallLaunchApp(
   232  	retPtr unsafe.Pointer,
   233  	id js.Ref)
   234  
   235  //go:wasmimport plat/js/webext/management try_LaunchApp
   236  //go:noescape
   237  func TryLaunchApp(
   238  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   239  	id js.Ref) (ok js.Ref)
   240  
   241  //go:wasmimport plat/js/webext/management has_OnDisabled
   242  //go:noescape
   243  func HasFuncOnDisabled() js.Ref
   244  
   245  //go:wasmimport plat/js/webext/management func_OnDisabled
   246  //go:noescape
   247  func FuncOnDisabled(fn unsafe.Pointer)
   248  
   249  //go:wasmimport plat/js/webext/management call_OnDisabled
   250  //go:noescape
   251  func CallOnDisabled(
   252  	retPtr unsafe.Pointer,
   253  	callback js.Ref)
   254  
   255  //go:wasmimport plat/js/webext/management try_OnDisabled
   256  //go:noescape
   257  func TryOnDisabled(
   258  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   259  	callback js.Ref) (ok js.Ref)
   260  
   261  //go:wasmimport plat/js/webext/management has_OffDisabled
   262  //go:noescape
   263  func HasFuncOffDisabled() js.Ref
   264  
   265  //go:wasmimport plat/js/webext/management func_OffDisabled
   266  //go:noescape
   267  func FuncOffDisabled(fn unsafe.Pointer)
   268  
   269  //go:wasmimport plat/js/webext/management call_OffDisabled
   270  //go:noescape
   271  func CallOffDisabled(
   272  	retPtr unsafe.Pointer,
   273  	callback js.Ref)
   274  
   275  //go:wasmimport plat/js/webext/management try_OffDisabled
   276  //go:noescape
   277  func TryOffDisabled(
   278  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   279  	callback js.Ref) (ok js.Ref)
   280  
   281  //go:wasmimport plat/js/webext/management has_HasOnDisabled
   282  //go:noescape
   283  func HasFuncHasOnDisabled() js.Ref
   284  
   285  //go:wasmimport plat/js/webext/management func_HasOnDisabled
   286  //go:noescape
   287  func FuncHasOnDisabled(fn unsafe.Pointer)
   288  
   289  //go:wasmimport plat/js/webext/management call_HasOnDisabled
   290  //go:noescape
   291  func CallHasOnDisabled(
   292  	retPtr unsafe.Pointer,
   293  	callback js.Ref)
   294  
   295  //go:wasmimport plat/js/webext/management try_HasOnDisabled
   296  //go:noescape
   297  func TryHasOnDisabled(
   298  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   299  	callback js.Ref) (ok js.Ref)
   300  
   301  //go:wasmimport plat/js/webext/management has_OnEnabled
   302  //go:noescape
   303  func HasFuncOnEnabled() js.Ref
   304  
   305  //go:wasmimport plat/js/webext/management func_OnEnabled
   306  //go:noescape
   307  func FuncOnEnabled(fn unsafe.Pointer)
   308  
   309  //go:wasmimport plat/js/webext/management call_OnEnabled
   310  //go:noescape
   311  func CallOnEnabled(
   312  	retPtr unsafe.Pointer,
   313  	callback js.Ref)
   314  
   315  //go:wasmimport plat/js/webext/management try_OnEnabled
   316  //go:noescape
   317  func TryOnEnabled(
   318  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   319  	callback js.Ref) (ok js.Ref)
   320  
   321  //go:wasmimport plat/js/webext/management has_OffEnabled
   322  //go:noescape
   323  func HasFuncOffEnabled() js.Ref
   324  
   325  //go:wasmimport plat/js/webext/management func_OffEnabled
   326  //go:noescape
   327  func FuncOffEnabled(fn unsafe.Pointer)
   328  
   329  //go:wasmimport plat/js/webext/management call_OffEnabled
   330  //go:noescape
   331  func CallOffEnabled(
   332  	retPtr unsafe.Pointer,
   333  	callback js.Ref)
   334  
   335  //go:wasmimport plat/js/webext/management try_OffEnabled
   336  //go:noescape
   337  func TryOffEnabled(
   338  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   339  	callback js.Ref) (ok js.Ref)
   340  
   341  //go:wasmimport plat/js/webext/management has_HasOnEnabled
   342  //go:noescape
   343  func HasFuncHasOnEnabled() js.Ref
   344  
   345  //go:wasmimport plat/js/webext/management func_HasOnEnabled
   346  //go:noescape
   347  func FuncHasOnEnabled(fn unsafe.Pointer)
   348  
   349  //go:wasmimport plat/js/webext/management call_HasOnEnabled
   350  //go:noescape
   351  func CallHasOnEnabled(
   352  	retPtr unsafe.Pointer,
   353  	callback js.Ref)
   354  
   355  //go:wasmimport plat/js/webext/management try_HasOnEnabled
   356  //go:noescape
   357  func TryHasOnEnabled(
   358  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   359  	callback js.Ref) (ok js.Ref)
   360  
   361  //go:wasmimport plat/js/webext/management has_OnInstalled
   362  //go:noescape
   363  func HasFuncOnInstalled() js.Ref
   364  
   365  //go:wasmimport plat/js/webext/management func_OnInstalled
   366  //go:noescape
   367  func FuncOnInstalled(fn unsafe.Pointer)
   368  
   369  //go:wasmimport plat/js/webext/management call_OnInstalled
   370  //go:noescape
   371  func CallOnInstalled(
   372  	retPtr unsafe.Pointer,
   373  	callback js.Ref)
   374  
   375  //go:wasmimport plat/js/webext/management try_OnInstalled
   376  //go:noescape
   377  func TryOnInstalled(
   378  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   379  	callback js.Ref) (ok js.Ref)
   380  
   381  //go:wasmimport plat/js/webext/management has_OffInstalled
   382  //go:noescape
   383  func HasFuncOffInstalled() js.Ref
   384  
   385  //go:wasmimport plat/js/webext/management func_OffInstalled
   386  //go:noescape
   387  func FuncOffInstalled(fn unsafe.Pointer)
   388  
   389  //go:wasmimport plat/js/webext/management call_OffInstalled
   390  //go:noescape
   391  func CallOffInstalled(
   392  	retPtr unsafe.Pointer,
   393  	callback js.Ref)
   394  
   395  //go:wasmimport plat/js/webext/management try_OffInstalled
   396  //go:noescape
   397  func TryOffInstalled(
   398  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   399  	callback js.Ref) (ok js.Ref)
   400  
   401  //go:wasmimport plat/js/webext/management has_HasOnInstalled
   402  //go:noescape
   403  func HasFuncHasOnInstalled() js.Ref
   404  
   405  //go:wasmimport plat/js/webext/management func_HasOnInstalled
   406  //go:noescape
   407  func FuncHasOnInstalled(fn unsafe.Pointer)
   408  
   409  //go:wasmimport plat/js/webext/management call_HasOnInstalled
   410  //go:noescape
   411  func CallHasOnInstalled(
   412  	retPtr unsafe.Pointer,
   413  	callback js.Ref)
   414  
   415  //go:wasmimport plat/js/webext/management try_HasOnInstalled
   416  //go:noescape
   417  func TryHasOnInstalled(
   418  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   419  	callback js.Ref) (ok js.Ref)
   420  
   421  //go:wasmimport plat/js/webext/management has_OnUninstalled
   422  //go:noescape
   423  func HasFuncOnUninstalled() js.Ref
   424  
   425  //go:wasmimport plat/js/webext/management func_OnUninstalled
   426  //go:noescape
   427  func FuncOnUninstalled(fn unsafe.Pointer)
   428  
   429  //go:wasmimport plat/js/webext/management call_OnUninstalled
   430  //go:noescape
   431  func CallOnUninstalled(
   432  	retPtr unsafe.Pointer,
   433  	callback js.Ref)
   434  
   435  //go:wasmimport plat/js/webext/management try_OnUninstalled
   436  //go:noescape
   437  func TryOnUninstalled(
   438  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   439  	callback js.Ref) (ok js.Ref)
   440  
   441  //go:wasmimport plat/js/webext/management has_OffUninstalled
   442  //go:noescape
   443  func HasFuncOffUninstalled() js.Ref
   444  
   445  //go:wasmimport plat/js/webext/management func_OffUninstalled
   446  //go:noescape
   447  func FuncOffUninstalled(fn unsafe.Pointer)
   448  
   449  //go:wasmimport plat/js/webext/management call_OffUninstalled
   450  //go:noescape
   451  func CallOffUninstalled(
   452  	retPtr unsafe.Pointer,
   453  	callback js.Ref)
   454  
   455  //go:wasmimport plat/js/webext/management try_OffUninstalled
   456  //go:noescape
   457  func TryOffUninstalled(
   458  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   459  	callback js.Ref) (ok js.Ref)
   460  
   461  //go:wasmimport plat/js/webext/management has_HasOnUninstalled
   462  //go:noescape
   463  func HasFuncHasOnUninstalled() js.Ref
   464  
   465  //go:wasmimport plat/js/webext/management func_HasOnUninstalled
   466  //go:noescape
   467  func FuncHasOnUninstalled(fn unsafe.Pointer)
   468  
   469  //go:wasmimport plat/js/webext/management call_HasOnUninstalled
   470  //go:noescape
   471  func CallHasOnUninstalled(
   472  	retPtr unsafe.Pointer,
   473  	callback js.Ref)
   474  
   475  //go:wasmimport plat/js/webext/management try_HasOnUninstalled
   476  //go:noescape
   477  func TryHasOnUninstalled(
   478  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   479  	callback js.Ref) (ok js.Ref)
   480  
   481  //go:wasmimport plat/js/webext/management has_SetEnabled
   482  //go:noescape
   483  func HasFuncSetEnabled() js.Ref
   484  
   485  //go:wasmimport plat/js/webext/management func_SetEnabled
   486  //go:noescape
   487  func FuncSetEnabled(fn unsafe.Pointer)
   488  
   489  //go:wasmimport plat/js/webext/management call_SetEnabled
   490  //go:noescape
   491  func CallSetEnabled(
   492  	retPtr unsafe.Pointer,
   493  	id js.Ref,
   494  	enabled js.Ref)
   495  
   496  //go:wasmimport plat/js/webext/management try_SetEnabled
   497  //go:noescape
   498  func TrySetEnabled(
   499  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   500  	id js.Ref,
   501  	enabled js.Ref) (ok js.Ref)
   502  
   503  //go:wasmimport plat/js/webext/management has_SetLaunchType
   504  //go:noescape
   505  func HasFuncSetLaunchType() js.Ref
   506  
   507  //go:wasmimport plat/js/webext/management func_SetLaunchType
   508  //go:noescape
   509  func FuncSetLaunchType(fn unsafe.Pointer)
   510  
   511  //go:wasmimport plat/js/webext/management call_SetLaunchType
   512  //go:noescape
   513  func CallSetLaunchType(
   514  	retPtr unsafe.Pointer,
   515  	id js.Ref,
   516  	launchType uint32)
   517  
   518  //go:wasmimport plat/js/webext/management try_SetLaunchType
   519  //go:noescape
   520  func TrySetLaunchType(
   521  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   522  	id js.Ref,
   523  	launchType uint32) (ok js.Ref)
   524  
   525  //go:wasmimport plat/js/webext/management has_Uninstall
   526  //go:noescape
   527  func HasFuncUninstall() js.Ref
   528  
   529  //go:wasmimport plat/js/webext/management func_Uninstall
   530  //go:noescape
   531  func FuncUninstall(fn unsafe.Pointer)
   532  
   533  //go:wasmimport plat/js/webext/management call_Uninstall
   534  //go:noescape
   535  func CallUninstall(
   536  	retPtr unsafe.Pointer,
   537  	id js.Ref,
   538  	options unsafe.Pointer)
   539  
   540  //go:wasmimport plat/js/webext/management try_Uninstall
   541  //go:noescape
   542  func TryUninstall(
   543  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   544  	id js.Ref,
   545  	options unsafe.Pointer) (ok js.Ref)
   546  
   547  //go:wasmimport plat/js/webext/management has_UninstallSelf
   548  //go:noescape
   549  func HasFuncUninstallSelf() js.Ref
   550  
   551  //go:wasmimport plat/js/webext/management func_UninstallSelf
   552  //go:noescape
   553  func FuncUninstallSelf(fn unsafe.Pointer)
   554  
   555  //go:wasmimport plat/js/webext/management call_UninstallSelf
   556  //go:noescape
   557  func CallUninstallSelf(
   558  	retPtr unsafe.Pointer,
   559  	options unsafe.Pointer)
   560  
   561  //go:wasmimport plat/js/webext/management try_UninstallSelf
   562  //go:noescape
   563  func TryUninstallSelf(
   564  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   565  	options unsafe.Pointer) (ok js.Ref)