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

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.
This commit is contained in:
Andy Wingo 2005-11-29 18:57:59 +00:00
parent 460e7cbefa
commit 65ce5ed080
8 changed files with 31 additions and 7 deletions

View file

@ -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:

View 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);

View 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);

View file

@ -209,7 +209,7 @@ struct _GstObject {
guint32 flags;
/*< private >*/
gpointer _gst_reserved[GST_PADDING];
gpointer _gst_reserved;
};
/**

View file

@ -159,6 +159,7 @@ struct _GstPluginClass {
GstObjectClass object_class;
/*< private >*/
gpointer _gst_reserved[GST_PADDING];
};
/**

View file

@ -82,7 +82,6 @@ struct _GstPluginFeature {
gchar *name;
guint rank;
/* struct _GstPlugin *plugin; */
gchar *plugin_name;
/*< private >*/

View file

@ -119,7 +119,7 @@ struct _GstQuery
GstStructure *structure;
/*< private > */
gpointer _gst_reserved[GST_PADDING];
gpointer _gst_reserved;
};
struct _GstQueryClass {

View file

@ -82,7 +82,7 @@ struct _GstStructure {
GArray *fields;
gpointer _gst_reserved[GST_PADDING];
gpointer _gst_reserved;
};
GType gst_structure_get_type (void);