diff options
Diffstat (limited to 'device/usb/usb_error.h')
-rw-r--r-- | device/usb/usb_error.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/device/usb/usb_error.h b/device/usb/usb_error.h new file mode 100644 index 0000000..590c450 --- /dev/null +++ b/device/usb/usb_error.h @@ -0,0 +1,18 @@ +// Copyright 2014 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef DEVICE_USB_USB_ERROR_H_ +#define DEVICE_USB_USB_ERROR_H_ + +#include <string> + +namespace device { + +// A number of libusb functions which return a member of enum libusb_error +// return an int instead so for convenience this function takes an int. +std::string ConvertPlatformUsbErrorToString(int errcode); + +} // namespace device + +#endif // DEVICE_USB_USB_ERROR_H_ |