LIBMTP_RAW_DEVICE_STRUCT(3)

πŸ“¦ version 1.1.23, in arch rolling

πŸ’… 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_entry
  • uint32_t bus_location
  • uint8_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