diff options
author | Sandino Flores <tigrux@gmail.com> | 2010-02-15 22:37:15 -0600 |
---|---|---|
committer | Zeeshan Ali (Khattak) <zeeshanak@gnome.org> | 2010-02-16 17:17:41 +0200 |
commit | 359a764edcf91085f3d92a8b5872c1491eb24d94 (patch) | |
tree | ed39c16699d030ac18fdd2a228159ae7242a0d18 | |
parent | 5afa47385519ed9eddb3ff0131bc5d87f580dec4 (diff) | |
download | vala-359a764edcf91085f3d92a8b5872c1491eb24d94.tar.gz |
gstreamer-0.10: Gst.PluginDesc is a structure
Gst.PluginDesc must be binded as structure and not a class.
Fixes bug 610065
-rw-r--r-- | vapi/gstreamer-0.10.vapi | 32 | ||||
-rw-r--r-- | vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala | 15 | ||||
-rw-r--r-- | vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata | 1 |
3 files changed, 32 insertions, 16 deletions
diff --git a/vapi/gstreamer-0.10.vapi b/vapi/gstreamer-0.10.vapi index bf6677072..d06408172 100644 --- a/vapi/gstreamer-0.10.vapi +++ b/vapi/gstreamer-0.10.vapi @@ -954,13 +954,13 @@ namespace Gst { [CCode (cheader_filename = "gst/gst.h")] public class Plugin : Gst.Object { public weak string basename; - public weak Gst.PluginDesc desc; + public Gst.PluginDesc desc; public ulong file_mtime; public int64 file_size; public weak string filename; public uint flags; public weak GLib.Module module; - public weak Gst.PluginDesc orig_desc; + public Gst.PluginDesc orig_desc; public bool registered; public void add_dependency (string env_vars, string paths, string names, Gst.PluginDependencyFlags flags); public void add_dependency_simple (string env_vars, string paths, string names, Gst.PluginDependencyFlags flags); @@ -985,20 +985,6 @@ namespace Gst { public static bool register_static_full (int major_version, int minor_version, string name, string description, Gst.PluginInitFullFunc init_full_func, string version, string license, string source, string package, string origin); public void set_cache_data (Gst.Structure cache_data); } - [Compact] - [CCode (cheader_filename = "gst/gst.h")] - public class PluginDesc { - public weak string description; - public weak string license; - public int major_version; - public int minor_version; - public weak string name; - public weak string origin; - public weak string package; - public weak Gst.PluginInitFunc plugin_init; - public weak string source; - public weak string version; - } [CCode (cheader_filename = "gst/gst.h")] public class PluginFeature : Gst.Object { public bool loaded; @@ -1538,6 +1524,20 @@ namespace Gst { [CCode (type_id = "GST_TYPE_LIST", cheader_filename = "gst/gst.h")] public struct List { } + [CCode (type_id = "GST_TYPE_PLUGIN_DESC", cheader_filename = "gst/gst.h")] + public struct PluginDesc { + public int major_version; + public int minor_version; + public weak string name; + public weak string description; + public weak Gst.PluginInitFunc plugin_init; + public weak string version; + public weak string license; + public weak string source; + public weak string package; + public weak string origin; + public weak void*[] _gst_reserved; + } [CCode (type_id = "GST_TYPE_STATIC_CAPS", cheader_filename = "gst/gst.h")] public struct StaticCaps { [CCode (cname = "string")] diff --git a/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala b/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala index ca2cf2253..f213aba4f 100644 --- a/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala +++ b/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala @@ -250,4 +250,19 @@ namespace Gst { public bool parse_file(string fname, string root); public unowned Element get_element(string name); } + + [CCode (cheader_filename = "gst/gst.h")] + public struct PluginDesc { + public int major_version; + public int minor_version; + public weak string name; + public weak string description; + public weak Gst.PluginInitFunc plugin_init; + public weak string version; + public weak string license; + public weak string source; + public weak string package; + public weak string origin; + void *_gst_reserved[]; + } } diff --git a/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata b/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata index d47e1e8cb..a92931add 100644 --- a/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata +++ b/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata @@ -414,3 +414,4 @@ GstBufferListClass hidden="1" GstTagSetterIFace hidden="1" gst_tag_setter_add_tag_values ellipsis="1" gst_tag_setter_add_tags ellipsis="1" +GstPluginDesc hidden="1" |