gstreamer/sources/generated/Gst.Sdp/SDPMessage.cs
Thibault Saunier 2d00f898fb Move generated files to dedicated folders named by namespace
Making it cleaner and simpler to navigate and removing previous
ugly and now useless hack where we were renaming files ourself
to make meson happy.
2018-03-11 21:47:35 -03:00

955 lines
49 KiB
C#

// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.Sdp {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
[StructLayout(LayoutKind.Sequential)]
public partial struct SDPMessage : IEquatable<SDPMessage> {
public string Version;
public Gst.Sdp.SDPOrigin Origin;
public string SessionName;
public string Information;
public string Uri;
private IntPtr EmailsPtr;
public IntPtr[] Emails {
get { return GLib.Marshaller.StructArrayFromNullTerminatedIntPtr<IntPtr> (EmailsPtr); }
set { EmailsPtr = GLib.Marshaller.StructArrayToNullTerminatedStructArrayIntPtr<IntPtr> (value); }
}
private IntPtr PhonesPtr;
public IntPtr[] Phones {
get { return GLib.Marshaller.StructArrayFromNullTerminatedIntPtr<IntPtr> (PhonesPtr); }
set { PhonesPtr = GLib.Marshaller.StructArrayToNullTerminatedStructArrayIntPtr<IntPtr> (value); }
}
public Gst.Sdp.SDPConnection Connection;
private IntPtr BandwidthsPtr;
public IntPtr[] Bandwidths {
get { return GLib.Marshaller.StructArrayFromNullTerminatedIntPtr<IntPtr> (BandwidthsPtr); }
set { BandwidthsPtr = GLib.Marshaller.StructArrayToNullTerminatedStructArrayIntPtr<IntPtr> (value); }
}
private IntPtr TimesPtr;
public IntPtr[] Times {
get { return GLib.Marshaller.StructArrayFromNullTerminatedIntPtr<IntPtr> (TimesPtr); }
set { TimesPtr = GLib.Marshaller.StructArrayToNullTerminatedStructArrayIntPtr<IntPtr> (value); }
}
private IntPtr ZonesPtr;
public IntPtr[] Zones {
get { return GLib.Marshaller.StructArrayFromNullTerminatedIntPtr<IntPtr> (ZonesPtr); }
set { ZonesPtr = GLib.Marshaller.StructArrayToNullTerminatedStructArrayIntPtr<IntPtr> (value); }
}
public Gst.Sdp.SDPKey Key;
private IntPtr AttributesPtr;
public IntPtr[] Attributes {
get { return GLib.Marshaller.StructArrayFromNullTerminatedIntPtr<IntPtr> (AttributesPtr); }
set { AttributesPtr = GLib.Marshaller.StructArrayToNullTerminatedStructArrayIntPtr<IntPtr> (value); }
}
private IntPtr MediasPtr;
public IntPtr[] Medias {
get { return GLib.Marshaller.StructArrayFromNullTerminatedIntPtr<IntPtr> (MediasPtr); }
set { MediasPtr = GLib.Marshaller.StructArrayToNullTerminatedStructArrayIntPtr<IntPtr> (value); }
}
public static Gst.Sdp.SDPMessage Zero = new Gst.Sdp.SDPMessage ();
public static Gst.Sdp.SDPMessage New(IntPtr raw) {
if (raw == IntPtr.Zero)
return Gst.Sdp.SDPMessage.Zero;
return (Gst.Sdp.SDPMessage) Marshal.PtrToStructure (raw, typeof (Gst.Sdp.SDPMessage));
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_sdp_message_get_type();
public static GLib.GType GType {
get {
IntPtr raw_ret = gst_sdp_message_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_sdp_message_add_attribute(IntPtr raw, IntPtr key, IntPtr value);
public Gst.Sdp.SDPResult AddAttribute(string key, 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);
IntPtr native_key = GLib.Marshaller.StringToPtrGStrdup (key);
IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
int raw_ret = gst_sdp_message_add_attribute(this_as_native, native_key, native_value);
Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
GLib.Marshaller.Free (native_key);
GLib.Marshaller.Free (native_value);
return ret;
}
public Gst.Sdp.SDPResult AddAttribute(string key) {
return AddAttribute (key, null);
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_sdp_message_add_bandwidth(IntPtr raw, IntPtr bwtype, uint bandwidth);
public Gst.Sdp.SDPResult AddBandwidth(string bwtype, uint bandwidth) {
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_bwtype = GLib.Marshaller.StringToPtrGStrdup (bwtype);
int raw_ret = gst_sdp_message_add_bandwidth(this_as_native, native_bwtype, bandwidth);
Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
GLib.Marshaller.Free (native_bwtype);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_sdp_message_add_email(IntPtr raw, IntPtr email);
public Gst.Sdp.SDPResult AddEmail(string email) {
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_email = GLib.Marshaller.StringToPtrGStrdup (email);
int raw_ret = gst_sdp_message_add_email(this_as_native, native_email);
Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
GLib.Marshaller.Free (native_email);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_sdp_message_add_media(IntPtr raw, IntPtr media);
public Gst.Sdp.SDPResult AddMedia(Gst.Sdp.SDPMedia media) {
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_media = GLib.Marshaller.StructureToPtrAlloc (media);
int raw_ret = gst_sdp_message_add_media(this_as_native, native_media);
Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
Marshal.FreeHGlobal (native_media);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_sdp_message_add_phone(IntPtr raw, IntPtr phone);
public Gst.Sdp.SDPResult AddPhone(string phone) {
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_phone = GLib.Marshaller.StringToPtrGStrdup (phone);
int raw_ret = gst_sdp_message_add_phone(this_as_native, native_phone);
Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
GLib.Marshaller.Free (native_phone);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_sdp_message_add_time(IntPtr raw, IntPtr start, IntPtr stop, IntPtr[] repeat);
public Gst.Sdp.SDPResult AddTime(string start, string stop, string[] repeat) {
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_start = GLib.Marshaller.StringToPtrGStrdup (start);
IntPtr native_stop = GLib.Marshaller.StringToPtrGStrdup (stop);
int cnt_repeat = repeat == null ? 0 : repeat.Length;
IntPtr[] native_repeat = new IntPtr [cnt_repeat + 1];
for (int i = 0; i < cnt_repeat; i++)
native_repeat [i] = GLib.Marshaller.StringToPtrGStrdup (repeat[i]);
native_repeat [cnt_repeat] = IntPtr.Zero;
int raw_ret = gst_sdp_message_add_time(this_as_native, native_start, native_stop, native_repeat);
Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
GLib.Marshaller.Free (native_start);
GLib.Marshaller.Free (native_stop);
for (int i = 0; i < native_repeat.Length - 1; i++) {
repeat [i] = GLib.Marshaller.Utf8PtrToString (native_repeat[i]);
GLib.Marshaller.Free (native_repeat[i]);
}
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_sdp_message_add_zone(IntPtr raw, IntPtr adj_time, IntPtr typed_time);
public Gst.Sdp.SDPResult AddZone(string adj_time, string typed_time) {
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_adj_time = GLib.Marshaller.StringToPtrGStrdup (adj_time);
IntPtr native_typed_time = GLib.Marshaller.StringToPtrGStrdup (typed_time);
int raw_ret = gst_sdp_message_add_zone(this_as_native, native_adj_time, native_typed_time);
Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
GLib.Marshaller.Free (native_adj_time);
GLib.Marshaller.Free (native_typed_time);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_sdp_message_as_text(IntPtr raw);
public string AsText() {
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_sdp_message_as_text(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("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern uint gst_sdp_message_attributes_len(IntPtr raw);
public uint AttributesLen() {
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_sdp_message_attributes_len(this_as_native);
uint ret = raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_sdp_message_attributes_to_caps(IntPtr raw, IntPtr caps);
public Gst.Sdp.SDPResult AttributesToCaps(Gst.Caps caps) {
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_sdp_message_attributes_to_caps(this_as_native, caps == null ? IntPtr.Zero : caps.Handle);
Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern uint gst_sdp_message_bandwidths_len(IntPtr raw);
public uint BandwidthsLen() {
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_sdp_message_bandwidths_len(this_as_native);
uint ret = raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_sdp_message_dump(IntPtr raw);
public Gst.Sdp.SDPResult Dump() {
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_sdp_message_dump(this_as_native);
Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern uint gst_sdp_message_emails_len(IntPtr raw);
public uint EmailsLen() {
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_sdp_message_emails_len(this_as_native);
uint ret = raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_sdp_message_get_attribute(IntPtr raw, uint idx);
public Gst.Sdp.SDPAttribute GetAttribute(uint idx) {
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_sdp_message_get_attribute(this_as_native, idx);
Gst.Sdp.SDPAttribute ret = Gst.Sdp.SDPAttribute.New (raw_ret);
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_sdp_message_get_attribute_val(IntPtr raw, IntPtr key);
public string GetAttributeVal(string key) {
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_key = GLib.Marshaller.StringToPtrGStrdup (key);
IntPtr raw_ret = gst_sdp_message_get_attribute_val(this_as_native, native_key);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
GLib.Marshaller.Free (native_key);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_sdp_message_get_attribute_val_n(IntPtr raw, IntPtr key, uint nth);
public string GetAttributeValN(string key, 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);
IntPtr native_key = GLib.Marshaller.StringToPtrGStrdup (key);
IntPtr raw_ret = gst_sdp_message_get_attribute_val_n(this_as_native, native_key, nth);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
GLib.Marshaller.Free (native_key);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_sdp_message_get_bandwidth(IntPtr raw, uint idx);
public Gst.Sdp.SDPBandwidth GetBandwidth(uint idx) {
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_sdp_message_get_bandwidth(this_as_native, idx);
Gst.Sdp.SDPBandwidth ret = Gst.Sdp.SDPBandwidth.New (raw_ret);
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_sdp_message_get_email(IntPtr raw, uint idx);
public string GetEmail(uint idx) {
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_sdp_message_get_email(this_as_native, idx);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_sdp_message_get_media(IntPtr raw, uint idx);
public Gst.Sdp.SDPMedia GetMedia(uint idx) {
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_sdp_message_get_media(this_as_native, idx);
Gst.Sdp.SDPMedia ret = Gst.Sdp.SDPMedia.New (raw_ret);
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_sdp_message_get_phone(IntPtr raw, uint idx);
public string GetPhone(uint idx) {
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_sdp_message_get_phone(this_as_native, idx);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_sdp_message_get_time(IntPtr raw, uint idx);
public Gst.Sdp.SDPTime GetTime(uint idx) {
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_sdp_message_get_time(this_as_native, idx);
Gst.Sdp.SDPTime ret = Gst.Sdp.SDPTime.New (raw_ret);
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_sdp_message_get_zone(IntPtr raw, uint idx);
public Gst.Sdp.SDPZone GetZone(uint idx) {
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_sdp_message_get_zone(this_as_native, idx);
Gst.Sdp.SDPZone ret = Gst.Sdp.SDPZone.New (raw_ret);
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_sdp_message_init(IntPtr raw);
public Gst.Sdp.SDPResult Init() {
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_sdp_message_init(this_as_native);
Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_sdp_message_insert_attribute(IntPtr raw, int idx, IntPtr attr);
public Gst.Sdp.SDPResult InsertAttribute(int idx, Gst.Sdp.SDPAttribute attr) {
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_attr = GLib.Marshaller.StructureToPtrAlloc (attr);
int raw_ret = gst_sdp_message_insert_attribute(this_as_native, idx, native_attr);
Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
Marshal.FreeHGlobal (native_attr);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_sdp_message_insert_bandwidth(IntPtr raw, int idx, IntPtr bw);
public Gst.Sdp.SDPResult InsertBandwidth(int idx, Gst.Sdp.SDPBandwidth bw) {
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_bw = GLib.Marshaller.StructureToPtrAlloc (bw);
int raw_ret = gst_sdp_message_insert_bandwidth(this_as_native, idx, native_bw);
Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
Marshal.FreeHGlobal (native_bw);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_sdp_message_insert_email(IntPtr raw, int idx, IntPtr email);
public Gst.Sdp.SDPResult InsertEmail(int idx, string email) {
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_email = GLib.Marshaller.StringToPtrGStrdup (email);
int raw_ret = gst_sdp_message_insert_email(this_as_native, idx, native_email);
Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
GLib.Marshaller.Free (native_email);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_sdp_message_insert_phone(IntPtr raw, int idx, IntPtr phone);
public Gst.Sdp.SDPResult InsertPhone(int idx, string phone) {
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_phone = GLib.Marshaller.StringToPtrGStrdup (phone);
int raw_ret = gst_sdp_message_insert_phone(this_as_native, idx, native_phone);
Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
GLib.Marshaller.Free (native_phone);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_sdp_message_insert_time(IntPtr raw, int idx, IntPtr t);
public Gst.Sdp.SDPResult InsertTime(int idx, Gst.Sdp.SDPTime t) {
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_t = GLib.Marshaller.StructureToPtrAlloc (t);
int raw_ret = gst_sdp_message_insert_time(this_as_native, idx, native_t);
Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
Marshal.FreeHGlobal (native_t);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_sdp_message_insert_zone(IntPtr raw, int idx, IntPtr zone);
public Gst.Sdp.SDPResult InsertZone(int idx, Gst.Sdp.SDPZone zone) {
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_zone = GLib.Marshaller.StructureToPtrAlloc (zone);
int raw_ret = gst_sdp_message_insert_zone(this_as_native, idx, native_zone);
Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
Marshal.FreeHGlobal (native_zone);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern uint gst_sdp_message_medias_len(IntPtr raw);
public uint MediasLen() {
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_sdp_message_medias_len(this_as_native);
uint ret = raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_sdp_message_parse_keymgmt(IntPtr raw, out IntPtr mikey);
public Gst.Sdp.SDPResult ParseKeymgmt(out Gst.Sdp.MIKEYMessage mikey) {
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_mikey;
int raw_ret = gst_sdp_message_parse_keymgmt(this_as_native, out native_mikey);
Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
mikey = native_mikey == IntPtr.Zero ? null : (Gst.Sdp.MIKEYMessage) GLib.Opaque.GetOpaque (native_mikey, typeof (Gst.Sdp.MIKEYMessage), true);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern uint gst_sdp_message_phones_len(IntPtr raw);
public uint PhonesLen() {
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_sdp_message_phones_len(this_as_native);
uint ret = raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_sdp_message_remove_attribute(IntPtr raw, uint idx);
public Gst.Sdp.SDPResult RemoveAttribute(uint idx) {
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_sdp_message_remove_attribute(this_as_native, idx);
Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_sdp_message_remove_bandwidth(IntPtr raw, uint idx);
public Gst.Sdp.SDPResult RemoveBandwidth(uint idx) {
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_sdp_message_remove_bandwidth(this_as_native, idx);
Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_sdp_message_remove_email(IntPtr raw, uint idx);
public Gst.Sdp.SDPResult RemoveEmail(uint idx) {
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_sdp_message_remove_email(this_as_native, idx);
Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_sdp_message_remove_phone(IntPtr raw, uint idx);
public Gst.Sdp.SDPResult RemovePhone(uint idx) {
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_sdp_message_remove_phone(this_as_native, idx);
Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_sdp_message_remove_time(IntPtr raw, uint idx);
public Gst.Sdp.SDPResult RemoveTime(uint idx) {
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_sdp_message_remove_time(this_as_native, idx);
Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_sdp_message_remove_zone(IntPtr raw, uint idx);
public Gst.Sdp.SDPResult RemoveZone(uint idx) {
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_sdp_message_remove_zone(this_as_native, idx);
Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_sdp_message_replace_attribute(IntPtr raw, uint idx, IntPtr attr);
public Gst.Sdp.SDPResult ReplaceAttribute(uint idx, Gst.Sdp.SDPAttribute attr) {
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_attr = GLib.Marshaller.StructureToPtrAlloc (attr);
int raw_ret = gst_sdp_message_replace_attribute(this_as_native, idx, native_attr);
Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
Marshal.FreeHGlobal (native_attr);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_sdp_message_replace_bandwidth(IntPtr raw, uint idx, IntPtr bw);
public Gst.Sdp.SDPResult ReplaceBandwidth(uint idx, Gst.Sdp.SDPBandwidth bw) {
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_bw = GLib.Marshaller.StructureToPtrAlloc (bw);
int raw_ret = gst_sdp_message_replace_bandwidth(this_as_native, idx, native_bw);
Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
Marshal.FreeHGlobal (native_bw);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_sdp_message_replace_email(IntPtr raw, uint idx, IntPtr email);
public Gst.Sdp.SDPResult ReplaceEmail(uint idx, string email) {
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_email = GLib.Marshaller.StringToPtrGStrdup (email);
int raw_ret = gst_sdp_message_replace_email(this_as_native, idx, native_email);
Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
GLib.Marshaller.Free (native_email);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_sdp_message_replace_phone(IntPtr raw, uint idx, IntPtr phone);
public Gst.Sdp.SDPResult ReplacePhone(uint idx, string phone) {
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_phone = GLib.Marshaller.StringToPtrGStrdup (phone);
int raw_ret = gst_sdp_message_replace_phone(this_as_native, idx, native_phone);
Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
GLib.Marshaller.Free (native_phone);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_sdp_message_replace_time(IntPtr raw, uint idx, IntPtr t);
public Gst.Sdp.SDPResult ReplaceTime(uint idx, Gst.Sdp.SDPTime t) {
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_t = GLib.Marshaller.StructureToPtrAlloc (t);
int raw_ret = gst_sdp_message_replace_time(this_as_native, idx, native_t);
Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
Marshal.FreeHGlobal (native_t);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_sdp_message_replace_zone(IntPtr raw, uint idx, IntPtr zone);
public Gst.Sdp.SDPResult ReplaceZone(uint idx, Gst.Sdp.SDPZone zone) {
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_zone = GLib.Marshaller.StructureToPtrAlloc (zone);
int raw_ret = gst_sdp_message_replace_zone(this_as_native, idx, native_zone);
Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
Marshal.FreeHGlobal (native_zone);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_sdp_message_set_connection(IntPtr raw, IntPtr nettype, IntPtr addrtype, IntPtr address, uint ttl, uint addr_number);
public Gst.Sdp.SDPResult SetConnection(string nettype, string addrtype, string address, uint ttl, uint addr_number) {
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_nettype = GLib.Marshaller.StringToPtrGStrdup (nettype);
IntPtr native_addrtype = GLib.Marshaller.StringToPtrGStrdup (addrtype);
IntPtr native_address = GLib.Marshaller.StringToPtrGStrdup (address);
int raw_ret = gst_sdp_message_set_connection(this_as_native, native_nettype, native_addrtype, native_address, ttl, addr_number);
Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
GLib.Marshaller.Free (native_nettype);
GLib.Marshaller.Free (native_addrtype);
GLib.Marshaller.Free (native_address);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_sdp_message_set_information(IntPtr raw, IntPtr information);
public Gst.Sdp.SDPResult SetInformation(string information) {
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_information = GLib.Marshaller.StringToPtrGStrdup (information);
int raw_ret = gst_sdp_message_set_information(this_as_native, native_information);
Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
GLib.Marshaller.Free (native_information);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_sdp_message_set_key(IntPtr raw, IntPtr type, IntPtr data);
public Gst.Sdp.SDPResult SetKey(string type, string 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);
IntPtr native_type = GLib.Marshaller.StringToPtrGStrdup (type);
IntPtr native_data = GLib.Marshaller.StringToPtrGStrdup (data);
int raw_ret = gst_sdp_message_set_key(this_as_native, native_type, native_data);
Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
GLib.Marshaller.Free (native_type);
GLib.Marshaller.Free (native_data);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_sdp_message_set_origin(IntPtr raw, IntPtr username, IntPtr sess_id, IntPtr sess_version, IntPtr nettype, IntPtr addrtype, IntPtr addr);
public Gst.Sdp.SDPResult SetOrigin(string username, string sess_id, string sess_version, string nettype, string addrtype, string addr) {
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_username = GLib.Marshaller.StringToPtrGStrdup (username);
IntPtr native_sess_id = GLib.Marshaller.StringToPtrGStrdup (sess_id);
IntPtr native_sess_version = GLib.Marshaller.StringToPtrGStrdup (sess_version);
IntPtr native_nettype = GLib.Marshaller.StringToPtrGStrdup (nettype);
IntPtr native_addrtype = GLib.Marshaller.StringToPtrGStrdup (addrtype);
IntPtr native_addr = GLib.Marshaller.StringToPtrGStrdup (addr);
int raw_ret = gst_sdp_message_set_origin(this_as_native, native_username, native_sess_id, native_sess_version, native_nettype, native_addrtype, native_addr);
Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
GLib.Marshaller.Free (native_username);
GLib.Marshaller.Free (native_sess_id);
GLib.Marshaller.Free (native_sess_version);
GLib.Marshaller.Free (native_nettype);
GLib.Marshaller.Free (native_addrtype);
GLib.Marshaller.Free (native_addr);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_sdp_message_set_session_name(IntPtr raw, IntPtr session_name);
public Gst.Sdp.SDPResult SetSessionName(string session_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_session_name = GLib.Marshaller.StringToPtrGStrdup (session_name);
int raw_ret = gst_sdp_message_set_session_name(this_as_native, native_session_name);
Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
GLib.Marshaller.Free (native_session_name);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_sdp_message_set_uri(IntPtr raw, IntPtr uri);
public Gst.Sdp.SDPResult SetUri(string uri) {
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_uri = GLib.Marshaller.StringToPtrGStrdup (uri);
int raw_ret = gst_sdp_message_set_uri(this_as_native, native_uri);
Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
GLib.Marshaller.Free (native_uri);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_sdp_message_set_version(IntPtr raw, IntPtr version);
public Gst.Sdp.SDPResult SetVersion(string 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);
IntPtr native_version = GLib.Marshaller.StringToPtrGStrdup (version);
int raw_ret = gst_sdp_message_set_version(this_as_native, native_version);
Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
GLib.Marshaller.Free (native_version);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern uint gst_sdp_message_times_len(IntPtr raw);
public uint TimesLen() {
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_sdp_message_times_len(this_as_native);
uint ret = raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_sdp_message_uninit(IntPtr raw);
public Gst.Sdp.SDPResult Uninit() {
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_sdp_message_uninit(this_as_native);
Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern uint gst_sdp_message_zones_len(IntPtr raw);
public uint ZonesLen() {
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_sdp_message_zones_len(this_as_native);
uint ret = raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_sdp_message_as_uri(IntPtr scheme, IntPtr msg);
public static string AsUri(string scheme, Gst.Sdp.SDPMessage msg) {
IntPtr native_scheme = GLib.Marshaller.StringToPtrGStrdup (scheme);
IntPtr native_msg = GLib.Marshaller.StructureToPtrAlloc (msg);
IntPtr raw_ret = gst_sdp_message_as_uri(native_scheme, native_msg);
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
GLib.Marshaller.Free (native_scheme);
Marshal.FreeHGlobal (native_msg);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_sdp_message_new(IntPtr msg);
public static Gst.Sdp.SDPResult New(out Gst.Sdp.SDPMessage msg) {
IntPtr native_msg = Marshal.AllocHGlobal (Marshal.SizeOf (typeof (Gst.Sdp.SDPMessage)));
int raw_ret = gst_sdp_message_new(native_msg);
Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
msg = Gst.Sdp.SDPMessage.New (native_msg);
Marshal.FreeHGlobal (native_msg);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_sdp_message_parse_buffer(byte[] data, uint size, IntPtr msg);
public static Gst.Sdp.SDPResult ParseBuffer(byte[] data, uint size, Gst.Sdp.SDPMessage msg) {
IntPtr native_msg = GLib.Marshaller.StructureToPtrAlloc (msg);
int raw_ret = gst_sdp_message_parse_buffer(data, size, native_msg);
Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
Marshal.FreeHGlobal (native_msg);
return ret;
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_sdp_message_parse_uri(IntPtr uri, IntPtr msg);
public static Gst.Sdp.SDPResult ParseUri(string uri, Gst.Sdp.SDPMessage msg) {
IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup (uri);
IntPtr native_msg = GLib.Marshaller.StructureToPtrAlloc (msg);
int raw_ret = gst_sdp_message_parse_uri(native_uri, native_msg);
Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
GLib.Marshaller.Free (native_uri);
Marshal.FreeHGlobal (native_msg);
return ret;
}
static void ReadNative (IntPtr native, ref Gst.Sdp.SDPMessage target)
{
target = New (native);
}
public bool Equals (SDPMessage other)
{
return true && Version.Equals (other.Version) && Origin.Equals (other.Origin) && SessionName.Equals (other.SessionName) && Information.Equals (other.Information) && Uri.Equals (other.Uri) && EmailsPtr.Equals (other.EmailsPtr) && PhonesPtr.Equals (other.PhonesPtr) && Connection.Equals (other.Connection) && BandwidthsPtr.Equals (other.BandwidthsPtr) && TimesPtr.Equals (other.TimesPtr) && ZonesPtr.Equals (other.ZonesPtr) && Key.Equals (other.Key) && AttributesPtr.Equals (other.AttributesPtr) && MediasPtr.Equals (other.MediasPtr);
}
public override bool Equals (object other)
{
return other is SDPMessage && Equals ((SDPMessage) other);
}
public override int GetHashCode ()
{
return this.GetType ().FullName.GetHashCode () ^ Version.GetHashCode () ^ Origin.GetHashCode () ^ SessionName.GetHashCode () ^ Information.GetHashCode () ^ Uri.GetHashCode () ^ EmailsPtr.GetHashCode () ^ PhonesPtr.GetHashCode () ^ Connection.GetHashCode () ^ BandwidthsPtr.GetHashCode () ^ TimesPtr.GetHashCode () ^ ZonesPtr.GetHashCode () ^ Key.GetHashCode () ^ AttributesPtr.GetHashCode () ^ MediasPtr.GetHashCode ();
}
public static explicit operator GLib.Value (Gst.Sdp.SDPMessage boxed)
{
GLib.Value val = GLib.Value.Empty;
val.Init (Gst.Sdp.SDPMessage.GType);
val.Val = boxed;
return val;
}
public static explicit operator Gst.Sdp.SDPMessage (GLib.Value val)
{
return (Gst.Sdp.SDPMessage) val.Val;
}
#endregion
}
}