summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2009-04-30 17:21:13 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-04-30 17:21:13 +0200
commit51540e9f801e0154dd2b357710e4c6ec67c46860 (patch)
tree8400a4dc581a855ac5b7aa0003512cfd1ee7ebe1
parent54a34ed67c39943b93893ded0d7a9b6610825455 (diff)
Fix indention and make Gst.Element.GetPadTemplates() a property
-rw-r--r--gstreamer-sharp/Element.custom34
1 files changed, 18 insertions, 16 deletions
diff --git a/gstreamer-sharp/Element.custom b/gstreamer-sharp/Element.custom
index 31e56b3..5c65a05 100644
--- a/gstreamer-sharp/Element.custom
+++ b/gstreamer-sharp/Element.custom
@@ -184,12 +184,12 @@ public Gst.QueryType[] GetQueryTypes () {
- [DllImport("gstreamer-0.10.dll")]
- static extern bool gst_element_send_event(IntPtr raw, IntPtr evnt);
+[DllImport ("gstreamer-0.10.dll") ]
+static extern bool gst_element_send_event (IntPtr raw, IntPtr evnt);
- public bool SendEvent(Gst.Event evnt) {
- bool raw_ret = gst_element_send_event(Handle, evnt == null ? IntPtr.Zero : gst_mini_object_ref (evnt.Handle));
- bool ret = raw_ret;
- return ret;
- }
+public bool SendEvent (Gst.Event evnt) {
+ bool raw_ret = gst_element_send_event (Handle, evnt == null ? IntPtr.Zero : gst_mini_object_ref (evnt.Handle));
+ bool ret = raw_ret;
+ return ret;
+}
-[DllImport("gstreamer-0.10.dll")]
+[DllImport ("gstreamer-0.10.dll") ]
static extern void gst_element_class_add_pad_template (IntPtr klass, IntPtr templ);
@@ -201,3 +201,3 @@ protected static void AddPadTemplate (GLib.GType gtype, Gst.PadTemplate templ) {
-[DllImport("gstreamer-0.10.dll")]
+[DllImport ("gstreamer-0.10.dll") ]
static extern IntPtr gst_element_class_get_pad_template (IntPtr klass, IntPtr name);
@@ -214,14 +214,16 @@ public Gst.PadTemplate GetPadTemplate (string name) {
-[DllImport("gstreamer-0.10.dll")]
+[DllImport ("gstreamer-0.10.dll") ]
static extern IntPtr gst_element_class_get_pad_template_list (IntPtr klass);
-public Gst.PadTemplate[] GetPadTemplates () {
- GLib.GType gtype = this.LookupGType ().ThresholdType;
- IntPtr class_ptr = new IntPtr (gtype.ClassPtr.ToInt64 ());
- IntPtr raw_ret = gst_element_class_get_pad_template_list (class_ptr);
+public Gst.PadTemplate[] PadTemplates {
+ get {
+ GLib.GType gtype = this.LookupGType ().ThresholdType;
+ IntPtr class_ptr = new IntPtr (gtype.ClassPtr.ToInt64 ());
+ IntPtr raw_ret = gst_element_class_get_pad_template_list (class_ptr);
- return (Gst.PadTemplate[]) GLib.Marshaller.ListPtrToArray (raw_ret, typeof(GLib.List), false, false, typeof(Gst.PadTemplate));
+ return (Gst.PadTemplate[]) GLib.Marshaller.ListPtrToArray (raw_ret, typeof (GLib.List), false, false, typeof (Gst.PadTemplate));
+ }
}
-[DllImport("gstreamer-0.10.dll")]
+[DllImport ("gstreamer-0.10.dll") ]
static extern void gst_element_class_set_details_simple (IntPtr klass, IntPtr longname, IntPtr classification, IntPtr desc, IntPtr author);