OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_USB_SERVICE_USB_ERROR_H_ | 5 #ifndef DEVICE_USB_USB_ERROR_H_ |
6 #define COMPONENTS_USB_SERVICE_USB_ERROR_H_ | 6 #define DEVICE_USB_USB_ERROR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 namespace usb_service { | 10 namespace device { |
11 | 11 |
12 // A number of libusb functions which return a member of enum libusb_error | 12 // A number of libusb functions which return a member of enum libusb_error |
13 // return an int instead so for convenience this function takes an int. | 13 // return an int instead so for convenience this function takes an int. |
14 std::string ConvertErrorToString(int errcode); | 14 std::string ConvertPlatformUsbErrorToString(int errcode); |
15 | 15 |
16 } // namespace usb_service; | 16 } // namespace device |
17 | 17 |
18 #endif // COMPONENTS_USB_SERVICE_USB_ERROR_H_ | 18 #endif // DEVICE_USB_USB_ERROR_H_ |
OLD | NEW |