gstreamer_mpegts/auto/
section.rs

1// This file was generated by gir (https://github.com/gtk-rs/gir)
2// from gir-files (https://github.com/gtk-rs/gir-files)
3// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
4// DO NOT EDIT
5
6use crate::ffi;
7use glib::translate::*;
8
9glib::wrapper! {
10    #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
11    pub struct Section(Boxed<ffi::GstMpegtsSection>);
12
13    match fn {
14        copy => |ptr| glib::gobject_ffi::g_boxed_copy(ffi::gst_mpegts_section_get_type(), ptr as *mut _) as *mut ffi::GstMpegtsSection,
15        free => |ptr| glib::gobject_ffi::g_boxed_free(ffi::gst_mpegts_section_get_type(), ptr as *mut _),
16        type_ => || ffi::gst_mpegts_section_get_type(),
17    }
18}
19
20impl Section {
21    //#[doc(alias = "gst_mpegts_section_get_atsc_cvct")]
22    //#[doc(alias = "get_atsc_cvct")]
23    //pub fn atsc_cvct(&mut self) -> /*Ignored*/Option<AtscVCT> {
24    //    unsafe { TODO: call ffi:gst_mpegts_section_get_atsc_cvct() }
25    //}
26
27    //#[doc(alias = "gst_mpegts_section_get_atsc_eit")]
28    //#[doc(alias = "get_atsc_eit")]
29    //pub fn atsc_eit(&mut self) -> /*Ignored*/AtscEIT {
30    //    unsafe { TODO: call ffi:gst_mpegts_section_get_atsc_eit() }
31    //}
32
33    //#[doc(alias = "gst_mpegts_section_get_atsc_ett")]
34    //#[doc(alias = "get_atsc_ett")]
35    //pub fn atsc_ett(&mut self) -> /*Ignored*/AtscETT {
36    //    unsafe { TODO: call ffi:gst_mpegts_section_get_atsc_ett() }
37    //}
38
39    //#[doc(alias = "gst_mpegts_section_get_atsc_mgt")]
40    //#[doc(alias = "get_atsc_mgt")]
41    //pub fn atsc_mgt(&mut self) -> /*Ignored*/Option<AtscMGT> {
42    //    unsafe { TODO: call ffi:gst_mpegts_section_get_atsc_mgt() }
43    //}
44
45    //#[doc(alias = "gst_mpegts_section_get_atsc_rrt")]
46    //#[doc(alias = "get_atsc_rrt")]
47    //pub fn atsc_rrt(&mut self) -> /*Ignored*/AtscRRT {
48    //    unsafe { TODO: call ffi:gst_mpegts_section_get_atsc_rrt() }
49    //}
50
51    //#[doc(alias = "gst_mpegts_section_get_atsc_stt")]
52    //#[doc(alias = "get_atsc_stt")]
53    //pub fn atsc_stt(&mut self) -> /*Ignored*/AtscSTT {
54    //    unsafe { TODO: call ffi:gst_mpegts_section_get_atsc_stt() }
55    //}
56
57    //#[doc(alias = "gst_mpegts_section_get_atsc_tvct")]
58    //#[doc(alias = "get_atsc_tvct")]
59    //pub fn atsc_tvct(&mut self) -> /*Ignored*/Option<AtscVCT> {
60    //    unsafe { TODO: call ffi:gst_mpegts_section_get_atsc_tvct() }
61    //}
62
63    //#[doc(alias = "gst_mpegts_section_get_bat")]
64    //#[doc(alias = "get_bat")]
65    //pub fn bat(&mut self) -> /*Ignored*/Option<BAT> {
66    //    unsafe { TODO: call ffi:gst_mpegts_section_get_bat() }
67    //}
68
69    #[doc(alias = "gst_mpegts_section_get_data")]
70    #[doc(alias = "get_data")]
71    pub fn data(&mut self) -> glib::Bytes {
72        unsafe { from_glib_full(ffi::gst_mpegts_section_get_data(self.to_glib_none_mut().0)) }
73    }
74
75    //#[doc(alias = "gst_mpegts_section_get_eit")]
76    //#[doc(alias = "get_eit")]
77    //pub fn eit(&mut self) -> /*Ignored*/Option<EIT> {
78    //    unsafe { TODO: call ffi:gst_mpegts_section_get_eit() }
79    //}
80
81    //#[doc(alias = "gst_mpegts_section_get_nit")]
82    //#[doc(alias = "get_nit")]
83    //pub fn nit(&mut self) -> /*Ignored*/Option<NIT> {
84    //    unsafe { TODO: call ffi:gst_mpegts_section_get_nit() }
85    //}
86
87    //#[doc(alias = "gst_mpegts_section_get_pat")]
88    //#[doc(alias = "get_pat")]
89    //pub fn pat(&mut self) -> /*Ignored*/Vec<PatProgram> {
90    //    unsafe { TODO: call ffi:gst_mpegts_section_get_pat() }
91    //}
92
93    //#[doc(alias = "gst_mpegts_section_get_pmt")]
94    //#[doc(alias = "get_pmt")]
95    //pub fn pmt(&mut self) -> /*Ignored*/Option<PMT> {
96    //    unsafe { TODO: call ffi:gst_mpegts_section_get_pmt() }
97    //}
98
99    //#[doc(alias = "gst_mpegts_section_get_sdt")]
100    //#[doc(alias = "get_sdt")]
101    //pub fn sdt(&mut self) -> /*Ignored*/Option<SDT> {
102    //    unsafe { TODO: call ffi:gst_mpegts_section_get_sdt() }
103    //}
104
105    //#[doc(alias = "gst_mpegts_section_get_sit")]
106    //#[doc(alias = "get_sit")]
107    //pub fn sit(&mut self) -> /*Ignored*/Option<SIT> {
108    //    unsafe { TODO: call ffi:gst_mpegts_section_get_sit() }
109    //}
110
111    //#[doc(alias = "gst_mpegts_section_get_tdt")]
112    //#[doc(alias = "get_tdt")]
113    //pub fn tdt(&mut self) -> /*Ignored*/Option<gst::DateTime> {
114    //    unsafe { TODO: call ffi:gst_mpegts_section_get_tdt() }
115    //}
116
117    //#[doc(alias = "gst_mpegts_section_get_tot")]
118    //#[doc(alias = "get_tot")]
119    //pub fn tot(&mut self) -> /*Ignored*/Option<TOT> {
120    //    unsafe { TODO: call ffi:gst_mpegts_section_get_tot() }
121    //}
122
123    //#[doc(alias = "gst_mpegts_section_from_atsc_mgt")]
124    //pub fn from_atsc_mgt(mgt: /*Ignored*/AtscMGT) -> Option<Section> {
125    //    unsafe { TODO: call ffi:gst_mpegts_section_from_atsc_mgt() }
126    //}
127
128    //#[doc(alias = "gst_mpegts_section_from_atsc_rrt")]
129    //pub fn from_atsc_rrt(rrt: /*Ignored*/&mut AtscRRT) -> Section {
130    //    unsafe { TODO: call ffi:gst_mpegts_section_from_atsc_rrt() }
131    //}
132
133    //#[doc(alias = "gst_mpegts_section_from_atsc_stt")]
134    //pub fn from_atsc_stt(stt: /*Ignored*/&mut AtscSTT) -> Section {
135    //    unsafe { TODO: call ffi:gst_mpegts_section_from_atsc_stt() }
136    //}
137
138    //#[doc(alias = "gst_mpegts_section_from_nit")]
139    //pub fn from_nit(nit: /*Ignored*/NIT) -> Option<Section> {
140    //    unsafe { TODO: call ffi:gst_mpegts_section_from_nit() }
141    //}
142
143    //#[doc(alias = "gst_mpegts_section_from_pat")]
144    //pub fn from_pat(programs: /*Ignored*/Vec<PatProgram>, ts_id: u16) -> Section {
145    //    unsafe { TODO: call ffi:gst_mpegts_section_from_pat() }
146    //}
147
148    //#[doc(alias = "gst_mpegts_section_from_pmt")]
149    //pub fn from_pmt(pmt: /*Ignored*/PMT, pid: u16) -> Option<Section> {
150    //    unsafe { TODO: call ffi:gst_mpegts_section_from_pmt() }
151    //}
152
153    //#[doc(alias = "gst_mpegts_section_from_sdt")]
154    //pub fn from_sdt(sdt: /*Ignored*/SDT) -> Option<Section> {
155    //    unsafe { TODO: call ffi:gst_mpegts_section_from_sdt() }
156    //}
157}
158
159unsafe impl Send for Section {}
160unsafe impl Sync for Section {}