buffer: add GenericFd memory type

Add a Generic fd type. These could be eventfd or timerfd, the meaning
can depend on extra metadata.
This commit is contained in:
Wim Taymans 2024-04-02 11:42:09 +02:00
parent 77f3b7f6e4
commit f3fe20bdde
4 changed files with 15 additions and 4 deletions

View file

@ -17,7 +17,8 @@ PWTEST(buffer_abi_types)
pwtest_int_eq(SPA_DATA_MemFd, 2);
pwtest_int_eq(SPA_DATA_DmaBuf, 3);
pwtest_int_eq(SPA_DATA_MemId, 4);
pwtest_int_eq(_SPA_DATA_LAST, 5);
pwtest_int_eq(SPA_DATA_GenericFd, 5);
pwtest_int_eq(_SPA_DATA_LAST, 6);
/* meta */
pwtest_int_eq(SPA_META_Invalid, 0);