github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/filesystemproviderinternal/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/filesystemproviderinternal has_GetActionsRequestedSuccess
    20  //go:noescape
    21  func HasFuncGetActionsRequestedSuccess() js.Ref
    22  
    23  //go:wasmimport plat/js/webext/filesystemproviderinternal func_GetActionsRequestedSuccess
    24  //go:noescape
    25  func FuncGetActionsRequestedSuccess(fn unsafe.Pointer)
    26  
    27  //go:wasmimport plat/js/webext/filesystemproviderinternal call_GetActionsRequestedSuccess
    28  //go:noescape
    29  func CallGetActionsRequestedSuccess(
    30  	retPtr unsafe.Pointer,
    31  	fileSystemId js.Ref,
    32  	requestId int32,
    33  	actions js.Ref,
    34  	executionTime int32)
    35  
    36  //go:wasmimport plat/js/webext/filesystemproviderinternal try_GetActionsRequestedSuccess
    37  //go:noescape
    38  func TryGetActionsRequestedSuccess(
    39  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
    40  	fileSystemId js.Ref,
    41  	requestId int32,
    42  	actions js.Ref,
    43  	executionTime int32) (ok js.Ref)
    44  
    45  //go:wasmimport plat/js/webext/filesystemproviderinternal has_GetMetadataRequestedSuccess
    46  //go:noescape
    47  func HasFuncGetMetadataRequestedSuccess() js.Ref
    48  
    49  //go:wasmimport plat/js/webext/filesystemproviderinternal func_GetMetadataRequestedSuccess
    50  //go:noescape
    51  func FuncGetMetadataRequestedSuccess(fn unsafe.Pointer)
    52  
    53  //go:wasmimport plat/js/webext/filesystemproviderinternal call_GetMetadataRequestedSuccess
    54  //go:noescape
    55  func CallGetMetadataRequestedSuccess(
    56  	retPtr unsafe.Pointer,
    57  	fileSystemId js.Ref,
    58  	requestId int32,
    59  	metadata unsafe.Pointer,
    60  	executionTime int32)
    61  
    62  //go:wasmimport plat/js/webext/filesystemproviderinternal try_GetMetadataRequestedSuccess
    63  //go:noescape
    64  func TryGetMetadataRequestedSuccess(
    65  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
    66  	fileSystemId js.Ref,
    67  	requestId int32,
    68  	metadata unsafe.Pointer,
    69  	executionTime int32) (ok js.Ref)
    70  
    71  //go:wasmimport plat/js/webext/filesystemproviderinternal has_OperationRequestedError
    72  //go:noescape
    73  func HasFuncOperationRequestedError() js.Ref
    74  
    75  //go:wasmimport plat/js/webext/filesystemproviderinternal func_OperationRequestedError
    76  //go:noescape
    77  func FuncOperationRequestedError(fn unsafe.Pointer)
    78  
    79  //go:wasmimport plat/js/webext/filesystemproviderinternal call_OperationRequestedError
    80  //go:noescape
    81  func CallOperationRequestedError(
    82  	retPtr unsafe.Pointer,
    83  	fileSystemId js.Ref,
    84  	requestId int32,
    85  	err uint32,
    86  	executionTime int32)
    87  
    88  //go:wasmimport plat/js/webext/filesystemproviderinternal try_OperationRequestedError
    89  //go:noescape
    90  func TryOperationRequestedError(
    91  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
    92  	fileSystemId js.Ref,
    93  	requestId int32,
    94  	err uint32,
    95  	executionTime int32) (ok js.Ref)
    96  
    97  //go:wasmimport plat/js/webext/filesystemproviderinternal has_OperationRequestedSuccess
    98  //go:noescape
    99  func HasFuncOperationRequestedSuccess() js.Ref
   100  
   101  //go:wasmimport plat/js/webext/filesystemproviderinternal func_OperationRequestedSuccess
   102  //go:noescape
   103  func FuncOperationRequestedSuccess(fn unsafe.Pointer)
   104  
   105  //go:wasmimport plat/js/webext/filesystemproviderinternal call_OperationRequestedSuccess
   106  //go:noescape
   107  func CallOperationRequestedSuccess(
   108  	retPtr unsafe.Pointer,
   109  	fileSystemId js.Ref,
   110  	requestId int32,
   111  	executionTime int32)
   112  
   113  //go:wasmimport plat/js/webext/filesystemproviderinternal try_OperationRequestedSuccess
   114  //go:noescape
   115  func TryOperationRequestedSuccess(
   116  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   117  	fileSystemId js.Ref,
   118  	requestId int32,
   119  	executionTime int32) (ok js.Ref)
   120  
   121  //go:wasmimport plat/js/webext/filesystemproviderinternal has_ReadDirectoryRequestedSuccess
   122  //go:noescape
   123  func HasFuncReadDirectoryRequestedSuccess() js.Ref
   124  
   125  //go:wasmimport plat/js/webext/filesystemproviderinternal func_ReadDirectoryRequestedSuccess
   126  //go:noescape
   127  func FuncReadDirectoryRequestedSuccess(fn unsafe.Pointer)
   128  
   129  //go:wasmimport plat/js/webext/filesystemproviderinternal call_ReadDirectoryRequestedSuccess
   130  //go:noescape
   131  func CallReadDirectoryRequestedSuccess(
   132  	retPtr unsafe.Pointer,
   133  	fileSystemId js.Ref,
   134  	requestId int32,
   135  	entries js.Ref,
   136  	hasMore js.Ref,
   137  	executionTime int32)
   138  
   139  //go:wasmimport plat/js/webext/filesystemproviderinternal try_ReadDirectoryRequestedSuccess
   140  //go:noescape
   141  func TryReadDirectoryRequestedSuccess(
   142  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   143  	fileSystemId js.Ref,
   144  	requestId int32,
   145  	entries js.Ref,
   146  	hasMore js.Ref,
   147  	executionTime int32) (ok js.Ref)
   148  
   149  //go:wasmimport plat/js/webext/filesystemproviderinternal has_ReadFileRequestedSuccess
   150  //go:noescape
   151  func HasFuncReadFileRequestedSuccess() js.Ref
   152  
   153  //go:wasmimport plat/js/webext/filesystemproviderinternal func_ReadFileRequestedSuccess
   154  //go:noescape
   155  func FuncReadFileRequestedSuccess(fn unsafe.Pointer)
   156  
   157  //go:wasmimport plat/js/webext/filesystemproviderinternal call_ReadFileRequestedSuccess
   158  //go:noescape
   159  func CallReadFileRequestedSuccess(
   160  	retPtr unsafe.Pointer,
   161  	fileSystemId js.Ref,
   162  	requestId int32,
   163  	data js.Ref,
   164  	hasMore js.Ref,
   165  	executionTime int32)
   166  
   167  //go:wasmimport plat/js/webext/filesystemproviderinternal try_ReadFileRequestedSuccess
   168  //go:noescape
   169  func TryReadFileRequestedSuccess(
   170  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   171  	fileSystemId js.Ref,
   172  	requestId int32,
   173  	data js.Ref,
   174  	hasMore js.Ref,
   175  	executionTime int32) (ok js.Ref)
   176  
   177  //go:wasmimport plat/js/webext/filesystemproviderinternal has_RespondToMountRequest
   178  //go:noescape
   179  func HasFuncRespondToMountRequest() js.Ref
   180  
   181  //go:wasmimport plat/js/webext/filesystemproviderinternal func_RespondToMountRequest
   182  //go:noescape
   183  func FuncRespondToMountRequest(fn unsafe.Pointer)
   184  
   185  //go:wasmimport plat/js/webext/filesystemproviderinternal call_RespondToMountRequest
   186  //go:noescape
   187  func CallRespondToMountRequest(
   188  	retPtr unsafe.Pointer,
   189  	requestId int32,
   190  	err uint32,
   191  	executionTime int32)
   192  
   193  //go:wasmimport plat/js/webext/filesystemproviderinternal try_RespondToMountRequest
   194  //go:noescape
   195  func TryRespondToMountRequest(
   196  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   197  	requestId int32,
   198  	err uint32,
   199  	executionTime int32) (ok js.Ref)
   200  
   201  //go:wasmimport plat/js/webext/filesystemproviderinternal has_UnmountRequestedSuccess
   202  //go:noescape
   203  func HasFuncUnmountRequestedSuccess() js.Ref
   204  
   205  //go:wasmimport plat/js/webext/filesystemproviderinternal func_UnmountRequestedSuccess
   206  //go:noescape
   207  func FuncUnmountRequestedSuccess(fn unsafe.Pointer)
   208  
   209  //go:wasmimport plat/js/webext/filesystemproviderinternal call_UnmountRequestedSuccess
   210  //go:noescape
   211  func CallUnmountRequestedSuccess(
   212  	retPtr unsafe.Pointer,
   213  	fileSystemId js.Ref,
   214  	requestId int32,
   215  	executionTime int32)
   216  
   217  //go:wasmimport plat/js/webext/filesystemproviderinternal try_UnmountRequestedSuccess
   218  //go:noescape
   219  func TryUnmountRequestedSuccess(
   220  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   221  	fileSystemId js.Ref,
   222  	requestId int32,
   223  	executionTime int32) (ok js.Ref)