[common] ivshmem/linux: add stubs for ivshmemInit and ivshmemFree

These two functions were added in 9ff1859dc1
for Windows, but were never used on Linux.

Adding stubs will allow the host to compile on Linux.
These should be fixed later.
This commit is contained in:
Quantum 2021-01-14 05:34:22 -05:00 committed by Geoffrey McRae
parent a55b5e4b06
commit afa277f8ee

View File

@ -102,6 +102,12 @@ void ivshmemOptionsInit(void)
option_register(options); option_register(options);
} }
bool ivshmemInit(struct IVSHMEM * dev)
{
// FIXME: split code from ivshmemOpen
return true;
}
bool ivshmemOpen(struct IVSHMEM * dev) bool ivshmemOpen(struct IVSHMEM * dev)
{ {
return ivshmemOpenDev(dev, option_get_string("app", "shmFile")); return ivshmemOpenDev(dev, option_get_string("app", "shmFile"));
@ -214,6 +220,11 @@ void ivshmemClose(struct IVSHMEM * dev)
dev->opaque = NULL; dev->opaque = NULL;
} }
void ivshmemFree(struct IVSHMEM * dev)
{
// FIXME: split code from ivshmemClose
}
bool ivshmemHasDMA(struct IVSHMEM * dev) bool ivshmemHasDMA(struct IVSHMEM * dev)
{ {
assert(dev && dev->opaque); assert(dev && dev->opaque);