Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Side by Side Diff: util/mtp-hotplug.c

Issue 11358153: Update libmtp from pre 1.1.4 git to 1.1.5 release. (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/libmtp/
Patch Set: disable mptz Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« config.h ('K') | « src/music-players.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /** 1 /**
2 * \file mtp-hotplug.c 2 * \file mtp-hotplug.c
3 * Program to create hotplug scripts. 3 * Program to create hotplug scripts.
4 * 4 *
5 * Copyright (C) 2005-2012 Linus Walleij <triad@df.lth.se> 5 * Copyright (C) 2005-2012 Linus Walleij <triad@df.lth.se>
6 * Copyright (C) 2006-2008 Marcus Meissner <marcus@jet.franken.de> 6 * Copyright (C) 2006-2008 Marcus Meissner <marcus@jet.franken.de>
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public 9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 "GOTO=\"libmtp_rules_end\"\n\n" 141 "GOTO=\"libmtp_rules_end\"\n\n"
142 "LABEL=\"libmtp_usb_rules\"\n\n"); 142 "LABEL=\"libmtp_usb_rules\"\n\n");
143 printf("# Some sensitive devices we surely don\'t wanna probe\n"); 143 printf("# Some sensitive devices we surely don\'t wanna probe\n");
144 printf("# Color instruments\n"); 144 printf("# Color instruments\n");
145 printf("ATTR{idVendor}==\"0670\", GOTO=\"libmtp_rules_end\"\n"); 145 printf("ATTR{idVendor}==\"0670\", GOTO=\"libmtp_rules_end\"\n");
146 printf("ATTR{idVendor}==\"0765\", GOTO=\"libmtp_rules_end\"\n"); 146 printf("ATTR{idVendor}==\"0765\", GOTO=\"libmtp_rules_end\"\n");
147 printf("ATTR{idVendor}==\"085c\", GOTO=\"libmtp_rules_end\"\n"); 147 printf("ATTR{idVendor}==\"085c\", GOTO=\"libmtp_rules_end\"\n");
148 printf("ATTR{idVendor}==\"0971\", GOTO=\"libmtp_rules_end\"\n"); 148 printf("ATTR{idVendor}==\"0971\", GOTO=\"libmtp_rules_end\"\n");
149 printf("# Canon scanners that look like MTP devices (PID 0x22nn)\n"); 149 printf("# Canon scanners that look like MTP devices (PID 0x22nn)\n");
150 printf("ATTR{idVendor}==\"04a9\", ATTR{idProduct}==\"22*\", GOTO=\"libmtp_ rules_end\"\n"); 150 printf("ATTR{idVendor}==\"04a9\", ATTR{idProduct}==\"22*\", GOTO=\"libmtp_ rules_end\"\n");
151 printf("# Canon digital camera (EOS 3D) that looks like MTP device (PID 0x 3113)\n");
152 printf("ATTR{idVendor}==\"04a9\", ATTR{idProduct}==\"3113\", GOTO=\"libmtp _rules_end\"\n");
151 printf("# Sensitive Atheros devices that look like MTP devices\n"); 153 printf("# Sensitive Atheros devices that look like MTP devices\n");
152 printf("ATTR{idVendor}==\"0cf3\", GOTO=\"libmtp_rules_end\"\n"); 154 printf("ATTR{idVendor}==\"0cf3\", GOTO=\"libmtp_rules_end\"\n");
153 printf("# Sensitive Atmel JTAG programmers\n"); 155 printf("# Sensitive Atmel JTAG programmers\n");
154 printf("ATTR{idVendor}==\"03eb\", GOTO=\"libmtp_rules_end\"\n"); 156 printf("ATTR{idVendor}==\"03eb\", GOTO=\"libmtp_rules_end\"\n");
155 break; 157 break;
156 case style_udev_old: 158 case style_udev_old:
157 printf("# UDEV-style hotplug map for libmtp\n"); 159 printf("# UDEV-style hotplug map for libmtp\n");
158 printf("# Put this file in /etc/udev/rules.d\n\n"); 160 printf("# Put this file in /etc/udev/rules.d\n\n");
159 printf("ACTION!=\"add\", GOTO=\"libmtp_rules_end\"\n"); 161 printf("ACTION!=\"add\", GOTO=\"libmtp_rules_end\"\n");
160 printf("ENV{MAJOR}!=\"?*\", GOTO=\"libmtp_rules_end\"\n"); 162 printf("ENV{MAJOR}!=\"?*\", GOTO=\"libmtp_rules_end\"\n");
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 printf(" </match>\n"); 266 printf(" </match>\n");
265 printf(" </device>\n"); 267 printf(" </device>\n");
266 printf("</deviceinfo>\n"); 268 printf("</deviceinfo>\n");
267 break; 269 break;
268 case style_usbids: 270 case style_usbids:
269 printf("\n"); 271 printf("\n");
270 } 272 }
271 273
272 exit (0); 274 exit (0);
273 } 275 }
OLDNEW
« config.h ('K') | « src/music-players.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698