mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 10:40:34 +00:00
memory: add user_data to GstMapInfo
Add extra pointers to GstMapInfo so that implementations can use these to store extra info.
This commit is contained in:
parent
1a8a371bce
commit
69d56a2927
1 changed files with 5 additions and 1 deletions
|
@ -134,6 +134,8 @@ typedef enum {
|
|||
* @data: a pointer to the mapped data
|
||||
* @size: the valid size in @data
|
||||
* @maxsize: the maximum bytes in @data
|
||||
* @user_data: extra private user_data that the implementation of the memory
|
||||
* can use to store extra info.
|
||||
*
|
||||
* A structure containing the result of a map operation such as
|
||||
* gst_memory_map(). It contains the data and size.
|
||||
|
@ -144,9 +146,11 @@ typedef struct {
|
|||
guint8 *data;
|
||||
gsize size;
|
||||
gsize maxsize;
|
||||
/*< private >*/
|
||||
gpointer user_data[4];
|
||||
} GstMapInfo;
|
||||
|
||||
#define GST_MAP_INFO_INIT { NULL, 0, NULL, 0, 0 }
|
||||
#define GST_MAP_INFO_INIT { NULL, 0, NULL, 0, 0, }
|
||||
|
||||
/**
|
||||
* GST_MAP_READWRITE:
|
||||
|
|
Loading…
Reference in a new issue