From 079a86b78bd27e999950e7048523d55a4d0c3e3e Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 19 Dec 2011 17:00:18 +0100 Subject: [PATCH] memory: make subclasses add other flags Add GST_MAP_FLAG_LAST so that implementations can add additional flags when mapping memory. --- gst/gstmemory.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gst/gstmemory.h b/gst/gstmemory.h index da1bf6b..188354f 100644 --- a/gst/gstmemory.h +++ b/gst/gstmemory.h @@ -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; /** -- 2.7.4