net: GST_EXPORT -> GST_NET_API
[platform/upstream/gstreamer.git] / libs / gst / net / gstnetclientclock.h
index b7243f1..b741e6b 100644 (file)
@@ -29,6 +29,7 @@
 
 #include <gst/gst.h>
 #include <gst/gstsystemclock.h>
+#include <gst/net/net-prelude.h>
 
 G_BEGIN_DECLS
 
@@ -68,11 +69,42 @@ struct _GstNetClientClockClass {
   gpointer _gst_reserved[GST_PADDING];
 };
 
+GST_NET_API
 GType           gst_net_client_clock_get_type  (void);
 
+GST_NET_API
 GstClock*      gst_net_client_clock_new        (const gchar *name, const gchar *remote_address,
                                                  gint remote_port, GstClockTime base_time);
 
+#define GST_TYPE_NTP_CLOCK \
+  (gst_ntp_clock_get_type())
+#define GST_NTP_CLOCK(obj) \
+  (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_NTP_CLOCK,GstNtpClock))
+#define GST_NTP_CLOCK_CLASS(klass) \
+  (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_NTP_CLOCK,GstNtpClockClass))
+#define GST_IS_NTP_CLOCK(obj) \
+  (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_NTP_CLOCK))
+#define GST_IS_NTP_CLOCK_CLASS(klass) \
+  (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_NTP_CLOCK))
+
+typedef struct _GstNetClientClock GstNtpClock;
+typedef struct _GstNetClientClockClass GstNtpClockClass;
+
+GST_NET_API
+GType           gst_ntp_clock_get_type         (void);
+
+GST_NET_API
+GstClock*      gst_ntp_clock_new               (const gchar *name, const gchar *remote_address,
+                                                 gint remote_port, GstClockTime base_time);
+
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstNetClientClock, gst_object_unref)
+#endif
+
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstNtpClock, gst_object_unref)
+#endif
+
 G_END_DECLS
 
 #endif /* __GST_NET_CLIENT_CLOCK_H__ */