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,7 +123,7 @@ Serial ports: 0
123 123
 |  3 | L | Windows 1                   | Enc1 3                      |
124 124
 |  4 | L | Windows 1                   | Enc1 4                      |
125 125
 |  5 |   | Input 5                     | Output 5                    |
126
-|  6 | + | Input 6                     | Output 6                    |
126
+|  6 | O | Input 6                     | Output 6                    |
127 127
 |  7 |   | Input 7                     | Output 7                    |
128 128
 |  8 |   | Input 8                     | Output 8                    |
129 129
 |  9 | L | Windows 4 HD                | Enc2 1                      |
@@ -132,13 +132,23 @@ Serial ports: 0
132 132
 | 12 | L | DPlay2                      | Denc                        |
133 133
 | 13 | L | DPlay1                      | Output 13                   |
134 134
 | 14 |   | Input 14                    | Output 14                   |
135
-| 15 | + | Input 15                    | Output 15                   |
135
+| 15 | O | Input 15                    | Output 15                   |
136 136
 | 16 |   | Loopback                    | Loopback                    |
137 137
 ----------------------------------------------------------------------
138 138
 
139 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 153
 Reporting bugs
144 154
 ==============

+ 1
- 1
videohubctrl.c View File

@@ -143,7 +143,7 @@ static void print_device_settings(struct videohub_data *d) {
143 143
 	for(i = 0; i < d->device.num_video_inputs; i++) {
144 144
 		printf("| %2d | %c | %-27s | %-27s |\n",
145 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 147
 			d->inputs[d->outputs[i].routed_to].name,
148 148
 			d->outputs[i].name
149 149
 		);

Loading…
Cancel
Save