// This file was generated by the Gtk# code generator. // Any changes made will be lost if regenerated. namespace Gst.Rtp { using System; using System.Collections; using System.Collections.Generic; using System.Runtime.InteropServices; #region Autogenerated code [StructLayout(LayoutKind.Sequential)] public partial struct RTCPPacket : IEquatable { private IntPtr _rtcp; public Gst.Rtp.RTCPBuffer rtcp { get { return Gst.Rtp.RTCPBuffer.New (_rtcp); } } public uint Offset; private bool padding; private byte count; private Gst.Rtp.RTCPType type; private ushort length; private uint item_offset; private uint item_count; private uint entry_offset; public static Gst.Rtp.RTCPPacket Zero = new Gst.Rtp.RTCPPacket (); public static Gst.Rtp.RTCPPacket New(IntPtr raw) { if (raw == IntPtr.Zero) return Gst.Rtp.RTCPPacket.Zero; return (Gst.Rtp.RTCPPacket) Marshal.PtrToStructure (raw, typeof (Gst.Rtp.RTCPPacket)); } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern bool gst_rtcp_packet_add_profile_specific_ext(IntPtr raw, byte data, uint len); public bool AddProfileSpecificExt(byte data, uint len) { 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); bool raw_ret = gst_rtcp_packet_add_profile_specific_ext(this_as_native, data, len); bool ret = raw_ret; ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern bool gst_rtcp_packet_add_rb(IntPtr raw, uint ssrc, byte fractionlost, int packetslost, uint exthighestseq, uint jitter, uint lsr, uint dlsr); public bool AddRb(uint ssrc, byte fractionlost, int packetslost, uint exthighestseq, uint jitter, uint lsr, uint dlsr) { 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); bool raw_ret = gst_rtcp_packet_add_rb(this_as_native, ssrc, fractionlost, packetslost, exthighestseq, jitter, lsr, dlsr); bool ret = raw_ret; ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern byte gst_rtcp_packet_app_get_data(IntPtr raw); public byte AppGetData() { 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); byte raw_ret = gst_rtcp_packet_app_get_data(this_as_native); byte ret = raw_ret; ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern ushort gst_rtcp_packet_app_get_data_length(IntPtr raw); public ushort AppGetDataLength() { 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); ushort raw_ret = gst_rtcp_packet_app_get_data_length(this_as_native); ushort ret = raw_ret; ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern IntPtr gst_rtcp_packet_app_get_name(IntPtr raw); public string AppGetName() { 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_rtcp_packet_app_get_name(this_as_native); string ret = GLib.Marshaller.Utf8PtrToString (raw_ret); ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern uint gst_rtcp_packet_app_get_ssrc(IntPtr raw); public uint AppGetSsrc() { 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); uint raw_ret = gst_rtcp_packet_app_get_ssrc(this_as_native); uint ret = raw_ret; ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern byte gst_rtcp_packet_app_get_subtype(IntPtr raw); public byte AppGetSubtype() { 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); byte raw_ret = gst_rtcp_packet_app_get_subtype(this_as_native); byte ret = raw_ret; ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern bool gst_rtcp_packet_app_set_data_length(IntPtr raw, ushort wordlen); public bool AppSetDataLength(ushort wordlen) { 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); bool raw_ret = gst_rtcp_packet_app_set_data_length(this_as_native, wordlen); bool ret = raw_ret; ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern void gst_rtcp_packet_app_set_name(IntPtr raw, IntPtr name); public void AppSetName(string name) { 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_name = GLib.Marshaller.StringToPtrGStrdup (name); gst_rtcp_packet_app_set_name(this_as_native, native_name); ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); GLib.Marshaller.Free (native_name); } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern void gst_rtcp_packet_app_set_ssrc(IntPtr raw, uint ssrc); public void AppSetSsrc(uint ssrc) { 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); gst_rtcp_packet_app_set_ssrc(this_as_native, ssrc); ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern void gst_rtcp_packet_app_set_subtype(IntPtr raw, byte subtype); public void AppSetSubtype(byte subtype) { 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); gst_rtcp_packet_app_set_subtype(this_as_native, subtype); ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern bool gst_rtcp_packet_bye_add_ssrc(IntPtr raw, uint ssrc); public bool ByeAddSsrc(uint ssrc) { 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); bool raw_ret = gst_rtcp_packet_bye_add_ssrc(this_as_native, ssrc); bool ret = raw_ret; ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern bool gst_rtcp_packet_bye_add_ssrcs(IntPtr raw, uint ssrc, uint len); public bool ByeAddSsrcs(uint ssrc, uint len) { 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); bool raw_ret = gst_rtcp_packet_bye_add_ssrcs(this_as_native, ssrc, len); bool ret = raw_ret; ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern uint gst_rtcp_packet_bye_get_nth_ssrc(IntPtr raw, uint nth); public uint ByeGetNthSsrc(uint nth) { 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); uint raw_ret = gst_rtcp_packet_bye_get_nth_ssrc(this_as_native, nth); uint ret = raw_ret; ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern IntPtr gst_rtcp_packet_bye_get_reason(IntPtr raw); public string ByeGetReason() { 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_rtcp_packet_bye_get_reason(this_as_native); string ret = GLib.Marshaller.PtrToStringGFree(raw_ret); ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern byte gst_rtcp_packet_bye_get_reason_len(IntPtr raw); public byte ByeGetReasonLen() { 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); byte raw_ret = gst_rtcp_packet_bye_get_reason_len(this_as_native); byte ret = raw_ret; ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern uint gst_rtcp_packet_bye_get_ssrc_count(IntPtr raw); public uint ByeGetSsrcCount() { 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); uint raw_ret = gst_rtcp_packet_bye_get_ssrc_count(this_as_native); uint ret = raw_ret; ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern bool gst_rtcp_packet_bye_set_reason(IntPtr raw, IntPtr reason); public bool ByeSetReason(string reason) { 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_reason = GLib.Marshaller.StringToPtrGStrdup (reason); bool raw_ret = gst_rtcp_packet_bye_set_reason(this_as_native, native_reason); bool ret = raw_ret; ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); GLib.Marshaller.Free (native_reason); return ret; } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern bool gst_rtcp_packet_copy_profile_specific_ext(IntPtr raw, out byte data, out uint len); public bool CopyProfileSpecificExt(out byte data, out uint len) { 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); bool raw_ret = gst_rtcp_packet_copy_profile_specific_ext(this_as_native, out data, out len); bool ret = raw_ret; ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern byte gst_rtcp_packet_fb_get_fci(IntPtr raw); public byte FbGetFci() { 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); byte raw_ret = gst_rtcp_packet_fb_get_fci(this_as_native); byte ret = raw_ret; ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern ushort gst_rtcp_packet_fb_get_fci_length(IntPtr raw); public ushort FbGetFciLength() { 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); ushort raw_ret = gst_rtcp_packet_fb_get_fci_length(this_as_native); ushort ret = raw_ret; ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern uint gst_rtcp_packet_fb_get_media_ssrc(IntPtr raw); public uint FbGetMediaSsrc() { 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); uint raw_ret = gst_rtcp_packet_fb_get_media_ssrc(this_as_native); uint ret = raw_ret; ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern uint gst_rtcp_packet_fb_get_sender_ssrc(IntPtr raw); public uint FbGetSenderSsrc() { 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); uint raw_ret = gst_rtcp_packet_fb_get_sender_ssrc(this_as_native); uint ret = raw_ret; ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern int gst_rtcp_packet_fb_get_type(IntPtr raw); public Gst.Rtp.RTCPFBType FbGetType() { 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_rtcp_packet_fb_get_type(this_as_native); Gst.Rtp.RTCPFBType ret = (Gst.Rtp.RTCPFBType) raw_ret; ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern bool gst_rtcp_packet_fb_set_fci_length(IntPtr raw, ushort wordlen); public bool FbSetFciLength(ushort wordlen) { 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); bool raw_ret = gst_rtcp_packet_fb_set_fci_length(this_as_native, wordlen); bool ret = raw_ret; ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern void gst_rtcp_packet_fb_set_media_ssrc(IntPtr raw, uint ssrc); public void FbSetMediaSsrc(uint ssrc) { 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); gst_rtcp_packet_fb_set_media_ssrc(this_as_native, ssrc); ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern void gst_rtcp_packet_fb_set_sender_ssrc(IntPtr raw, uint ssrc); public void FbSetSenderSsrc(uint ssrc) { 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); gst_rtcp_packet_fb_set_sender_ssrc(this_as_native, ssrc); ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern void gst_rtcp_packet_fb_set_type(IntPtr raw, int type); public void FbSetType(Gst.Rtp.RTCPFBType type) { 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); gst_rtcp_packet_fb_set_type(this_as_native, (int) type); ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern bool gst_rtcp_packet_get_profile_specific_ext(IntPtr raw, out byte data, out uint len); public bool GetProfileSpecificExt(out byte data, out uint len) { 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); bool raw_ret = gst_rtcp_packet_get_profile_specific_ext(this_as_native, out data, out len); bool ret = raw_ret; ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern ushort gst_rtcp_packet_get_profile_specific_ext_length(IntPtr raw); public ushort ProfileSpecificExtLength { get { 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); ushort raw_ret = gst_rtcp_packet_get_profile_specific_ext_length(this_as_native); ushort ret = raw_ret; ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern void gst_rtcp_packet_get_rb(IntPtr raw, uint nth, uint ssrc, byte fractionlost, int packetslost, uint exthighestseq, uint jitter, uint lsr, uint dlsr); public void GetRb(uint nth, uint ssrc, byte fractionlost, int packetslost, uint exthighestseq, uint jitter, uint lsr, uint dlsr) { 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); gst_rtcp_packet_get_rb(this_as_native, nth, ssrc, fractionlost, packetslost, exthighestseq, jitter, lsr, dlsr); ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern uint gst_rtcp_packet_get_rb_count(IntPtr raw); public uint RbCount { get { 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); uint raw_ret = gst_rtcp_packet_get_rb_count(this_as_native); uint ret = raw_ret; ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern int gst_rtcp_packet_get_type(IntPtr raw); public Gst.Rtp.RTCPType GType { get { 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_rtcp_packet_get_type(this_as_native); Gst.Rtp.RTCPType ret = (Gst.Rtp.RTCPType) raw_ret; ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern bool gst_rtcp_packet_move_to_next(IntPtr raw); public bool MoveToNext() { 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); bool raw_ret = gst_rtcp_packet_move_to_next(this_as_native); bool ret = raw_ret; ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern bool gst_rtcp_packet_remove(IntPtr raw); public bool Remove() { 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); bool raw_ret = gst_rtcp_packet_remove(this_as_native); bool ret = raw_ret; ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern uint gst_rtcp_packet_rr_get_ssrc(IntPtr raw); public uint RrGetSsrc() { 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); uint raw_ret = gst_rtcp_packet_rr_get_ssrc(this_as_native); uint ret = raw_ret; ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern void gst_rtcp_packet_rr_set_ssrc(IntPtr raw, uint ssrc); public void RrSetSsrc(uint ssrc) { 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); gst_rtcp_packet_rr_set_ssrc(this_as_native, ssrc); ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern bool gst_rtcp_packet_sdes_add_entry(IntPtr raw, int type, byte len, byte[] data); public bool SdesAddEntry(Gst.Rtp.RTCPSDESType type, byte len, byte[] data) { 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); bool raw_ret = gst_rtcp_packet_sdes_add_entry(this_as_native, (int) type, len, data); bool ret = raw_ret; ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern bool gst_rtcp_packet_sdes_add_item(IntPtr raw, uint ssrc); public bool SdesAddItem(uint ssrc) { 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); bool raw_ret = gst_rtcp_packet_sdes_add_item(this_as_native, ssrc); bool ret = raw_ret; ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern bool gst_rtcp_packet_sdes_first_entry(IntPtr raw); public bool SdesFirstEntry() { 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); bool raw_ret = gst_rtcp_packet_sdes_first_entry(this_as_native); bool ret = raw_ret; ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern bool gst_rtcp_packet_sdes_first_item(IntPtr raw); public bool SdesFirstItem() { 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); bool raw_ret = gst_rtcp_packet_sdes_first_item(this_as_native); bool ret = raw_ret; ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern uint gst_rtcp_packet_sdes_get_item_count(IntPtr raw); public uint SdesGetItemCount() { 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); uint raw_ret = gst_rtcp_packet_sdes_get_item_count(this_as_native); uint ret = raw_ret; ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern uint gst_rtcp_packet_sdes_get_ssrc(IntPtr raw); public uint SdesGetSsrc() { 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); uint raw_ret = gst_rtcp_packet_sdes_get_ssrc(this_as_native); uint ret = raw_ret; ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern bool gst_rtcp_packet_sdes_next_entry(IntPtr raw); public bool SdesNextEntry() { 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); bool raw_ret = gst_rtcp_packet_sdes_next_entry(this_as_native); bool ret = raw_ret; ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern bool gst_rtcp_packet_sdes_next_item(IntPtr raw); public bool SdesNextItem() { 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); bool raw_ret = gst_rtcp_packet_sdes_next_item(this_as_native); bool ret = raw_ret; ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern void gst_rtcp_packet_set_rb(IntPtr raw, uint nth, uint ssrc, byte fractionlost, int packetslost, uint exthighestseq, uint jitter, uint lsr, uint dlsr); public void SetRb(uint nth, uint ssrc, byte fractionlost, int packetslost, uint exthighestseq, uint jitter, uint lsr, uint dlsr) { 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); gst_rtcp_packet_set_rb(this_as_native, nth, ssrc, fractionlost, packetslost, exthighestseq, jitter, lsr, dlsr); ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern void gst_rtcp_packet_sr_get_sender_info(IntPtr raw, uint ssrc, ulong ntptime, uint rtptime, uint packet_count, uint octet_count); public void SrGetSenderInfo(uint ssrc, ulong ntptime, uint rtptime, uint packet_count, uint octet_count) { 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); gst_rtcp_packet_sr_get_sender_info(this_as_native, ssrc, ntptime, rtptime, packet_count, octet_count); ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); } [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern void gst_rtcp_packet_sr_set_sender_info(IntPtr raw, uint ssrc, ulong ntptime, uint rtptime, uint packet_count, uint octet_count); public void SrSetSenderInfo(uint ssrc, ulong ntptime, uint rtptime, uint packet_count, uint octet_count) { 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); gst_rtcp_packet_sr_set_sender_info(this_as_native, ssrc, ntptime, rtptime, packet_count, octet_count); ReadNative (this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); } static void ReadNative (IntPtr native, ref Gst.Rtp.RTCPPacket target) { target = New (native); } public bool Equals (RTCPPacket other) { return true && rtcp.Equals (other.rtcp) && Offset.Equals (other.Offset) && count.Equals (other.count) && type.Equals (other.type) && length.Equals (other.length) && item_offset.Equals (other.item_offset) && item_count.Equals (other.item_count) && entry_offset.Equals (other.entry_offset); } public override bool Equals (object other) { return other is RTCPPacket && Equals ((RTCPPacket) other); } public override int GetHashCode () { return this.GetType ().FullName.GetHashCode () ^ rtcp.GetHashCode () ^ Offset.GetHashCode () ^ count.GetHashCode () ^ type.GetHashCode () ^ length.GetHashCode () ^ item_offset.GetHashCode () ^ item_count.GetHashCode () ^ entry_offset.GetHashCode (); } #endregion } }