cogl: Various g-i fixes

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3431>
This commit is contained in:
Bilal Elmoussaoui 2023-11-29 12:07:36 +01:00
parent 79846ff263
commit 46da153548
2 changed files with 4 additions and 2 deletions

View File

@ -63,6 +63,7 @@ G_BEGIN_DECLS
#define COGL_PRIVATE(x) private_member_ ## x
#endif
#ifndef __GI_SCANNER__
/* To help catch accidental changes to public structs that should
* be stack allocated we use this macro to compile time assert that
* a struct size is as expected.
@ -72,7 +73,9 @@ typedef struct { \
char compile_time_assert_ ## TYPE ## _size[ \
(sizeof (TYPE) == (SIZE)) ? 1 : -1]; \
} _ ## TYPE ## SizeCheck
#else
#define COGL_STRUCT_SIZE_ASSERT(TYPE, SIZE)
#endif
typedef struct _CoglFramebuffer CoglFramebuffer;

View File

@ -34,7 +34,6 @@
G_BEGIN_DECLS
#define cogl_clutter_winsys_has_feature cogl_clutter_winsys_has_feature_CLUTTER
COGL_DEPRECATED_FOR (cogl_has_feature)
COGL_EXPORT gboolean
cogl_clutter_winsys_has_feature (CoglWinsysFeature feature);