diff --git a/gst-libs/gst/webrtc/dtlstransport.h b/gst-libs/gst/webrtc/dtlstransport.h index 366a602a24..b27e97790b 100644 --- a/gst-libs/gst/webrtc/dtlstransport.h +++ b/gst-libs/gst/webrtc/dtlstransport.h @@ -26,7 +26,7 @@ G_BEGIN_DECLS -GST_EXPORT +GST_WEBRTC_API GType gst_webrtc_dtls_transport_get_type(void); #define GST_TYPE_WEBRTC_DTLS_TRANSPORT (gst_webrtc_dtls_transport_get_type()) #define GST_WEBRTC_DTLS_TRANSPORT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_WEBRTC_DTLS_TRANSPORT,GstWebRTCDTLSTransport)) @@ -58,10 +58,10 @@ struct _GstWebRTCDTLSTransportClass gpointer _padding[GST_PADDING]; }; -GST_EXPORT +GST_WEBRTC_API GstWebRTCDTLSTransport * gst_webrtc_dtls_transport_new (guint session_id, gboolean rtcp); -GST_EXPORT +GST_WEBRTC_API void gst_webrtc_dtls_transport_set_transport (GstWebRTCDTLSTransport * transport, GstWebRTCICETransport * ice); diff --git a/gst-libs/gst/webrtc/icetransport.h b/gst-libs/gst/webrtc/icetransport.h index 30730fa9b5..59c5421fde 100644 --- a/gst-libs/gst/webrtc/icetransport.h +++ b/gst-libs/gst/webrtc/icetransport.h @@ -25,7 +25,7 @@ G_BEGIN_DECLS -GST_EXPORT +GST_WEBRTC_API GType gst_webrtc_ice_transport_get_type(void); #define GST_TYPE_WEBRTC_ICE_TRANSPORT (gst_webrtc_ice_transport_get_type()) #define GST_WEBRTC_ICE_TRANSPORT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_WEBRTC_ICE_TRANSPORT,GstWebRTCICETransport)) @@ -60,15 +60,15 @@ struct _GstWebRTCICETransportClass gpointer _padding[GST_PADDING]; }; -GST_EXPORT +GST_WEBRTC_API void gst_webrtc_ice_transport_connection_state_change (GstWebRTCICETransport * ice, GstWebRTCICEConnectionState new_state); -GST_EXPORT +GST_WEBRTC_API void gst_webrtc_ice_transport_gathering_state_change (GstWebRTCICETransport * ice, GstWebRTCICEGatheringState new_state); -GST_EXPORT +GST_WEBRTC_API void gst_webrtc_ice_transport_selected_pair_change (GstWebRTCICETransport * ice); -GST_EXPORT +GST_WEBRTC_API void gst_webrtc_ice_transport_new_candidate (GstWebRTCICETransport * ice, guint stream_id, GstWebRTCICEComponent component, gchar * attr); G_END_DECLS diff --git a/gst-libs/gst/webrtc/rtcsessiondescription.h b/gst-libs/gst/webrtc/rtcsessiondescription.h index 080d21c7e2..3783dff39a 100644 --- a/gst-libs/gst/webrtc/rtcsessiondescription.h +++ b/gst-libs/gst/webrtc/rtcsessiondescription.h @@ -26,11 +26,11 @@ G_BEGIN_DECLS -GST_EXPORT +GST_WEBRTC_API const gchar * gst_webrtc_sdp_type_to_string (GstWebRTCSDPType type); #define GST_TYPE_WEBRTC_SESSION_DESCRIPTION (gst_webrtc_session_description_get_type()) -GST_EXPORT +GST_WEBRTC_API GType gst_webrtc_session_description_get_type (void); /** @@ -46,11 +46,11 @@ struct _GstWebRTCSessionDescription GstSDPMessage *sdp; }; -GST_EXPORT +GST_WEBRTC_API GstWebRTCSessionDescription * gst_webrtc_session_description_new (GstWebRTCSDPType type, GstSDPMessage *sdp); -GST_EXPORT +GST_WEBRTC_API GstWebRTCSessionDescription * gst_webrtc_session_description_copy (const GstWebRTCSessionDescription * src); -GST_EXPORT +GST_WEBRTC_API void gst_webrtc_session_description_free (GstWebRTCSessionDescription * desc); G_END_DECLS diff --git a/gst-libs/gst/webrtc/rtpreceiver.h b/gst-libs/gst/webrtc/rtpreceiver.h index 969c4de65b..c68d9ba19d 100644 --- a/gst-libs/gst/webrtc/rtpreceiver.h +++ b/gst-libs/gst/webrtc/rtpreceiver.h @@ -26,7 +26,7 @@ G_BEGIN_DECLS -GST_EXPORT +GST_WEBRTC_API GType gst_webrtc_rtp_receiver_get_type(void); #define GST_TYPE_WEBRTC_RTP_RECEIVER (gst_webrtc_rtp_receiver_get_type()) #define GST_WEBRTC_RTP_RECEIVER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_WEBRTC_RTP_RECEIVER,GstWebRTCRTPReceiver)) @@ -56,18 +56,18 @@ struct _GstWebRTCRTPReceiverClass gpointer _padding[GST_PADDING]; }; -GST_EXPORT +GST_WEBRTC_API GstWebRTCRTPReceiver * gst_webrtc_rtp_receiver_new (void); -GST_EXPORT +GST_WEBRTC_API GstStructure * gst_webrtc_rtp_receiver_get_parameters (GstWebRTCRTPReceiver * receiver, gchar * kind); /* FIXME: promise? */ -GST_EXPORT +GST_WEBRTC_API gboolean gst_webrtc_rtp_receiver_set_parameters (GstWebRTCRTPReceiver * receiver, GstStructure * parameters); -GST_EXPORT +GST_WEBRTC_API void gst_webrtc_rtp_receiver_set_transport (GstWebRTCRTPReceiver * receiver, GstWebRTCDTLSTransport * transport); -GST_EXPORT +GST_WEBRTC_API void gst_webrtc_rtp_receiver_set_rtcp_transport (GstWebRTCRTPReceiver * receiver, GstWebRTCDTLSTransport * transport); diff --git a/gst-libs/gst/webrtc/rtpsender.h b/gst-libs/gst/webrtc/rtpsender.h index 8308a0b44e..179afefbf5 100644 --- a/gst-libs/gst/webrtc/rtpsender.h +++ b/gst-libs/gst/webrtc/rtpsender.h @@ -26,7 +26,7 @@ G_BEGIN_DECLS -GST_EXPORT +GST_WEBRTC_API GType gst_webrtc_rtp_sender_get_type(void); #define GST_TYPE_WEBRTC_RTP_SENDER (gst_webrtc_rtp_sender_get_type()) #define GST_WEBRTC_RTP_SENDER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_WEBRTC_RTP_SENDER,GstWebRTCRTPSender)) @@ -55,19 +55,19 @@ struct _GstWebRTCRTPSenderClass gpointer _padding[GST_PADDING]; }; -GST_EXPORT +GST_WEBRTC_API GstWebRTCRTPSender * gst_webrtc_rtp_sender_new (GArray * send_encodings); -GST_EXPORT +GST_WEBRTC_API GstStructure * gst_webrtc_rtp_sender_get_parameters (GstWebRTCRTPSender * sender, gchar * kind); /* FIXME: promise? */ -GST_EXPORT +GST_WEBRTC_API gboolean gst_webrtc_rtp_sender_set_parameters (GstWebRTCRTPSender * sender, GstStructure * parameters); -GST_EXPORT +GST_WEBRTC_API void gst_webrtc_rtp_sender_set_transport (GstWebRTCRTPSender * sender, GstWebRTCDTLSTransport * transport); -GST_EXPORT +GST_WEBRTC_API void gst_webrtc_rtp_sender_set_rtcp_transport (GstWebRTCRTPSender * sender, GstWebRTCDTLSTransport * transport); diff --git a/gst-libs/gst/webrtc/rtptransceiver.h b/gst-libs/gst/webrtc/rtptransceiver.h index 1bb819752a..a4f8eb6097 100644 --- a/gst-libs/gst/webrtc/rtptransceiver.h +++ b/gst-libs/gst/webrtc/rtptransceiver.h @@ -27,7 +27,7 @@ G_BEGIN_DECLS -GST_EXPORT +GST_WEBRTC_API GType gst_webrtc_rtp_transceiver_get_type(void); #define GST_TYPE_WEBRTC_RTP_TRANSCEIVER (gst_webrtc_rtp_transceiver_get_type()) #define GST_WEBRTC_RTP_TRANSCEIVER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_WEBRTC_RTP_TRANSCEIVER,GstWebRTCRTPTransceiver)) @@ -61,7 +61,7 @@ struct _GstWebRTCRTPTransceiverClass gpointer _padding[GST_PADDING]; }; -GST_EXPORT +GST_WEBRTC_API void gst_webrtc_rtp_transceiver_stop (GstWebRTCRTPTransceiver * transceiver); G_END_DECLS diff --git a/gst-libs/gst/webrtc/webrtc_fwd.h b/gst-libs/gst/webrtc/webrtc_fwd.h index 48c9bdab1a..adb40c4ea7 100644 --- a/gst-libs/gst/webrtc/webrtc_fwd.h +++ b/gst-libs/gst/webrtc/webrtc_fwd.h @@ -26,6 +26,11 @@ #endif #include + +#ifndef GST_WEBRTC_API +#define GST_WEBRTC_API GST_EXPORT +#endif + #include typedef struct _GstWebRTCDTLSTransport GstWebRTCDTLSTransport;