---
name: "LIBMTP_devicestorage_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_devicestorage_struct"
---

# LIBMTP\_devicestorage\_struct(3)

## NAME

LIBMTP\_devicestorage\_struct

## 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

## 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.
