#include "ptp.h"
#include <usb.h>
#include "libmtp.h"
Go to the source code of this file.
Data Structures | |
struct | _PTP_USB |
struct | mtpdevice_list_struct |
Defines | |
#define | USB_BULK_READ usb_bulk_read |
#define | USB_BULK_WRITE usb_bulk_write |
#define | PTP_CD_RC_CONNECTED 0 |
#define | PTP_CD_RC_NO_DEVICES 1 |
#define | PTP_CD_RC_ERROR_CONNECTING 2 |
Typedefs | |
typedef _PTP_USB | PTP_USB |
typedef mtpdevice_list_struct | mtpdevice_list_t |
Functions | |
int | open_device (int busn, int devn, short force, PTP_USB *ptp_usb, PTPParams *params, struct usb_device **dev) |
void | dump_usbinfo (PTP_USB *ptp_usb) |
void | close_device (PTP_USB *ptp_usb, PTPParams *params) |
LIBMTP_error_number_t | find_usb_devices (mtpdevice_list_t **devlist) |
void | free_mtpdevice_list (mtpdevice_list_t *devlist) |
Copyright (C) 2005-2007 Richard A. Low <richard@wentnet.com> Copyright (C) 2005-2007 Linus Walleij <triad@df.lth.se> Copyright (C) 2006-2007 Marcus Meissner Copyright (C) 2007 Ted Bullock
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Created by Richard Low on 24/12/2005. Modified by Linus Walleij
|
Internal USB struct. |
|
This routine just dumps out low-level USB information about the current device.
|
|
This function scans through the results of the get_mtp_usb_device_list function and attempts to connect to those devices listed using the mtp_device_table at the top of the file. Returns a LIBMTP_error_number_t.
|
|
Small recursive function to free dynamic memory allocated to the linked list of USB MTP devices
|