summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2009-09-14 18:03:18 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-09-14 18:03:18 +0200
commit1689d6a031cb2a21fad76ebabb8662342a18d40e (patch)
tree5e2572578305e4e5ac5ae74c0d017168213cca68
parent175b5ee5c5d35c82dd2a1b0fe3f1452ce38981ff (diff)
Add bindings for the RequestState messages
-rw-r--r--doc/en/Gst/Message.xml39
-rw-r--r--gstreamer-sharp/Message.custom19
2 files changed, 58 insertions, 0 deletions
diff --git a/doc/en/Gst/Message.xml b/doc/en/Gst/Message.xml
index 7c4328f..9776c4d 100644
--- a/doc/en/Gst/Message.xml
+++ b/doc/en/Gst/Message.xml
@@ -987,6 +987,27 @@
<remarks>To be added.</remarks>
</Docs>
</Member>
+ <Member MemberName="NewRequestState">
+ <MemberSignature Language="C#" Value="public static Gst.Message NewRequestState (Gst.Object src, Gst.State state);" />
+ <MemberType>Method</MemberType>
+ <AssemblyInfo>
+ <AssemblyVersion>0.9.1.0</AssemblyVersion>
+ </AssemblyInfo>
+ <ReturnValue>
+ <ReturnType>Gst.Message</ReturnType>
+ </ReturnValue>
+ <Parameters>
+ <Parameter Name="src" Type="Gst.Object" />
+ <Parameter Name="state" Type="Gst.State" />
+ </Parameters>
+ <Docs>
+ <param name="src">To be added.</param>
+ <param name="state">To be added.</param>
+ <summary>To be added.</summary>
+ <returns>To be added.</returns>
+ <remarks>To be added.</remarks>
+ </Docs>
+ </Member>
<Member MemberName="NewSegmentDone">
<MemberSignature Language="C#" Value="public static Gst.Message NewSegmentDone (Gst.Object src, Gst.Format format, long position);" />
<MemberType>Method</MemberType>
@@ -1831,6 +1852,24 @@
<remarks>To be added.</remarks>
</Docs>
</Member>
+ <Member MemberName="ParseRequestState">
+ <MemberSignature Language="C#" Value="public void ParseRequestState (out Gst.State state);" />
+ <MemberType>Method</MemberType>
+ <AssemblyInfo>
+ <AssemblyVersion>0.9.1.0</AssemblyVersion>
+ </AssemblyInfo>
+ <ReturnValue>
+ <ReturnType>System.Void</ReturnType>
+ </ReturnValue>
+ <Parameters>
+ <Parameter Name="state" Type="Gst.State&amp;" RefType="out" />
+ </Parameters>
+ <Docs>
+ <param name="state">To be added.</param>
+ <summary>To be added.</summary>
+ <remarks>To be added.</remarks>
+ </Docs>
+ </Member>
<Member MemberName="ParseSegmentDone">
<MemberSignature Language="C#" Value="public void ParseSegmentDone (out Gst.Format format, out long position);" />
<MemberType>Method</MemberType>
diff --git a/gstreamer-sharp/Message.custom b/gstreamer-sharp/Message.custom
index 3e4054f..cb11c42 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);
+}
+