mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-23 22:31:46 +00:00
[c-host] be compatible with new option ABI
This commit is contained in:
parent
538a6dc08e
commit
0090580a64
3 changed files with 12 additions and 18 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
a12-181-g5b199d8f25+1
|
a12-182-g538a6dc08e+1
|
|
@ -121,9 +121,9 @@ static int shmOpenDev(const char * shmDevice)
|
||||||
return fd;
|
return fd;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool shmDeviceValidator(struct OptionValue * value, const char ** error)
|
static bool shmDeviceValidator(struct Option * opt, const char ** error)
|
||||||
{
|
{
|
||||||
char * name = uioGetName(value->v.x_string);
|
char * name = uioGetName(opt->value.x_string);
|
||||||
if (!name)
|
if (!name)
|
||||||
{
|
{
|
||||||
*error = "Failed to get the uio device name";
|
*error = "Failed to get the uio device name";
|
||||||
|
@ -177,10 +177,8 @@ int main(int argc, char * argv[])
|
||||||
.module = "os",
|
.module = "os",
|
||||||
.name = "shmDevice",
|
.name = "shmDevice",
|
||||||
.description = "The IVSHMEM device to use",
|
.description = "The IVSHMEM device to use",
|
||||||
.value = {
|
|
||||||
.type = OPTION_TYPE_STRING,
|
.type = OPTION_TYPE_STRING,
|
||||||
.v.x_string = "uio0"
|
.value.x_string = "uio0",
|
||||||
},
|
|
||||||
.validator = shmDeviceValidator,
|
.validator = shmDeviceValidator,
|
||||||
.printHelp = shmDevicePrintHelp
|
.printHelp = shmDevicePrintHelp
|
||||||
},
|
},
|
||||||
|
|
|
@ -119,12 +119,8 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
|
||||||
.module = "os",
|
.module = "os",
|
||||||
.name = "shmDevice",
|
.name = "shmDevice",
|
||||||
.description = "The IVSHMEM device to use",
|
.description = "The IVSHMEM device to use",
|
||||||
.value = {
|
|
||||||
.type = OPTION_TYPE_INT,
|
.type = OPTION_TYPE_INT,
|
||||||
.v.x_int = 0,
|
.value.x_int = 0
|
||||||
},
|
|
||||||
.validator = NULL,
|
|
||||||
.printHelp = NULL
|
|
||||||
},
|
},
|
||||||
{0}
|
{0}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue