---
name: "mtp_LIBMTP_devicestorage_struct"
section: "3"
platform: "linux"
package: "libmtp-doc"
version: "1.1.22-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mtp_LIBMTP_devicestorage_struct"
---

# mtp\_LIBMTP\_devicestorage\_struct(3)

## NAME

libmtp -

## SYNOPSIS

`#include <libmtp.h>`

### Data Fields

uint32\_t **id**\
 uint16\_t **StorageType**\
 uint16\_t **FilesystemType**\
 uint16\_t **AccessCapability**\
 uint64\_t **MaxCapacity**\
 uint64\_t **FreeSpaceInBytes**\
 uint64\_t **FreeSpaceInObjects**\
 char \* **StorageDescription**\
 char \* **VolumeIdentifier**\
 **LIBMTP\_devicestorage\_t** \* **next**\
 **LIBMTP\_devicestorage\_t** \* **prev**\

## Detailed Description

LIBMTP Device Storage structure

**Examples** **detect.c**, **files.c**, **folders.c**, **sendtr.c**, and **tracks.c**.

## Field Documentation

### uint16\_t LIBMTP\_devicestorage\_struct::AccessCapability

Access capability

Referenced by **LIBMTP\_Dump\_Device\_Info()**, and **LIBMTP\_Get\_Storage()**.

### uint16\_t LIBMTP\_devicestorage\_struct::FilesystemType

Filesystem type

Referenced by **LIBMTP\_Dump\_Device\_Info()**, and **LIBMTP\_Get\_Storage()**.

### uint64\_t LIBMTP\_devicestorage\_struct::FreeSpaceInBytes

Free space in bytes

Referenced by **LIBMTP\_Dump\_Device\_Info()**, and **LIBMTP\_Get\_Storage()**.

### uint64\_t LIBMTP\_devicestorage\_struct::FreeSpaceInObjects

Free space in objects

Referenced by **LIBMTP\_Dump\_Device\_Info()**, and **LIBMTP\_Get\_Storage()**.

### uint32\_t LIBMTP\_devicestorage\_struct::id

Unique ID for this storage

**Examples** **detect.c**, **files.c**, **folders.c**, **sendtr.c**, and **tracks.c**.

Referenced by **LIBMTP\_Dump\_Device\_Info()**, **LIBMTP\_Format\_Storage()**, and **LIBMTP\_Get\_Storage()**.

### uint64\_t LIBMTP\_devicestorage\_struct::MaxCapacity

Maximum capability

Referenced by **LIBMTP\_Dump\_Device\_Info()**, and **LIBMTP\_Get\_Storage()**.

### LIBMTP\_devicestorage\_t\* LIBMTP\_devicestorage\_struct::next

Next storage, follow this link until NULL

**Examples** **detect.c**, **files.c**, **folders.c**, **sendtr.c**, and **tracks.c**.

Referenced by **LIBMTP\_Dump\_Device\_Info()**, and **LIBMTP\_Get\_Storage()**.

### LIBMTP\_devicestorage\_t\* LIBMTP\_devicestorage\_struct::prev

Previous storage

Referenced by **LIBMTP\_Get\_Storage()**.

### char\* LIBMTP\_devicestorage\_struct::StorageDescription

A brief description of this storage

**Examples** **folders.c**, and **sendtr.c**.

Referenced by **LIBMTP\_Dump\_Device\_Info()**, and **LIBMTP\_Get\_Storage()**.

### uint16\_t LIBMTP\_devicestorage\_struct::StorageType

Storage type

Referenced by **LIBMTP\_Dump\_Device\_Info()**, and **LIBMTP\_Get\_Storage()**.

### char\* LIBMTP\_devicestorage\_struct::VolumeIdentifier

A volume identifier

Referenced by **LIBMTP\_Dump\_Device\_Info()**, and **LIBMTP\_Get\_Storage()**.

## Author

Generated automatically by Doxygen for libmtp from the source code.
