github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/desktopcapture/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/desktopcapture store_ChooseDesktopMediaArgCallbackArgOptions
    20  //go:noescape
    21  func ChooseDesktopMediaArgCallbackArgOptionsJSStore(
    22  	ptr unsafe.Pointer, ref js.Ref)
    23  
    24  //go:wasmimport plat/js/webext/desktopcapture load_ChooseDesktopMediaArgCallbackArgOptions
    25  //go:noescape
    26  func ChooseDesktopMediaArgCallbackArgOptionsJSLoad(
    27  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    28  
    29  //go:wasmimport plat/js/webext/desktopcapture constof_SelfCapturePreferenceEnum
    30  //go:noescape
    31  func ConstOfSelfCapturePreferenceEnum(str js.Ref) uint32
    32  
    33  //go:wasmimport plat/js/webext/desktopcapture constof_SystemAudioPreferenceEnum
    34  //go:noescape
    35  func ConstOfSystemAudioPreferenceEnum(str js.Ref) uint32
    36  
    37  //go:wasmimport plat/js/webext/desktopcapture store_ChooseDesktopMediaArgOptions
    38  //go:noescape
    39  func ChooseDesktopMediaArgOptionsJSStore(
    40  	ptr unsafe.Pointer, ref js.Ref)
    41  
    42  //go:wasmimport plat/js/webext/desktopcapture load_ChooseDesktopMediaArgOptions
    43  //go:noescape
    44  func ChooseDesktopMediaArgOptionsJSLoad(
    45  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    46  
    47  //go:wasmimport plat/js/webext/desktopcapture constof_DesktopCaptureSourceType
    48  //go:noescape
    49  func ConstOfDesktopCaptureSourceType(str js.Ref) uint32
    50  
    51  //go:wasmimport plat/js/webext/desktopcapture has_CancelChooseDesktopMedia
    52  //go:noescape
    53  func HasFuncCancelChooseDesktopMedia() js.Ref
    54  
    55  //go:wasmimport plat/js/webext/desktopcapture func_CancelChooseDesktopMedia
    56  //go:noescape
    57  func FuncCancelChooseDesktopMedia(fn unsafe.Pointer)
    58  
    59  //go:wasmimport plat/js/webext/desktopcapture call_CancelChooseDesktopMedia
    60  //go:noescape
    61  func CallCancelChooseDesktopMedia(
    62  	retPtr unsafe.Pointer,
    63  	desktopMediaRequestId float64)
    64  
    65  //go:wasmimport plat/js/webext/desktopcapture try_CancelChooseDesktopMedia
    66  //go:noescape
    67  func TryCancelChooseDesktopMedia(
    68  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
    69  	desktopMediaRequestId float64) (ok js.Ref)
    70  
    71  //go:wasmimport plat/js/webext/desktopcapture has_ChooseDesktopMedia
    72  //go:noescape
    73  func HasFuncChooseDesktopMedia() js.Ref
    74  
    75  //go:wasmimport plat/js/webext/desktopcapture func_ChooseDesktopMedia
    76  //go:noescape
    77  func FuncChooseDesktopMedia(fn unsafe.Pointer)
    78  
    79  //go:wasmimport plat/js/webext/desktopcapture call_ChooseDesktopMedia
    80  //go:noescape
    81  func CallChooseDesktopMedia(
    82  	retPtr unsafe.Pointer,
    83  	sources js.Ref,
    84  	targetTab unsafe.Pointer,
    85  	options unsafe.Pointer,
    86  	callback js.Ref)
    87  
    88  //go:wasmimport plat/js/webext/desktopcapture try_ChooseDesktopMedia
    89  //go:noescape
    90  func TryChooseDesktopMedia(
    91  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
    92  	sources js.Ref,
    93  	targetTab unsafe.Pointer,
    94  	options unsafe.Pointer,
    95  	callback js.Ref) (ok js.Ref)