internals(3)
π NAME π
Okay bestie, welcome to internals(3) from the Library Functions Manual β this is literally the page for The libmtp internals API. π
β¨ SYNOPSIS β¨
Functions
void LIBMTP_Set_Debug (int)
void LIBMTP_Init (void)
int LIBMTP_Get_Supported_Devices_List (LIBMTP_device_entry_t **const,
int *const)
πΈ Detailed Description πΈ
This section is called Detailed Description β and thatβs it, no extra prose here before the function docs. The actual deets are below, bestie. π
π¦ Function Documentation π¦
int LIBMTP_Get_Supported_Devices_List (LIBMTP_device_entry_t **const devices, int *const numdevs)
Get a list of the supported USB devices. Iconic.
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.
Parameters
devicesβ a pointer to a pointer that will hold a device list after the call to this function, if it was successful.numdevsβ a pointer to an integer that will hold the number of devices in the device list if the call was successful.
Returns
0 if the list was successfully retrieved; any other value means failure.
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! π¨
The only thing this does at the moment is to initialise the filetype mapping table, as well as load MTPZ data if necessary.
References: LIBMTP_Set_Debug().
void LIBMTP_Set_Debug (int level)
Set the debug level.
By default, the debug level is set to '0' (disable).
References: LIBMTP_debug.
Referenced by: LIBMTP_Init().
π Author π
Generated automatically by Doxygen for libmtp from the source code.
Cute sign-off time: the footer is giving libmtp, Version 1.1.23 β and thereβs no separate date line in it, just that source/version combo. Byeee ππ
π¦ where this page comes from
- arch rolling: libmtp 1.1.23-1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms