Use comptime for fully declarative LV2 and Custom commands #14

Merged
luna merged 69 commits from declarative-commands into master 2020-06-02 21:37:47 +00:00
Showing only changes of commit dd1b493da2 - Show all commits

View file

@ -59,13 +59,13 @@ pub const NewCommandType = enum {
fn LV2Command( fn LV2Command(
comptime tag: NewCommand.Tag, comptime tag: NewCommand.Tag,
comptime lv2_url: []const u8, comptime plugin_url: []const u8,
comptime LV2Parameters: type, comptime LV2Parameters: type,
) type { ) type {
return struct { return struct {
pub const base_tag = tag; pub const base_tag = tag;
pub const command_type = NewCommandType.lv2_command; pub const command_type = NewCommandType.lv2_command;
pub const lv2_url = lv2_url; pub const lv2_url = plugin_url;
base: NewCommand, base: NewCommand,
split: usize, split: usize,