X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=libs%2Fgst%2Fnet%2Fgstnettimeprovider.h;h=d1f6de34f5d40efe19adca1546e93fda65c0733a;hb=d86a90550bf7e2cba312801a0861fa2ece99d7a3;hp=c8cde3f7d449b57d3e62be321f442d0f48be281f;hpb=bb18ca7fa47c69edbed53d6cab7f4635aac8e297;p=platform%2Fupstream%2Fgstreamer.git diff --git a/libs/gst/net/gstnettimeprovider.h b/libs/gst/net/gstnettimeprovider.h index c8cde3f..d1f6de3 100644 --- a/libs/gst/net/gstnettimeprovider.h +++ b/libs/gst/net/gstnettimeprovider.h @@ -1,6 +1,7 @@ /* GStreamer * Copyright (C) 2005 Andy Wingo * 2006 Joni Valtanen + * Copyright (C) 2012 Collabora Ltd. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -14,40 +15,19 @@ * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301, USA. */ #ifndef __GST_NET_TIME_PROVIDER_H__ #define __GST_NET_TIME_PROVIDER_H__ -/* to determinate os */ -#include - #include +#include G_BEGIN_DECLS -#include -#include -#include - -#ifdef G_OS_WIN32 -#include -#include -#ifndef socklen_t -#define socklen_t int -#endif -#else -#include -#include -#include -#include -#endif - -#include - #define GST_TYPE_NET_TIME_PROVIDER \ (gst_net_time_provider_get_type()) #define GST_NET_TIME_PROVIDER(obj) \ @@ -72,20 +52,6 @@ struct _GstNetTimeProvider { GstObject parent; /*< private >*/ - gchar *address; - int port; - - int sock; - int control_sock[2]; - - GThread *thread; - - GstClock *clock; - - /* has to be a gint, we use atomic ops here */ - gint active; - - /*< private >*/ GstNetTimeProviderPrivate *priv; gpointer _gst_reserved[GST_PADDING]; @@ -97,11 +63,18 @@ struct _GstNetTimeProviderClass { gpointer _gst_reserved[GST_PADDING]; }; +GST_NET_API GType gst_net_time_provider_get_type (void); + +GST_NET_API GstNetTimeProvider* gst_net_time_provider_new (GstClock *clock, const gchar *address, gint port); +#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC +G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstNetTimeProvider, gst_object_unref) +#endif + G_END_DECLS