webrtc: GST_EXPORT -> GST_WEBRTC_API

We need different export decorators for the different libs.
For now no actual change though, just rename before the release,
and add prelude headers to define the new decorator to GST_EXPORT.
This commit is contained in:
Tim-Philipp Müller 2018-03-13 13:11:17 +00:00
parent bdbe83a88e
commit 333f636555
7 changed files with 32 additions and 27 deletions

View file

@ -26,7 +26,7 @@
G_BEGIN_DECLS G_BEGIN_DECLS
GST_EXPORT GST_WEBRTC_API
GType gst_webrtc_dtls_transport_get_type(void); GType gst_webrtc_dtls_transport_get_type(void);
#define GST_TYPE_WEBRTC_DTLS_TRANSPORT (gst_webrtc_dtls_transport_get_type()) #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)) #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]; gpointer _padding[GST_PADDING];
}; };
GST_EXPORT GST_WEBRTC_API
GstWebRTCDTLSTransport * gst_webrtc_dtls_transport_new (guint session_id, gboolean rtcp); 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, void gst_webrtc_dtls_transport_set_transport (GstWebRTCDTLSTransport * transport,
GstWebRTCICETransport * ice); GstWebRTCICETransport * ice);

View file

@ -25,7 +25,7 @@
G_BEGIN_DECLS G_BEGIN_DECLS
GST_EXPORT GST_WEBRTC_API
GType gst_webrtc_ice_transport_get_type(void); GType gst_webrtc_ice_transport_get_type(void);
#define GST_TYPE_WEBRTC_ICE_TRANSPORT (gst_webrtc_ice_transport_get_type()) #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)) #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]; gpointer _padding[GST_PADDING];
}; };
GST_EXPORT GST_WEBRTC_API
void gst_webrtc_ice_transport_connection_state_change (GstWebRTCICETransport * ice, void gst_webrtc_ice_transport_connection_state_change (GstWebRTCICETransport * ice,
GstWebRTCICEConnectionState new_state); GstWebRTCICEConnectionState new_state);
GST_EXPORT GST_WEBRTC_API
void gst_webrtc_ice_transport_gathering_state_change (GstWebRTCICETransport * ice, void gst_webrtc_ice_transport_gathering_state_change (GstWebRTCICETransport * ice,
GstWebRTCICEGatheringState new_state); GstWebRTCICEGatheringState new_state);
GST_EXPORT GST_WEBRTC_API
void gst_webrtc_ice_transport_selected_pair_change (GstWebRTCICETransport * ice); 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); void gst_webrtc_ice_transport_new_candidate (GstWebRTCICETransport * ice, guint stream_id, GstWebRTCICEComponent component, gchar * attr);
G_END_DECLS G_END_DECLS

View file

@ -26,11 +26,11 @@
G_BEGIN_DECLS G_BEGIN_DECLS
GST_EXPORT GST_WEBRTC_API
const gchar * gst_webrtc_sdp_type_to_string (GstWebRTCSDPType type); const gchar * gst_webrtc_sdp_type_to_string (GstWebRTCSDPType type);
#define GST_TYPE_WEBRTC_SESSION_DESCRIPTION (gst_webrtc_session_description_get_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); GType gst_webrtc_session_description_get_type (void);
/** /**
@ -46,11 +46,11 @@ struct _GstWebRTCSessionDescription
GstSDPMessage *sdp; GstSDPMessage *sdp;
}; };
GST_EXPORT GST_WEBRTC_API
GstWebRTCSessionDescription * gst_webrtc_session_description_new (GstWebRTCSDPType type, GstSDPMessage *sdp); GstWebRTCSessionDescription * gst_webrtc_session_description_new (GstWebRTCSDPType type, GstSDPMessage *sdp);
GST_EXPORT GST_WEBRTC_API
GstWebRTCSessionDescription * gst_webrtc_session_description_copy (const GstWebRTCSessionDescription * src); GstWebRTCSessionDescription * gst_webrtc_session_description_copy (const GstWebRTCSessionDescription * src);
GST_EXPORT GST_WEBRTC_API
void gst_webrtc_session_description_free (GstWebRTCSessionDescription * desc); void gst_webrtc_session_description_free (GstWebRTCSessionDescription * desc);
G_END_DECLS G_END_DECLS

View file

@ -26,7 +26,7 @@
G_BEGIN_DECLS G_BEGIN_DECLS
GST_EXPORT GST_WEBRTC_API
GType gst_webrtc_rtp_receiver_get_type(void); GType gst_webrtc_rtp_receiver_get_type(void);
#define GST_TYPE_WEBRTC_RTP_RECEIVER (gst_webrtc_rtp_receiver_get_type()) #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)) #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]; gpointer _padding[GST_PADDING];
}; };
GST_EXPORT GST_WEBRTC_API
GstWebRTCRTPReceiver * gst_webrtc_rtp_receiver_new (void); GstWebRTCRTPReceiver * gst_webrtc_rtp_receiver_new (void);
GST_EXPORT GST_WEBRTC_API
GstStructure * gst_webrtc_rtp_receiver_get_parameters (GstWebRTCRTPReceiver * receiver, gchar * kind); GstStructure * gst_webrtc_rtp_receiver_get_parameters (GstWebRTCRTPReceiver * receiver, gchar * kind);
/* FIXME: promise? */ /* FIXME: promise? */
GST_EXPORT GST_WEBRTC_API
gboolean gst_webrtc_rtp_receiver_set_parameters (GstWebRTCRTPReceiver * receiver, gboolean gst_webrtc_rtp_receiver_set_parameters (GstWebRTCRTPReceiver * receiver,
GstStructure * parameters); GstStructure * parameters);
GST_EXPORT GST_WEBRTC_API
void gst_webrtc_rtp_receiver_set_transport (GstWebRTCRTPReceiver * receiver, void gst_webrtc_rtp_receiver_set_transport (GstWebRTCRTPReceiver * receiver,
GstWebRTCDTLSTransport * transport); GstWebRTCDTLSTransport * transport);
GST_EXPORT GST_WEBRTC_API
void gst_webrtc_rtp_receiver_set_rtcp_transport (GstWebRTCRTPReceiver * receiver, void gst_webrtc_rtp_receiver_set_rtcp_transport (GstWebRTCRTPReceiver * receiver,
GstWebRTCDTLSTransport * transport); GstWebRTCDTLSTransport * transport);

View file

@ -26,7 +26,7 @@
G_BEGIN_DECLS G_BEGIN_DECLS
GST_EXPORT GST_WEBRTC_API
GType gst_webrtc_rtp_sender_get_type(void); GType gst_webrtc_rtp_sender_get_type(void);
#define GST_TYPE_WEBRTC_RTP_SENDER (gst_webrtc_rtp_sender_get_type()) #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)) #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]; gpointer _padding[GST_PADDING];
}; };
GST_EXPORT GST_WEBRTC_API
GstWebRTCRTPSender * gst_webrtc_rtp_sender_new (GArray * send_encodings); 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); GstStructure * gst_webrtc_rtp_sender_get_parameters (GstWebRTCRTPSender * sender, gchar * kind);
/* FIXME: promise? */ /* FIXME: promise? */
GST_EXPORT GST_WEBRTC_API
gboolean gst_webrtc_rtp_sender_set_parameters (GstWebRTCRTPSender * sender, gboolean gst_webrtc_rtp_sender_set_parameters (GstWebRTCRTPSender * sender,
GstStructure * parameters); GstStructure * parameters);
GST_EXPORT GST_WEBRTC_API
void gst_webrtc_rtp_sender_set_transport (GstWebRTCRTPSender * sender, void gst_webrtc_rtp_sender_set_transport (GstWebRTCRTPSender * sender,
GstWebRTCDTLSTransport * transport); GstWebRTCDTLSTransport * transport);
GST_EXPORT GST_WEBRTC_API
void gst_webrtc_rtp_sender_set_rtcp_transport (GstWebRTCRTPSender * sender, void gst_webrtc_rtp_sender_set_rtcp_transport (GstWebRTCRTPSender * sender,
GstWebRTCDTLSTransport * transport); GstWebRTCDTLSTransport * transport);

View file

@ -27,7 +27,7 @@
G_BEGIN_DECLS G_BEGIN_DECLS
GST_EXPORT GST_WEBRTC_API
GType gst_webrtc_rtp_transceiver_get_type(void); GType gst_webrtc_rtp_transceiver_get_type(void);
#define GST_TYPE_WEBRTC_RTP_TRANSCEIVER (gst_webrtc_rtp_transceiver_get_type()) #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)) #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]; gpointer _padding[GST_PADDING];
}; };
GST_EXPORT GST_WEBRTC_API
void gst_webrtc_rtp_transceiver_stop (GstWebRTCRTPTransceiver * transceiver); void gst_webrtc_rtp_transceiver_stop (GstWebRTCRTPTransceiver * transceiver);
G_END_DECLS G_END_DECLS

View file

@ -26,6 +26,11 @@
#endif #endif
#include <gst/gst.h> #include <gst/gst.h>
#ifndef GST_WEBRTC_API
#define GST_WEBRTC_API GST_EXPORT
#endif
#include <gst/webrtc/webrtc-enumtypes.h> #include <gst/webrtc/webrtc-enumtypes.h>
typedef struct _GstWebRTCDTLSTransport GstWebRTCDTLSTransport; typedef struct _GstWebRTCDTLSTransport GstWebRTCDTLSTransport;