public static string RtspHeaderAsText(Gst.Rtsp.RTSPHeaderField field) { IntPtr raw_ret = gst_rtsp_header_as_text((int)field); string ret = GLib.Marshaller.Utf8PtrToString(raw_ret); return(ret); }
public static bool RtspHeaderAllowMultiple(Gst.Rtsp.RTSPHeaderField field) { bool raw_ret = gst_rtsp_header_allow_multiple((int)field); bool ret = raw_ret; return(ret); }
public static Gst.Rtsp.RTSPHeaderField RtspFindHeaderField(string header) { IntPtr native_header = GLib.Marshaller.StringToPtrGStrdup(header); int raw_ret = gst_rtsp_find_header_field(native_header); Gst.Rtsp.RTSPHeaderField ret = (Gst.Rtsp.RTSPHeaderField)raw_ret; GLib.Marshaller.Free(native_header); return(ret); }
public Gst.Rtsp.RTSPResult TakeHeader(Gst.Rtsp.RTSPHeaderField field, string value) { 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 raw_ret = gst_rtsp_message_take_header(this_as_native, (int)field, GLib.Marshaller.StringToPtrGStrdup(value)); Gst.Rtsp.RTSPResult ret = (Gst.Rtsp.RTSPResult)raw_ret; ReadNative(this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal(this_as_native); return(ret); }
public Gst.Rtsp.RTSPResult RemoveHeader(Gst.Rtsp.RTSPHeaderField field, int indx) { 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 raw_ret = gst_rtsp_message_remove_header(this_as_native, (int)field, indx); Gst.Rtsp.RTSPResult ret = (Gst.Rtsp.RTSPResult)raw_ret; ReadNative(this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal(this_as_native); return(ret); }
public Gst.Rtsp.RTSPAuthCredential ParseAuthCredentials(Gst.Rtsp.RTSPHeaderField field) { 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); IntPtr raw_ret = gst_rtsp_message_parse_auth_credentials(this_as_native, (int)field); Gst.Rtsp.RTSPAuthCredential ret = Gst.Rtsp.RTSPAuthCredential.New(raw_ret); ReadNative(this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal(this_as_native); return(ret); }
public Gst.Rtsp.RTSPResult GetHeader(Gst.Rtsp.RTSPHeaderField field, out string value, int indx) { 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); IntPtr native_value; int raw_ret = gst_rtsp_message_get_header(this_as_native, (int)field, out native_value, indx); Gst.Rtsp.RTSPResult ret = (Gst.Rtsp.RTSPResult)raw_ret; ReadNative(this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal(this_as_native); value = GLib.Marshaller.Utf8PtrToString(native_value); return(ret); }