.TH "The libmtp internals API." 3 "Thu Sep 11 2014" "Version 1.1.8" "libmtp" \" -*- nroff -*- .ad l .nh .SH NAME libmtp \- The libmtp internals API. .SS "Functions" .in +1c .ti -1c .RI "void \fBLIBMTP_Set_Debug\fP (int)" .br .ti -1c .RI "void \fBLIBMTP_Init\fP (void)" .br .ti -1c .RI "int \fBLIBMTP_Get_Supported_Devices_List\fP (\fBLIBMTP_device_entry_t\fP **const, int *const)" .br .in -1c .SH "Detailed Description" .PP .SH "Function Documentation" .PP .SS "int LIBMTP_Get_Supported_Devices_List (\fBLIBMTP_device_entry_t\fP **constdevices, int *constnumdevs)" Get a list of the supported USB devices\&. .PP The developers depend on users of this library to constantly add in to the list of supported devices\&. What we need is the device name, USB Vendor ID (VID) and USB Product ID (PID)\&. put this into a bug ticket at the project homepage, please\&. The VID/PID is used to let e\&.g\&. udev lift the device to console userspace access when it's plugged in\&. .PP \fBParameters:\fP .RS 4 \fIdevices\fP a pointer to a pointer that will hold a device list after the call to this function, if it was successful\&. .br \fInumdevs\fP a pointer to an integer that will hold the number of devices in the device list if the call was successful\&. .RE .PP \fBReturns:\fP .RS 4 0 if the list was successfull retrieved, any other value means failure\&. .RE .PP .SS "void LIBMTP_Init (void)" Initialize the library\&. You are only supposed to call this one, before using the library for the first time in a program\&. Never re-initialize libmtp! .PP The only thing this does at the moment is to initialise the filetype mapping table, as well as load MTPZ data if necessary\&. .PP References LIBMTP_Set_Debug()\&. .SS "void LIBMTP_Set_Debug (intlevel)" Set the debug level\&. .PP By default, the debug level is set to '0' (disable)\&. .PP References LIBMTP_debug\&. .PP Referenced by LIBMTP_Init()\&. .SH "Author" .PP Generated automatically by Doxygen for libmtp from the source code\&.