gst/gstevent.h (struct _GstEvent): Only one pointer of padding.
authorAndy Wingo <wingo@pobox.com>
Tue, 29 Nov 2005 18:57:59 +0000 (18:57 +0000)
committerAndy Wingo <wingo@pobox.com>
Tue, 29 Nov 2005 18:57:59 +0000 (18:57 +0000)
Original commit message from CVS:
2005-11-29  Andy Wingo  <wingo@pobox.com>

* gst/gstevent.h (struct _GstEvent): Only one pointer of padding.

* gst/gststructure.h (struct _GstStructure): Only one pointer of
padding.

* gst/gstquery.h (struct _GstQuery): Only one pointer of padding.

* gst/gstpluginfeature.h: Remove a comment in PluginFeature.

* gst/gstplugin.h (struct _GstPluginClass): Add some padding.

* gst/gstobject.h: (struct _GstObject): Only one pointer of
padding; reduces object size by about 30%. We don't expect
anything else to go into gstobject.

* gst/gstminiobject.h (struct _GstMiniObject)
(struct _GstMiniObjectClass): Only one pointer of padding; the
payload is only a pointer and two ints anyway. For the class there
are only two methods as well.

* gst/gstelement.h (struct _GstElementClass): Removed
the state_changed signal callback, it is not used.

ChangeLog
gst/gstelement.h
gst/gstminiobject.h
gst/gstobject.h
gst/gstplugin.h
gst/gstpluginfeature.h
gst/gstquery.h
gst/gststructure.h

index 1051032..813c960 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,28 @@
+2005-11-29  Andy Wingo  <wingo@pobox.com>
+
+       * gst/gstevent.h (struct _GstEvent): Only one pointer of padding.
+
+       * gst/gststructure.h (struct _GstStructure): Only one pointer of
+       padding.
+
+       * gst/gstquery.h (struct _GstQuery): Only one pointer of padding.
+
+       * gst/gstpluginfeature.h: Remove a comment in PluginFeature.
+
+       * gst/gstplugin.h (struct _GstPluginClass): Add some padding.
+
+       * gst/gstobject.h: (struct _GstObject): Only one pointer of
+       padding; reduces object size by about 30%. We don't expect
+       anything else to go into gstobject.
+
+       * gst/gstminiobject.h (struct _GstMiniObject)
+       (struct _GstMiniObjectClass): Only one pointer of padding; the
+       payload is only a pointer and two ints anyway. For the class there
+       are only two methods as well.
+       
+       * gst/gstelement.h (struct _GstElementClass): Removed
+       the state_changed signal callback, it is not used.
+
 2005-11-29  Thomas Vander Stichele  <thomas at apestaart dot org>
 
        * docs/gst/gstreamer.types:
index 64fc465..040521c 100644 (file)
@@ -439,7 +439,6 @@ struct _GstElementClass
 
   /*< private >*/
   /* signal callbacks */
-  void (*state_changed)        (GstElement *element, GstState old, GstState state); /* FIXME, ABI unused */
   void (*pad_added)    (GstElement *element, GstPad *pad);
   void (*pad_removed)  (GstElement *element, GstPad *pad);
   void (*no_more_pads) (GstElement *element);
index 887dc2c..bbc6480 100644 (file)
@@ -146,7 +146,7 @@ struct _GstMiniObject {
   guint flags;
 
   /*< private >*/
-  gpointer _gst_reserved[GST_PADDING];
+  gpointer _gst_reserved;
 };
 
 struct _GstMiniObjectClass {
@@ -156,7 +156,7 @@ struct _GstMiniObjectClass {
   GstMiniObjectFinalizeFunction finalize;
 
   /*< private >*/
-  gpointer _gst_reserved[GST_PADDING];
+  gpointer _gst_reserved;
 };
 
 GType          gst_mini_object_get_type        (void);
index 91c4c32..c25be75 100644 (file)
@@ -209,7 +209,7 @@ struct _GstObject {
   guint32        flags;
 
   /*< private >*/
-  gpointer _gst_reserved[GST_PADDING];
+  gpointer _gst_reserved;
 };
 
 /**
index 332f97e..d4e3282 100644 (file)
@@ -159,6 +159,7 @@ struct _GstPluginClass {
   GstObjectClass  object_class;
 
   /*< private >*/
+  gpointer _gst_reserved[GST_PADDING];
 };
 
 /**
index 4f7a641..fff50bc 100644 (file)
@@ -82,7 +82,6 @@ struct _GstPluginFeature {
   gchar        *name;
   guint         rank;
 
-  /* struct _GstPlugin     *plugin; */
   gchar *plugin_name;
 
   /*< private >*/
index 329c450..6accc2e 100644 (file)
@@ -119,7 +119,7 @@ struct _GstQuery
   GstStructure *structure;
 
   /*< private > */
-  gpointer _gst_reserved[GST_PADDING];
+  gpointer _gst_reserved;
 };
 
 struct _GstQueryClass {
index 6d97cfc..8815471 100644 (file)
@@ -82,7 +82,7 @@ struct _GstStructure {
 
   GArray *fields;
 
-  gpointer _gst_reserved[GST_PADDING];
+  gpointer _gst_reserved;
 };
 
 GType                   gst_structure_get_type             (void);