GSocketAddress *addr;
};
+GST_EXPORT
GType gst_net_address_meta_api_get_type (void);
#define GST_NET_ADDRESS_META_API_TYPE (gst_net_address_meta_api_get_type())
/* implementation */
+
+GST_EXPORT
const GstMetaInfo *gst_net_address_meta_get_info (void);
#define GST_NET_ADDRESS_META_INFO (gst_net_address_meta_get_info())
+GST_EXPORT
GstNetAddressMeta * gst_buffer_add_net_address_meta (GstBuffer *buffer,
GSocketAddress *addr);
+GST_EXPORT
GstNetAddressMeta * gst_buffer_get_net_address_meta (GstBuffer *buffer);
G_END_DECLS
gpointer _gst_reserved[GST_PADDING];
};
+GST_EXPORT
GType gst_net_client_clock_get_type (void);
+GST_EXPORT
GstClock* gst_net_client_clock_new (const gchar *name, const gchar *remote_address,
gint remote_port, GstClockTime base_time);
typedef struct _GstNetClientClock GstNtpClock;
typedef struct _GstNetClientClockClass GstNtpClockClass;
+GST_EXPORT
GType gst_ntp_clock_get_type (void);
+
+GST_EXPORT
GstClock* gst_ntp_clock_new (const gchar *name, const gchar *remote_address,
gint remote_port, GstClockTime base_time);
GSocketControlMessage *message;
};
+GST_EXPORT
GType gst_net_control_message_meta_api_get_type (void);
+
#define GST_NET_CONTROL_MESSAGE_META_API_TYPE \
(gst_net_control_message_meta_api_get_type())
gst_buffer_get_meta((b),GST_NET_CONTROL_MESSAGE_META_API_TYPE))
/* implementation */
+
+GST_EXPORT
const GstMetaInfo *gst_net_control_message_meta_get_info (void);
+
#define GST_NET_CONTROL_MESSAGE_META_INFO \
(gst_net_control_message_meta_get_info())
+GST_EXPORT
GstNetControlMessageMeta * gst_buffer_add_net_control_message_meta (GstBuffer * buffer,
GSocketControlMessage * message);
GstClockTime remote_time;
};
-GType gst_net_time_packet_get_type(void);
+GST_EXPORT
+GType gst_net_time_packet_get_type (void);
+GST_EXPORT
GstNetTimePacket* gst_net_time_packet_new (const guint8 *buffer);
+
+GST_EXPORT
GstNetTimePacket* gst_net_time_packet_copy (const GstNetTimePacket *packet);
+
+GST_EXPORT
void gst_net_time_packet_free (GstNetTimePacket *packet);
+GST_EXPORT
guint8* gst_net_time_packet_serialize (const GstNetTimePacket *packet);
+GST_EXPORT
GstNetTimePacket* gst_net_time_packet_receive (GSocket * socket,
GSocketAddress ** src_address,
GError ** error);
-
+GST_EXPORT
gboolean gst_net_time_packet_send (const GstNetTimePacket * packet,
GSocket * socket,
GSocketAddress * dest_address,
gpointer _gst_reserved[GST_PADDING];
};
+GST_EXPORT
GType gst_net_time_provider_get_type (void);
+GST_EXPORT
GstNetTimeProvider* gst_net_time_provider_new (GstClock *clock,
const gchar *address,
gint port);
*/
#define GST_PTP_CLOCK_ID_NONE ((guint64) -1)
+GST_EXPORT
GType gst_ptp_clock_get_type (void);
+GST_EXPORT
gboolean gst_ptp_is_supported (void);
+
+GST_EXPORT
gboolean gst_ptp_is_initialized (void);
+
+GST_EXPORT
gboolean gst_ptp_init (guint64 clock_id,
gchar ** interfaces);
+GST_EXPORT
void gst_ptp_deinit (void);
#define GST_PTP_STATISTICS_NEW_DOMAIN_FOUND "GstPtpStatisticsNewDomainFound"
typedef gboolean (*GstPtpStatisticsCallback) (guint8 domain,
const GstStructure * stats,
gpointer user_data);
+GST_EXPORT
gulong gst_ptp_statistics_callback_add (GstPtpStatisticsCallback callback,
gpointer user_data, GDestroyNotify destroy_data);
+GST_EXPORT
void gst_ptp_statistics_callback_remove (gulong id);
+GST_EXPORT
GstClock* gst_ptp_clock_new (const gchar *name,
guint domain);