#include <IOKit/IOCFBundle.h>
#include <IOKit/IOCFPlugIn.h>
#include <IOKit/usb/IOUSBLib.h>
#include <IOKit/IOKitLib.h>
Go to the source code of this file.
Defines |
#define | LUSBDARWINSTALL (ELAST+1) |
#define | USB_ERROR(r, x) |
#define | USB_ERROR_STR(r, x, format, args...) |
#define | USB_ERROR_STR_ORIG(x, format, args...) |
#define | USB_ERROR_STR_NO_RET(x, format, args...) |
Enumerations |
enum | usb_error_type_t { USB_ERROR_TYPE_NONE = 0,
USB_ERROR_TYPE_STRING,
USB_ERROR_TYPE_ERRNO
} |
Functions |
static const char * | darwin_error_str (int result) |
static int | darwin_to_errno (int result) |
static int | ep_to_pipeRef (darwin_dev_handle *device, int ep) |
Variables |
static const char * | darwin_error_strings [] |
char | usb_error_str [1024] |
int | usb_error_errno |
usb_error_type_t | usb_error_type |
Define Documentation
#define LUSBDARWINSTALL (ELAST+1) |
#define USB_ERROR |
( |
|
r, |
|
|
|
x |
|
) |
| |
#define USB_ERROR_STR |
( |
|
r, |
|
|
|
x, |
|
|
|
format, |
|
|
|
args... |
|
) |
| |
#define USB_ERROR_STR_NO_RET |
( |
|
x, |
|
|
|
format, |
|
|
|
args... |
|
) |
| |
#define USB_ERROR_STR_ORIG |
( |
|
x, |
|
|
|
format, |
|
|
|
args... |
|
) |
| |
Enumeration Type Documentation
- Enumerator:
USB_ERROR_TYPE_NONE |
|
USB_ERROR_TYPE_STRING |
|
USB_ERROR_TYPE_ERRNO |
|
Function Documentation
static const char* darwin_error_str |
( |
int |
result | ) |
[static] |
static int darwin_to_errno |
( |
int |
result | ) |
[static] |
Variable Documentation
Initial value: {
"no error",
"device not opened for exclusive access",
"no connection to an IOService",
"no asyc port has been opened for interface",
"another process has device opened for exclusive access",
"pipe is stalled",
"could not establish a connection to Darin kernel",
"invalid argument",
"unknown error"
}