Debian Codegraph @

gstreamer/gstreamermm/netclientclock.cc

raw symbols SCIP
1 // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!
2
3
4 #include <glibmm.h>
5
6 #include <gstreamermm/netclientclock.h>
7 #include <gstreamermm/private/netclientclock_p.h>
8
9
10 /* gstreamermm - a C++ wrapper for gstreamer
11 *
12 * Copyright 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
30 #include <gstreamermm/bus.h>
31 #include <gst/net/gstnet.h>
32
33 namespace Gst
34 {
35
36 NetClientClock::NetClientClock(const Glib::ustring& name, const Glib::ustring& remote_address, int remote_port, Gst::ClockTime base_time)
37 :
38 // Mark this class as non-derived to allow C++ vfuncs to be skipped.
39 Glib::ObjectBase(nullptr),
40 SystemClock(Glib::ConstructParams(netclientclock_class_.init(), "name",name.c_str(),"address",remote_address.c_str(),"port",remote_port,"base-time",static_cast<GstClockTime>(base_time), nullptr))
41 {}
42
43 }
44
45 namespace
46 {
47 } // anonymous namespace
48
49
50 namespace Glib
51 {
52
53 Glib::RefPtr<Gst::NetClientClock> wrap(GstNetClientClock* object, bool take_copy)
54 {
55 return Glib::RefPtr<Gst::NetClientClock>( dynamic_cast<Gst::NetClientClock*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
56 //We use dynamic_cast<> in case of multiple inheritance.
57 }
58
59 } /* namespace Glib */
60
61
62 namespace Gst
63 {
64
65
66 /* The *_Class implementation: */
67
68 const Glib::Class& NetClientClock_Class::init()
69 {
70 if(!gtype_) // create the GType if necessary
71 {
72 // Glib::Class has to know the class init function to clone custom types.
73 class_init_func_ = &NetClientClock_Class::class_init_function;
74
75 // This is actually just optimized away, apparently with no harm.
76 // Make sure that the parent type has been created.
77 //CppClassParent::CppObjectType::get_type();
78
79 // Create the wrapper type, with the same class/instance size as the base type.
80 register_derived_type(gst_net_client_clock_get_type());
81
82 // Add derived versions of interfaces, if the C type implements any interfaces:
83
84 }
85
86 return *this;
87 }
88
89
90 void NetClientClock_Class::class_init_function(void* g_class, void* class_data)
91 {
92 const auto klass = static_cast<BaseClassType*>(g_class);
93 CppClassParent::class_init_function(klass, class_data);
94
95
96 }
97
98
99 Glib::ObjectBase* NetClientClock_Class::wrap_new(GObject* object)
100 {
101 return new NetClientClock((GstNetClientClock*)object);
102 }
103
104
105 /* The implementation: */
106
107 GstNetClientClock* NetClientClock::gobj_copy()
108 {
109 reference();
110 return gobj();
111 }
112
113 NetClientClock::NetClientClock(const Glib::ConstructParams& construct_params)
114 :
115 SystemClock(construct_params)
116 {
117
118 }
119
120 NetClientClock::NetClientClock(GstNetClientClock* castitem)
121 :
122 SystemClock((GstSystemClock*)(castitem))
123 {}
124
125
126 NetClientClock::NetClientClock(NetClientClock&& src) noexcept
127 : SystemClock(std::move(src))
128 {}
129
130 NetClientClock& NetClientClock::operator=(NetClientClock&& src) noexcept
131 {
132 SystemClock::operator=(std::move(src));
133 return *this;
134 }
135
136
137 NetClientClock::~NetClientClock() noexcept
138 {}
139
140
141 NetClientClock::CppClassType NetClientClock::netclientclock_class_; // initialize static member
142
143 GType NetClientClock::get_type()
144 {
145 return netclientclock_class_.init().get_type();
146 }
147
148
149 GType NetClientClock::get_base_type()
150 {
151 return gst_net_client_clock_get_type();
152 }
153
154
155 Glib::RefPtr<NetClientClock> NetClientClock::create(const Glib::ustring& name, const Glib::ustring& remote_address, int remote_port, Gst::ClockTime base_time)
156 {
157 return Glib::RefPtr<NetClientClock>( new NetClientClock(name, remote_address, remote_port, base_time) );
158 }
159
160
161 Glib::PropertyProxy< Glib::ustring > NetClientClock::property_address()
162 {
163 return Glib::PropertyProxy< Glib::ustring >(this, "address");
164 }
165
166 Glib::PropertyProxy_ReadOnly< Glib::ustring > NetClientClock::property_address() const
167 {
168 return Glib::PropertyProxy_ReadOnly< Glib::ustring >(this, "address");
169 }
170
171 Glib::PropertyProxy_ReadOnly< guint64 > NetClientClock::property_base_time() const
172 {
173 return Glib::PropertyProxy_ReadOnly< guint64 >(this, "base-time");
174 }
175
176 Glib::PropertyProxy< Glib::RefPtr<Gst::Bus> > NetClientClock::property_bus()
177 {
178 return Glib::PropertyProxy< Glib::RefPtr<Gst::Bus> >(this, "bus");
179 }
180
181 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gst::Bus> > NetClientClock::property_bus() const
182 {
183 return Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gst::Bus> >(this, "bus");
184 }
185
186 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gst::Clock> > NetClientClock::property_internal_clock() const
187 {
188 return Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gst::Clock> >(this, "internal-clock");
189 }
190
191 Glib::PropertyProxy< guint64 > NetClientClock::property_minimum_update_interval()
192 {
193 return Glib::PropertyProxy< guint64 >(this, "minimum-update-interval");
194 }
195
196 Glib::PropertyProxy_ReadOnly< guint64 > NetClientClock::property_minimum_update_interval() const
197 {
198 return Glib::PropertyProxy_ReadOnly< guint64 >(this, "minimum-update-interval");
199 }
200
201 Glib::PropertyProxy< int > NetClientClock::property_port()
202 {
203 return Glib::PropertyProxy< int >(this, "port");
204 }
205
206 Glib::PropertyProxy_ReadOnly< int > NetClientClock::property_port() const
207 {
208 return Glib::PropertyProxy_ReadOnly< int >(this, "port");
209 }
210
211 Glib::PropertyProxy< guint64 > NetClientClock::property_round_trip_limit()
212 {
213 return Glib::PropertyProxy< guint64 >(this, "round-trip-limit");
214 }
215
216 Glib::PropertyProxy_ReadOnly< guint64 > NetClientClock::property_round_trip_limit() const
217 {
218 return Glib::PropertyProxy_ReadOnly< guint64 >(this, "round-trip-limit");
219 }
220
221
222 } // namespace Gst
223
224