[mutter] cogl: Drop CoglHandleObject and CoglHandleClass



commit 62330f273dd7e244b3ee6aa704ed96a862ee5ce8
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Thu Mar 31 14:47:57 2022 -0300

    cogl: Drop CoglHandleObject and CoglHandleClass
    
    They're just typedefs to CoglObject and CoglObjectClass, respectively,
    and the latter is unused already. The former is used in a couple of
    deprecated headers, which can easily be changed.
    
    Change all CoglHandleObject instances to CoglObject, and drop the types
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2355>

 cogl/cogl/cogl-object-private.h             | 4 ----
 cogl/cogl/deprecated/cogl-program-private.h | 2 +-
 cogl/cogl/deprecated/cogl-shader-private.h  | 2 +-
 3 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/cogl/cogl/cogl-object-private.h b/cogl/cogl/cogl-object-private.h
index 83f42b4103..ac24f188c8 100644
--- a/cogl/cogl/cogl-object-private.h
+++ b/cogl/cogl/cogl-object-private.h
@@ -38,10 +38,6 @@
 #include "cogl-object.h"
 #include "cogl-debug.h"
 
-/* For compatibility until all components have been converted */
-typedef struct _CoglObjectClass CoglHandleClass;
-typedef struct _CoglObject      CoglHandleObject;
-
 /* XXX: sadly we didn't fully consider when we copied the cairo API
  * for _set_user_data that the callback doesn't get a pointer to the
  * instance which is desired in most cases. This means you tend to end
diff --git a/cogl/cogl/deprecated/cogl-program-private.h b/cogl/cogl/deprecated/cogl-program-private.h
index 38b5f59d81..86ebdfd049 100644
--- a/cogl/cogl/deprecated/cogl-program-private.h
+++ b/cogl/cogl/deprecated/cogl-program-private.h
@@ -38,7 +38,7 @@ typedef struct _CoglProgram CoglProgram;
 
 struct _CoglProgram
 {
-  CoglHandleObject _parent;
+  CoglObject _parent;
 
   GSList *attached_shaders;
 
diff --git a/cogl/cogl/deprecated/cogl-shader-private.h b/cogl/cogl/deprecated/cogl-shader-private.h
index ae47f18795..329a4ffac3 100644
--- a/cogl/cogl/deprecated/cogl-shader-private.h
+++ b/cogl/cogl/deprecated/cogl-shader-private.h
@@ -40,7 +40,7 @@ typedef struct _CoglShader CoglShader;
 
 struct _CoglShader
 {
-  CoglHandleObject _parent;
+  CoglObject _parent;
   GLuint gl_handle;
   CoglPipeline *compilation_pipeline;
   CoglShaderType type;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]