libs: net: mark symbols explicitly for export with GST_EXPORT
authorTim-Philipp Müller <tim@centricular.com>
Tue, 9 May 2017 15:01:46 +0000 (16:01 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 15 May 2017 22:13:39 +0000 (23:13 +0100)
libs/gst/net/gstnetaddressmeta.h
libs/gst/net/gstnetclientclock.h
libs/gst/net/gstnetcontrolmessagemeta.h
libs/gst/net/gstnettimepacket.h
libs/gst/net/gstnettimeprovider.h
libs/gst/net/gstptpclock.h

index 01febb5..e891413 100644 (file)
@@ -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
index 47850f5..0a9a26c 100644 (file)
@@ -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);
 
index 5c3b965..39fe66d 100644 (file)
@@ -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);
 
index cccf191..36ceef8 100644 (file)
@@ -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,
index f730d9e..9343306 100644 (file)
@@ -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);
index 4e1c59c..6a1c839 100644 (file)
@@ -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);