diff options
Diffstat (limited to 'src/usbmux.h')
| -rw-r--r-- | src/usbmux.h | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/src/usbmux.h b/src/usbmux.h deleted file mode 100644 index 155316a..0000000 --- a/src/usbmux.h +++ /dev/null | |||
| @@ -1,53 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (c) 2008 Jing Su. All Rights Reserved. | ||
| 3 | * | ||
| 4 | * This library is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of the GNU Lesser General Public | ||
| 6 | * License as published by the Free Software Foundation; either | ||
| 7 | * version 2.1 of the License, or (at your option) any later version. | ||
| 8 | * | ||
| 9 | * This library is distributed in the hope that it will be useful, | ||
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 12 | * Lesser General Public License for more details. | ||
| 13 | * | ||
| 14 | * You should have received a copy of the GNU Lesser General Public | ||
| 15 | * License along with this library; if not, write to the Free Software | ||
| 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
| 17 | */ | ||
| 18 | |||
| 19 | #ifndef __USBMUX_H__ | ||
| 20 | #define __USBMUX_H__ | ||
| 21 | |||
| 22 | #include <stdint.h> | ||
| 23 | #include <sys/types.h> | ||
| 24 | //#include <sys/stat.h> | ||
| 25 | |||
| 26 | |||
| 27 | void usbmux_set_debug(int e); | ||
| 28 | |||
| 29 | struct usbmux_device_int; | ||
| 30 | typedef struct usbmux_device_int *usbmux_device_t; | ||
| 31 | |||
| 32 | struct usbmux_client_int; | ||
| 33 | typedef struct usbmux_client_int *usbmux_client_t; | ||
| 34 | |||
| 35 | int usbmux_get_device ( usbmux_device_t *device ); | ||
| 36 | int usbmux_get_specific_device(int bus_n, int dev_n, usbmux_device_t * device); | ||
| 37 | int usbmux_free_device ( usbmux_device_t device ); | ||
| 38 | |||
| 39 | |||
| 40 | int usbmux_new_client ( usbmux_device_t device, uint16_t src_port, uint16_t dst_port, usbmux_client_t *client ); | ||
| 41 | int usbmux_free_client ( usbmux_client_t client ); | ||
| 42 | |||
| 43 | int usbmux_send(usbmux_client_t client, const char *data, uint32_t datalen, uint32_t * sent_bytes); | ||
| 44 | |||
| 45 | int usbmux_recv_timeout(usbmux_client_t client, char *data, uint32_t datalen, uint32_t * recv_bytes, int timeout); | ||
| 46 | |||
| 47 | int usbmux_pullbulk(usbmux_device_t device); | ||
| 48 | |||
| 49 | int usbmux_get_error(usbmux_client_t client); | ||
| 50 | |||
| 51 | int usbmux_is_connected(usbmux_client_t client); | ||
| 52 | |||
| 53 | #endif | ||
