github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/webrtcloggingprivate/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/webrtcloggingprivate store_MetaDataEntry
    20  //go:noescape
    21  func MetaDataEntryJSStore(
    22  	ptr unsafe.Pointer, ref js.Ref)
    23  
    24  //go:wasmimport plat/js/webext/webrtcloggingprivate load_MetaDataEntry
    25  //go:noescape
    26  func MetaDataEntryJSLoad(
    27  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    28  
    29  //go:wasmimport plat/js/webext/webrtcloggingprivate store_RecordingInfo
    30  //go:noescape
    31  func RecordingInfoJSStore(
    32  	ptr unsafe.Pointer, ref js.Ref)
    33  
    34  //go:wasmimport plat/js/webext/webrtcloggingprivate load_RecordingInfo
    35  //go:noescape
    36  func RecordingInfoJSLoad(
    37  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    38  
    39  //go:wasmimport plat/js/webext/webrtcloggingprivate store_RequestInfo
    40  //go:noescape
    41  func RequestInfoJSStore(
    42  	ptr unsafe.Pointer, ref js.Ref)
    43  
    44  //go:wasmimport plat/js/webext/webrtcloggingprivate load_RequestInfo
    45  //go:noescape
    46  func RequestInfoJSLoad(
    47  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    48  
    49  //go:wasmimport plat/js/webext/webrtcloggingprivate store_StartEventLoggingResult
    50  //go:noescape
    51  func StartEventLoggingResultJSStore(
    52  	ptr unsafe.Pointer, ref js.Ref)
    53  
    54  //go:wasmimport plat/js/webext/webrtcloggingprivate load_StartEventLoggingResult
    55  //go:noescape
    56  func StartEventLoggingResultJSLoad(
    57  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    58  
    59  //go:wasmimport plat/js/webext/webrtcloggingprivate store_UploadResult
    60  //go:noescape
    61  func UploadResultJSStore(
    62  	ptr unsafe.Pointer, ref js.Ref)
    63  
    64  //go:wasmimport plat/js/webext/webrtcloggingprivate load_UploadResult
    65  //go:noescape
    66  func UploadResultJSLoad(
    67  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    68  
    69  //go:wasmimport plat/js/webext/webrtcloggingprivate has_Discard
    70  //go:noescape
    71  func HasFuncDiscard() js.Ref
    72  
    73  //go:wasmimport plat/js/webext/webrtcloggingprivate func_Discard
    74  //go:noescape
    75  func FuncDiscard(fn unsafe.Pointer)
    76  
    77  //go:wasmimport plat/js/webext/webrtcloggingprivate call_Discard
    78  //go:noescape
    79  func CallDiscard(
    80  	retPtr unsafe.Pointer,
    81  	request unsafe.Pointer,
    82  	securityOrigin js.Ref,
    83  	callback js.Ref)
    84  
    85  //go:wasmimport plat/js/webext/webrtcloggingprivate try_Discard
    86  //go:noescape
    87  func TryDiscard(
    88  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
    89  	request unsafe.Pointer,
    90  	securityOrigin js.Ref,
    91  	callback js.Ref) (ok js.Ref)
    92  
    93  //go:wasmimport plat/js/webext/webrtcloggingprivate has_GetLogsDirectory
    94  //go:noescape
    95  func HasFuncGetLogsDirectory() js.Ref
    96  
    97  //go:wasmimport plat/js/webext/webrtcloggingprivate func_GetLogsDirectory
    98  //go:noescape
    99  func FuncGetLogsDirectory(fn unsafe.Pointer)
   100  
   101  //go:wasmimport plat/js/webext/webrtcloggingprivate call_GetLogsDirectory
   102  //go:noescape
   103  func CallGetLogsDirectory(
   104  	retPtr unsafe.Pointer,
   105  	callback js.Ref)
   106  
   107  //go:wasmimport plat/js/webext/webrtcloggingprivate try_GetLogsDirectory
   108  //go:noescape
   109  func TryGetLogsDirectory(
   110  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   111  	callback js.Ref) (ok js.Ref)
   112  
   113  //go:wasmimport plat/js/webext/webrtcloggingprivate has_SetMetaData
   114  //go:noescape
   115  func HasFuncSetMetaData() js.Ref
   116  
   117  //go:wasmimport plat/js/webext/webrtcloggingprivate func_SetMetaData
   118  //go:noescape
   119  func FuncSetMetaData(fn unsafe.Pointer)
   120  
   121  //go:wasmimport plat/js/webext/webrtcloggingprivate call_SetMetaData
   122  //go:noescape
   123  func CallSetMetaData(
   124  	retPtr unsafe.Pointer,
   125  	request unsafe.Pointer,
   126  	securityOrigin js.Ref,
   127  	metaData js.Ref,
   128  	callback js.Ref)
   129  
   130  //go:wasmimport plat/js/webext/webrtcloggingprivate try_SetMetaData
   131  //go:noescape
   132  func TrySetMetaData(
   133  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   134  	request unsafe.Pointer,
   135  	securityOrigin js.Ref,
   136  	metaData js.Ref,
   137  	callback js.Ref) (ok js.Ref)
   138  
   139  //go:wasmimport plat/js/webext/webrtcloggingprivate has_SetUploadOnRenderClose
   140  //go:noescape
   141  func HasFuncSetUploadOnRenderClose() js.Ref
   142  
   143  //go:wasmimport plat/js/webext/webrtcloggingprivate func_SetUploadOnRenderClose
   144  //go:noescape
   145  func FuncSetUploadOnRenderClose(fn unsafe.Pointer)
   146  
   147  //go:wasmimport plat/js/webext/webrtcloggingprivate call_SetUploadOnRenderClose
   148  //go:noescape
   149  func CallSetUploadOnRenderClose(
   150  	retPtr unsafe.Pointer,
   151  	request unsafe.Pointer,
   152  	securityOrigin js.Ref,
   153  	shouldUpload js.Ref)
   154  
   155  //go:wasmimport plat/js/webext/webrtcloggingprivate try_SetUploadOnRenderClose
   156  //go:noescape
   157  func TrySetUploadOnRenderClose(
   158  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   159  	request unsafe.Pointer,
   160  	securityOrigin js.Ref,
   161  	shouldUpload js.Ref) (ok js.Ref)
   162  
   163  //go:wasmimport plat/js/webext/webrtcloggingprivate has_Start
   164  //go:noescape
   165  func HasFuncStart() js.Ref
   166  
   167  //go:wasmimport plat/js/webext/webrtcloggingprivate func_Start
   168  //go:noescape
   169  func FuncStart(fn unsafe.Pointer)
   170  
   171  //go:wasmimport plat/js/webext/webrtcloggingprivate call_Start
   172  //go:noescape
   173  func CallStart(
   174  	retPtr unsafe.Pointer,
   175  	request unsafe.Pointer,
   176  	securityOrigin js.Ref,
   177  	callback js.Ref)
   178  
   179  //go:wasmimport plat/js/webext/webrtcloggingprivate try_Start
   180  //go:noescape
   181  func TryStart(
   182  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   183  	request unsafe.Pointer,
   184  	securityOrigin js.Ref,
   185  	callback js.Ref) (ok js.Ref)
   186  
   187  //go:wasmimport plat/js/webext/webrtcloggingprivate has_StartAudioDebugRecordings
   188  //go:noescape
   189  func HasFuncStartAudioDebugRecordings() js.Ref
   190  
   191  //go:wasmimport plat/js/webext/webrtcloggingprivate func_StartAudioDebugRecordings
   192  //go:noescape
   193  func FuncStartAudioDebugRecordings(fn unsafe.Pointer)
   194  
   195  //go:wasmimport plat/js/webext/webrtcloggingprivate call_StartAudioDebugRecordings
   196  //go:noescape
   197  func CallStartAudioDebugRecordings(
   198  	retPtr unsafe.Pointer,
   199  	request unsafe.Pointer,
   200  	securityOrigin js.Ref,
   201  	seconds int32,
   202  	callback js.Ref)
   203  
   204  //go:wasmimport plat/js/webext/webrtcloggingprivate try_StartAudioDebugRecordings
   205  //go:noescape
   206  func TryStartAudioDebugRecordings(
   207  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   208  	request unsafe.Pointer,
   209  	securityOrigin js.Ref,
   210  	seconds int32,
   211  	callback js.Ref) (ok js.Ref)
   212  
   213  //go:wasmimport plat/js/webext/webrtcloggingprivate has_StartEventLogging
   214  //go:noescape
   215  func HasFuncStartEventLogging() js.Ref
   216  
   217  //go:wasmimport plat/js/webext/webrtcloggingprivate func_StartEventLogging
   218  //go:noescape
   219  func FuncStartEventLogging(fn unsafe.Pointer)
   220  
   221  //go:wasmimport plat/js/webext/webrtcloggingprivate call_StartEventLogging
   222  //go:noescape
   223  func CallStartEventLogging(
   224  	retPtr unsafe.Pointer,
   225  	request unsafe.Pointer,
   226  	securityOrigin js.Ref,
   227  	sessionId js.Ref,
   228  	maxLogSizeBytes int32,
   229  	outputPeriodMs int32,
   230  	webAppId int32,
   231  	callback js.Ref)
   232  
   233  //go:wasmimport plat/js/webext/webrtcloggingprivate try_StartEventLogging
   234  //go:noescape
   235  func TryStartEventLogging(
   236  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   237  	request unsafe.Pointer,
   238  	securityOrigin js.Ref,
   239  	sessionId js.Ref,
   240  	maxLogSizeBytes int32,
   241  	outputPeriodMs int32,
   242  	webAppId int32,
   243  	callback js.Ref) (ok js.Ref)
   244  
   245  //go:wasmimport plat/js/webext/webrtcloggingprivate has_StartRtpDump
   246  //go:noescape
   247  func HasFuncStartRtpDump() js.Ref
   248  
   249  //go:wasmimport plat/js/webext/webrtcloggingprivate func_StartRtpDump
   250  //go:noescape
   251  func FuncStartRtpDump(fn unsafe.Pointer)
   252  
   253  //go:wasmimport plat/js/webext/webrtcloggingprivate call_StartRtpDump
   254  //go:noescape
   255  func CallStartRtpDump(
   256  	retPtr unsafe.Pointer,
   257  	request unsafe.Pointer,
   258  	securityOrigin js.Ref,
   259  	incoming js.Ref,
   260  	outgoing js.Ref,
   261  	callback js.Ref)
   262  
   263  //go:wasmimport plat/js/webext/webrtcloggingprivate try_StartRtpDump
   264  //go:noescape
   265  func TryStartRtpDump(
   266  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   267  	request unsafe.Pointer,
   268  	securityOrigin js.Ref,
   269  	incoming js.Ref,
   270  	outgoing js.Ref,
   271  	callback js.Ref) (ok js.Ref)
   272  
   273  //go:wasmimport plat/js/webext/webrtcloggingprivate has_Stop
   274  //go:noescape
   275  func HasFuncStop() js.Ref
   276  
   277  //go:wasmimport plat/js/webext/webrtcloggingprivate func_Stop
   278  //go:noescape
   279  func FuncStop(fn unsafe.Pointer)
   280  
   281  //go:wasmimport plat/js/webext/webrtcloggingprivate call_Stop
   282  //go:noescape
   283  func CallStop(
   284  	retPtr unsafe.Pointer,
   285  	request unsafe.Pointer,
   286  	securityOrigin js.Ref,
   287  	callback js.Ref)
   288  
   289  //go:wasmimport plat/js/webext/webrtcloggingprivate try_Stop
   290  //go:noescape
   291  func TryStop(
   292  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   293  	request unsafe.Pointer,
   294  	securityOrigin js.Ref,
   295  	callback js.Ref) (ok js.Ref)
   296  
   297  //go:wasmimport plat/js/webext/webrtcloggingprivate has_StopAudioDebugRecordings
   298  //go:noescape
   299  func HasFuncStopAudioDebugRecordings() js.Ref
   300  
   301  //go:wasmimport plat/js/webext/webrtcloggingprivate func_StopAudioDebugRecordings
   302  //go:noescape
   303  func FuncStopAudioDebugRecordings(fn unsafe.Pointer)
   304  
   305  //go:wasmimport plat/js/webext/webrtcloggingprivate call_StopAudioDebugRecordings
   306  //go:noescape
   307  func CallStopAudioDebugRecordings(
   308  	retPtr unsafe.Pointer,
   309  	request unsafe.Pointer,
   310  	securityOrigin js.Ref,
   311  	callback js.Ref)
   312  
   313  //go:wasmimport plat/js/webext/webrtcloggingprivate try_StopAudioDebugRecordings
   314  //go:noescape
   315  func TryStopAudioDebugRecordings(
   316  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   317  	request unsafe.Pointer,
   318  	securityOrigin js.Ref,
   319  	callback js.Ref) (ok js.Ref)
   320  
   321  //go:wasmimport plat/js/webext/webrtcloggingprivate has_StopRtpDump
   322  //go:noescape
   323  func HasFuncStopRtpDump() js.Ref
   324  
   325  //go:wasmimport plat/js/webext/webrtcloggingprivate func_StopRtpDump
   326  //go:noescape
   327  func FuncStopRtpDump(fn unsafe.Pointer)
   328  
   329  //go:wasmimport plat/js/webext/webrtcloggingprivate call_StopRtpDump
   330  //go:noescape
   331  func CallStopRtpDump(
   332  	retPtr unsafe.Pointer,
   333  	request unsafe.Pointer,
   334  	securityOrigin js.Ref,
   335  	incoming js.Ref,
   336  	outgoing js.Ref,
   337  	callback js.Ref)
   338  
   339  //go:wasmimport plat/js/webext/webrtcloggingprivate try_StopRtpDump
   340  //go:noescape
   341  func TryStopRtpDump(
   342  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   343  	request unsafe.Pointer,
   344  	securityOrigin js.Ref,
   345  	incoming js.Ref,
   346  	outgoing js.Ref,
   347  	callback js.Ref) (ok js.Ref)
   348  
   349  //go:wasmimport plat/js/webext/webrtcloggingprivate has_Store
   350  //go:noescape
   351  func HasFuncStore() js.Ref
   352  
   353  //go:wasmimport plat/js/webext/webrtcloggingprivate func_Store
   354  //go:noescape
   355  func FuncStore(fn unsafe.Pointer)
   356  
   357  //go:wasmimport plat/js/webext/webrtcloggingprivate call_Store
   358  //go:noescape
   359  func CallStore(
   360  	retPtr unsafe.Pointer,
   361  	request unsafe.Pointer,
   362  	securityOrigin js.Ref,
   363  	logId js.Ref,
   364  	callback js.Ref)
   365  
   366  //go:wasmimport plat/js/webext/webrtcloggingprivate try_Store
   367  //go:noescape
   368  func TryStore(
   369  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   370  	request unsafe.Pointer,
   371  	securityOrigin js.Ref,
   372  	logId js.Ref,
   373  	callback js.Ref) (ok js.Ref)
   374  
   375  //go:wasmimport plat/js/webext/webrtcloggingprivate has_Upload
   376  //go:noescape
   377  func HasFuncUpload() js.Ref
   378  
   379  //go:wasmimport plat/js/webext/webrtcloggingprivate func_Upload
   380  //go:noescape
   381  func FuncUpload(fn unsafe.Pointer)
   382  
   383  //go:wasmimport plat/js/webext/webrtcloggingprivate call_Upload
   384  //go:noescape
   385  func CallUpload(
   386  	retPtr unsafe.Pointer,
   387  	request unsafe.Pointer,
   388  	securityOrigin js.Ref,
   389  	callback js.Ref)
   390  
   391  //go:wasmimport plat/js/webext/webrtcloggingprivate try_Upload
   392  //go:noescape
   393  func TryUpload(
   394  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   395  	request unsafe.Pointer,
   396  	securityOrigin js.Ref,
   397  	callback js.Ref) (ok js.Ref)
   398  
   399  //go:wasmimport plat/js/webext/webrtcloggingprivate has_UploadStored
   400  //go:noescape
   401  func HasFuncUploadStored() js.Ref
   402  
   403  //go:wasmimport plat/js/webext/webrtcloggingprivate func_UploadStored
   404  //go:noescape
   405  func FuncUploadStored(fn unsafe.Pointer)
   406  
   407  //go:wasmimport plat/js/webext/webrtcloggingprivate call_UploadStored
   408  //go:noescape
   409  func CallUploadStored(
   410  	retPtr unsafe.Pointer,
   411  	request unsafe.Pointer,
   412  	securityOrigin js.Ref,
   413  	logId js.Ref,
   414  	callback js.Ref)
   415  
   416  //go:wasmimport plat/js/webext/webrtcloggingprivate try_UploadStored
   417  //go:noescape
   418  func TryUploadStored(
   419  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   420  	request unsafe.Pointer,
   421  	securityOrigin js.Ref,
   422  	logId js.Ref,
   423  	callback js.Ref) (ok js.Ref)