libs: net: mark symbols explicitly for export with GST_EXPORT

This commit is contained in:
Tim-Philipp Müller 2017-05-09 16:01:46 +01:00
parent 4341bd0ba3
commit 72103b7d51
6 changed files with 38 additions and 2 deletions

View 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

View 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);

View 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);

View 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,

View 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);

View 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);