caps: Make GstCaps public struct more opaque by moving the private pointer into the implementation

This commit is contained in:
Sebastian Dröge 2012-01-26 14:45:30 +01:00
parent 5d1d7d95b2
commit b4066a6c95
2 changed files with 8 additions and 5 deletions

View file

@ -75,8 +75,14 @@
#define DEBUG_REFCOUNT
typedef struct _GstCapsImpl
{
GstCaps caps;
#define GST_CAPS_ARRAY(c) ((GPtrArray *)((c)->priv))
GPtrArray *array;
} GstCapsImpl;
#define GST_CAPS_ARRAY(c) (((GstCapsImpl *)(c))->array)
#define GST_CAPS_LEN(c) (GST_CAPS_ARRAY(c)->len)
@ -191,7 +197,7 @@ gst_caps_init (GstCaps * caps, gsize size)
* in practise
* GST_CAPS_ARRAY (caps) = g_ptr_array_sized_new (32);
*/
caps->priv = g_ptr_array_new ();
GST_CAPS_ARRAY (caps) = g_ptr_array_new ();
}
/**

View file

@ -344,9 +344,6 @@ gst_caps_take (GstCaps **old_caps, GstCaps *new_caps)
*/
struct _GstCaps {
GstMiniObject mini_object;
/*< private >*/
gpointer priv;
};
/**