LIBMTP_RAW_DEVICE_STRUCT(3)
π
LIBMTP_raw_device_struct(3) β Library Functions Manual, but make it cute π
okay bestie, welcome to LIBMTP_raw_device_struct from the libmtp Library Functions Manual, section 3. This is the struct that holds a raw MTP device connected to the bus, and it's giving main character energy in the tiniest way possible. π¦
β¨ NAME β¨
LIBMTP_raw_device_struct β the raw MTP device struct itself, no cap. π
π¦ SYNOPSIS π¦
#include <libmtp.h>
π Data Fields π
LIBMTP_device_entry_t device_entryuint32_t bus_locationuint8_t devnum
π Detailed Description π
So this is a data structure whose whole job is to hold a raw MTP device that's connected to the bus. That's it, that's the vibe. It keeps the raw device info together so the rest of the library can work with it. β¨
πΈ Field Documentation πΈ
uint32_t LIBMTP_raw_device_struct::bus_location
Location of the bus, if device available. That's the whole field lore. π«Ά
Referenced by dump_usbinfo(), LIBMTP_Detect_Raw_Devices(), LIBMTP_Detect_Raw_Devices(), and LIBMTP_Open_Raw_Device_Uncached(). And yes, LIBMTP_Detect_Raw_Devices() really is listed twice β not me editing the source, bestie π.
LIBMTP_device_entry_t LIBMTP_raw_device_struct::device_entry
The device entry for this raw device. Iconic. It's literally the device_entry field, typed as LIBMTP_device_entry_t. π
Referenced by configure_usb_device(), dump_usbinfo(), LIBMTP_Detect_Raw_Devices(), LIBMTP_Detect_Raw_Devices(), and LIBMTP_Open_Raw_Device_Uncached(). Again with the double LIBMTP_Detect_Raw_Devices() β iykyk π
.
uint8_t LIBMTP_raw_device_struct::devnum
Device number on the bus, if device available. It's a uint8_t, and it's doing exactly what it says on the label. π
Referenced by dump_usbinfo(), LIBMTP_Detect_Raw_Devices(), LIBMTP_Detect_Raw_Devices(), and LIBMTP_Open_Raw_Device_Uncached(). The duplicate is still there, and I'm still just the messenger. π
π Author π
Generated automatically by Doxygen for libmtp from the source code. So like, Doxygen did the lore drop, not me β I'm just giving it the group-chat remix. π«Ά
cute little sign-off: this page is from libmtp, Version 1.1.23, and the footer energy is LIBMTP_raw_device_struct(3). There's no date in the original footer, so I'm not inventing one β we stay factual in this house πβ¨
π¦ 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