Files
go-gst/pkg/gstwebrtc/gstwebrtc_export.gen.go

37 lines
899 B
Go

// Code generated by girgen. DO NOT EDIT.
package gstwebrtc
import (
"unsafe"
"github.com/diamondburned/gotk4/pkg/core/userdata"
)
// #include <gst/webrtc/webrtc.h>
// #include <gst/webrtc/sctptransport.h>
import "C"
//export _gotk4_gstwebrtc1_WebRTCICEOnCandidateFunc
func _gotk4_gstwebrtc1_WebRTCICEOnCandidateFunc(carg1 *C.GstWebRTCICE, carg2 C.guint, carg3 *C.gchar, carg4 C.gpointer) {
var fn WebRTCICEOnCandidateFunc
{
v := userdata.Load(unsafe.Pointer(carg4))
if v == nil {
panic(`callback not found`)
}
fn = v.(WebRTCICEOnCandidateFunc)
}
var ice WebRTCICE // in, none, converted
var streamId uint // in, none, casted
var candidate string // in, none, string, casted *C.gchar
ice = UnsafeWebRTCICEFromGlibNone(unsafe.Pointer(carg1))
streamId = uint(carg2)
candidate = C.GoString((*C.char)(unsafe.Pointer(carg3)))
fn(ice, streamId, candidate)
}