From d09603c005794bd4e25e2edf130ec02f673a6512 Mon Sep 17 00:00:00 2001 From: Luna Date: Sun, 31 May 2020 17:11:40 -0300 Subject: [PATCH] add runner support for LV2Command() spec --- src/runner.zig | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/runner.zig b/src/runner.zig index fe9db82..438ce0b 100644 --- a/src/runner.zig +++ b/src/runner.zig @@ -385,20 +385,10 @@ pub const Runner = struct { const typ = @TypeOf(command); - inline for (@typeInfo(typ).Struct.fields) |cmd_field| { - // ignore fields that can't be symbols for lv2 execution - comptime { - if (std.mem.eql(u8, cmd_field.name, "base") or - std.mem.eql(u8, cmd_field.name, "split") or - std.mem.eql(u8, cmd_field.name, "index")) - { - continue; - } - } - + inline for (@typeInfo(@TypeOf(command.parameters)).Struct.fields) |cmd_field| { try params.append(plugin.Param{ .sym = cmd_field.name, - .value = @field(command, cmd_field.name), + .value = @field(command.parameters, cmd_field.name), }); }