| 1 | // Generated by gmmproc 2.50.1 -- DO NOT MODIFY! |
| 2 | |
| 3 | |
| 4 | #include <gstreamermmconfig.h> |
| 5 | #ifndef GSTREAMERMM_DISABLE_DEPRECATED |
| 6 | |
| 7 | |
| 8 | #include <glibmm.h> |
| 9 | |
| 10 | #include <gstreamermm/fakesrc.h> |
| 11 | #include <gstreamermm/private/fakesrc_p.h> |
| 12 | |
| 13 | |
| 14 | // Generated by generate_plugin_gmmproc_file. Don't edit this file. |
| 15 | |
| 16 | |
| 17 | extern "C" |
| 18 | { |
| 19 | |
| 20 | static GType gst_fake_src_data_type_get_type() |
| 21 | { |
| 22 | static GType const type = g_type_from_name("GstFakeSrcDataType"); |
| 23 | return type; |
| 24 | } |
| 25 | |
| 26 | static GType gst_fake_src_size_type_get_type() |
| 27 | { |
| 28 | static GType const type = g_type_from_name("GstFakeSrcSizeType"); |
| 29 | return type; |
| 30 | } |
| 31 | |
| 32 | static GType gst_fake_src_fill_type_get_type() |
| 33 | { |
| 34 | static GType const type = g_type_from_name("GstFakeSrcFillType"); |
| 35 | return type; |
| 36 | } |
| 37 | |
| 38 | GType gst_fake_src_gstreamermm_get_type() |
| 39 | { |
| 40 | static GType type = 0; |
| 41 | GstElementFactory* factory = 0; |
| 42 | GstPluginFeature* feature = 0; |
| 43 | |
| 44 | if(!type) |
| 45 | { |
| 46 | factory = gst_element_factory_find("fakesrc"); |
| 47 | // Make sure that the feature is actually loaded: |
| 48 | if(factory) |
| 49 | { |
| 50 | feature = |
| 51 | gst_plugin_feature_load(GST_PLUGIN_FEATURE(factory)); |
| 52 | |
| 53 | g_object_unref(factory); |
| 54 | factory = GST_ELEMENT_FACTORY(feature); |
| 55 | type = gst_element_factory_get_element_type(factory); |
| 56 | g_object_unref(factory); |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | return type; |
| 61 | } |
| 62 | |
| 63 | } // extern "C" |
| 64 | |
| 65 | namespace Gst |
| 66 | { |
| 67 | |
| 68 | FakeSrc::FakeSrc() |
| 69 | : // Mark this class as non-derived to allow C++ vfuncs to be skipped. |
| 70 | Glib::ObjectBase(nullptr), |
| 71 | Gst::BaseSrc(Glib::ConstructParams(fakesrc_class_.init(), "name",static_cast<char*>(0), nullptr)) |
| 72 | {} |
| 73 | |
| 74 | FakeSrc::FakeSrc(const Glib::ustring& name) |
| 75 | : // Mark this class as non-derived to allow C++ vfuncs to be skipped. |
| 76 | Glib::ObjectBase(nullptr), |
| 77 | Gst::BaseSrc(Glib::ConstructParams(fakesrc_class_.init(), "name",name.c_str(), nullptr)) |
| 78 | {} |
| 79 | |
| 80 | } |
| 81 | |
| 82 | namespace |
| 83 | { |
| 84 | |
| 85 | |
| 86 | static void FakeSrc_signal_handoff_callback(GstFakeSrc* self, GstBuffer* p0,GstPad* p1,void* data) |
| 87 | { |
| 88 | using namespace Gst; |
| 89 | using SlotType = sigc::slot< void,const Glib::RefPtr<Gst::Buffer>&,const Glib::RefPtr<Gst::Pad>& >; |
| 90 | |
| 91 | auto obj = dynamic_cast<FakeSrc*>(Glib::ObjectBase::_get_current_wrapper((GObject*) self)); |
| 92 | // Do not try to call a signal on a disassociated wrapper. |
| 93 | if(obj) |
| 94 | { |
| 95 | try |
| 96 | { |
| 97 | if(const auto slot = Glib::SignalProxyNormal::data_to_slot(data)) |
| 98 | (*static_cast<SlotType*>(slot))(Glib::wrap(p0, true) |
| 99 | , Glib::wrap(p1, true) |
| 100 | ); |
| 101 | } |
| 102 | catch(...) |
| 103 | { |
| 104 | Glib::exception_handlers_invoke(); |
| 105 | } |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | static const Glib::SignalProxyInfo FakeSrc_signal_handoff_info = |
| 110 | { |
| 111 | "handoff", |
| 112 | (GCallback) &FakeSrc_signal_handoff_callback, |
| 113 | (GCallback) &FakeSrc_signal_handoff_callback |
| 114 | }; |
| 115 | |
| 116 | |
| 117 | } // anonymous namespace |
| 118 | |
| 119 | // static |
| 120 | GType Glib::Value<Gst::FakeSrcDataType>::value_type() |
| 121 | { |
| 122 | return gst_fake_src_data_type_get_type(); |
| 123 | } |
| 124 | |
| 125 | // static |
| 126 | GType Glib::Value<Gst::FakeSrcSizeType>::value_type() |
| 127 | { |
| 128 | return gst_fake_src_size_type_get_type(); |
| 129 | } |
| 130 | |
| 131 | // static |
| 132 | GType Glib::Value<Gst::FakeSrcFillType>::value_type() |
| 133 | { |
| 134 | return gst_fake_src_fill_type_get_type(); |
| 135 | } |
| 136 | |
| 137 | |
| 138 | namespace Glib |
| 139 | { |
| 140 | |
| 141 | Glib::RefPtr<Gst::FakeSrc> wrap(GstFakeSrc* object, bool take_copy) |
| 142 | { |
| 143 | return Glib::RefPtr<Gst::FakeSrc>( dynamic_cast<Gst::FakeSrc*> (Glib::wrap_auto ((GObject*)(object), take_copy)) ); |
| 144 | //We use dynamic_cast<> in case of multiple inheritance. |
| 145 | } |
| 146 | |
| 147 | } /* namespace Glib */ |
| 148 | |
| 149 | |
| 150 | namespace Gst |
| 151 | { |
| 152 | |
| 153 | |
| 154 | /* The *_Class implementation: */ |
| 155 | |
| 156 | const Glib::Class& FakeSrc_Class::init() |
| 157 | { |
| 158 | if(!gtype_) // create the GType if necessary |
| 159 | { |
| 160 | // Glib::Class has to know the class init function to clone custom types. |
| 161 | class_init_func_ = &FakeSrc_Class::class_init_function; |
| 162 | |
| 163 | // This is actually just optimized away, apparently with no harm. |
| 164 | // Make sure that the parent type has been created. |
| 165 | //CppClassParent::CppObjectType::get_type(); |
| 166 | |
| 167 | // Create the wrapper type, with the same class/instance size as the base type. |
| 168 | register_derived_type(gst_fake_src_gstreamermm_get_type()); |
| 169 | |
| 170 | // Add derived versions of interfaces, if the C type implements any interfaces: |
| 171 | |
| 172 | } |
| 173 | |
| 174 | return *this; |
| 175 | } |
| 176 | |
| 177 | |
| 178 | void FakeSrc_Class::class_init_function(void* g_class, void* class_data) |
| 179 | { |
| 180 | const auto klass = static_cast<BaseClassType*>(g_class); |
| 181 | CppClassParent::class_init_function(klass, class_data); |
| 182 | |
| 183 | |
| 184 | } |
| 185 | |
| 186 | |
| 187 | Glib::ObjectBase* FakeSrc_Class::wrap_new(GObject* object) |
| 188 | { |
| 189 | return new FakeSrc((GstFakeSrc*)object); |
| 190 | } |
| 191 | |
| 192 | |
| 193 | /* The implementation: */ |
| 194 | |
| 195 | GstFakeSrc* FakeSrc::gobj_copy() |
| 196 | { |
| 197 | reference(); |
| 198 | return gobj(); |
| 199 | } |
| 200 | |
| 201 | FakeSrc::FakeSrc(const Glib::ConstructParams& construct_params) |
| 202 | : |
| 203 | Gst::BaseSrc(construct_params) |
| 204 | { |
| 205 | |
| 206 | } |
| 207 | |
| 208 | FakeSrc::FakeSrc(GstFakeSrc* castitem) |
| 209 | : |
| 210 | Gst::BaseSrc((GstBaseSrc*)(castitem)) |
| 211 | {} |
| 212 | |
| 213 | |
| 214 | FakeSrc::FakeSrc(FakeSrc&& src) noexcept |
| 215 | : Gst::BaseSrc(std::move(src)) |
| 216 | {} |
| 217 | |
| 218 | FakeSrc& FakeSrc::operator=(FakeSrc&& src) noexcept |
| 219 | { |
| 220 | Gst::BaseSrc::operator=(std::move(src)); |
| 221 | return *this; |
| 222 | } |
| 223 | |
| 224 | |
| 225 | FakeSrc::~FakeSrc() noexcept |
| 226 | {} |
| 227 | |
| 228 | |
| 229 | FakeSrc::CppClassType FakeSrc::fakesrc_class_; // initialize static member |
| 230 | |
| 231 | GType FakeSrc::get_type() |
| 232 | { |
| 233 | return fakesrc_class_.init().get_type(); |
| 234 | } |
| 235 | |
| 236 | |
| 237 | GType FakeSrc::get_base_type() |
| 238 | { |
| 239 | return gst_fake_src_gstreamermm_get_type(); |
| 240 | } |
| 241 | |
| 242 | |
| 243 | Glib::RefPtr<FakeSrc> FakeSrc::create() |
| 244 | { |
| 245 | return Glib::RefPtr<FakeSrc>( new FakeSrc() ); |
| 246 | } |
| 247 | |
| 248 | Glib::RefPtr<FakeSrc> FakeSrc::create(const Glib::ustring& name) |
| 249 | { |
| 250 | return Glib::RefPtr<FakeSrc>( new FakeSrc(name) ); |
| 251 | } |
| 252 | |
| 253 | |
| 254 | Glib::SignalProxy< void,const Glib::RefPtr<Gst::Buffer>&,const Glib::RefPtr<Gst::Pad>& > FakeSrc::signal_handoff() |
| 255 | { |
| 256 | return Glib::SignalProxy< void,const Glib::RefPtr<Gst::Buffer>&,const Glib::RefPtr<Gst::Pad>& >(this, &FakeSrc_signal_handoff_info); |
| 257 | } |
| 258 | |
| 259 | |
| 260 | Glib::PropertyProxy< Gst::FakeSrcDataType > FakeSrc::property_data() |
| 261 | { |
| 262 | return Glib::PropertyProxy< Gst::FakeSrcDataType >(this, "data"); |
| 263 | } |
| 264 | |
| 265 | Glib::PropertyProxy_ReadOnly< Gst::FakeSrcDataType > FakeSrc::property_data() const |
| 266 | { |
| 267 | return Glib::PropertyProxy_ReadOnly< Gst::FakeSrcDataType >(this, "data"); |
| 268 | } |
| 269 | |
| 270 | Glib::PropertyProxy< Gst::FakeSrcSizeType > FakeSrc::property_sizetype() |
| 271 | { |
| 272 | return Glib::PropertyProxy< Gst::FakeSrcSizeType >(this, "sizetype"); |
| 273 | } |
| 274 | |
| 275 | Glib::PropertyProxy_ReadOnly< Gst::FakeSrcSizeType > FakeSrc::property_sizetype() const |
| 276 | { |
| 277 | return Glib::PropertyProxy_ReadOnly< Gst::FakeSrcSizeType >(this, "sizetype"); |
| 278 | } |
| 279 | |
| 280 | Glib::PropertyProxy< int > FakeSrc::property_sizemin() |
| 281 | { |
| 282 | return Glib::PropertyProxy< int >(this, "sizemin"); |
| 283 | } |
| 284 | |
| 285 | Glib::PropertyProxy_ReadOnly< int > FakeSrc::property_sizemin() const |
| 286 | { |
| 287 | return Glib::PropertyProxy_ReadOnly< int >(this, "sizemin"); |
| 288 | } |
| 289 | |
| 290 | Glib::PropertyProxy< int > FakeSrc::property_sizemax() |
| 291 | { |
| 292 | return Glib::PropertyProxy< int >(this, "sizemax"); |
| 293 | } |
| 294 | |
| 295 | Glib::PropertyProxy_ReadOnly< int > FakeSrc::property_sizemax() const |
| 296 | { |
| 297 | return Glib::PropertyProxy_ReadOnly< int >(this, "sizemax"); |
| 298 | } |
| 299 | |
| 300 | Glib::PropertyProxy< Gst::FakeSrcFillType > FakeSrc::property_filltype() |
| 301 | { |
| 302 | return Glib::PropertyProxy< Gst::FakeSrcFillType >(this, "filltype"); |
| 303 | } |
| 304 | |
| 305 | Glib::PropertyProxy_ReadOnly< Gst::FakeSrcFillType > FakeSrc::property_filltype() const |
| 306 | { |
| 307 | return Glib::PropertyProxy_ReadOnly< Gst::FakeSrcFillType >(this, "filltype"); |
| 308 | } |
| 309 | |
| 310 | Glib::PropertyProxy< int > FakeSrc::property_datarate() |
| 311 | { |
| 312 | return Glib::PropertyProxy< int >(this, "datarate"); |
| 313 | } |
| 314 | |
| 315 | Glib::PropertyProxy_ReadOnly< int > FakeSrc::property_datarate() const |
| 316 | { |
| 317 | return Glib::PropertyProxy_ReadOnly< int >(this, "datarate"); |
| 318 | } |
| 319 | |
| 320 | Glib::PropertyProxy< bool > FakeSrc::property_sync() |
| 321 | { |
| 322 | return Glib::PropertyProxy< bool >(this, "sync"); |
| 323 | } |
| 324 | |
| 325 | Glib::PropertyProxy_ReadOnly< bool > FakeSrc::property_sync() const |
| 326 | { |
| 327 | return Glib::PropertyProxy_ReadOnly< bool >(this, "sync"); |
| 328 | } |
| 329 | |
| 330 | Glib::PropertyProxy< Glib::ustring > FakeSrc::property_pattern() |
| 331 | { |
| 332 | return Glib::PropertyProxy< Glib::ustring >(this, "pattern"); |
| 333 | } |
| 334 | |
| 335 | Glib::PropertyProxy_ReadOnly< Glib::ustring > FakeSrc::property_pattern() const |
| 336 | { |
| 337 | return Glib::PropertyProxy_ReadOnly< Glib::ustring >(this, "pattern"); |
| 338 | } |
| 339 | |
| 340 | Glib::PropertyProxy< bool > FakeSrc::property_signal_handoffs() |
| 341 | { |
| 342 | return Glib::PropertyProxy< bool >(this, "signal-handoffs"); |
| 343 | } |
| 344 | |
| 345 | Glib::PropertyProxy_ReadOnly< bool > FakeSrc::property_signal_handoffs() const |
| 346 | { |
| 347 | return Glib::PropertyProxy_ReadOnly< bool >(this, "signal-handoffs"); |
| 348 | } |
| 349 | |
| 350 | Glib::PropertyProxy< bool > FakeSrc::property_silent() |
| 351 | { |
| 352 | return Glib::PropertyProxy< bool >(this, "silent"); |
| 353 | } |
| 354 | |
| 355 | Glib::PropertyProxy_ReadOnly< bool > FakeSrc::property_silent() const |
| 356 | { |
| 357 | return Glib::PropertyProxy_ReadOnly< bool >(this, "silent"); |
| 358 | } |
| 359 | |
| 360 | Glib::PropertyProxy< bool > FakeSrc::property_dump() |
| 361 | { |
| 362 | return Glib::PropertyProxy< bool >(this, "dump"); |
| 363 | } |
| 364 | |
| 365 | Glib::PropertyProxy_ReadOnly< bool > FakeSrc::property_dump() const |
| 366 | { |
| 367 | return Glib::PropertyProxy_ReadOnly< bool >(this, "dump"); |
| 368 | } |
| 369 | |
| 370 | Glib::PropertyProxy< int > FakeSrc::property_parentsize() |
| 371 | { |
| 372 | return Glib::PropertyProxy< int >(this, "parentsize"); |
| 373 | } |
| 374 | |
| 375 | Glib::PropertyProxy_ReadOnly< int > FakeSrc::property_parentsize() const |
| 376 | { |
| 377 | return Glib::PropertyProxy_ReadOnly< int >(this, "parentsize"); |
| 378 | } |
| 379 | |
| 380 | Glib::PropertyProxy_ReadOnly< Glib::ustring > FakeSrc::property_last_message() const |
| 381 | { |
| 382 | return Glib::PropertyProxy_ReadOnly< Glib::ustring >(this, "last-message"); |
| 383 | } |
| 384 | |
| 385 | Glib::PropertyProxy< bool > FakeSrc::property_can_activate_pull() |
| 386 | { |
| 387 | return Glib::PropertyProxy< bool >(this, "can-activate-pull"); |
| 388 | } |
| 389 | |
| 390 | Glib::PropertyProxy_ReadOnly< bool > FakeSrc::property_can_activate_pull() const |
| 391 | { |
| 392 | return Glib::PropertyProxy_ReadOnly< bool >(this, "can-activate-pull"); |
| 393 | } |
| 394 | |
| 395 | Glib::PropertyProxy< bool > FakeSrc::property_can_activate_push() |
| 396 | { |
| 397 | return Glib::PropertyProxy< bool >(this, "can-activate-push"); |
| 398 | } |
| 399 | |
| 400 | Glib::PropertyProxy_ReadOnly< bool > FakeSrc::property_can_activate_push() const |
| 401 | { |
| 402 | return Glib::PropertyProxy_ReadOnly< bool >(this, "can-activate-push"); |
| 403 | } |
| 404 | |
| 405 | Glib::PropertyProxy< bool > FakeSrc::property_is_live() |
| 406 | { |
| 407 | return Glib::PropertyProxy< bool >(this, "is-live"); |
| 408 | } |
| 409 | |
| 410 | Glib::PropertyProxy_ReadOnly< bool > FakeSrc::property_is_live() const |
| 411 | { |
| 412 | return Glib::PropertyProxy_ReadOnly< bool >(this, "is-live"); |
| 413 | } |
| 414 | |
| 415 | Glib::PropertyProxy< Gst::Format > FakeSrc::property_format() |
| 416 | { |
| 417 | return Glib::PropertyProxy< Gst::Format >(this, "format"); |
| 418 | } |
| 419 | |
| 420 | Glib::PropertyProxy_ReadOnly< Gst::Format > FakeSrc::property_format() const |
| 421 | { |
| 422 | return Glib::PropertyProxy_ReadOnly< Gst::Format >(this, "format"); |
| 423 | } |
| 424 | |
| 425 | |
| 426 | } // namespace Gst |
| 427 | |
| 428 | #endif // GSTREAMERMM_DISABLE_DEPRECATED |
| 429 | |
| 430 |