summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2018-03-13 13:11:17 +0000
committerTim-Philipp Müller <tim@centricular.com>2018-03-13 13:36:33 +0000
commit333f636555f07c0f731892c68e7837e4ecb9e40d (patch)
tree38b335ed4c0bc74f73914b14b5a32afc885ea4ce
parentbdbe83a88e923f4d1233a6298c588a8b77b625bc (diff)
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.
-rw-r--r--gst-libs/gst/webrtc/dtlstransport.h6
-rw-r--r--gst-libs/gst/webrtc/icetransport.h10
-rw-r--r--gst-libs/gst/webrtc/rtcsessiondescription.h10
-rw-r--r--gst-libs/gst/webrtc/rtpreceiver.h12
-rw-r--r--gst-libs/gst/webrtc/rtpsender.h12
-rw-r--r--gst-libs/gst/webrtc/rtptransceiver.h4
-rw-r--r--gst-libs/gst/webrtc/webrtc_fwd.h5
7 files changed, 32 insertions, 27 deletions
diff --git a/gst-libs/gst/webrtc/dtlstransport.h b/gst-libs/gst/webrtc/dtlstransport.h
index 366a602a2..b27e97790 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 30730fa9b..59c5421fd 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 080d21c7e..3783dff39 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 969c4de65..c68d9ba19 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 8308a0b44..179afefbf 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 1bb819752..a4f8eb609 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 48c9bdab1..adb40c4ea 100644
--- a/gst-libs/gst/webrtc/webrtc_fwd.h
+++ b/gst-libs/gst/webrtc/webrtc_fwd.h
@@ -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;