github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/lockscreen/data/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/lockscreen/data store_DataItemInfo
    20  //go:noescape
    21  func DataItemInfoJSStore(
    22  	ptr unsafe.Pointer, ref js.Ref)
    23  
    24  //go:wasmimport plat/js/webext/lockscreen/data load_DataItemInfo
    25  //go:noescape
    26  func DataItemInfoJSLoad(
    27  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    28  
    29  //go:wasmimport plat/js/webext/lockscreen/data store_DataItemsAvailableEvent
    30  //go:noescape
    31  func DataItemsAvailableEventJSStore(
    32  	ptr unsafe.Pointer, ref js.Ref)
    33  
    34  //go:wasmimport plat/js/webext/lockscreen/data load_DataItemsAvailableEvent
    35  //go:noescape
    36  func DataItemsAvailableEventJSLoad(
    37  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    38  
    39  //go:wasmimport plat/js/webext/lockscreen/data has_Create
    40  //go:noescape
    41  func HasFuncCreate() js.Ref
    42  
    43  //go:wasmimport plat/js/webext/lockscreen/data func_Create
    44  //go:noescape
    45  func FuncCreate(fn unsafe.Pointer)
    46  
    47  //go:wasmimport plat/js/webext/lockscreen/data call_Create
    48  //go:noescape
    49  func CallCreate(
    50  	retPtr unsafe.Pointer)
    51  
    52  //go:wasmimport plat/js/webext/lockscreen/data try_Create
    53  //go:noescape
    54  func TryCreate(
    55  	retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref)
    56  
    57  //go:wasmimport plat/js/webext/lockscreen/data has_Delete
    58  //go:noescape
    59  func HasFuncDelete() js.Ref
    60  
    61  //go:wasmimport plat/js/webext/lockscreen/data func_Delete
    62  //go:noescape
    63  func FuncDelete(fn unsafe.Pointer)
    64  
    65  //go:wasmimport plat/js/webext/lockscreen/data call_Delete
    66  //go:noescape
    67  func CallDelete(
    68  	retPtr unsafe.Pointer,
    69  	id js.Ref)
    70  
    71  //go:wasmimport plat/js/webext/lockscreen/data try_Delete
    72  //go:noescape
    73  func TryDelete(
    74  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
    75  	id js.Ref) (ok js.Ref)
    76  
    77  //go:wasmimport plat/js/webext/lockscreen/data has_GetAll
    78  //go:noescape
    79  func HasFuncGetAll() js.Ref
    80  
    81  //go:wasmimport plat/js/webext/lockscreen/data func_GetAll
    82  //go:noescape
    83  func FuncGetAll(fn unsafe.Pointer)
    84  
    85  //go:wasmimport plat/js/webext/lockscreen/data call_GetAll
    86  //go:noescape
    87  func CallGetAll(
    88  	retPtr unsafe.Pointer)
    89  
    90  //go:wasmimport plat/js/webext/lockscreen/data try_GetAll
    91  //go:noescape
    92  func TryGetAll(
    93  	retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref)
    94  
    95  //go:wasmimport plat/js/webext/lockscreen/data has_GetContent
    96  //go:noescape
    97  func HasFuncGetContent() js.Ref
    98  
    99  //go:wasmimport plat/js/webext/lockscreen/data func_GetContent
   100  //go:noescape
   101  func FuncGetContent(fn unsafe.Pointer)
   102  
   103  //go:wasmimport plat/js/webext/lockscreen/data call_GetContent
   104  //go:noescape
   105  func CallGetContent(
   106  	retPtr unsafe.Pointer,
   107  	id js.Ref)
   108  
   109  //go:wasmimport plat/js/webext/lockscreen/data try_GetContent
   110  //go:noescape
   111  func TryGetContent(
   112  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   113  	id js.Ref) (ok js.Ref)
   114  
   115  //go:wasmimport plat/js/webext/lockscreen/data has_OnDataItemsAvailable
   116  //go:noescape
   117  func HasFuncOnDataItemsAvailable() js.Ref
   118  
   119  //go:wasmimport plat/js/webext/lockscreen/data func_OnDataItemsAvailable
   120  //go:noescape
   121  func FuncOnDataItemsAvailable(fn unsafe.Pointer)
   122  
   123  //go:wasmimport plat/js/webext/lockscreen/data call_OnDataItemsAvailable
   124  //go:noescape
   125  func CallOnDataItemsAvailable(
   126  	retPtr unsafe.Pointer,
   127  	callback js.Ref)
   128  
   129  //go:wasmimport plat/js/webext/lockscreen/data try_OnDataItemsAvailable
   130  //go:noescape
   131  func TryOnDataItemsAvailable(
   132  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   133  	callback js.Ref) (ok js.Ref)
   134  
   135  //go:wasmimport plat/js/webext/lockscreen/data has_OffDataItemsAvailable
   136  //go:noescape
   137  func HasFuncOffDataItemsAvailable() js.Ref
   138  
   139  //go:wasmimport plat/js/webext/lockscreen/data func_OffDataItemsAvailable
   140  //go:noescape
   141  func FuncOffDataItemsAvailable(fn unsafe.Pointer)
   142  
   143  //go:wasmimport plat/js/webext/lockscreen/data call_OffDataItemsAvailable
   144  //go:noescape
   145  func CallOffDataItemsAvailable(
   146  	retPtr unsafe.Pointer,
   147  	callback js.Ref)
   148  
   149  //go:wasmimport plat/js/webext/lockscreen/data try_OffDataItemsAvailable
   150  //go:noescape
   151  func TryOffDataItemsAvailable(
   152  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   153  	callback js.Ref) (ok js.Ref)
   154  
   155  //go:wasmimport plat/js/webext/lockscreen/data has_HasOnDataItemsAvailable
   156  //go:noescape
   157  func HasFuncHasOnDataItemsAvailable() js.Ref
   158  
   159  //go:wasmimport plat/js/webext/lockscreen/data func_HasOnDataItemsAvailable
   160  //go:noescape
   161  func FuncHasOnDataItemsAvailable(fn unsafe.Pointer)
   162  
   163  //go:wasmimport plat/js/webext/lockscreen/data call_HasOnDataItemsAvailable
   164  //go:noescape
   165  func CallHasOnDataItemsAvailable(
   166  	retPtr unsafe.Pointer,
   167  	callback js.Ref)
   168  
   169  //go:wasmimport plat/js/webext/lockscreen/data try_HasOnDataItemsAvailable
   170  //go:noescape
   171  func TryHasOnDataItemsAvailable(
   172  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   173  	callback js.Ref) (ok js.Ref)
   174  
   175  //go:wasmimport plat/js/webext/lockscreen/data has_SetContent
   176  //go:noescape
   177  func HasFuncSetContent() js.Ref
   178  
   179  //go:wasmimport plat/js/webext/lockscreen/data func_SetContent
   180  //go:noescape
   181  func FuncSetContent(fn unsafe.Pointer)
   182  
   183  //go:wasmimport plat/js/webext/lockscreen/data call_SetContent
   184  //go:noescape
   185  func CallSetContent(
   186  	retPtr unsafe.Pointer,
   187  	id js.Ref,
   188  	data js.Ref)
   189  
   190  //go:wasmimport plat/js/webext/lockscreen/data try_SetContent
   191  //go:noescape
   192  func TrySetContent(
   193  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   194  	id js.Ref,
   195  	data js.Ref) (ok js.Ref)