mem: use MemId to pass buffer memory

Track memory on buffers in the server and simplify some memory tracking
on the client.
Don't send internal memblock flags to client.
Add read/write flags to memblock.
This commit is contained in:
Wim Taymans 2019-07-24 10:33:26 +02:00
parent 2caf81c97c
commit bae1426615
6 changed files with 30 additions and 29 deletions

View file

@ -43,6 +43,7 @@ enum spa_data_type {
* struct spa_data is set. */
SPA_DATA_MemFd, /**< generic fd, mmap to get to memory */
SPA_DATA_DmaBuf, /**< fd to dmabuf memory */
SPA_DATA_MemId, /**< memory is identified with an id */
SPA_DATA_LAST, /**< not part of ABI */
};