mirror of
https://github.com/brl/mutter.git
synced 2025-01-24 10:28:58 +00:00
Neil Roberts
b25035ad2d
cogl: Don't define the deprecated ref/unref accessors for new types
Previously COGL_OBJECT_DEFINE would always define deprecated cogl_$type_{ref,unref} functions even if the type is new or if the type is entirely internal. An application would still find it difficult to use these because they wouldn't be in the headers, but it still looks bad that they are exported from the shared library. This patch changes it so that the deprecated ref counting functions are defined using a separate macro and only the types that have these functions in the headers call this macro.
Description
Languages
C
98.9%
Meson
0.7%
Python
0.3%