Georgi Chorbadzhiyski
8308faadb3
Add support for configurations that have leading white space
6 years ago
Georgi Chorbadzhiyski
e954cfe15a
Add support for parsing responses that contain \r symbols in them
Thanks to alex # dyaconov.com for the test data
6 years ago
Georgi Chorbadzhiyski
c9ac382c5e
Ignore END PRELUDE command
It doesn't seem to do anything and just spams that logs. Thanks to
Jean-Francois Panisset for the report.
6 years ago
Georgi Chorbadzhiyski
1ffab2e688
Add support for CONFIGURATION command
I have no idea what it does unfortunately.
Thanks to Yannick BARBEAUX for the report.
7 years ago
Georgi Chorbadzhiyski
5ca51d520f
Prevent possible NULL pointer dereference.
9 years ago
Georgi Chorbadzhiyski
42a6e7e3ac
Rename configuration parameters.
--list-vinputs -> --list-inputs
--list-voutputs -> --list-outputs
--list-moutputs -> --list-monitor
--vi-X -> --in-X
--vo-X -> --out-X
--mo-X -> --mon-X
--se-X -> --ser-X
9 years ago
Georgi Chorbadzhiyski
e8bfb2bf00
Add support for --vi-output and --vi-monitor parameters.
9 years ago
Georgi Chorbadzhiyski
a42e405e05
Introduce struct vcmd_param to cleanup struct vcmd_entry.
9 years ago
Georgi Chorbadzhiyski
dd92e76c94
Add support for setting device friendly name using --set-name
My Videohub Micro doesn't support this extra but I suppose the
bigger models do (at least the official software v6 reads this
value and shows it instead of the device model).
9 years ago
Georgi Chorbadzhiyski
d6f8eeeebe
Add support for frames (names, routing and locks)
It is not tested on a real hardware. The number of frame buffers
is assumed to be the same as number of serial ports (as good guess
as any).
9 years ago
Georgi Chorbadzhiyski
54b685d478
Add support for processing units (routing and locks).
It is not tested on a real hardware.
9 years ago
Georgi Chorbadzhiyski
afdb845e60
Make handling of port disconnection generic.
9 years ago
Georgi Chorbadzhiyski
c87a7538b9
Display the undocumented "Friendly name" device setting.
9 years ago
Georgi Chorbadzhiyski
c4d62cb179
Report invalid port statuses.
9 years ago
Georgi Chorbadzhiyski
55a391f6e8
Add support for undocumented "Thunderbolt" port status/type.
9 years ago
Georgi Chorbadzhiyski
6176fb9bfe
Add support for clearing serial port connections.
9 years ago
Georgi Chorbadzhiyski
6004840714
Allow port routing to be canceled. It is needed for serial ports.
9 years ago
Georgi Chorbadzhiyski
45b59a4683
Report unknown settings in VIDEOHUB DEVICE command.
9 years ago
Georgi Chorbadzhiyski
ec2454ac5a
Add enum for input/output/monitoring/serial ports statuses.
9 years ago
Georgi Chorbadzhiyski
39bc206641
Small fix for serial directions.
9 years ago
Georgi Chorbadzhiyski
30a6246f79
Add support for serial ports (names, routing, locks and directions).
9 years ago
Georgi Chorbadzhiyski
a331d546b5
Preparation for serial commands support.
9 years ago
Georgi Chorbadzhiyski
74952e542a
Add full support for monitoring video outputs.
9 years ago
Georgi Chorbadzhiyski
bdf1c28b6f
Make --backup function use generic command types.
9 years ago
Georgi Chorbadzhiyski
822ef3bb37
Fix detection of monitoring outputs.
9 years ago
Georgi Chorbadzhiyski
40bb54c2a3
Parse commands based on their type.
This allows adding of new commands without any changes to command
parsing and generation code.
9 years ago
Georgi Chorbadzhiyski
cf4141cf4d
Refactor code into get_port_by_name().
9 years ago
Georgi Chorbadzhiyski
ebdf864c80
Create struct port_set which contains a set of ports.
9 years ago
Georgi Chorbadzhiyski
9e99f9d7d2
Start to move to data driven command parser.
9 years ago
Georgi Chorbadzhiyski
6f3c4c27cf
Simplify port lock handling.
9 years ago
Georgi Chorbadzhiyski
e16243a5d8
Add q() macro that checks quiet flag.
9 years ago
Georgi Chorbadzhiyski
f300e5c449
Add support for port statuses (types) reported by Univeral Videohub.
9 years ago
Georgi Chorbadzhiyski
e7d8e15880
Add support for reading commands from text file using -T / --test-input.
9 years ago
Georgi Chorbadzhiyski
97988a6a9f
Rename internal variable.
Some very old and broken compilers complain about shadowing bcopy().
9 years ago
Georgi Chorbadzhiyski
8e1aefbec6
Show executed commands in human readable commands format.
9 years ago
Georgi Chorbadzhiyski
81e1974c4d
cmd: Format CMD_INPUT_LABELS command separate from others.
9 years ago
Georgi Chorbadzhiyski
925385a527
cmd: outputs and inputs arrays are always big enough to holds num_video_{inputs,outputs}.
9 years ago
Georgi Chorbadzhiyski
290382b178
cmd: Check valid slot against outputs.
9 years ago
Georgi Chorbadzhiyski
0612aeceec
cmd: Change file description.
9 years ago
Georgi Chorbadzhiyski
20b533f5a8
Add configuration commands.
Add support for setting video input/output names, video output locking
and video output routing.
9 years ago
Georgi Chorbadzhiyski
55959179ea
Improve and simplify command parsing.
9 years ago
Georgi Chorbadzhiyski
8e881d6d11
Rename -v / --verbose parameter to -d / --debug.
9 years ago
Georgi Chorbadzhiyski
5a008c530a
Move commands enum into cmd.h
9 years ago
Georgi Chorbadzhiyski
6ef51a7374
Move some checks out of parse_cmd().
It is not a good idea parse_cmd() to just die().
9 years ago
Georgi Chorbadzhiyski
bcab8b796b
Improve some range checks.
9 years ago
Georgi Chorbadzhiyski
3adee6c91b
Use proper locks terminology.
9 years ago
Georgi Chorbadzhiyski
a6d9bdbbf6
Add support for 'needs_update' device status.
9 years ago
Georgi Chorbadzhiyski
37992c486a
Add proper protocol version checks.
9 years ago
Georgi Chorbadzhiyski
d4079fb1f6
Include cmd.h where needed and fix the errors.
9 years ago
Georgi Chorbadzhiyski
56ae756e57
Add support for exclusive and non-exclusive locks.
9 years ago