public static string RtspVersionAsText(Gst.Rtsp.RTSPVersion version) { IntPtr raw_ret = gst_rtsp_version_as_text((int)version); string ret = GLib.Marshaller.Utf8PtrToString(raw_ret); return(ret); }
public Gst.Rtsp.RTSPResult ParseResponse(out Gst.Rtsp.RTSPStatusCode code, out string reason, out Gst.Rtsp.RTSPVersion version) { IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal(System.Runtime.InteropServices.Marshal.SizeOf(this)); System.Runtime.InteropServices.Marshal.StructureToPtr(this, this_as_native, false); int native_code; IntPtr native_reason; int native_version; int raw_ret = gst_rtsp_message_parse_response(this_as_native, out native_code, out native_reason, out native_version); Gst.Rtsp.RTSPResult ret = (Gst.Rtsp.RTSPResult)raw_ret; ReadNative(this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal(this_as_native); code = (Gst.Rtsp.RTSPStatusCode)native_code; reason = GLib.Marshaller.Utf8PtrToString(native_reason); version = (Gst.Rtsp.RTSPVersion)native_version; return(ret); }
public Gst.Rtsp.RTSPResult ParseRequest(out Gst.Rtsp.RTSPMethod method, out string uri, out Gst.Rtsp.RTSPVersion version) { IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal(System.Runtime.InteropServices.Marshal.SizeOf(this)); System.Runtime.InteropServices.Marshal.StructureToPtr(this, this_as_native, false); int native_method; IntPtr native_uri; int native_version; int raw_ret = gst_rtsp_message_parse_request(this_as_native, out native_method, out native_uri, out native_version); Gst.Rtsp.RTSPResult ret = (Gst.Rtsp.RTSPResult)raw_ret; ReadNative(this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal(this_as_native); method = (Gst.Rtsp.RTSPMethod)native_method; uri = GLib.Marshaller.Utf8PtrToString(native_uri); version = (Gst.Rtsp.RTSPVersion)native_version; return(ret); }