framebuffer: Fix linkage from C++ applications

Prevent Cogl function names from being mangled when a C++ compiler is
being used by adding some missing COGL_{BEGIN,END}_DECLS guards.

https://bugzilla.gnome.org/show_bug.cgi?id=728628

Reviewed-by: Neil Roberts <neil@linux.intel.com>
This commit is contained in:
Emanuele Aina 2014-04-20 23:58:13 +02:00 committed by Neil Roberts
parent 93c90f1e05
commit 27dbf700d6

View File

@ -33,6 +33,8 @@
#include <cogl/cogl-macros.h>
COGL_BEGIN_DECLS
/**
* cogl_set_framebuffer:
* @buffer: A #CoglFramebuffer object, either onscreen or offscreen.
@ -257,4 +259,6 @@ COGL_DEPRECATED_IN_1_18
CoglPixelFormat
cogl_framebuffer_get_color_format (CoglFramebuffer *framebuffer);
COGL_END_DECLS
#endif /* __COGL_FRAMEBUFFER_DEPRECATED_H__ */