From 72103b7d516c799ab10e0154f44021406f6d9205 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Tue, 9 May 2017 16:01:46 +0100 Subject: [PATCH] libs: net: mark symbols explicitly for export with GST_EXPORT --- libs/gst/net/gstnetaddressmeta.h | 5 +++++ libs/gst/net/gstnetclientclock.h | 5 +++++ libs/gst/net/gstnetcontrolmessagemeta.h | 6 ++++++ libs/gst/net/gstnettimepacket.h | 12 ++++++++++-- libs/gst/net/gstnettimeprovider.h | 2 ++ libs/gst/net/gstptpclock.h | 10 ++++++++++ 6 files changed, 38 insertions(+), 2 deletions(-) diff --git a/libs/gst/net/gstnetaddressmeta.h b/libs/gst/net/gstnetaddressmeta.h index 01febb5c4c..e891413686 100644 --- a/libs/gst/net/gstnetaddressmeta.h +++ b/libs/gst/net/gstnetaddressmeta.h @@ -40,15 +40,20 @@ struct _GstNetAddressMeta { 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 diff --git a/libs/gst/net/gstnetclientclock.h b/libs/gst/net/gstnetclientclock.h index 47850f5e5d..0a9a26cfcc 100644 --- a/libs/gst/net/gstnetclientclock.h +++ b/libs/gst/net/gstnetclientclock.h @@ -68,8 +68,10 @@ struct _GstNetClientClockClass { 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); @@ -87,7 +89,10 @@ GstClock* gst_net_client_clock_new (const gchar *name, const gchar *remote_addre 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); diff --git a/libs/gst/net/gstnetcontrolmessagemeta.h b/libs/gst/net/gstnetcontrolmessagemeta.h index 5c3b965b2f..39fe66d8a0 100644 --- a/libs/gst/net/gstnetcontrolmessagemeta.h +++ b/libs/gst/net/gstnetcontrolmessagemeta.h @@ -41,7 +41,9 @@ struct _GstNetControlMessageMeta { 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()) @@ -49,10 +51,14 @@ GType gst_net_control_message_meta_api_get_type (void); 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); diff --git a/libs/gst/net/gstnettimepacket.h b/libs/gst/net/gstnettimepacket.h index cccf1911a5..36ceef83b7 100644 --- a/libs/gst/net/gstnettimepacket.h +++ b/libs/gst/net/gstnettimepacket.h @@ -47,18 +47,26 @@ struct _GstNetTimePacket { 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, diff --git a/libs/gst/net/gstnettimeprovider.h b/libs/gst/net/gstnettimeprovider.h index f730d9e961..9343306f83 100644 --- a/libs/gst/net/gstnettimeprovider.h +++ b/libs/gst/net/gstnettimeprovider.h @@ -62,8 +62,10 @@ struct _GstNetTimeProviderClass { 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); diff --git a/libs/gst/net/gstptpclock.h b/libs/gst/net/gstptpclock.h index 4e1c59c1fe..6a1c839069 100644 --- a/libs/gst/net/gstptpclock.h +++ b/libs/gst/net/gstptpclock.h @@ -75,12 +75,19 @@ struct _GstPtpClockClass { */ #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" @@ -135,10 +142,13 @@ void gst_ptp_deinit (void); 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);