other versions
- jessie 1.1.8-1
- jessie-backports 1.1.12-1~bpo8+1
- stretch 1.1.13-1
- testing 1.1.16-1
- unstable 1.1.16-2
libusb-glue.h(3) | libmtp | libusb-glue.h(3) |
NAME¶
libmtp - libusb-glue.hSYNOPSIS¶
#include 'ptp.h'Data Structures¶
struct _PTP_USB
Macros¶
#define LIBMTP_USB_DEBUG(format, args...)
Typedefs¶
typedef struct _PTP_USB PTP_USB
Functions¶
void dump_usbinfo (PTP_USB *ptp_usb)
Detailed Description¶
Low-level USB interface glue towards libusb. Copyright (C) 2005-2007 Richard A. Low richard@wentnet.com Copyright (C) 2005-2012 Linus Walleij triad@df.lth.se Copyright (C) 2006-2011 Marcus Meissner Copyright (C) 2007 Ted Bullock Copyright (C) 2008 Chris Bagwell chris@cnpbagwell.com 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 WalleijMacro Definition Documentation¶
#define LIBMTP_USB_DATA(buffer, length, base)¶
Value:do { if ((LIBMTP_debug & LIBMTP_DEBUG_DATA) != 0) \ data_dump_ascii (stdout, buffer, length, base); } while (0)
#define LIBMTP_USB_DEBUG(format, args...)¶
Value:do { if ((LIBMTP_debug & LIBMTP_DEBUG_USB) != 0) fprintf(stdout, "LIBMTP %s[%d]: " format, __FUNCTION__, __LINE__, ##args); } while (0)Debug macro
Typedef Documentation¶
typedef struct _PTP_USB PTP_USB¶
Internal USB struct.Function Documentation¶
LIBMTP_error_number_t configure_usb_device ( LIBMTP_raw_device_t *device, PTPParams *params, void **usbinfo)¶
This function assigns params and usbinfo given a raw device as input. Parameters:device the device to be assigned.
usbinfo a pointer to the new usbinfo.
Returns:
an error code.
References LIBMTP_raw_device_struct::device_entry,
LIBMTP_device_entry_struct::product_id, _PTP_USB::rawdevice, and
LIBMTP_device_entry_struct::vendor_id.
Referenced by LIBMTP_Open_Raw_Device_Uncached().
void dump_usbinfo ( PTP_USB *ptp_usb)¶
This routine just dumps out low-level USB information about the current device. Parameters:ptp_usb the USB device to get information
from.
References LIBMTP_raw_device_struct::bus_location,
LIBMTP_raw_device_struct::device_entry,
LIBMTP_device_entry_struct::device_flags, LIBMTP_raw_device_struct::devnum,
LIBMTP_device_entry_struct::product, LIBMTP_device_entry_struct::product_id,
_PTP_USB::rawdevice, LIBMTP_device_entry_struct::vendor, and
LIBMTP_device_entry_struct::vendor_id.
Referenced by LIBMTP_Dump_Device_Info().
const char* get_playlist_extension ( PTP_USB *ptp_usb)¶
Retrieve the apropriate playlist extension for this device. Rather hacky at the moment. This is probably desired by the managing software, but when creating lists on the device itself you notice certain preferences. Parameters:ptp_usb the USB device to get suggestion
for.
Returns:
the suggested playlist extension.
Referenced by LIBMTP_Create_New_Playlist().
Author¶
Generated automatically by Doxygen for libmtp from the source code.Wed Apr 19 2017 | Version 1.1.12 |