webrtc: Add missing G_BEGIN/END_DECLS in header

Fix using webrtc.h from C++ by adding the GLib begin/end
decls markers around the header contents in webrtc_fwd.h

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7313>
This commit is contained in:
Jan Schmidt 2024-08-06 22:48:16 +10:00 committed by Backport Bot
parent 14e3be6a26
commit a592bf28b0

View file

@ -32,6 +32,8 @@
* @title: GstWebRTC Enumerations * @title: GstWebRTC Enumerations
*/ */
G_BEGIN_DECLS
#ifndef GST_WEBRTC_API #ifndef GST_WEBRTC_API
# ifdef BUILDING_GST_WEBRTC # ifdef BUILDING_GST_WEBRTC
# define GST_WEBRTC_API GST_API_EXPORT /* from config.h */ # define GST_WEBRTC_API GST_API_EXPORT /* from config.h */
@ -516,4 +518,6 @@ typedef enum /*<underscore_name=gst_webrtc_error>*/
GST_WEBRTC_ERROR_TYPE_ERROR, GST_WEBRTC_ERROR_TYPE_ERROR,
} GstWebRTCError; } GstWebRTCError;
G_END_DECLS
#endif /* __GST_WEBRTC_FWD_H__ */ #endif /* __GST_WEBRTC_FWD_H__ */