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/7312>
This commit is contained in:
Jan Schmidt 2024-08-06 22:48:16 +10:00 committed by GStreamer Marge Bot
parent 724c443a65
commit c0c0615964

View file

@ -32,6 +32,8 @@
* @title: GstWebRTC Enumerations
*/
G_BEGIN_DECLS
#ifndef GST_WEBRTC_API
# ifdef BUILDING_GST_WEBRTC
# 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,
} GstWebRTCError;
G_END_DECLS
#endif /* __GST_WEBRTC_FWD_H__ */