From 1689d6a031cb2a21fad76ebabb8662342a18d40e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 14 Sep 2009 18:03:18 +0200 Subject: [PATCH] Add bindings for the RequestState messages --- doc/en/Gst/Message.xml | 39 ++++++++++++++++++++++++++++++++++ gstreamer-sharp/Message.custom | 19 +++++++++++++++++ 2 files changed, 58 insertions(+) diff --git a/doc/en/Gst/Message.xml b/doc/en/Gst/Message.xml index 7c4328f2d6..9776c4dbcc 100644 --- a/doc/en/Gst/Message.xml +++ b/doc/en/Gst/Message.xml @@ -987,6 +987,27 @@ To be added. + + + Method + + 0.9.1.0 + + + Gst.Message + + + + + + + To be added. + To be added. + To be added. + To be added. + To be added. + + Method @@ -1831,6 +1852,24 @@ To be added. + + + Method + + 0.9.1.0 + + + System.Void + + + + + + To be added. + To be added. + To be added. + + Method diff --git a/gstreamer-sharp/Message.custom b/gstreamer-sharp/Message.custom index 3e4054fabd..cb11c42a9a 100644 --- a/gstreamer-sharp/Message.custom +++ b/gstreamer-sharp/Message.custom @@ -954,3 +954,22 @@ public void ParseStreamStatus (out StreamStatusType type, out Gst.Element owner) owner = Gst.GLib.Object.GetObject (raw_ptr, false) as Gst.Element; } +[DllImport("libgstreamer-0.10.dll") ] +static extern IntPtr gst_message_new_request_state (IntPtr src, Gst.State state); + +public static Message NewRequestState (Gst.Object src, Gst.State state) { + Message msg = (Message) Gst.MiniObject.GetObject (gst_message_new_request_state (src.Handle, state), true); + + return msg; +} + +[DllImport("libgstreamer-0.10.dll") ] +static extern void gst_message_parse_request_state (IntPtr msg, out Gst.State state); + +public void ParseRequestState (out Gst.State state) { + if (Type != MessageType.RequestState) + throw new ArgumentException (); + + gst_message_parse_request_state (Handle, out state); +} +