mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-12 17:38:19 +00:00
[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:
parent
a55b5e4b06
commit
afa277f8ee
@ -102,6 +102,12 @@ void ivshmemOptionsInit(void)
|
||||
option_register(options);
|
||||
}
|
||||
|
||||
bool ivshmemInit(struct IVSHMEM * dev)
|
||||
{
|
||||
// FIXME: split code from ivshmemOpen
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ivshmemOpen(struct IVSHMEM * dev)
|
||||
{
|
||||
return ivshmemOpenDev(dev, option_get_string("app", "shmFile"));
|
||||
@ -214,6 +220,11 @@ void ivshmemClose(struct IVSHMEM * dev)
|
||||
dev->opaque = NULL;
|
||||
}
|
||||
|
||||
void ivshmemFree(struct IVSHMEM * dev)
|
||||
{
|
||||
// FIXME: split code from ivshmemClose
|
||||
}
|
||||
|
||||
bool ivshmemHasDMA(struct IVSHMEM * dev)
|
||||
{
|
||||
assert(dev && dev->opaque);
|
||||
|
Loading…
Reference in New Issue
Block a user