summaryrefslogtreecommitdiff
path: root/gst/gstmemory.h
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2012-02-23 15:32:33 +0100
committerWim Taymans <wim.taymans@collabora.co.uk>2012-02-23 15:32:33 +0100
commit69d56a2927711ff28e24c875593d9698eb9054df (patch)
treea7fe854033147841f6d048e2eb907d77d88cb8c7 /gst/gstmemory.h
parent1a8a371bce30ed668a1209e17aa0ee808a1ccf92 (diff)
memory: add user_data to GstMapInfo
Add extra pointers to GstMapInfo so that implementations can use these to store extra info.
Diffstat (limited to 'gst/gstmemory.h')
-rw-r--r--gst/gstmemory.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gst/gstmemory.h b/gst/gstmemory.h
index 8ffc34f04..7ec50f4a7 100644
--- a/gst/gstmemory.h
+++ b/gst/gstmemory.h
@@ -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: