memory: make subclasses add other flags

Add GST_MAP_FLAG_LAST so that implementations can add additional flags when
mapping memory.
This commit is contained in:
Wim Taymans 2011-12-19 17:00:18 +01:00
parent 33a566bcc5
commit 079a86b78b

View file

@ -52,7 +52,7 @@ typedef enum {
GST_MEMORY_FLAG_READONLY = (1 << 0),
GST_MEMORY_FLAG_NO_SHARE = (1 << 1),
GST_MEMORY_FLAG_LAST = (1 << 24)
GST_MEMORY_FLAG_LAST = (1 << 16)
} GstMemoryFlags;
/**
@ -87,12 +87,15 @@ struct _GstMemory {
* GstMapFlags:
* @GST_MAP_READ: map for read access
* @GST_MAP_WRITE: map for write access
* @GST_MAP_FLAG_LAST: first flag that can be used for custom purposes
*
* Flags used when mapping memory
*/
typedef enum {
GST_MAP_READ = (1 << 0),
GST_MAP_WRITE = (1 << 1),
GST_MAP_READ = (1 << 0),
GST_MAP_WRITE = (1 << 1),
GST_MAP_FLAG_LAST = (1 << 16)
} GstMapFlags;
/**