github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/history/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/history store_DeleteRangeArgRange
    20  //go:noescape
    21  func DeleteRangeArgRangeJSStore(
    22  	ptr unsafe.Pointer, ref js.Ref)
    23  
    24  //go:wasmimport plat/js/webext/history load_DeleteRangeArgRange
    25  //go:noescape
    26  func DeleteRangeArgRangeJSLoad(
    27  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    28  
    29  //go:wasmimport plat/js/webext/history store_HistoryItem
    30  //go:noescape
    31  func HistoryItemJSStore(
    32  	ptr unsafe.Pointer, ref js.Ref)
    33  
    34  //go:wasmimport plat/js/webext/history load_HistoryItem
    35  //go:noescape
    36  func HistoryItemJSLoad(
    37  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    38  
    39  //go:wasmimport plat/js/webext/history store_OnVisitRemovedArgRemoved
    40  //go:noescape
    41  func OnVisitRemovedArgRemovedJSStore(
    42  	ptr unsafe.Pointer, ref js.Ref)
    43  
    44  //go:wasmimport plat/js/webext/history load_OnVisitRemovedArgRemoved
    45  //go:noescape
    46  func OnVisitRemovedArgRemovedJSLoad(
    47  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    48  
    49  //go:wasmimport plat/js/webext/history store_SearchArgQuery
    50  //go:noescape
    51  func SearchArgQueryJSStore(
    52  	ptr unsafe.Pointer, ref js.Ref)
    53  
    54  //go:wasmimport plat/js/webext/history load_SearchArgQuery
    55  //go:noescape
    56  func SearchArgQueryJSLoad(
    57  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    58  
    59  //go:wasmimport plat/js/webext/history constof_TransitionType
    60  //go:noescape
    61  func ConstOfTransitionType(str js.Ref) uint32
    62  
    63  //go:wasmimport plat/js/webext/history store_UrlDetails
    64  //go:noescape
    65  func UrlDetailsJSStore(
    66  	ptr unsafe.Pointer, ref js.Ref)
    67  
    68  //go:wasmimport plat/js/webext/history load_UrlDetails
    69  //go:noescape
    70  func UrlDetailsJSLoad(
    71  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    72  
    73  //go:wasmimport plat/js/webext/history store_VisitItem
    74  //go:noescape
    75  func VisitItemJSStore(
    76  	ptr unsafe.Pointer, ref js.Ref)
    77  
    78  //go:wasmimport plat/js/webext/history load_VisitItem
    79  //go:noescape
    80  func VisitItemJSLoad(
    81  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    82  
    83  //go:wasmimport plat/js/webext/history has_AddUrl
    84  //go:noescape
    85  func HasFuncAddUrl() js.Ref
    86  
    87  //go:wasmimport plat/js/webext/history func_AddUrl
    88  //go:noescape
    89  func FuncAddUrl(fn unsafe.Pointer)
    90  
    91  //go:wasmimport plat/js/webext/history call_AddUrl
    92  //go:noescape
    93  func CallAddUrl(
    94  	retPtr unsafe.Pointer,
    95  	details unsafe.Pointer)
    96  
    97  //go:wasmimport plat/js/webext/history try_AddUrl
    98  //go:noescape
    99  func TryAddUrl(
   100  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   101  	details unsafe.Pointer) (ok js.Ref)
   102  
   103  //go:wasmimport plat/js/webext/history has_DeleteAll
   104  //go:noescape
   105  func HasFuncDeleteAll() js.Ref
   106  
   107  //go:wasmimport plat/js/webext/history func_DeleteAll
   108  //go:noescape
   109  func FuncDeleteAll(fn unsafe.Pointer)
   110  
   111  //go:wasmimport plat/js/webext/history call_DeleteAll
   112  //go:noescape
   113  func CallDeleteAll(
   114  	retPtr unsafe.Pointer)
   115  
   116  //go:wasmimport plat/js/webext/history try_DeleteAll
   117  //go:noescape
   118  func TryDeleteAll(
   119  	retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref)
   120  
   121  //go:wasmimport plat/js/webext/history has_DeleteRange
   122  //go:noescape
   123  func HasFuncDeleteRange() js.Ref
   124  
   125  //go:wasmimport plat/js/webext/history func_DeleteRange
   126  //go:noescape
   127  func FuncDeleteRange(fn unsafe.Pointer)
   128  
   129  //go:wasmimport plat/js/webext/history call_DeleteRange
   130  //go:noescape
   131  func CallDeleteRange(
   132  	retPtr unsafe.Pointer,
   133  	rng unsafe.Pointer)
   134  
   135  //go:wasmimport plat/js/webext/history try_DeleteRange
   136  //go:noescape
   137  func TryDeleteRange(
   138  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   139  	rng unsafe.Pointer) (ok js.Ref)
   140  
   141  //go:wasmimport plat/js/webext/history has_DeleteUrl
   142  //go:noescape
   143  func HasFuncDeleteUrl() js.Ref
   144  
   145  //go:wasmimport plat/js/webext/history func_DeleteUrl
   146  //go:noescape
   147  func FuncDeleteUrl(fn unsafe.Pointer)
   148  
   149  //go:wasmimport plat/js/webext/history call_DeleteUrl
   150  //go:noescape
   151  func CallDeleteUrl(
   152  	retPtr unsafe.Pointer,
   153  	details unsafe.Pointer)
   154  
   155  //go:wasmimport plat/js/webext/history try_DeleteUrl
   156  //go:noescape
   157  func TryDeleteUrl(
   158  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   159  	details unsafe.Pointer) (ok js.Ref)
   160  
   161  //go:wasmimport plat/js/webext/history has_GetVisits
   162  //go:noescape
   163  func HasFuncGetVisits() js.Ref
   164  
   165  //go:wasmimport plat/js/webext/history func_GetVisits
   166  //go:noescape
   167  func FuncGetVisits(fn unsafe.Pointer)
   168  
   169  //go:wasmimport plat/js/webext/history call_GetVisits
   170  //go:noescape
   171  func CallGetVisits(
   172  	retPtr unsafe.Pointer,
   173  	details unsafe.Pointer)
   174  
   175  //go:wasmimport plat/js/webext/history try_GetVisits
   176  //go:noescape
   177  func TryGetVisits(
   178  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   179  	details unsafe.Pointer) (ok js.Ref)
   180  
   181  //go:wasmimport plat/js/webext/history has_OnVisitRemoved
   182  //go:noescape
   183  func HasFuncOnVisitRemoved() js.Ref
   184  
   185  //go:wasmimport plat/js/webext/history func_OnVisitRemoved
   186  //go:noescape
   187  func FuncOnVisitRemoved(fn unsafe.Pointer)
   188  
   189  //go:wasmimport plat/js/webext/history call_OnVisitRemoved
   190  //go:noescape
   191  func CallOnVisitRemoved(
   192  	retPtr unsafe.Pointer,
   193  	callback js.Ref)
   194  
   195  //go:wasmimport plat/js/webext/history try_OnVisitRemoved
   196  //go:noescape
   197  func TryOnVisitRemoved(
   198  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   199  	callback js.Ref) (ok js.Ref)
   200  
   201  //go:wasmimport plat/js/webext/history has_OffVisitRemoved
   202  //go:noescape
   203  func HasFuncOffVisitRemoved() js.Ref
   204  
   205  //go:wasmimport plat/js/webext/history func_OffVisitRemoved
   206  //go:noescape
   207  func FuncOffVisitRemoved(fn unsafe.Pointer)
   208  
   209  //go:wasmimport plat/js/webext/history call_OffVisitRemoved
   210  //go:noescape
   211  func CallOffVisitRemoved(
   212  	retPtr unsafe.Pointer,
   213  	callback js.Ref)
   214  
   215  //go:wasmimport plat/js/webext/history try_OffVisitRemoved
   216  //go:noescape
   217  func TryOffVisitRemoved(
   218  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   219  	callback js.Ref) (ok js.Ref)
   220  
   221  //go:wasmimport plat/js/webext/history has_HasOnVisitRemoved
   222  //go:noescape
   223  func HasFuncHasOnVisitRemoved() js.Ref
   224  
   225  //go:wasmimport plat/js/webext/history func_HasOnVisitRemoved
   226  //go:noescape
   227  func FuncHasOnVisitRemoved(fn unsafe.Pointer)
   228  
   229  //go:wasmimport plat/js/webext/history call_HasOnVisitRemoved
   230  //go:noescape
   231  func CallHasOnVisitRemoved(
   232  	retPtr unsafe.Pointer,
   233  	callback js.Ref)
   234  
   235  //go:wasmimport plat/js/webext/history try_HasOnVisitRemoved
   236  //go:noescape
   237  func TryHasOnVisitRemoved(
   238  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   239  	callback js.Ref) (ok js.Ref)
   240  
   241  //go:wasmimport plat/js/webext/history has_OnVisited
   242  //go:noescape
   243  func HasFuncOnVisited() js.Ref
   244  
   245  //go:wasmimport plat/js/webext/history func_OnVisited
   246  //go:noescape
   247  func FuncOnVisited(fn unsafe.Pointer)
   248  
   249  //go:wasmimport plat/js/webext/history call_OnVisited
   250  //go:noescape
   251  func CallOnVisited(
   252  	retPtr unsafe.Pointer,
   253  	callback js.Ref)
   254  
   255  //go:wasmimport plat/js/webext/history try_OnVisited
   256  //go:noescape
   257  func TryOnVisited(
   258  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   259  	callback js.Ref) (ok js.Ref)
   260  
   261  //go:wasmimport plat/js/webext/history has_OffVisited
   262  //go:noescape
   263  func HasFuncOffVisited() js.Ref
   264  
   265  //go:wasmimport plat/js/webext/history func_OffVisited
   266  //go:noescape
   267  func FuncOffVisited(fn unsafe.Pointer)
   268  
   269  //go:wasmimport plat/js/webext/history call_OffVisited
   270  //go:noescape
   271  func CallOffVisited(
   272  	retPtr unsafe.Pointer,
   273  	callback js.Ref)
   274  
   275  //go:wasmimport plat/js/webext/history try_OffVisited
   276  //go:noescape
   277  func TryOffVisited(
   278  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   279  	callback js.Ref) (ok js.Ref)
   280  
   281  //go:wasmimport plat/js/webext/history has_HasOnVisited
   282  //go:noescape
   283  func HasFuncHasOnVisited() js.Ref
   284  
   285  //go:wasmimport plat/js/webext/history func_HasOnVisited
   286  //go:noescape
   287  func FuncHasOnVisited(fn unsafe.Pointer)
   288  
   289  //go:wasmimport plat/js/webext/history call_HasOnVisited
   290  //go:noescape
   291  func CallHasOnVisited(
   292  	retPtr unsafe.Pointer,
   293  	callback js.Ref)
   294  
   295  //go:wasmimport plat/js/webext/history try_HasOnVisited
   296  //go:noescape
   297  func TryHasOnVisited(
   298  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   299  	callback js.Ref) (ok js.Ref)
   300  
   301  //go:wasmimport plat/js/webext/history has_Search
   302  //go:noescape
   303  func HasFuncSearch() js.Ref
   304  
   305  //go:wasmimport plat/js/webext/history func_Search
   306  //go:noescape
   307  func FuncSearch(fn unsafe.Pointer)
   308  
   309  //go:wasmimport plat/js/webext/history call_Search
   310  //go:noescape
   311  func CallSearch(
   312  	retPtr unsafe.Pointer,
   313  	query unsafe.Pointer)
   314  
   315  //go:wasmimport plat/js/webext/history try_Search
   316  //go:noescape
   317  func TrySearch(
   318  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   319  	query unsafe.Pointer) (ok js.Ref)