github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/processes/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/processes store_Cache
    20  //go:noescape
    21  func CacheJSStore(
    22  	ptr unsafe.Pointer, ref js.Ref)
    23  
    24  //go:wasmimport plat/js/webext/processes load_Cache
    25  //go:noescape
    26  func CacheJSLoad(
    27  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    28  
    29  //go:wasmimport plat/js/webext/processes constof_ProcessType
    30  //go:noescape
    31  func ConstOfProcessType(str js.Ref) uint32
    32  
    33  //go:wasmimport plat/js/webext/processes store_TaskInfo
    34  //go:noescape
    35  func TaskInfoJSStore(
    36  	ptr unsafe.Pointer, ref js.Ref)
    37  
    38  //go:wasmimport plat/js/webext/processes load_TaskInfo
    39  //go:noescape
    40  func TaskInfoJSLoad(
    41  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    42  
    43  //go:wasmimport plat/js/webext/processes store_Process
    44  //go:noescape
    45  func ProcessJSStore(
    46  	ptr unsafe.Pointer, ref js.Ref)
    47  
    48  //go:wasmimport plat/js/webext/processes load_Process
    49  //go:noescape
    50  func ProcessJSLoad(
    51  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    52  
    53  //go:wasmimport plat/js/webext/processes has_GetProcessIdForTab
    54  //go:noescape
    55  func HasFuncGetProcessIdForTab() js.Ref
    56  
    57  //go:wasmimport plat/js/webext/processes func_GetProcessIdForTab
    58  //go:noescape
    59  func FuncGetProcessIdForTab(fn unsafe.Pointer)
    60  
    61  //go:wasmimport plat/js/webext/processes call_GetProcessIdForTab
    62  //go:noescape
    63  func CallGetProcessIdForTab(
    64  	retPtr unsafe.Pointer,
    65  	tabId int32)
    66  
    67  //go:wasmimport plat/js/webext/processes try_GetProcessIdForTab
    68  //go:noescape
    69  func TryGetProcessIdForTab(
    70  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
    71  	tabId int32) (ok js.Ref)
    72  
    73  //go:wasmimport plat/js/webext/processes has_GetProcessInfo
    74  //go:noescape
    75  func HasFuncGetProcessInfo() js.Ref
    76  
    77  //go:wasmimport plat/js/webext/processes func_GetProcessInfo
    78  //go:noescape
    79  func FuncGetProcessInfo(fn unsafe.Pointer)
    80  
    81  //go:wasmimport plat/js/webext/processes call_GetProcessInfo
    82  //go:noescape
    83  func CallGetProcessInfo(
    84  	retPtr unsafe.Pointer,
    85  	processIds js.Ref,
    86  	includeMemory js.Ref)
    87  
    88  //go:wasmimport plat/js/webext/processes try_GetProcessInfo
    89  //go:noescape
    90  func TryGetProcessInfo(
    91  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
    92  	processIds js.Ref,
    93  	includeMemory js.Ref) (ok js.Ref)
    94  
    95  //go:wasmimport plat/js/webext/processes has_OnCreated
    96  //go:noescape
    97  func HasFuncOnCreated() js.Ref
    98  
    99  //go:wasmimport plat/js/webext/processes func_OnCreated
   100  //go:noescape
   101  func FuncOnCreated(fn unsafe.Pointer)
   102  
   103  //go:wasmimport plat/js/webext/processes call_OnCreated
   104  //go:noescape
   105  func CallOnCreated(
   106  	retPtr unsafe.Pointer,
   107  	callback js.Ref)
   108  
   109  //go:wasmimport plat/js/webext/processes try_OnCreated
   110  //go:noescape
   111  func TryOnCreated(
   112  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   113  	callback js.Ref) (ok js.Ref)
   114  
   115  //go:wasmimport plat/js/webext/processes has_OffCreated
   116  //go:noescape
   117  func HasFuncOffCreated() js.Ref
   118  
   119  //go:wasmimport plat/js/webext/processes func_OffCreated
   120  //go:noescape
   121  func FuncOffCreated(fn unsafe.Pointer)
   122  
   123  //go:wasmimport plat/js/webext/processes call_OffCreated
   124  //go:noescape
   125  func CallOffCreated(
   126  	retPtr unsafe.Pointer,
   127  	callback js.Ref)
   128  
   129  //go:wasmimport plat/js/webext/processes try_OffCreated
   130  //go:noescape
   131  func TryOffCreated(
   132  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   133  	callback js.Ref) (ok js.Ref)
   134  
   135  //go:wasmimport plat/js/webext/processes has_HasOnCreated
   136  //go:noescape
   137  func HasFuncHasOnCreated() js.Ref
   138  
   139  //go:wasmimport plat/js/webext/processes func_HasOnCreated
   140  //go:noescape
   141  func FuncHasOnCreated(fn unsafe.Pointer)
   142  
   143  //go:wasmimport plat/js/webext/processes call_HasOnCreated
   144  //go:noescape
   145  func CallHasOnCreated(
   146  	retPtr unsafe.Pointer,
   147  	callback js.Ref)
   148  
   149  //go:wasmimport plat/js/webext/processes try_HasOnCreated
   150  //go:noescape
   151  func TryHasOnCreated(
   152  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   153  	callback js.Ref) (ok js.Ref)
   154  
   155  //go:wasmimport plat/js/webext/processes has_OnExited
   156  //go:noescape
   157  func HasFuncOnExited() js.Ref
   158  
   159  //go:wasmimport plat/js/webext/processes func_OnExited
   160  //go:noescape
   161  func FuncOnExited(fn unsafe.Pointer)
   162  
   163  //go:wasmimport plat/js/webext/processes call_OnExited
   164  //go:noescape
   165  func CallOnExited(
   166  	retPtr unsafe.Pointer,
   167  	callback js.Ref)
   168  
   169  //go:wasmimport plat/js/webext/processes try_OnExited
   170  //go:noescape
   171  func TryOnExited(
   172  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   173  	callback js.Ref) (ok js.Ref)
   174  
   175  //go:wasmimport plat/js/webext/processes has_OffExited
   176  //go:noescape
   177  func HasFuncOffExited() js.Ref
   178  
   179  //go:wasmimport plat/js/webext/processes func_OffExited
   180  //go:noescape
   181  func FuncOffExited(fn unsafe.Pointer)
   182  
   183  //go:wasmimport plat/js/webext/processes call_OffExited
   184  //go:noescape
   185  func CallOffExited(
   186  	retPtr unsafe.Pointer,
   187  	callback js.Ref)
   188  
   189  //go:wasmimport plat/js/webext/processes try_OffExited
   190  //go:noescape
   191  func TryOffExited(
   192  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   193  	callback js.Ref) (ok js.Ref)
   194  
   195  //go:wasmimport plat/js/webext/processes has_HasOnExited
   196  //go:noescape
   197  func HasFuncHasOnExited() js.Ref
   198  
   199  //go:wasmimport plat/js/webext/processes func_HasOnExited
   200  //go:noescape
   201  func FuncHasOnExited(fn unsafe.Pointer)
   202  
   203  //go:wasmimport plat/js/webext/processes call_HasOnExited
   204  //go:noescape
   205  func CallHasOnExited(
   206  	retPtr unsafe.Pointer,
   207  	callback js.Ref)
   208  
   209  //go:wasmimport plat/js/webext/processes try_HasOnExited
   210  //go:noescape
   211  func TryHasOnExited(
   212  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   213  	callback js.Ref) (ok js.Ref)
   214  
   215  //go:wasmimport plat/js/webext/processes has_OnUnresponsive
   216  //go:noescape
   217  func HasFuncOnUnresponsive() js.Ref
   218  
   219  //go:wasmimport plat/js/webext/processes func_OnUnresponsive
   220  //go:noescape
   221  func FuncOnUnresponsive(fn unsafe.Pointer)
   222  
   223  //go:wasmimport plat/js/webext/processes call_OnUnresponsive
   224  //go:noescape
   225  func CallOnUnresponsive(
   226  	retPtr unsafe.Pointer,
   227  	callback js.Ref)
   228  
   229  //go:wasmimport plat/js/webext/processes try_OnUnresponsive
   230  //go:noescape
   231  func TryOnUnresponsive(
   232  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   233  	callback js.Ref) (ok js.Ref)
   234  
   235  //go:wasmimport plat/js/webext/processes has_OffUnresponsive
   236  //go:noescape
   237  func HasFuncOffUnresponsive() js.Ref
   238  
   239  //go:wasmimport plat/js/webext/processes func_OffUnresponsive
   240  //go:noescape
   241  func FuncOffUnresponsive(fn unsafe.Pointer)
   242  
   243  //go:wasmimport plat/js/webext/processes call_OffUnresponsive
   244  //go:noescape
   245  func CallOffUnresponsive(
   246  	retPtr unsafe.Pointer,
   247  	callback js.Ref)
   248  
   249  //go:wasmimport plat/js/webext/processes try_OffUnresponsive
   250  //go:noescape
   251  func TryOffUnresponsive(
   252  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   253  	callback js.Ref) (ok js.Ref)
   254  
   255  //go:wasmimport plat/js/webext/processes has_HasOnUnresponsive
   256  //go:noescape
   257  func HasFuncHasOnUnresponsive() js.Ref
   258  
   259  //go:wasmimport plat/js/webext/processes func_HasOnUnresponsive
   260  //go:noescape
   261  func FuncHasOnUnresponsive(fn unsafe.Pointer)
   262  
   263  //go:wasmimport plat/js/webext/processes call_HasOnUnresponsive
   264  //go:noescape
   265  func CallHasOnUnresponsive(
   266  	retPtr unsafe.Pointer,
   267  	callback js.Ref)
   268  
   269  //go:wasmimport plat/js/webext/processes try_HasOnUnresponsive
   270  //go:noescape
   271  func TryHasOnUnresponsive(
   272  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   273  	callback js.Ref) (ok js.Ref)
   274  
   275  //go:wasmimport plat/js/webext/processes has_OnUpdated
   276  //go:noescape
   277  func HasFuncOnUpdated() js.Ref
   278  
   279  //go:wasmimport plat/js/webext/processes func_OnUpdated
   280  //go:noescape
   281  func FuncOnUpdated(fn unsafe.Pointer)
   282  
   283  //go:wasmimport plat/js/webext/processes call_OnUpdated
   284  //go:noescape
   285  func CallOnUpdated(
   286  	retPtr unsafe.Pointer,
   287  	callback js.Ref)
   288  
   289  //go:wasmimport plat/js/webext/processes try_OnUpdated
   290  //go:noescape
   291  func TryOnUpdated(
   292  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   293  	callback js.Ref) (ok js.Ref)
   294  
   295  //go:wasmimport plat/js/webext/processes has_OffUpdated
   296  //go:noescape
   297  func HasFuncOffUpdated() js.Ref
   298  
   299  //go:wasmimport plat/js/webext/processes func_OffUpdated
   300  //go:noescape
   301  func FuncOffUpdated(fn unsafe.Pointer)
   302  
   303  //go:wasmimport plat/js/webext/processes call_OffUpdated
   304  //go:noescape
   305  func CallOffUpdated(
   306  	retPtr unsafe.Pointer,
   307  	callback js.Ref)
   308  
   309  //go:wasmimport plat/js/webext/processes try_OffUpdated
   310  //go:noescape
   311  func TryOffUpdated(
   312  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   313  	callback js.Ref) (ok js.Ref)
   314  
   315  //go:wasmimport plat/js/webext/processes has_HasOnUpdated
   316  //go:noescape
   317  func HasFuncHasOnUpdated() js.Ref
   318  
   319  //go:wasmimport plat/js/webext/processes func_HasOnUpdated
   320  //go:noescape
   321  func FuncHasOnUpdated(fn unsafe.Pointer)
   322  
   323  //go:wasmimport plat/js/webext/processes call_HasOnUpdated
   324  //go:noescape
   325  func CallHasOnUpdated(
   326  	retPtr unsafe.Pointer,
   327  	callback js.Ref)
   328  
   329  //go:wasmimport plat/js/webext/processes try_HasOnUpdated
   330  //go:noescape
   331  func TryHasOnUpdated(
   332  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   333  	callback js.Ref) (ok js.Ref)
   334  
   335  //go:wasmimport plat/js/webext/processes has_OnUpdatedWithMemory
   336  //go:noescape
   337  func HasFuncOnUpdatedWithMemory() js.Ref
   338  
   339  //go:wasmimport plat/js/webext/processes func_OnUpdatedWithMemory
   340  //go:noescape
   341  func FuncOnUpdatedWithMemory(fn unsafe.Pointer)
   342  
   343  //go:wasmimport plat/js/webext/processes call_OnUpdatedWithMemory
   344  //go:noescape
   345  func CallOnUpdatedWithMemory(
   346  	retPtr unsafe.Pointer,
   347  	callback js.Ref)
   348  
   349  //go:wasmimport plat/js/webext/processes try_OnUpdatedWithMemory
   350  //go:noescape
   351  func TryOnUpdatedWithMemory(
   352  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   353  	callback js.Ref) (ok js.Ref)
   354  
   355  //go:wasmimport plat/js/webext/processes has_OffUpdatedWithMemory
   356  //go:noescape
   357  func HasFuncOffUpdatedWithMemory() js.Ref
   358  
   359  //go:wasmimport plat/js/webext/processes func_OffUpdatedWithMemory
   360  //go:noescape
   361  func FuncOffUpdatedWithMemory(fn unsafe.Pointer)
   362  
   363  //go:wasmimport plat/js/webext/processes call_OffUpdatedWithMemory
   364  //go:noescape
   365  func CallOffUpdatedWithMemory(
   366  	retPtr unsafe.Pointer,
   367  	callback js.Ref)
   368  
   369  //go:wasmimport plat/js/webext/processes try_OffUpdatedWithMemory
   370  //go:noescape
   371  func TryOffUpdatedWithMemory(
   372  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   373  	callback js.Ref) (ok js.Ref)
   374  
   375  //go:wasmimport plat/js/webext/processes has_HasOnUpdatedWithMemory
   376  //go:noescape
   377  func HasFuncHasOnUpdatedWithMemory() js.Ref
   378  
   379  //go:wasmimport plat/js/webext/processes func_HasOnUpdatedWithMemory
   380  //go:noescape
   381  func FuncHasOnUpdatedWithMemory(fn unsafe.Pointer)
   382  
   383  //go:wasmimport plat/js/webext/processes call_HasOnUpdatedWithMemory
   384  //go:noescape
   385  func CallHasOnUpdatedWithMemory(
   386  	retPtr unsafe.Pointer,
   387  	callback js.Ref)
   388  
   389  //go:wasmimport plat/js/webext/processes try_HasOnUpdatedWithMemory
   390  //go:noescape
   391  func TryHasOnUpdatedWithMemory(
   392  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   393  	callback js.Ref) (ok js.Ref)
   394  
   395  //go:wasmimport plat/js/webext/processes has_Terminate
   396  //go:noescape
   397  func HasFuncTerminate() js.Ref
   398  
   399  //go:wasmimport plat/js/webext/processes func_Terminate
   400  //go:noescape
   401  func FuncTerminate(fn unsafe.Pointer)
   402  
   403  //go:wasmimport plat/js/webext/processes call_Terminate
   404  //go:noescape
   405  func CallTerminate(
   406  	retPtr unsafe.Pointer,
   407  	processId int32)
   408  
   409  //go:wasmimport plat/js/webext/processes try_Terminate
   410  //go:noescape
   411  func TryTerminate(
   412  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   413  	processId int32) (ok js.Ref)