| 1 | // Generated by gmmproc 2.50.1 -- DO NOT MODIFY! |
| 2 | |
| 3 | |
| 4 | #include <glibmm.h> |
| 5 | |
| 6 | #include <gstreamermm/pluginfeature.h> |
| 7 | #include <gstreamermm/private/pluginfeature_p.h> |
| 8 | |
| 9 | |
| 10 | /* gstreamermm - a C++ wrapper for gstreamer |
| 11 | * |
| 12 | * Copyright 2008-2016 The gstreamermm Development Team |
| 13 | * |
| 14 | * This library is free software; you can redistribute it and/or |
| 15 | * modify it under the terms of the GNU Lesser General Public |
| 16 | * License as published by the Free Software Foundation; either |
| 17 | * version 2.1 of the License, or (at your option) any later version. |
| 18 | * |
| 19 | * This library is distributed in the hope that it will be useful, |
| 20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 22 | * Lesser General Public License for more details. |
| 23 | * |
| 24 | * You should have received a copy of the GNU Lesser General Public |
| 25 | * License along with this library; if not, write to the Free |
| 26 | * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 27 | */ |
| 28 | |
| 29 | #include <gst/gst.h> |
| 30 | |
| 31 | |
| 32 | namespace |
| 33 | { |
| 34 | } // anonymous namespace |
| 35 | |
| 36 | // static |
| 37 | GType Glib::Value<Gst::Rank>::value_type() |
| 38 | { |
| 39 | return gst_rank_get_type(); |
| 40 | } |
| 41 | |
| 42 | |
| 43 | namespace Glib |
| 44 | { |
| 45 | |
| 46 | Glib::RefPtr<Gst::PluginFeature> wrap(GstPluginFeature* object, bool take_copy) |
| 47 | { |
| 48 | return Glib::RefPtr<Gst::PluginFeature>( dynamic_cast<Gst::PluginFeature*> (Glib::wrap_auto ((GObject*)(object), take_copy)) ); |
| 49 | //We use dynamic_cast<> in case of multiple inheritance. |
| 50 | } |
| 51 | |
| 52 | } /* namespace Glib */ |
| 53 | |
| 54 | |
| 55 | namespace Gst |
| 56 | { |
| 57 | |
| 58 | |
| 59 | /* The *_Class implementation: */ |
| 60 | |
| 61 | const Glib::Class& PluginFeature_Class::init() |
| 62 | { |
| 63 | if(!gtype_) // create the GType if necessary |
| 64 | { |
| 65 | // Glib::Class has to know the class init function to clone custom types. |
| 66 | class_init_func_ = &PluginFeature_Class::class_init_function; |
| 67 | |
| 68 | // This is actually just optimized away, apparently with no harm. |
| 69 | // Make sure that the parent type has been created. |
| 70 | //CppClassParent::CppObjectType::get_type(); |
| 71 | |
| 72 | // Create the wrapper type, with the same class/instance size as the base type. |
| 73 | register_derived_type(gst_plugin_feature_get_type()); |
| 74 | |
| 75 | // Add derived versions of interfaces, if the C type implements any interfaces: |
| 76 | |
| 77 | } |
| 78 | |
| 79 | return *this; |
| 80 | } |
| 81 | |
| 82 | |
| 83 | void PluginFeature_Class::class_init_function(void* g_class, void* class_data) |
| 84 | { |
| 85 | const auto klass = static_cast<BaseClassType*>(g_class); |
| 86 | CppClassParent::class_init_function(klass, class_data); |
| 87 | |
| 88 | |
| 89 | } |
| 90 | |
| 91 | |
| 92 | Glib::ObjectBase* PluginFeature_Class::wrap_new(GObject* object) |
| 93 | { |
| 94 | return new PluginFeature((GstPluginFeature*)object); |
| 95 | } |
| 96 | |
| 97 | |
| 98 | /* The implementation: */ |
| 99 | |
| 100 | GstPluginFeature* PluginFeature::gobj_copy() |
| 101 | { |
| 102 | reference(); |
| 103 | return gobj(); |
| 104 | } |
| 105 | |
| 106 | PluginFeature::PluginFeature(const Glib::ConstructParams& construct_params) |
| 107 | : |
| 108 | Object(construct_params) |
| 109 | { |
| 110 | |
| 111 | } |
| 112 | |
| 113 | PluginFeature::PluginFeature(GstPluginFeature* castitem) |
| 114 | : |
| 115 | Object((GstObject*)(castitem)) |
| 116 | {} |
| 117 | |
| 118 | |
| 119 | PluginFeature::PluginFeature(PluginFeature&& src) noexcept |
| 120 | : Object(std::move(src)) |
| 121 | {} |
| 122 | |
| 123 | PluginFeature& PluginFeature::operator=(PluginFeature&& src) noexcept |
| 124 | { |
| 125 | Object::operator=(std::move(src)); |
| 126 | return *this; |
| 127 | } |
| 128 | |
| 129 | |
| 130 | PluginFeature::~PluginFeature() noexcept |
| 131 | {} |
| 132 | |
| 133 | |
| 134 | PluginFeature::CppClassType PluginFeature::pluginfeature_class_; // initialize static member |
| 135 | |
| 136 | GType PluginFeature::get_type() |
| 137 | { |
| 138 | return pluginfeature_class_.init().get_type(); |
| 139 | } |
| 140 | |
| 141 | |
| 142 | GType PluginFeature::get_base_type() |
| 143 | { |
| 144 | return gst_plugin_feature_get_type(); |
| 145 | } |
| 146 | |
| 147 | |
| 148 | void PluginFeature::set_rank(guint rank) |
| 149 | { |
| 150 | gst_plugin_feature_set_rank(gobj(), rank); |
| 151 | } |
| 152 | |
| 153 | guint PluginFeature::get_rank() const |
| 154 | { |
| 155 | return gst_plugin_feature_get_rank(const_cast<GstPluginFeature*>(gobj())); |
| 156 | } |
| 157 | |
| 158 | Glib::RefPtr<Gst::PluginFeature> PluginFeature::load() |
| 159 | { |
| 160 | return Glib::wrap(gst_plugin_feature_load(gobj())); |
| 161 | } |
| 162 | |
| 163 | Glib::RefPtr<Gst::Plugin> PluginFeature::get_plugin() const |
| 164 | { |
| 165 | return Glib::wrap(gst_plugin_feature_get_plugin(const_cast<GstPluginFeature*>(gobj()))); |
| 166 | } |
| 167 | |
| 168 | Glib::ustring PluginFeature::get_plugin_name() const |
| 169 | { |
| 170 | return Glib::convert_const_gchar_ptr_to_ustring(gst_plugin_feature_get_plugin_name(const_cast<GstPluginFeature*>(gobj()))); |
| 171 | } |
| 172 | |
| 173 | bool PluginFeature::check_version(guint min_major, guint min_minor, guint min_micro) const |
| 174 | { |
| 175 | return gst_plugin_feature_check_version(const_cast<GstPluginFeature*>(gobj()), min_major, min_minor, min_micro); |
| 176 | } |
| 177 | |
| 178 | |
| 179 | } // namespace Gst |
| 180 | |
| 181 |