mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-06 07:28:53 +00:00
caps: Make GstCaps public struct more opaque by moving the private pointer into the implementation
This commit is contained in:
parent
5d1d7d95b2
commit
b4066a6c95
2 changed files with 8 additions and 5 deletions
|
@ -75,8 +75,14 @@
|
||||||
|
|
||||||
#define DEBUG_REFCOUNT
|
#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)
|
#define GST_CAPS_LEN(c) (GST_CAPS_ARRAY(c)->len)
|
||||||
|
|
||||||
|
@ -191,7 +197,7 @@ gst_caps_init (GstCaps * caps, gsize size)
|
||||||
* in practise
|
* in practise
|
||||||
* GST_CAPS_ARRAY (caps) = g_ptr_array_sized_new (32);
|
* GST_CAPS_ARRAY (caps) = g_ptr_array_sized_new (32);
|
||||||
*/
|
*/
|
||||||
caps->priv = g_ptr_array_new ();
|
GST_CAPS_ARRAY (caps) = g_ptr_array_new ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -344,9 +344,6 @@ gst_caps_take (GstCaps **old_caps, GstCaps *new_caps)
|
||||||
*/
|
*/
|
||||||
struct _GstCaps {
|
struct _GstCaps {
|
||||||
GstMiniObject mini_object;
|
GstMiniObject mini_object;
|
||||||
|
|
||||||
/*< private >*/
|
|
||||||
gpointer priv;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue