]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/gstreamer0-10.git/blobdiff - libs/gst/net/gstnetclientclock.h
DEBIAN: Debianization
[glsdk/gstreamer0-10.git] / libs / gst / net / gstnetclientclock.h
index 0997888a4178dc0d4ce1c98667eeb18fe840850c..44b2e2edda42d0559ed0eb05cbb1e355eb4c3aa8 100644 (file)
@@ -34,10 +34,15 @@ 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>
+
+#ifdef G_OS_WIN32
+# include <winsock2.h>
+#else
+# include <netdb.h>
+# include <sys/socket.h>
+# include <netinet/in.h>
+# include <arpa/inet.h>
+#endif /*G_OS_WIN32 */
 
 #include <fcntl.h>
 
@@ -49,21 +54,24 @@ G_BEGIN_DECLS
   (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_NET_CLIENT_CLOCK,GstNetClientClockClass))
 #define GST_IS_NET_CLIENT_CLOCK(obj) \
   (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_NET_CLIENT_CLOCK))
-#define GST_IS_NET_CLIENT_CLOCK_CLASS(obj) \
+#define GST_IS_NET_CLIENT_CLOCK_CLASS(klass) \
   (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_NET_CLIENT_CLOCK))
 
 typedef struct _GstNetClientClock GstNetClientClock;
 typedef struct _GstNetClientClockClass GstNetClientClockClass;
+typedef struct _GstNetClientClockPrivate GstNetClientClockPrivate;
 
+/**
+ * GstNetClientClock:
+ *
+ * Opaque #GstNetClientClock structure.
+ */
 struct _GstNetClientClock {
   GstSystemClock clock;
 
   /*< protected >*/
   gchar *address;
   gint port;
-  
-  gint window_size;
-  GstClockTime timeout;
 
   /*< private >*/
   int sock;
@@ -71,16 +79,14 @@ struct _GstNetClientClock {
 
   GstClockTime current_timeout;
 
-  gboolean filling;
-  gint time_index;
-  GstClockTime *local_times;
-  GstClockTime *remote_times;
-
-  struct sockaddr_id *servaddr;
+  struct sockaddr_in *servaddr;
 
   GThread *thread;
 
-  gpointer _gst_reserved[GST_PADDING];
+  /*< private >*/
+  GstNetClientClockPrivate *priv;
+
+  gpointer _gst_reserved[GST_PADDING - 1];
 };
 
 struct _GstNetClientClockClass {