summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2018-03-22 13:43:52 +0000
committerTim-Philipp Müller <tim@centricular.com>2018-03-22 14:34:08 +0000
commit503769e8e3414384f3f1fa46f529f8f265157abb (patch)
tree6bb103d77a4ea5037632d28615734d856dee3552 /gst-libs
parentf48564b70067ad99ffcb3a199049698da79f2e91 (diff)
webrtc: use right export define in generated enumtypes file
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/webrtc/Makefile.am3
-rwxr-xr-xgst-libs/gst/webrtc/webrtc_mkenum.py4
2 files changed, 4 insertions, 3 deletions
diff --git a/gst-libs/gst/webrtc/Makefile.am b/gst-libs/gst/webrtc/Makefile.am
index 8b3b8bae8..945c4c079 100644
--- a/gst-libs/gst/webrtc/Makefile.am
+++ b/gst-libs/gst/webrtc/Makefile.am
@@ -4,7 +4,8 @@ glib_enum_headers = dtlstransport.h icetransport.h rtptransceiver.h webrtc_fwd.h
glib_enum_define = GST_WEBRTC
glib_gen_prefix = gst_webrtc
glib_gen_basename = webrtc
-glib_gen_decl_banner=GST_EXPORT
+glib_gen_decl_banner=GST_WEBRTC_API
+glib_gen_decl_include=\#include <gst/webrtc/webrtc_fwd.h>
built_sources = webrtc-enumtypes.c
built_headers = webrtc-enumtypes.h
diff --git a/gst-libs/gst/webrtc/webrtc_mkenum.py b/gst-libs/gst/webrtc/webrtc_mkenum.py
index fb6c2cba6..68a53faf1 100755
--- a/gst-libs/gst/webrtc/webrtc_mkenum.py
+++ b/gst-libs/gst/webrtc/webrtc_mkenum.py
@@ -8,11 +8,11 @@
import sys, os, shutil, subprocess
h_array = ['--fhead',
- "#ifndef __GST_WEBRTC_ENUM_TYPES_H__\n#define __GST_WEBRTC_ENUM_TYPES_H__\n\n#include <gst/gst.h>\n\nG_BEGIN_DECLS\n",
+ "#ifndef __GST_WEBRTC_ENUM_TYPES_H__\n#define __GST_WEBRTC_ENUM_TYPES_H__\n\n#include <gst/gst.h>\n#include <gst/webrtc/webrtc_fwd.h>\nG_BEGIN_DECLS\n",
'--fprod',
"\n/* enumerations from \"@filename@\" */\n",
'--vhead',
- "GST_EXPORT GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n",
+ "GST_WEBRTC_API GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n",
'--ftail',
"G_END_DECLS\n\n#endif /* __GST_WEBRTC_ENUM_TYPES_H__ */"
]