mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-01 12:03:38 +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
|
@ -121,9 +121,9 @@ static int shmOpenDev(const char * shmDevice)
|
|||
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)
|
||||
{
|
||||
*error = "Failed to get the uio device name";
|
||||
|
@ -174,15 +174,13 @@ int main(int argc, char * argv[])
|
|||
struct Option options[] =
|
||||
{
|
||||
{
|
||||
.module = "os",
|
||||
.name = "shmDevice",
|
||||
.description = "The IVSHMEM device to use",
|
||||
.value = {
|
||||
.type = OPTION_TYPE_STRING,
|
||||
.v.x_string = "uio0"
|
||||
},
|
||||
.validator = shmDeviceValidator,
|
||||
.printHelp = shmDevicePrintHelp
|
||||
.module = "os",
|
||||
.name = "shmDevice",
|
||||
.description = "The IVSHMEM device to use",
|
||||
.type = OPTION_TYPE_STRING,
|
||||
.value.x_string = "uio0",
|
||||
.validator = shmDeviceValidator,
|
||||
.printHelp = shmDevicePrintHelp
|
||||
},
|
||||
{0}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue