Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
luzpaz
gstreamer
Commits
64f6a18b
Commit
64f6a18b
authored
Apr 16, 2011
by
Sebastian Dröge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net: Use G_DEFINE_TYPE
parent
a9e69dc3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
libs/gst/net/gstnettimeprovider.c
libs/gst/net/gstnettimeprovider.c
+4
-10
No files found.
libs/gst/net/gstnettimeprovider.c
View file @
64f6a18b
...
...
@@ -105,10 +105,11 @@ static void gst_net_time_provider_set_property (GObject * object, guint prop_id,
static
void
gst_net_time_provider_get_property
(
GObject
*
object
,
guint
prop_id
,
GValue
*
value
,
GParamSpec
*
pspec
);
#define _do_init
(type)
\
#define _do_init \
GST_DEBUG_CATEGORY_INIT (ntp_debug, "nettime", 0, "Network time provider");
GST_BOILERPLATE_FULL
(
GstNetTimeProvider
,
gst_net_time_provider
,
GstObject
,
#define gst_net_time_provider_parent_class parent_class
G_DEFINE_TYPE_WITH_CODE
(
GstNetTimeProvider
,
gst_net_time_provider
,
GST_TYPE_OBJECT
,
_do_init
);
#ifdef G_OS_WIN32
...
...
@@ -123,12 +124,6 @@ inet_aton (const char *c, struct in_addr *paddr)
}
#endif
static
void
gst_net_time_provider_base_init
(
gpointer
g_class
)
{
/* Do nothing here */
}
static
void
gst_net_time_provider_class_init
(
GstNetTimeProviderClass
*
klass
)
{
...
...
@@ -163,8 +158,7 @@ gst_net_time_provider_class_init (GstNetTimeProviderClass * klass)
}
static
void
gst_net_time_provider_init
(
GstNetTimeProvider
*
self
,
GstNetTimeProviderClass
*
g_class
)
gst_net_time_provider_init
(
GstNetTimeProvider
*
self
)
{
#ifdef G_OS_WIN32
WSADATA
w
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment