cogl: Drop no longer used define boxed macro
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3193>
This commit is contained in:
parent
93216b3c11
commit
c8b4568973
@ -59,22 +59,6 @@ struct _CoglGtypeClass
|
|||||||
|
|
||||||
/**/
|
/**/
|
||||||
|
|
||||||
#define COGL_GTYPE_DEFINE_BOXED(Name,underscore_name,copy_func,free_func) \
|
|
||||||
GType \
|
|
||||||
cogl_##underscore_name##_get_gtype (void) \
|
|
||||||
{ \
|
|
||||||
static size_t g_type_id = 0; \
|
|
||||||
if (g_once_init_enter (&g_type_id)) \
|
|
||||||
{ \
|
|
||||||
GType type = \
|
|
||||||
g_boxed_type_register_static (g_intern_static_string (I_("Cogl" # Name)), \
|
|
||||||
(GBoxedCopyFunc)copy_func, \
|
|
||||||
(GBoxedFreeFunc)free_func); \
|
|
||||||
g_once_init_leave (&g_type_id, type); \
|
|
||||||
} \
|
|
||||||
return g_type_id; \
|
|
||||||
}
|
|
||||||
|
|
||||||
#define COGL_GTYPE_IMPLEMENT_INTERFACE(name) { \
|
#define COGL_GTYPE_IMPLEMENT_INTERFACE(name) { \
|
||||||
const GInterfaceInfo g_implement_interface_info = { \
|
const GInterfaceInfo g_implement_interface_info = { \
|
||||||
(GInterfaceInitFunc) _cogl_gtype_dummy_iface_init, NULL, NULL \
|
(GInterfaceInitFunc) _cogl_gtype_dummy_iface_init, NULL, NULL \
|
||||||
|
Loading…
Reference in New Issue
Block a user