| 1 | // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!cxx . . $ `<file>/gstreamer/gstreamermm/toc.cc`/ |
| 2 | |
| 3 | |
| 4 | #include <glibmm.h> |
| 5 | |
| 6 | #include <gstreamermm/toc.h>cxx . . $ `<file>/gstreamer/gstreamermm/toc.h`/ |
| 7 | #include <gstreamermm/private/toc_p.h>cxx . . $ `<file>/gstreamer/gstreamermm/private/toc_p.h`/ |
| 8 | |
| 9 | |
| 10 | /* |
| 11 | * toc.ccg |
| 12 | * |
| 13 | * Created on: Sep 25, 2013 |
| 14 | * Author: m.kolny |
| 15 | */ |
| 16 | /* gstreamermm - a C++ wrapper for gstreamer |
| 17 | * |
| 18 | * Copyright 2008-2013 The gstreamermm Development Team |
| 19 | * |
| 20 | * This library is free software; you can redistribute it and/or |
| 21 | * modify it under the terms of the GNU Lesser General Public |
| 22 | * License as published by the Free Software Foundation; either |
| 23 | * version 2.1 of the License, or (at your option) any later version. |
| 24 | * |
| 25 | * This library is distributed in the hope that it will be useful, |
| 26 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 27 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 28 | * Lesser General Public License for more details. |
| 29 | * |
| 30 | * You should have received a copy of the GNU Lesser General Public |
| 31 | * License along with this library; if not, write to the Free |
| 32 | * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 33 | */ |
| 34 | |
| 35 | |
| 36 | namespacecxx . . $ `$anonymous_namespace_gstreamer/gstreamermm/toc.cc`/ |
| 37 | { |
| 38 | } // anonymous namespace |
| 39 | |
| 40 | // static |
| 41 | GType Glibcxx . . $ Glib/::Valuecxx . . $ Glib/Value#<Gst::TocScope>::value_typecxx . . $ Glib/Value#value_type(f708dce9a8856c70).() |
| 42 | { |
| 43 | return gst_toc_scope_get_type(); |
| 44 | } |
| 45 | |
| 46 | // static |
| 47 | GType Glibcxx . . $ Glib/::Valuecxx . . $ Glib/Value#<Gst::TocEntryType>::value_typecxx . . $ Glib/Value#value_type(f708dce9a8856c70).() |
| 48 | { |
| 49 | return gst_toc_entry_type_get_type(); |
| 50 | } |
| 51 | |
| 52 | // static |
| 53 | GType Glibcxx . . $ Glib/::Valuecxx . . $ Glib/Value#<Gst::TocLoopType>::value_typecxx . . $ Glib/Value#value_type(f708dce9a8856c70).() |
| 54 | { |
| 55 | return gst_toc_loop_type_get_type(); |
| 56 | } |
| 57 | |
| 58 | |
| 59 | /* Why reinterpret_cast<Toc*>(gobject) is needed: |
| 60 | * |
| 61 | * A Toc instance is in fact always a GstToc instance. |
| 62 | * Unfortunately, GstToc cannot be a member of Toc, |
| 63 | * because it is an opaque struct. Also, the C interface does not provide |
| 64 | * any hooks to install a destroy notification handler, thus we cannot |
| 65 | * wrap it dynamically either. |
| 66 | * |
| 67 | * The cast works because Toc does not have any member data, and |
| 68 | * it is impossible to derive from it. This is ensured by using final on the |
| 69 | * class and by using = delete on the default constructor. |
| 70 | */ |
| 71 | |
| 72 | namespace Glibcxx . . $ Glib/ |
| 73 | { |
| 74 | |
| 75 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Toccxx . . $ Gst/Toc#> wrapcxx . . $ Glib/wrap(a2b812a7994713a8).(GstToc* object, bool take_copy) |
| 76 | { |
| 77 | if(take_copy && object) |
| 78 | gst_toc_refcxx . . $ `<external>/9379228647883769460/gsttoc.h:164:9`!(object); |
| 79 | |
| 80 | // See the comment at the top of this file, if you want to know why the cast works. |
| 81 | return Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Toccxx . . $ Gst/Toc#>(reinterpret_cast<Gstcxx . . $ Gst/::Toccxx . . $ Gst/Toc#*>(object)); |
| 82 | } |
| 83 | |
| 84 | } // namespace Glib |
| 85 | |
| 86 | |
| 87 | namespace Gstcxx . . $ Gst/ |
| 88 | { |
| 89 | |
| 90 | |
| 91 | void Toccxx . . $ Gst/Toc#::referencecxx . . $ Gst/Toc#reference(83f5f38750778ac8).() const |
| 92 | { |
| 93 | // See the comment at the top of this file, if you want to know why the cast works. |
| 94 | gst_toc_refcxx . . $ `<external>/9379228647883769460/gsttoc.h:164:9`!(reinterpret_cast<GstToc*>(const_cast<Toc*>(this))); |
| 95 | } |
| 96 | |
| 97 | void Toccxx . . $ Gst/Toc#::unreferencecxx . . $ Gst/Toc#unreference(83f5f38750778ac8).() const |
| 98 | { |
| 99 | // See the comment at the top of this file, if you want to know why the cast works. |
| 100 | gst_toc_unrefcxx . . $ `<external>/9379228647883769460/gsttoc.h:165:9`!(reinterpret_cast<GstToc*>(const_cast<Toc*>(this))); |
| 101 | } |
| 102 | |
| 103 | GstToc* Toccxx . . $ Gst/Toc#::gobjcxx . . $ Gst/Toc#gobj(28982b5faf45c9f6).() |
| 104 | { |
| 105 | // See the comment at the top of this file, if you want to know why the cast works. |
| 106 | return reinterpret_cast<GstToc*>(this); |
| 107 | } |
| 108 | |
| 109 | const GstToc* Toccxx . . $ Gst/Toc#::gobjcxx . . $ Gst/Toc#gobj(9b58dac895ec1577).() const |
| 110 | { |
| 111 | // See the comment at the top of this file, if you want to know why the cast works. |
| 112 | return reinterpret_cast<const GstToc*>(this); |
| 113 | } |
| 114 | |
| 115 | GstToc* Toccxx . . $ Gst/Toc#::gobj_copycxx . . $ Gst/Toc#gobj_copy(3b28a9333414326b).() const |
| 116 | { |
| 117 | // See the comment at the top of this file, if you want to know why the cast works. |
| 118 | const auto gobject = reinterpret_cast<GstToc*>(const_cast<Toccxx . . $ Gst/Toc#*>(this)); |
| 119 | gst_toc_refcxx . . $ `<external>/9379228647883769460/gsttoc.h:164:9`!(gobject); |
| 120 | return gobject; |
| 121 | } |
| 122 | |
| 123 | |
| 124 | void Toccxx . . $ Gst/Toc#::append_entrycxx . . $ Gst/Toc#append_entry(f0b69f46f07ee349).(Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::TocEntrycxx . . $ Gst/TocEntry#> entry) |
| 125 | { |
| 126 | gst_toc_append_entry(gobjcxx . . $ Gst/Toc#gobj(28982b5faf45c9f6).(), Glibcxx . . $ Glib/::unwrapcxx . . $ Glib/unwrap(d8611424b789c87e).(entry)); |
| 127 | } |
| 128 | |
| 129 | void Toccxx . . $ Gst/Toc#::dumpcxx . . $ Gst/Toc#dump(49f6e7a06ebc5aa8).() |
| 130 | { |
| 131 | gst_toc_dump(gobjcxx . . $ Gst/Toc#gobj(28982b5faf45c9f6).()); |
| 132 | } |
| 133 | |
| 134 | void Toccxx . . $ Gst/Toc#::dumpcxx . . $ Gst/Toc#dump(83f5f38750778ac8).() const |
| 135 | { |
| 136 | return const_cast<Toccxx . . $ Gst/Toc#*>(this)->dumpcxx . . $ Gst/Toc#dump(49f6e7a06ebc5aa8).(); |
| 137 | } |
| 138 | |
| 139 | void Toccxx . . $ Gst/Toc#::set_tagscxx . . $ Gst/Toc#set_tags(19efecf709f99df7).(const Gstcxx . . $ Gst/::TagListcxx . . $ Gst/TagList#& tags) |
| 140 | { |
| 141 | gst_toc_set_tags(gobjcxx . . $ Gst/Toc#gobj(28982b5faf45c9f6).(), const_cast<GstTagList*>(tags.gobjcxx . . $ Gst/TagList#gobj(5c324d3f5f7ad2ff).())); |
| 142 | } |
| 143 | |
| 144 | Gstcxx . . $ Gst/::TagListcxx . . $ Gst/TagList# Toccxx . . $ Gst/Toc#::get_tagscxx . . $ Gst/Toc#get_tags(889ac80de6f12e04).() const |
| 145 | { |
| 146 | return Glibcxx . . $ Glib/::wrap_taglistcxx . . $ Glib/wrap_taglist(ca8db306bf7a0297).(const_cast<GstTagList*>(gst_toc_get_tags(const_cast<GstToc*>(gobjcxx . . $ Gst/Toc#gobj(9b58dac895ec1577).()))), true); |
| 147 | } |
| 148 | |
| 149 | Gstcxx . . $ Gst/::TocScopecxx . . $ Gst/TocScope# Toccxx . . $ Gst/Toc#::get_scopecxx . . $ Gst/Toc#get_scope(c9650ca1588d8fba).() const |
| 150 | { |
| 151 | return ((Gstcxx . . $ Gst/::TocScopecxx . . $ Gst/TocScope#)(gst_toc_get_scope(const_cast<GstToc*>(gobjcxx . . $ Gst/Toc#gobj(9b58dac895ec1577).())))); |
| 152 | } |
| 153 | |
| 154 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::TocEntrycxx . . $ Gst/TocEntry#> Toccxx . . $ Gst/Toc#::find_entrycxx . . $ Gst/Toc#find_entry(14a0cc1ea6efd2a).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& uid) const |
| 155 | { |
| 156 | return Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(8b2cc69643758d87).(gst_toc_find_entry(const_cast<GstToc*>(gobjcxx . . $ Gst/Toc#gobj(9b58dac895ec1577).()), uid.c_strcxx . . $ Glib/ustring#c_str(a9f41ea0e82d88cf).())); |
| 157 | } |
| 158 | |
| 159 | |
| 160 | } // namespace Gst |
| 161 | |
| 162 | |
| 163 | /* Why reinterpret_cast<TocEntry*>(gobject) is needed: |
| 164 | * |
| 165 | * A TocEntry instance is in fact always a GstTocEntry instance. |
| 166 | * Unfortunately, GstTocEntry cannot be a member of TocEntry, |
| 167 | * because it is an opaque struct. Also, the C interface does not provide |
| 168 | * any hooks to install a destroy notification handler, thus we cannot |
| 169 | * wrap it dynamically either. |
| 170 | * |
| 171 | * The cast works because TocEntry does not have any member data, and |
| 172 | * it is impossible to derive from it. This is ensured by using final on the |
| 173 | * class and by using = delete on the default constructor. |
| 174 | */ |
| 175 | |
| 176 | namespace Glibcxx . . $ Glib/ |
| 177 | { |
| 178 | |
| 179 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::TocEntrycxx . . $ Gst/TocEntry#> wrapcxx . . $ Glib/wrap(8b2cc69643758d87).(GstTocEntry* object, bool take_copy) |
| 180 | { |
| 181 | if(take_copy && object) |
| 182 | gst_toc_entry_refcxx . . $ `<external>/9379228647883769460/gsttoc.h:174:9`!(object); |
| 183 | |
| 184 | // See the comment at the top of this file, if you want to know why the cast works. |
| 185 | return Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::TocEntrycxx . . $ Gst/TocEntry#>(reinterpret_cast<Gstcxx . . $ Gst/::TocEntrycxx . . $ Gst/TocEntry#*>(object)); |
| 186 | } |
| 187 | |
| 188 | } // namespace Glib |
| 189 | |
| 190 | |
| 191 | namespace Gstcxx . . $ Gst/ |
| 192 | { |
| 193 | |
| 194 | |
| 195 | void TocEntrycxx . . $ Gst/TocEntry#::referencecxx . . $ Gst/TocEntry#reference(83f5f38750778ac8).() const |
| 196 | { |
| 197 | // See the comment at the top of this file, if you want to know why the cast works. |
| 198 | gst_toc_entry_refcxx . . $ `<external>/9379228647883769460/gsttoc.h:174:9`!(reinterpret_cast<GstTocEntry*>(const_cast<TocEntry*>(this))); |
| 199 | } |
| 200 | |
| 201 | void TocEntrycxx . . $ Gst/TocEntry#::unreferencecxx . . $ Gst/TocEntry#unreference(83f5f38750778ac8).() const |
| 202 | { |
| 203 | // See the comment at the top of this file, if you want to know why the cast works. |
| 204 | gst_toc_entry_unrefcxx . . $ `<external>/9379228647883769460/gsttoc.h:175:9`!(reinterpret_cast<GstTocEntry*>(const_cast<TocEntry*>(this))); |
| 205 | } |
| 206 | |
| 207 | GstTocEntry* TocEntrycxx . . $ Gst/TocEntry#::gobjcxx . . $ Gst/TocEntry#gobj(179286ea464f3f06).() |
| 208 | { |
| 209 | // See the comment at the top of this file, if you want to know why the cast works. |
| 210 | return reinterpret_cast<GstTocEntry*>(this); |
| 211 | } |
| 212 | |
| 213 | const GstTocEntry* TocEntrycxx . . $ Gst/TocEntry#::gobjcxx . . $ Gst/TocEntry#gobj(b2d1b4ac26dda10c).() const |
| 214 | { |
| 215 | // See the comment at the top of this file, if you want to know why the cast works. |
| 216 | return reinterpret_cast<const GstTocEntry*>(this); |
| 217 | } |
| 218 | |
| 219 | GstTocEntry* TocEntrycxx . . $ Gst/TocEntry#::gobj_copycxx . . $ Gst/TocEntry#gobj_copy(fc2c49b024db265c).() const |
| 220 | { |
| 221 | // See the comment at the top of this file, if you want to know why the cast works. |
| 222 | const auto gobject = reinterpret_cast<GstTocEntry*>(const_cast<TocEntrycxx . . $ Gst/TocEntry#*>(this)); |
| 223 | gst_toc_entry_refcxx . . $ `<external>/9379228647883769460/gsttoc.h:174:9`!(gobject); |
| 224 | return gobject; |
| 225 | } |
| 226 | |
| 227 | TocEntryTypecxx . . $ Gst/TocEntryType# TocEntrycxx . . $ Gst/TocEntry#::get_entry_typecxx . . $ Gst/TocEntry#get_entry_type(88bec5aaab889e2a).() |
| 228 | { |
| 229 | return ((TocEntryTypecxx . . $ Gst/TocEntryType#)(gst_toc_entry_get_entry_type(gobjcxx . . $ Gst/TocEntry#gobj(179286ea464f3f06).()))); |
| 230 | } |
| 231 | |
| 232 | Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring# TocEntrycxx . . $ Gst/TocEntry#::get_uidcxx . . $ Gst/TocEntry#get_uid(f6d16334134ff78f).() |
| 233 | { |
| 234 | return Glibcxx . . $ Glib/::convert_const_gchar_ptr_to_ustringcxx . . $ Glib/convert_const_gchar_ptr_to_ustring(cf5f32d7f0671127).(gst_toc_entry_get_uid(gobjcxx . . $ Gst/TocEntry#gobj(179286ea464f3f06).())); |
| 235 | } |
| 236 | |
| 237 | void TocEntrycxx . . $ Gst/TocEntry#::append_sub_entrycxx . . $ Gst/TocEntry#append_sub_entry(f0b69f46f07ee349).(Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::TocEntrycxx . . $ Gst/TocEntry#> entry) |
| 238 | { |
| 239 | gst_toc_entry_append_sub_entry(gobjcxx . . $ Gst/TocEntry#gobj(179286ea464f3f06).(), Glibcxx . . $ Glib/::unwrapcxx . . $ Glib/unwrap(d8611424b789c87e).(entry)); |
| 240 | } |
| 241 | |
| 242 | bool TocEntrycxx . . $ Gst/TocEntry#::is_alternativecxx . . $ Gst/TocEntry#is_alternative(c9857a73d68e59ba).() |
| 243 | { |
| 244 | return gst_toc_entry_is_alternative(gobjcxx . . $ Gst/TocEntry#gobj(179286ea464f3f06).()); |
| 245 | } |
| 246 | |
| 247 | bool TocEntrycxx . . $ Gst/TocEntry#::is_alternativecxx . . $ Gst/TocEntry#is_alternative(50ce9a9e25b4a850).() const |
| 248 | { |
| 249 | return const_cast<TocEntrycxx . . $ Gst/TocEntry#*>(this)->is_alternativecxx . . $ Gst/TocEntry#is_alternative(c9857a73d68e59ba).(); |
| 250 | } |
| 251 | |
| 252 | bool TocEntrycxx . . $ Gst/TocEntry#::is_sequencecxx . . $ Gst/TocEntry#is_sequence(c9857a73d68e59ba).() |
| 253 | { |
| 254 | return gst_toc_entry_is_sequence(gobjcxx . . $ Gst/TocEntry#gobj(179286ea464f3f06).()); |
| 255 | } |
| 256 | |
| 257 | bool TocEntrycxx . . $ Gst/TocEntry#::is_sequencecxx . . $ Gst/TocEntry#is_sequence(50ce9a9e25b4a850).() const |
| 258 | { |
| 259 | return const_cast<TocEntrycxx . . $ Gst/TocEntry#*>(this)->is_sequencecxx . . $ Gst/TocEntry#is_sequence(c9857a73d68e59ba).(); |
| 260 | } |
| 261 | |
| 262 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::TocEntrycxx . . $ Gst/TocEntry#> TocEntrycxx . . $ Gst/TocEntry#::get_parentcxx . . $ Gst/TocEntry#get_parent(8f4266aca2963a0f).() |
| 263 | { |
| 264 | return Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(8b2cc69643758d87).(gst_toc_entry_get_parent(gobjcxx . . $ Gst/TocEntry#gobj(179286ea464f3f06).())); |
| 265 | } |
| 266 | |
| 267 | void TocEntrycxx . . $ Gst/TocEntry#::set_start_stop_timescxx . . $ Gst/TocEntry#set_start_stop_times(a8896fd0f69df779).(gint64 start, gint64 stop) |
| 268 | { |
| 269 | gst_toc_entry_set_start_stop_times(gobjcxx . . $ Gst/TocEntry#gobj(179286ea464f3f06).(), start, stop); |
| 270 | } |
| 271 | |
| 272 | bool TocEntrycxx . . $ Gst/TocEntry#::get_start_stop_timescxx . . $ Gst/TocEntry#get_start_stop_times(161986a8b14e41d2).(gint64& start, gint64& stop) |
| 273 | { |
| 274 | return gst_toc_entry_get_start_stop_times(gobjcxx . . $ Gst/TocEntry#gobj(179286ea464f3f06).(), &(start), &(stop)); |
| 275 | } |
| 276 | |
| 277 | bool TocEntrycxx . . $ Gst/TocEntry#::get_start_stop_timescxx . . $ Gst/TocEntry#get_start_stop_times(4adb517648ae9150).(gint64& start, gint64& stop) const |
| 278 | { |
| 279 | return const_cast<TocEntrycxx . . $ Gst/TocEntry#*>(this)->get_start_stop_timescxx . . $ Gst/TocEntry#get_start_stop_times(161986a8b14e41d2).(start, stop); |
| 280 | } |
| 281 | |
| 282 | bool TocEntrycxx . . $ Gst/TocEntry#::get_loopcxx . . $ Gst/TocEntry#get_loop(d915aa0dfd05948e).(Gstcxx . . $ Gst/::TocLoopTypecxx . . $ Gst/TocLoopType#& loop_type, gint& repeat_count) const |
| 283 | { |
| 284 | return gst_toc_entry_get_loop(const_cast<GstTocEntry*>(gobjcxx . . $ Gst/TocEntry#gobj(b2d1b4ac26dda10c).()), reinterpret_cast<GstTocLoopType*>(&(loop_type)), &(repeat_count)); |
| 285 | } |
| 286 | |
| 287 | void TocEntrycxx . . $ Gst/TocEntry#::set_loopcxx . . $ Gst/TocEntry#set_loop(214728140ac7038a).(Gstcxx . . $ Gst/::TocLoopTypecxx . . $ Gst/TocLoopType# loop_type, gint repeat_count) |
| 288 | { |
| 289 | gst_toc_entry_set_loop(gobjcxx . . $ Gst/TocEntry#gobj(179286ea464f3f06).(), ((GstTocLoopType)(loop_type)), repeat_count); |
| 290 | } |
| 291 | |
| 292 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Toccxx . . $ Gst/Toc#> TocEntrycxx . . $ Gst/TocEntry#::get_toccxx . . $ Gst/TocEntry#get_toc(351283d4f3d63689).() const |
| 293 | { |
| 294 | return Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(a2b812a7994713a8).(gst_toc_entry_get_toc(const_cast<GstTocEntry*>(gobjcxx . . $ Gst/TocEntry#gobj(b2d1b4ac26dda10c).()))); |
| 295 | } |
| 296 | |
| 297 | |
| 298 | } // namespace Gst |
| 299 | |
| 300 |