summaryrefslogtreecommitdiff
path: root/sources/generated/Gst.Sdp/SDPMessage.cs
diff options
context:
space:
mode:
Diffstat (limited to 'sources/generated/Gst.Sdp/SDPMessage.cs')
-rw-r--r--sources/generated/Gst.Sdp/SDPMessage.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/sources/generated/Gst.Sdp/SDPMessage.cs b/sources/generated/Gst.Sdp/SDPMessage.cs
index 3496573..41403f1 100644
--- a/sources/generated/Gst.Sdp/SDPMessage.cs
+++ b/sources/generated/Gst.Sdp/SDPMessage.cs
@@ -763,6 +763,19 @@ namespace Gst.Sdp {
}
[DllImport("libgstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
+ static extern int gst_sdp_message_new_from_text(IntPtr text, out IntPtr msg);
+
+ public static Gst.Sdp.SDPResult NewFromText(string text, out Gst.Sdp.SDPMessage msg) {
+ IntPtr native_text = GLib.Marshaller.StringToPtrGStrdup (text);
+ IntPtr native_msg;
+ int raw_ret = gst_sdp_message_new_from_text(native_text, out native_msg);
+ Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
+ GLib.Marshaller.Free (native_text);
+ msg = native_msg == IntPtr.Zero ? null : (Gst.Sdp.SDPMessage) GLib.Opaque.GetOpaque (native_msg, typeof (Gst.Sdp.SDPMessage), true);
+ 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) {