gl: cocoa: sprinkle some GST_EXPORT
authorTim-Philipp Müller <tim@centricular.com>
Sun, 26 Nov 2017 22:36:35 +0000 (22:36 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Sun, 26 Nov 2017 22:36:35 +0000 (22:36 +0000)
Undefined symbols for architecture x86_64:
  "_gst_gl_context_cocoa_get_type", referenced from:
      __create_layer in libgstopengl_la-caopengllayersink.o

Might need some more in other headers, but first need to
clarify what exactly should be exported, there are some
inconsistencies (installed header files vs. funcs in docs).

gst-libs/gst/gl/cocoa/gstgldisplay_cocoa.h

index 5551f0f..e470764 100644 (file)
@@ -28,6 +28,7 @@
 
 G_BEGIN_DECLS
 
+GST_EXPORT
 GType gst_gl_display_cocoa_get_type (void);
 
 #define GST_TYPE_GL_DISPLAY_COCOA             (gst_gl_display_cocoa_get_type())
@@ -55,6 +56,7 @@ struct _GstGLDisplayCocoaClass
   GstGLDisplayClass object_class;
 };
 
+GST_EXPORT
 GstGLDisplayCocoa *gst_gl_display_cocoa_new (void);
 
 G_END_DECLS