diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2011-06-22 12:28:14 +0200 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2011-06-22 12:28:14 +0200 |
commit | 314a2b961a0f4b4d414defdc6757c16b308f1d05 (patch) | |
tree | 16cf3ac15651b1502d9c0d8d63b2ff8add5b681b /gst/gstcaps.h | |
parent | f8fedb8ff12a7f28a8b47bcd59688189f07e1f40 (diff) |
caps: Hide implementation details
Make the Array of structures private. This should allow us to implement
the array more efficiently or with some preallocated structures when
we want to later.
Add a new method to clean up a static structure so that we can remove some code
that pokes into the private bits of the caps.
Diffstat (limited to 'gst/gstcaps.h')
-rw-r--r-- | gst/gstcaps.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gst/gstcaps.h b/gst/gstcaps.h index 78aa277d6..bd8f8f88c 100644 --- a/gst/gstcaps.h +++ b/gst/gstcaps.h @@ -128,7 +128,7 @@ typedef enum { #define GST_STATIC_CAPS(string) \ { \ /* miniobject */ { { 0, 0, 0, 0, NULL, NULL, NULL }, \ - /* caps */ NULL, GST_PADDING_INIT }, \ + /* caps */ NULL }, \ /* string */ string, \ GST_PADDING_INIT \ } @@ -315,10 +315,7 @@ struct _GstCaps { GstMiniObject mini_object; /*< private >*/ - GPtrArray *structs; - - /*< private >*/ - gpointer _gst_reserved[GST_PADDING]; + gpointer priv; }; /** @@ -350,6 +347,7 @@ GstCaps * gst_caps_new_full_valist (GstStructure *structure, GType gst_static_caps_get_type (void); GstCaps * gst_static_caps_get (GstStaticCaps *static_caps); +void gst_static_caps_cleanup (GstStaticCaps *static_caps); /* manipulation */ void gst_caps_append (GstCaps *caps1, |