meta: remove shared meta data

Make a method to find the memory block for the given ptr. We can
use this to find the memfd of the memory if there is any. We can
then remove the Shared metadata on buffers.
This commit is contained in:
Wim Taymans 2017-11-28 18:23:44 +01:00
parent 75cdd20207
commit 140c3959ab
10 changed files with 161 additions and 132 deletions

View file

@ -29,10 +29,11 @@ struct spa_list {
struct spa_list *prev;
};
#define SPA_LIST_INIT(list) (struct spa_list){ list, list };
static inline void spa_list_init(struct spa_list *list)
{
list->next = list;
list->prev = list;
*list = SPA_LIST_INIT(list);
}
static inline void spa_list_insert(struct spa_list *list, struct spa_list *elem)