github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/notifications/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/notifications store_NotificationBitmap
    20  //go:noescape
    21  func NotificationBitmapJSStore(
    22  	ptr unsafe.Pointer, ref js.Ref)
    23  
    24  //go:wasmimport plat/js/webext/notifications load_NotificationBitmap
    25  //go:noescape
    26  func NotificationBitmapJSLoad(
    27  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    28  
    29  //go:wasmimport plat/js/webext/notifications store_NotificationButton
    30  //go:noescape
    31  func NotificationButtonJSStore(
    32  	ptr unsafe.Pointer, ref js.Ref)
    33  
    34  //go:wasmimport plat/js/webext/notifications load_NotificationButton
    35  //go:noescape
    36  func NotificationButtonJSLoad(
    37  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    38  
    39  //go:wasmimport plat/js/webext/notifications store_NotificationItem
    40  //go:noescape
    41  func NotificationItemJSStore(
    42  	ptr unsafe.Pointer, ref js.Ref)
    43  
    44  //go:wasmimport plat/js/webext/notifications load_NotificationItem
    45  //go:noescape
    46  func NotificationItemJSLoad(
    47  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    48  
    49  //go:wasmimport plat/js/webext/notifications constof_TemplateType
    50  //go:noescape
    51  func ConstOfTemplateType(str js.Ref) uint32
    52  
    53  //go:wasmimport plat/js/webext/notifications store_NotificationOptions
    54  //go:noescape
    55  func NotificationOptionsJSStore(
    56  	ptr unsafe.Pointer, ref js.Ref)
    57  
    58  //go:wasmimport plat/js/webext/notifications load_NotificationOptions
    59  //go:noescape
    60  func NotificationOptionsJSLoad(
    61  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    62  
    63  //go:wasmimport plat/js/webext/notifications constof_PermissionLevel
    64  //go:noescape
    65  func ConstOfPermissionLevel(str js.Ref) uint32
    66  
    67  //go:wasmimport plat/js/webext/notifications has_Clear
    68  //go:noescape
    69  func HasFuncClear() js.Ref
    70  
    71  //go:wasmimport plat/js/webext/notifications func_Clear
    72  //go:noescape
    73  func FuncClear(fn unsafe.Pointer)
    74  
    75  //go:wasmimport plat/js/webext/notifications call_Clear
    76  //go:noescape
    77  func CallClear(
    78  	retPtr unsafe.Pointer,
    79  	notificationId js.Ref)
    80  
    81  //go:wasmimport plat/js/webext/notifications try_Clear
    82  //go:noescape
    83  func TryClear(
    84  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
    85  	notificationId js.Ref) (ok js.Ref)
    86  
    87  //go:wasmimport plat/js/webext/notifications has_Create
    88  //go:noescape
    89  func HasFuncCreate() js.Ref
    90  
    91  //go:wasmimport plat/js/webext/notifications func_Create
    92  //go:noescape
    93  func FuncCreate(fn unsafe.Pointer)
    94  
    95  //go:wasmimport plat/js/webext/notifications call_Create
    96  //go:noescape
    97  func CallCreate(
    98  	retPtr unsafe.Pointer,
    99  	notificationId js.Ref,
   100  	options unsafe.Pointer)
   101  
   102  //go:wasmimport plat/js/webext/notifications try_Create
   103  //go:noescape
   104  func TryCreate(
   105  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   106  	notificationId js.Ref,
   107  	options unsafe.Pointer) (ok js.Ref)
   108  
   109  //go:wasmimport plat/js/webext/notifications has_GetAll
   110  //go:noescape
   111  func HasFuncGetAll() js.Ref
   112  
   113  //go:wasmimport plat/js/webext/notifications func_GetAll
   114  //go:noescape
   115  func FuncGetAll(fn unsafe.Pointer)
   116  
   117  //go:wasmimport plat/js/webext/notifications call_GetAll
   118  //go:noescape
   119  func CallGetAll(
   120  	retPtr unsafe.Pointer)
   121  
   122  //go:wasmimport plat/js/webext/notifications try_GetAll
   123  //go:noescape
   124  func TryGetAll(
   125  	retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref)
   126  
   127  //go:wasmimport plat/js/webext/notifications has_GetPermissionLevel
   128  //go:noescape
   129  func HasFuncGetPermissionLevel() js.Ref
   130  
   131  //go:wasmimport plat/js/webext/notifications func_GetPermissionLevel
   132  //go:noescape
   133  func FuncGetPermissionLevel(fn unsafe.Pointer)
   134  
   135  //go:wasmimport plat/js/webext/notifications call_GetPermissionLevel
   136  //go:noescape
   137  func CallGetPermissionLevel(
   138  	retPtr unsafe.Pointer)
   139  
   140  //go:wasmimport plat/js/webext/notifications try_GetPermissionLevel
   141  //go:noescape
   142  func TryGetPermissionLevel(
   143  	retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref)
   144  
   145  //go:wasmimport plat/js/webext/notifications has_OnButtonClicked
   146  //go:noescape
   147  func HasFuncOnButtonClicked() js.Ref
   148  
   149  //go:wasmimport plat/js/webext/notifications func_OnButtonClicked
   150  //go:noescape
   151  func FuncOnButtonClicked(fn unsafe.Pointer)
   152  
   153  //go:wasmimport plat/js/webext/notifications call_OnButtonClicked
   154  //go:noescape
   155  func CallOnButtonClicked(
   156  	retPtr unsafe.Pointer,
   157  	callback js.Ref)
   158  
   159  //go:wasmimport plat/js/webext/notifications try_OnButtonClicked
   160  //go:noescape
   161  func TryOnButtonClicked(
   162  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   163  	callback js.Ref) (ok js.Ref)
   164  
   165  //go:wasmimport plat/js/webext/notifications has_OffButtonClicked
   166  //go:noescape
   167  func HasFuncOffButtonClicked() js.Ref
   168  
   169  //go:wasmimport plat/js/webext/notifications func_OffButtonClicked
   170  //go:noescape
   171  func FuncOffButtonClicked(fn unsafe.Pointer)
   172  
   173  //go:wasmimport plat/js/webext/notifications call_OffButtonClicked
   174  //go:noescape
   175  func CallOffButtonClicked(
   176  	retPtr unsafe.Pointer,
   177  	callback js.Ref)
   178  
   179  //go:wasmimport plat/js/webext/notifications try_OffButtonClicked
   180  //go:noescape
   181  func TryOffButtonClicked(
   182  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   183  	callback js.Ref) (ok js.Ref)
   184  
   185  //go:wasmimport plat/js/webext/notifications has_HasOnButtonClicked
   186  //go:noescape
   187  func HasFuncHasOnButtonClicked() js.Ref
   188  
   189  //go:wasmimport plat/js/webext/notifications func_HasOnButtonClicked
   190  //go:noescape
   191  func FuncHasOnButtonClicked(fn unsafe.Pointer)
   192  
   193  //go:wasmimport plat/js/webext/notifications call_HasOnButtonClicked
   194  //go:noescape
   195  func CallHasOnButtonClicked(
   196  	retPtr unsafe.Pointer,
   197  	callback js.Ref)
   198  
   199  //go:wasmimport plat/js/webext/notifications try_HasOnButtonClicked
   200  //go:noescape
   201  func TryHasOnButtonClicked(
   202  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   203  	callback js.Ref) (ok js.Ref)
   204  
   205  //go:wasmimport plat/js/webext/notifications has_OnClicked
   206  //go:noescape
   207  func HasFuncOnClicked() js.Ref
   208  
   209  //go:wasmimport plat/js/webext/notifications func_OnClicked
   210  //go:noescape
   211  func FuncOnClicked(fn unsafe.Pointer)
   212  
   213  //go:wasmimport plat/js/webext/notifications call_OnClicked
   214  //go:noescape
   215  func CallOnClicked(
   216  	retPtr unsafe.Pointer,
   217  	callback js.Ref)
   218  
   219  //go:wasmimport plat/js/webext/notifications try_OnClicked
   220  //go:noescape
   221  func TryOnClicked(
   222  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   223  	callback js.Ref) (ok js.Ref)
   224  
   225  //go:wasmimport plat/js/webext/notifications has_OffClicked
   226  //go:noescape
   227  func HasFuncOffClicked() js.Ref
   228  
   229  //go:wasmimport plat/js/webext/notifications func_OffClicked
   230  //go:noescape
   231  func FuncOffClicked(fn unsafe.Pointer)
   232  
   233  //go:wasmimport plat/js/webext/notifications call_OffClicked
   234  //go:noescape
   235  func CallOffClicked(
   236  	retPtr unsafe.Pointer,
   237  	callback js.Ref)
   238  
   239  //go:wasmimport plat/js/webext/notifications try_OffClicked
   240  //go:noescape
   241  func TryOffClicked(
   242  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   243  	callback js.Ref) (ok js.Ref)
   244  
   245  //go:wasmimport plat/js/webext/notifications has_HasOnClicked
   246  //go:noescape
   247  func HasFuncHasOnClicked() js.Ref
   248  
   249  //go:wasmimport plat/js/webext/notifications func_HasOnClicked
   250  //go:noescape
   251  func FuncHasOnClicked(fn unsafe.Pointer)
   252  
   253  //go:wasmimport plat/js/webext/notifications call_HasOnClicked
   254  //go:noescape
   255  func CallHasOnClicked(
   256  	retPtr unsafe.Pointer,
   257  	callback js.Ref)
   258  
   259  //go:wasmimport plat/js/webext/notifications try_HasOnClicked
   260  //go:noescape
   261  func TryHasOnClicked(
   262  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   263  	callback js.Ref) (ok js.Ref)
   264  
   265  //go:wasmimport plat/js/webext/notifications has_OnClosed
   266  //go:noescape
   267  func HasFuncOnClosed() js.Ref
   268  
   269  //go:wasmimport plat/js/webext/notifications func_OnClosed
   270  //go:noescape
   271  func FuncOnClosed(fn unsafe.Pointer)
   272  
   273  //go:wasmimport plat/js/webext/notifications call_OnClosed
   274  //go:noescape
   275  func CallOnClosed(
   276  	retPtr unsafe.Pointer,
   277  	callback js.Ref)
   278  
   279  //go:wasmimport plat/js/webext/notifications try_OnClosed
   280  //go:noescape
   281  func TryOnClosed(
   282  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   283  	callback js.Ref) (ok js.Ref)
   284  
   285  //go:wasmimport plat/js/webext/notifications has_OffClosed
   286  //go:noescape
   287  func HasFuncOffClosed() js.Ref
   288  
   289  //go:wasmimport plat/js/webext/notifications func_OffClosed
   290  //go:noescape
   291  func FuncOffClosed(fn unsafe.Pointer)
   292  
   293  //go:wasmimport plat/js/webext/notifications call_OffClosed
   294  //go:noescape
   295  func CallOffClosed(
   296  	retPtr unsafe.Pointer,
   297  	callback js.Ref)
   298  
   299  //go:wasmimport plat/js/webext/notifications try_OffClosed
   300  //go:noescape
   301  func TryOffClosed(
   302  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   303  	callback js.Ref) (ok js.Ref)
   304  
   305  //go:wasmimport plat/js/webext/notifications has_HasOnClosed
   306  //go:noescape
   307  func HasFuncHasOnClosed() js.Ref
   308  
   309  //go:wasmimport plat/js/webext/notifications func_HasOnClosed
   310  //go:noescape
   311  func FuncHasOnClosed(fn unsafe.Pointer)
   312  
   313  //go:wasmimport plat/js/webext/notifications call_HasOnClosed
   314  //go:noescape
   315  func CallHasOnClosed(
   316  	retPtr unsafe.Pointer,
   317  	callback js.Ref)
   318  
   319  //go:wasmimport plat/js/webext/notifications try_HasOnClosed
   320  //go:noescape
   321  func TryHasOnClosed(
   322  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   323  	callback js.Ref) (ok js.Ref)
   324  
   325  //go:wasmimport plat/js/webext/notifications has_OnPermissionLevelChanged
   326  //go:noescape
   327  func HasFuncOnPermissionLevelChanged() js.Ref
   328  
   329  //go:wasmimport plat/js/webext/notifications func_OnPermissionLevelChanged
   330  //go:noescape
   331  func FuncOnPermissionLevelChanged(fn unsafe.Pointer)
   332  
   333  //go:wasmimport plat/js/webext/notifications call_OnPermissionLevelChanged
   334  //go:noescape
   335  func CallOnPermissionLevelChanged(
   336  	retPtr unsafe.Pointer,
   337  	callback js.Ref)
   338  
   339  //go:wasmimport plat/js/webext/notifications try_OnPermissionLevelChanged
   340  //go:noescape
   341  func TryOnPermissionLevelChanged(
   342  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   343  	callback js.Ref) (ok js.Ref)
   344  
   345  //go:wasmimport plat/js/webext/notifications has_OffPermissionLevelChanged
   346  //go:noescape
   347  func HasFuncOffPermissionLevelChanged() js.Ref
   348  
   349  //go:wasmimport plat/js/webext/notifications func_OffPermissionLevelChanged
   350  //go:noescape
   351  func FuncOffPermissionLevelChanged(fn unsafe.Pointer)
   352  
   353  //go:wasmimport plat/js/webext/notifications call_OffPermissionLevelChanged
   354  //go:noescape
   355  func CallOffPermissionLevelChanged(
   356  	retPtr unsafe.Pointer,
   357  	callback js.Ref)
   358  
   359  //go:wasmimport plat/js/webext/notifications try_OffPermissionLevelChanged
   360  //go:noescape
   361  func TryOffPermissionLevelChanged(
   362  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   363  	callback js.Ref) (ok js.Ref)
   364  
   365  //go:wasmimport plat/js/webext/notifications has_HasOnPermissionLevelChanged
   366  //go:noescape
   367  func HasFuncHasOnPermissionLevelChanged() js.Ref
   368  
   369  //go:wasmimport plat/js/webext/notifications func_HasOnPermissionLevelChanged
   370  //go:noescape
   371  func FuncHasOnPermissionLevelChanged(fn unsafe.Pointer)
   372  
   373  //go:wasmimport plat/js/webext/notifications call_HasOnPermissionLevelChanged
   374  //go:noescape
   375  func CallHasOnPermissionLevelChanged(
   376  	retPtr unsafe.Pointer,
   377  	callback js.Ref)
   378  
   379  //go:wasmimport plat/js/webext/notifications try_HasOnPermissionLevelChanged
   380  //go:noescape
   381  func TryHasOnPermissionLevelChanged(
   382  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   383  	callback js.Ref) (ok js.Ref)
   384  
   385  //go:wasmimport plat/js/webext/notifications has_OnShowSettings
   386  //go:noescape
   387  func HasFuncOnShowSettings() js.Ref
   388  
   389  //go:wasmimport plat/js/webext/notifications func_OnShowSettings
   390  //go:noescape
   391  func FuncOnShowSettings(fn unsafe.Pointer)
   392  
   393  //go:wasmimport plat/js/webext/notifications call_OnShowSettings
   394  //go:noescape
   395  func CallOnShowSettings(
   396  	retPtr unsafe.Pointer,
   397  	callback js.Ref)
   398  
   399  //go:wasmimport plat/js/webext/notifications try_OnShowSettings
   400  //go:noescape
   401  func TryOnShowSettings(
   402  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   403  	callback js.Ref) (ok js.Ref)
   404  
   405  //go:wasmimport plat/js/webext/notifications has_OffShowSettings
   406  //go:noescape
   407  func HasFuncOffShowSettings() js.Ref
   408  
   409  //go:wasmimport plat/js/webext/notifications func_OffShowSettings
   410  //go:noescape
   411  func FuncOffShowSettings(fn unsafe.Pointer)
   412  
   413  //go:wasmimport plat/js/webext/notifications call_OffShowSettings
   414  //go:noescape
   415  func CallOffShowSettings(
   416  	retPtr unsafe.Pointer,
   417  	callback js.Ref)
   418  
   419  //go:wasmimport plat/js/webext/notifications try_OffShowSettings
   420  //go:noescape
   421  func TryOffShowSettings(
   422  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   423  	callback js.Ref) (ok js.Ref)
   424  
   425  //go:wasmimport plat/js/webext/notifications has_HasOnShowSettings
   426  //go:noescape
   427  func HasFuncHasOnShowSettings() js.Ref
   428  
   429  //go:wasmimport plat/js/webext/notifications func_HasOnShowSettings
   430  //go:noescape
   431  func FuncHasOnShowSettings(fn unsafe.Pointer)
   432  
   433  //go:wasmimport plat/js/webext/notifications call_HasOnShowSettings
   434  //go:noescape
   435  func CallHasOnShowSettings(
   436  	retPtr unsafe.Pointer,
   437  	callback js.Ref)
   438  
   439  //go:wasmimport plat/js/webext/notifications try_HasOnShowSettings
   440  //go:noescape
   441  func TryHasOnShowSettings(
   442  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   443  	callback js.Ref) (ok js.Ref)
   444  
   445  //go:wasmimport plat/js/webext/notifications has_Update
   446  //go:noescape
   447  func HasFuncUpdate() js.Ref
   448  
   449  //go:wasmimport plat/js/webext/notifications func_Update
   450  //go:noescape
   451  func FuncUpdate(fn unsafe.Pointer)
   452  
   453  //go:wasmimport plat/js/webext/notifications call_Update
   454  //go:noescape
   455  func CallUpdate(
   456  	retPtr unsafe.Pointer,
   457  	notificationId js.Ref,
   458  	options unsafe.Pointer)
   459  
   460  //go:wasmimport plat/js/webext/notifications try_Update
   461  //go:noescape
   462  func TryUpdate(
   463  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   464  	notificationId js.Ref,
   465  	options unsafe.Pointer) (ok js.Ref)