Browse Source

Change own lock symbol to 'O' and document the symbols.

Georgi Chorbadzhiyski 9 years ago
parent
commit
6d913c888d
2 changed files with 13 additions and 3 deletions
  1. 12
    2
      README
  2. 1
    1
      videohubctrl.c

+ 12
- 2
README View File

123
 |  3 | L | Windows 1                   | Enc1 3                      |
123
 |  3 | L | Windows 1                   | Enc1 3                      |
124
 |  4 | L | Windows 1                   | Enc1 4                      |
124
 |  4 | L | Windows 1                   | Enc1 4                      |
125
 |  5 |   | Input 5                     | Output 5                    |
125
 |  5 |   | Input 5                     | Output 5                    |
126
-|  6 | + | Input 6                     | Output 6                    |
126
+|  6 | O | Input 6                     | Output 6                    |
127
 |  7 |   | Input 7                     | Output 7                    |
127
 |  7 |   | Input 7                     | Output 7                    |
128
 |  8 |   | Input 8                     | Output 8                    |
128
 |  8 |   | Input 8                     | Output 8                    |
129
 |  9 | L | Windows 4 HD                | Enc2 1                      |
129
 |  9 | L | Windows 4 HD                | Enc2 1                      |
132
 | 12 | L | DPlay2                      | Denc                        |
132
 | 12 | L | DPlay2                      | Denc                        |
133
 | 13 | L | DPlay1                      | Output 13                   |
133
 | 13 | L | DPlay1                      | Output 13                   |
134
 | 14 |   | Input 14                    | Output 14                   |
134
 | 14 |   | Input 14                    | Output 14                   |
135
-| 15 | + | Input 15                    | Output 15                   |
135
+| 15 | O | Input 15                    | Output 15                   |
136
 | 16 |   | Loopback                    | Loopback                    |
136
 | 16 |   | Loopback                    | Loopback                    |
137
 ----------------------------------------------------------------------
137
 ----------------------------------------------------------------------
138
 
138
 
139
 gf@gf:~/git/videohubctrl$
139
 gf@gf:~/git/videohubctrl$
140
 |----------------------------------------------------------------------|
140
 |----------------------------------------------------------------------|
141
 
141
 
142
+Output Legend
143
+=============
144
+
145
+ Column 1 (#) - Port number
146
+ Column 2 (x) - Output lock status
147
+                  L - The port is locked by another user (IP address)
148
+                  O - The port is locked by my me (my IP address)
149
+ Column 3     - List of the inputs and their names
150
+ Column 4     - List of the outputs and their names
151
+
142
 
152
 
143
 Reporting bugs
153
 Reporting bugs
144
 ==============
154
 ==============

+ 1
- 1
videohubctrl.c View File

143
 	for(i = 0; i < d->device.num_video_inputs; i++) {
143
 	for(i = 0; i < d->device.num_video_inputs; i++) {
144
 		printf("| %2d | %c | %-27s | %-27s |\n",
144
 		printf("| %2d | %c | %-27s | %-27s |\n",
145
 			i + 1,
145
 			i + 1,
146
-			d->outputs[i].locked ? (d->outputs[i].locked_exclusive ? 'L' : '+') : ' ',
146
+			d->outputs[i].locked ? (d->outputs[i].locked_exclusive ? 'L' : 'O') : ' ',
147
 			d->inputs[d->outputs[i].routed_to].name,
147
 			d->inputs[d->outputs[i].routed_to].name,
148
 			d->outputs[i].name
148
 			d->outputs[i].name
149
 		);
149
 		);

Loading…
Cancel
Save