mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
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:
parent
bdbe83a88e
commit
333f636555
7 changed files with 32 additions and 27 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -26,6 +26,11 @@
|
|||
#endif
|
||||
|
||||
#include <gst/gst.h>
|
||||
|
||||
#ifndef GST_WEBRTC_API
|
||||
#define GST_WEBRTC_API GST_EXPORT
|
||||
#endif
|
||||
|
||||
#include <gst/webrtc/webrtc-enumtypes.h>
|
||||
|
||||
typedef struct _GstWebRTCDTLSTransport GstWebRTCDTLSTransport;
|
||||
|
|
Loading…
Reference in a new issue