public static Gst.Rtsp.RTSPResult RtspConnectionCreate(Gst.Rtsp.RTSPUrl url, out Gst.Rtsp.RTSPConnection conn) { IntPtr native_url = GLib.Marshaller.StructureToPtrAlloc(url); IntPtr native_conn; int raw_ret = gst_rtsp_connection_create(native_url, out native_conn); Gst.Rtsp.RTSPResult ret = (Gst.Rtsp.RTSPResult)raw_ret; Marshal.FreeHGlobal(native_url); conn = native_conn == IntPtr.Zero ? null : (Gst.Rtsp.RTSPConnection)GLib.Opaque.GetOpaque(native_conn, typeof(Gst.Rtsp.RTSPConnection), true); return(ret); }
public static Gst.Rtsp.RTSPResult RtspUrlParse(string urlstr, out Gst.Rtsp.RTSPUrl url) { IntPtr native_urlstr = GLib.Marshaller.StringToPtrGStrdup(urlstr); IntPtr native_url = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(Gst.Rtsp.RTSPUrl))); int raw_ret = gst_rtsp_url_parse(native_urlstr, native_url); Gst.Rtsp.RTSPResult ret = (Gst.Rtsp.RTSPResult)raw_ret; GLib.Marshaller.Free(native_urlstr); url = Gst.Rtsp.RTSPUrl.New(native_url); Marshal.FreeHGlobal(native_url); return(ret); }
static void ReadNative(IntPtr native, ref Gst.Rtsp.RTSPUrl target) { target = New(native); }