diff options
author | Christian Pointner <equinox@spreadspace.org> | 2016-03-27 20:31:48 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2016-03-27 20:31:48 (GMT) |
commit | d3efdc817664bb48a66e9b64c9167c02d0e1304c (patch) | |
tree | 39d4d73c859ca3ac31fb0144457cdd121edf8ce1 /src | |
parent | c5266574e95fd8c0774b159c171b8dd97871cb6e (diff) |
added audio port cofiguration to config parser
Diffstat (limited to 'src')
-rw-r--r-- | src/rhctl/conf.go | 4 | ||||
-rw-r--r-- | src/rhctl/main.go | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/rhctl/conf.go b/src/rhctl/conf.go index 2dfb9ec..47a51b8 100644 --- a/src/rhctl/conf.go +++ b/src/rhctl/conf.go @@ -34,6 +34,10 @@ type Config struct { Device string `toml:"dev"` Baudrate Baudrate `toml:"baud"` Timeout Duration `toml:"timeout"` + Ports []struct { + Name string `toml:"name"` + Number uint `toml:"number"` + } } Servers map[string]struct { diff --git a/src/rhctl/main.go b/src/rhctl/main.go index f529265..2aaf7aa 100644 --- a/src/rhctl/main.go +++ b/src/rhctl/main.go @@ -76,6 +76,7 @@ func main() { return } rhl.Printf("just started...") + rhdl.Printf("configuration: %+v", conf) sw, err := SwitchInit(conf) if err != nil { |