g_autoptr(GPIOSimChip) sim = NULL;
g_autoptr(struct_gpiod_chip) chip = NULL;
+ g_autoptr(GVariant) vnames = gpiod_test_package_line_names(names);
sim = g_gpiosim_chip_new(
"num-lines", 8,
- "line-names", gpiod_test_package_line_names(names),
+ "line-names", vnames,
NULL);
chip = gpiod_test_open_chip_or_fail(g_gpiosim_chip_get_dev_path(sim));
g_autoptr(GPIOSimChip) sim = NULL;
g_autoptr(struct_gpiod_chip) chip = NULL;
+ g_autoptr(GVariant) vnames = gpiod_test_package_line_names(names);
sim = g_gpiosim_chip_new(
"num-lines", 8,
- "line-names", gpiod_test_package_line_names(names),
+ "line-names", vnames,
NULL);
chip = gpiod_test_open_chip_or_fail(g_gpiosim_chip_get_dev_path(sim));
g_autoptr(GPIOSimChip) sim = NULL;
g_autoptr(struct_gpiod_chip) chip = NULL;
+ g_autoptr(GVariant) vnames = gpiod_test_package_line_names(names);
sim = g_gpiosim_chip_new(
"num-lines", 8,
- "line-names", gpiod_test_package_line_names(names),
+ "line-names", vnames,
NULL);
chip = gpiod_test_open_chip_or_fail(g_gpiosim_chip_get_dev_path(sim));
g_autoptr(struct_gpiod_chip) chip = NULL;
g_autoptr(struct_gpiod_line_info) info4 = NULL;
g_autoptr(struct_gpiod_line_info) info6 = NULL;
+ g_autoptr(GVariant) vnames = gpiod_test_package_line_names(names);
+ g_autoptr(GVariant) vhogs = gpiod_test_package_hogs(hogs);
sim = g_gpiosim_chip_new(
"num-lines", 8,
- "line-names", gpiod_test_package_line_names(names),
- "hogs", gpiod_test_package_hogs(hogs),
+ "line-names", vnames,
+ "hogs", vhogs,
NULL);
chip = gpiod_test_open_chip_or_fail(g_gpiosim_chip_get_dev_path(sim));