mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +00:00
libs: net: mark symbols explicitly for export with GST_EXPORT
This commit is contained in:
parent
4341bd0ba3
commit
72103b7d51
6 changed files with 38 additions and 2 deletions
|
@ -40,15 +40,20 @@ struct _GstNetAddressMeta {
|
||||||
GSocketAddress *addr;
|
GSocketAddress *addr;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
GST_EXPORT
|
||||||
GType gst_net_address_meta_api_get_type (void);
|
GType gst_net_address_meta_api_get_type (void);
|
||||||
#define GST_NET_ADDRESS_META_API_TYPE (gst_net_address_meta_api_get_type())
|
#define GST_NET_ADDRESS_META_API_TYPE (gst_net_address_meta_api_get_type())
|
||||||
|
|
||||||
/* implementation */
|
/* implementation */
|
||||||
|
|
||||||
|
GST_EXPORT
|
||||||
const GstMetaInfo *gst_net_address_meta_get_info (void);
|
const GstMetaInfo *gst_net_address_meta_get_info (void);
|
||||||
#define GST_NET_ADDRESS_META_INFO (gst_net_address_meta_get_info())
|
#define GST_NET_ADDRESS_META_INFO (gst_net_address_meta_get_info())
|
||||||
|
|
||||||
|
GST_EXPORT
|
||||||
GstNetAddressMeta * gst_buffer_add_net_address_meta (GstBuffer *buffer,
|
GstNetAddressMeta * gst_buffer_add_net_address_meta (GstBuffer *buffer,
|
||||||
GSocketAddress *addr);
|
GSocketAddress *addr);
|
||||||
|
GST_EXPORT
|
||||||
GstNetAddressMeta * gst_buffer_get_net_address_meta (GstBuffer *buffer);
|
GstNetAddressMeta * gst_buffer_get_net_address_meta (GstBuffer *buffer);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
|
@ -68,8 +68,10 @@ struct _GstNetClientClockClass {
|
||||||
gpointer _gst_reserved[GST_PADDING];
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
GST_EXPORT
|
||||||
GType gst_net_client_clock_get_type (void);
|
GType gst_net_client_clock_get_type (void);
|
||||||
|
|
||||||
|
GST_EXPORT
|
||||||
GstClock* gst_net_client_clock_new (const gchar *name, const gchar *remote_address,
|
GstClock* gst_net_client_clock_new (const gchar *name, const gchar *remote_address,
|
||||||
gint remote_port, GstClockTime base_time);
|
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 _GstNetClientClock GstNtpClock;
|
||||||
typedef struct _GstNetClientClockClass GstNtpClockClass;
|
typedef struct _GstNetClientClockClass GstNtpClockClass;
|
||||||
|
|
||||||
|
GST_EXPORT
|
||||||
GType gst_ntp_clock_get_type (void);
|
GType gst_ntp_clock_get_type (void);
|
||||||
|
|
||||||
|
GST_EXPORT
|
||||||
GstClock* gst_ntp_clock_new (const gchar *name, const gchar *remote_address,
|
GstClock* gst_ntp_clock_new (const gchar *name, const gchar *remote_address,
|
||||||
gint remote_port, GstClockTime base_time);
|
gint remote_port, GstClockTime base_time);
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,9 @@ struct _GstNetControlMessageMeta {
|
||||||
GSocketControlMessage *message;
|
GSocketControlMessage *message;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
GST_EXPORT
|
||||||
GType gst_net_control_message_meta_api_get_type (void);
|
GType gst_net_control_message_meta_api_get_type (void);
|
||||||
|
|
||||||
#define GST_NET_CONTROL_MESSAGE_META_API_TYPE \
|
#define GST_NET_CONTROL_MESSAGE_META_API_TYPE \
|
||||||
(gst_net_control_message_meta_api_get_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))
|
gst_buffer_get_meta((b),GST_NET_CONTROL_MESSAGE_META_API_TYPE))
|
||||||
|
|
||||||
/* implementation */
|
/* implementation */
|
||||||
|
|
||||||
|
GST_EXPORT
|
||||||
const GstMetaInfo *gst_net_control_message_meta_get_info (void);
|
const GstMetaInfo *gst_net_control_message_meta_get_info (void);
|
||||||
|
|
||||||
#define GST_NET_CONTROL_MESSAGE_META_INFO \
|
#define GST_NET_CONTROL_MESSAGE_META_INFO \
|
||||||
(gst_net_control_message_meta_get_info())
|
(gst_net_control_message_meta_get_info())
|
||||||
|
|
||||||
|
GST_EXPORT
|
||||||
GstNetControlMessageMeta * gst_buffer_add_net_control_message_meta (GstBuffer * buffer,
|
GstNetControlMessageMeta * gst_buffer_add_net_control_message_meta (GstBuffer * buffer,
|
||||||
GSocketControlMessage * message);
|
GSocketControlMessage * message);
|
||||||
|
|
||||||
|
|
|
@ -47,18 +47,26 @@ struct _GstNetTimePacket {
|
||||||
GstClockTime remote_time;
|
GstClockTime remote_time;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
GST_EXPORT
|
||||||
GType gst_net_time_packet_get_type (void);
|
GType gst_net_time_packet_get_type (void);
|
||||||
|
|
||||||
|
GST_EXPORT
|
||||||
GstNetTimePacket* gst_net_time_packet_new (const guint8 *buffer);
|
GstNetTimePacket* gst_net_time_packet_new (const guint8 *buffer);
|
||||||
|
|
||||||
|
GST_EXPORT
|
||||||
GstNetTimePacket* gst_net_time_packet_copy (const GstNetTimePacket *packet);
|
GstNetTimePacket* gst_net_time_packet_copy (const GstNetTimePacket *packet);
|
||||||
|
|
||||||
|
GST_EXPORT
|
||||||
void gst_net_time_packet_free (GstNetTimePacket *packet);
|
void gst_net_time_packet_free (GstNetTimePacket *packet);
|
||||||
|
|
||||||
|
GST_EXPORT
|
||||||
guint8* gst_net_time_packet_serialize (const GstNetTimePacket *packet);
|
guint8* gst_net_time_packet_serialize (const GstNetTimePacket *packet);
|
||||||
|
|
||||||
|
GST_EXPORT
|
||||||
GstNetTimePacket* gst_net_time_packet_receive (GSocket * socket,
|
GstNetTimePacket* gst_net_time_packet_receive (GSocket * socket,
|
||||||
GSocketAddress ** src_address,
|
GSocketAddress ** src_address,
|
||||||
GError ** error);
|
GError ** error);
|
||||||
|
GST_EXPORT
|
||||||
gboolean gst_net_time_packet_send (const GstNetTimePacket * packet,
|
gboolean gst_net_time_packet_send (const GstNetTimePacket * packet,
|
||||||
GSocket * socket,
|
GSocket * socket,
|
||||||
GSocketAddress * dest_address,
|
GSocketAddress * dest_address,
|
||||||
|
|
|
@ -62,8 +62,10 @@ struct _GstNetTimeProviderClass {
|
||||||
gpointer _gst_reserved[GST_PADDING];
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
GST_EXPORT
|
||||||
GType gst_net_time_provider_get_type (void);
|
GType gst_net_time_provider_get_type (void);
|
||||||
|
|
||||||
|
GST_EXPORT
|
||||||
GstNetTimeProvider* gst_net_time_provider_new (GstClock *clock,
|
GstNetTimeProvider* gst_net_time_provider_new (GstClock *clock,
|
||||||
const gchar *address,
|
const gchar *address,
|
||||||
gint port);
|
gint port);
|
||||||
|
|
|
@ -75,12 +75,19 @@ struct _GstPtpClockClass {
|
||||||
*/
|
*/
|
||||||
#define GST_PTP_CLOCK_ID_NONE ((guint64) -1)
|
#define GST_PTP_CLOCK_ID_NONE ((guint64) -1)
|
||||||
|
|
||||||
|
GST_EXPORT
|
||||||
GType gst_ptp_clock_get_type (void);
|
GType gst_ptp_clock_get_type (void);
|
||||||
|
|
||||||
|
GST_EXPORT
|
||||||
gboolean gst_ptp_is_supported (void);
|
gboolean gst_ptp_is_supported (void);
|
||||||
|
|
||||||
|
GST_EXPORT
|
||||||
gboolean gst_ptp_is_initialized (void);
|
gboolean gst_ptp_is_initialized (void);
|
||||||
|
|
||||||
|
GST_EXPORT
|
||||||
gboolean gst_ptp_init (guint64 clock_id,
|
gboolean gst_ptp_init (guint64 clock_id,
|
||||||
gchar ** interfaces);
|
gchar ** interfaces);
|
||||||
|
GST_EXPORT
|
||||||
void gst_ptp_deinit (void);
|
void gst_ptp_deinit (void);
|
||||||
|
|
||||||
#define GST_PTP_STATISTICS_NEW_DOMAIN_FOUND "GstPtpStatisticsNewDomainFound"
|
#define GST_PTP_STATISTICS_NEW_DOMAIN_FOUND "GstPtpStatisticsNewDomainFound"
|
||||||
|
@ -135,10 +142,13 @@ void gst_ptp_deinit (void);
|
||||||
typedef gboolean (*GstPtpStatisticsCallback) (guint8 domain,
|
typedef gboolean (*GstPtpStatisticsCallback) (guint8 domain,
|
||||||
const GstStructure * stats,
|
const GstStructure * stats,
|
||||||
gpointer user_data);
|
gpointer user_data);
|
||||||
|
GST_EXPORT
|
||||||
gulong gst_ptp_statistics_callback_add (GstPtpStatisticsCallback callback,
|
gulong gst_ptp_statistics_callback_add (GstPtpStatisticsCallback callback,
|
||||||
gpointer user_data, GDestroyNotify destroy_data);
|
gpointer user_data, GDestroyNotify destroy_data);
|
||||||
|
GST_EXPORT
|
||||||
void gst_ptp_statistics_callback_remove (gulong id);
|
void gst_ptp_statistics_callback_remove (gulong id);
|
||||||
|
|
||||||
|
GST_EXPORT
|
||||||
GstClock* gst_ptp_clock_new (const gchar *name,
|
GstClock* gst_ptp_clock_new (const gchar *name,
|
||||||
guint domain);
|
guint domain);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue