16d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// Copyright 2014 The Chromium Authors. All rights reserved.
26d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
36d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// found in the LICENSE file.
46d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)
51320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci#ifndef DEVICE_USB_USB_ERROR_H_
61320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci#define DEVICE_USB_USB_ERROR_H_
76d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)
86d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)#include <string>
96d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)
101320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tuccinamespace device {
116d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)
126d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// A number of libusb functions which return a member of enum libusb_error
136d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// return an int instead so for convenience this function takes an int.
141320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tuccistd::string ConvertPlatformUsbErrorToString(int errcode);
156d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)
161320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci}  // namespace device
176d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)
181320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci#endif  // DEVICE_USB_USB_ERROR_H_
19