mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-03-13 20:11:36 +00:00
[common] ivshmem/linux: add stubs for ivshmemInit and ivshmemFree
These two functions were added in 9ff1859dc134e9f3196703296f868040c77a4dd6 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…
x
Reference in New Issue
Block a user