Merge branch 'master' into 0.11
[platform/upstream/gstreamer.git] / libs / gst / net / gstnetclientclock.h
index f749a71..a0fcf1f 100644 (file)
@@ -2,6 +2,7 @@
  * Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu>
  *                    2005 Wim Taymans <wim@fluendo.com>
  *                    2005 Andy Wingo <wingo@pobox.com>
+ * Copyright (C) 2012 Collabora Ltd. <tim.muller@collabora.co.uk>
  *
  * gstnetclientclock.h: clock that synchronizes itself to a time provider over
  * the network
 
 G_BEGIN_DECLS
 
-#include <errno.h>
-#include <string.h>
-#include <sys/types.h>
-#include <netdb.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-
-#include <fcntl.h>
-
 #define GST_TYPE_NET_CLIENT_CLOCK \
   (gst_net_client_clock_get_type())
 #define GST_NET_CLIENT_CLOCK(obj) \
@@ -54,31 +45,19 @@ G_BEGIN_DECLS
 
 typedef struct _GstNetClientClock GstNetClientClock;
 typedef struct _GstNetClientClockClass GstNetClientClockClass;
+typedef struct _GstNetClientClockPrivate GstNetClientClockPrivate;
 
 /**
  * GstNetClientClock:
- * @clock: the parent clock structure.
  *
  * Opaque #GstNetClientClock structure.
  */
 struct _GstNetClientClock {
   GstSystemClock clock;
 
-  /*< protected >*/
-  gchar *address;
-  gint port;
-  
   /*< private >*/
-  int sock;
-  int control_sock[2];
-
-  GstClockTime current_timeout;
-
-  struct sockaddr_id *servaddr;
+  GstNetClientClockPrivate *priv;
 
-  GThread *thread;
-
-  /*< private >*/
   gpointer _gst_reserved[GST_PADDING];
 };
 
@@ -90,6 +69,7 @@ struct _GstNetClientClockClass {
 };
 
 GType           gst_net_client_clock_get_type  (void);
+
 GstClock*      gst_net_client_clock_new        (gchar *name, const gchar *remote_address,
                                                  gint remote_port, GstClockTime base_time);