Browse Source

Add support for undocumented "Thunderbolt" port status/type.

Georgi Chorbadzhiyski 9 years ago
parent
commit
55a391f6e8
6 changed files with 6 additions and 0 deletions
  1. 1
    0
      ChangeLog
  2. 1
    0
      README
  3. 1
    0
      cmd.c
  4. 1
    0
      data.h
  5. 1
    0
      display.c
  6. 1
    0
      videohubctrl.1

+ 1
- 0
ChangeLog View File

@@ -4,6 +4,7 @@ xxxx-xx-xx : Version 0.5-dev
4 4
  * Add support for serial ports (names, routing, locks and directions),
5 5
     --se-name, --se-connect, --se-clear, --se-lock, --se-unlock,
6 6
     --se-dir and --list-serial.
7
+ * Add support for undocumented "Thunderbolt" port status/type.
7 8
 
8 9
 2014-11-30 : Version 0.4
9 10
  * Add videohubctrl(1) man page.

+ 1
- 0
README View File

@@ -258,6 +258,7 @@ Video inputs Legend
258 258
                        port is not installed.
259 259
                   B  - The port type is "BNC".
260 260
                   o  - The port type is "Optical".
261
+                  T  - The port type is "Thunderbolt".
261 262
 
262 263
 
263 264
 Video outputs Legend

+ 1
- 0
cmd.c View File

@@ -202,6 +202,7 @@ bool parse_command(struct videohub_data *d, char *cmd) {
202 202
 			else if (streq("Optical", port_data)) s_port->port[port_num].status = S_OPTICAL;
203 203
 			else if (streq("RS422", port_data))   s_port->port[port_num].status = S_RS422;
204 204
 			else if (streq("None", port_data))    s_port->port[port_num].status = S_NONE;
205
+			else if (streq("Thunderbolt", port_data)) s_port->port[port_num].status = S_THUNDERBOLT;
205 206
 			break;
206 207
 		case PARSE_DIR:
207 208
 			s_port->port[port_num].direction = DIR_AUTO;

+ 1
- 0
data.h View File

@@ -34,6 +34,7 @@ enum port_status {
34 34
 	S_NONE,
35 35
 	S_BNC,
36 36
 	S_OPTICAL,
37
+	S_THUNDERBOLT,
37 38
 	S_RS422,
38 39
 };
39 40
 

+ 1
- 0
display.c View File

@@ -31,6 +31,7 @@ static char format_status(enum port_status status) {
31 31
 	case S_UNKNOWN: return ' ';
32 32
 	case S_BNC    : return 'B';
33 33
 	case S_OPTICAL: return 'o';
34
+	case S_THUNDERBOLT: return 'T';
34 35
 	case S_NONE   : return 'x';
35 36
 	case S_RS422  : return '4'; // For serial ports
36 37
 	}

+ 1
- 0
videohubctrl.1 View File

@@ -58,6 +58,7 @@ these:
58 58
        installed in the device.
59 59
   B  - The port type is "BNC".
60 60
   o  - The port type is "Optical".
61
+  T  - The port type is "Thunderbolt".
61 62
 .fi
62 63
 .TP
63 64
 \fB\-\-list\-voutputs\fR

Loading…
Cancel
Save