From afa277f8ee7ea8fdb244ee43debad19b697ace26 Mon Sep 17 00:00:00 2001 From: Quantum Date: Thu, 14 Jan 2021 05:34:22 -0500 Subject: [PATCH] [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. --- common/src/platform/linux/ivshmem.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/common/src/platform/linux/ivshmem.c b/common/src/platform/linux/ivshmem.c index 99d54132..6644a8ab 100644 --- a/common/src/platform/linux/ivshmem.c +++ b/common/src/platform/linux/ivshmem.c @@ -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);