From 47ab07589593a3b13b4d2d79aaa4eedb242f1b86 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 9 Oct 2020 17:39:32 +0200 Subject: [PATCH] buffer: clarify data type mask --- spa/include/spa/buffer/buffer.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/spa/include/spa/buffer/buffer.h b/spa/include/spa/buffer/buffer.h index 09f012579..2e4a6d510 100644 --- a/spa/include/spa/buffer/buffer.h +++ b/spa/include/spa/buffer/buffer.h @@ -65,7 +65,12 @@ struct spa_chunk { struct spa_data { uint32_t type; /**< memory type, one of enum spa_data_type, when * allocating memory, the type contains a bitmask - * of allowed types */ + * of allowed types. SPA_ID_INVALID is a special + * value for the allocator to indicate that the + * other side did not explicitly specify any + * supported data types. It should probably use + * a memory type that does not require special + * handling in addition to simple mmap/munmap. */ #define SPA_DATA_FLAG_NONE 0 #define SPA_DATA_FLAG_READABLE (1u<<0) /**< data is readable */ #define SPA_DATA_FLAG_WRITABLE (1u<<1) /**< data is writable */