Magellan Linux

Diff of /trunk/usbip/patches/usbip-0.1.7-bind-parseable-output.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1539 by niro, Mon Sep 19 19:06:00 2011 UTC revision 1540 by niro, Mon Sep 19 19:13:22 2011 UTC
# Line 1  Line 1 
1  diff -Naur usbip-0.1.7/src/cmd/bind-driver.c usbip-0.1.7-magellan/src/cmd/bind-driver.c  diff -Naur usbip-0.1.7/src/cmd/bind-driver.c usbip-0.1.7-magellan/src/cmd/bind-driver.c
2  --- usbip-0.1.7/src/cmd/bind-driver.c 2009-01-13 18:10:51.000000000 +0100  --- usbip-0.1.7/src/cmd/bind-driver.c 2009-01-13 18:10:51.000000000 +0100
3  +++ usbip-0.1.7-magellan/src/cmd/bind-driver.c 2011-09-19 22:42:27.000000000 +0200  +++ usbip-0.1.7-magellan/src/cmd/bind-driver.c 2011-09-19 22:50:25.000000000 +0200
4  @@ -16,6 +16,7 @@  @@ -16,6 +16,7 @@
5   {"usbip", required_argument, NULL, 'u'},   {"usbip", required_argument, NULL, 'u'},
6   {"other", required_argument, NULL, 'o'},   {"other", required_argument, NULL, 'o'},
# Line 9  diff -Naur usbip-0.1.7/src/cmd/bind-driv Line 9  diff -Naur usbip-0.1.7/src/cmd/bind-driv
9   {"help", no_argument, NULL, 'h'},   {"help", no_argument, NULL, 'h'},
10   #if 0   #if 0
11   {"allusbip", no_argument, NULL, 'a'},   {"allusbip", no_argument, NULL, 'a'},
12  @@ -378,6 +379,49 @@  @@ -37,6 +38,7 @@
13     printf("  --usbip busid        make a device exportable\n");
14     printf("  --other busid        use a device by a local driver\n");
15     printf("  --list               print usb devices and their drivers\n");
16    + printf("  --list2              print usb devices and their drivers in parseable mode\n");
17     printf("  --allusbip           make all devices exportable\n");
18    
19     #if 0
20    @@ -378,6 +380,49 @@
21   return 0;   return 0;
22   }   }
23    
# Line 59  diff -Naur usbip-0.1.7/src/cmd/bind-driv Line 67  diff -Naur usbip-0.1.7/src/cmd/bind-driv
67    
68   #if 0   #if 0
69   static int export_to(char *host, char *busid) {   static int export_to(char *host, char *busid) {
70  @@ -533,6 +577,9 @@  @@ -504,6 +549,7 @@
71     cmd_use_by_usbip,
72     cmd_use_by_other,
73     cmd_list,
74    + cmd_list2,
75     cmd_allusbip,
76     cmd_export_to,
77     cmd_unexport,
78    @@ -533,6 +579,9 @@
79   case 'l' :   case 'l' :
80   cmd = cmd_list;   cmd = cmd_list;
81   break;   break;
# Line 69  diff -Naur usbip-0.1.7/src/cmd/bind-driv Line 85  diff -Naur usbip-0.1.7/src/cmd/bind-driv
85   case 'a' :   case 'a' :
86   cmd = cmd_allusbip;   cmd = cmd_allusbip;
87   break;   break;
88  @@ -569,6 +616,9 @@  @@ -569,6 +618,9 @@
89   case cmd_list:   case cmd_list:
90   show_devices();   show_devices();
91   break;   break;

Legend:
Removed from v.1539  
changed lines
  Added in v.1540