---
name: "LIBMTP_device_entry_struct"
section: "3"
platform: "linux"
package: "libmtp"
version: "1.1.23-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/LIBMTP_device_entry_struct"
---

# LIBMTP\_device\_entry\_struct(3)

## NAME

LIBMTP\_device\_entry\_struct

## SYNOPSIS

\#include \<libmtp.h\>

### Data Fields

char \* **vendor**\
 uint16\_t **vendor\_id**\
 char \* **product**\
 uint16\_t **product\_id**\
 uint32\_t **device\_flags**\

## Detailed Description

A data structure to hold MTP device entries.

## Field Documentation

### uint32\_t LIBMTP\_device\_entry\_struct::device\_flags

Bugs, device specifics etc

Referenced by **dump\_usbinfo()**, **LIBMTP\_Detect\_Raw\_Devices()**, **LIBMTP\_Detect\_Raw\_Devices()**, and **LIBMTP\_Open\_Raw\_Device\_Uncached()**.

### char\* LIBMTP\_device\_entry\_struct::product

The product name of this device

Referenced by **dump\_usbinfo()**, **LIBMTP\_Detect\_Raw\_Devices()**, and **LIBMTP\_Detect\_Raw\_Devices()**.

### uint16\_t LIBMTP\_device\_entry\_struct::product\_id

Product ID for this device

Referenced by **configure\_usb\_device()**, **dump\_usbinfo()**, **LIBMTP\_Detect\_Raw\_Devices()**, and **LIBMTP\_Detect\_Raw\_Devices()**.

### char\* LIBMTP\_device\_entry\_struct::vendor

The vendor of this device

Referenced by **dump\_usbinfo()**, **LIBMTP\_Detect\_Raw\_Devices()**, and **LIBMTP\_Detect\_Raw\_Devices()**.

### uint16\_t LIBMTP\_device\_entry\_struct::vendor\_id

Vendor ID for this device

Referenced by **configure\_usb\_device()**, **dump\_usbinfo()**, **LIBMTP\_Detect\_Raw\_Devices()**, and **LIBMTP\_Detect\_Raw\_Devices()**.

## Author

Generated automatically by Doxygen for libmtp from the source code.
