---
name: "mtp_LIBMTP_playlist_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_playlist_struct"
---

# mtp\_LIBMTP\_playlist\_struct(3)

## NAME

libmtp -

## SYNOPSIS

`#include <libmtp.h>`

### Data Fields

uint32\_t **playlist\_id**\
 uint32\_t **parent\_id**\
 uint32\_t **storage\_id**\
 char \* **name**\
 uint32\_t \* **tracks**\
 uint32\_t **no\_tracks**\
 **LIBMTP\_playlist\_t** \* **next**\

## Detailed Description

MTP Playlist structure

**Examples** **getplaylist.c**, and **playlists.c**.

## Field Documentation

### char\* LIBMTP\_playlist\_struct::name

Name of playlist

**Examples** **playlists.c**.

Referenced by **LIBMTP\_Create\_New\_Playlist()**, **LIBMTP\_destroy\_playlist\_t()**, **LIBMTP\_Get\_Playlist()**, **LIBMTP\_Get\_Playlist\_List()**, **LIBMTP\_Set\_Playlist\_Name()**, and **LIBMTP\_Update\_Playlist()**.

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

Next playlist or NULL if last playlist

**Examples** **playlists.c**.

Referenced by **LIBMTP\_Get\_Playlist\_List()**.

### uint32\_t LIBMTP\_playlist\_struct::no\_tracks

The number of tracks in this playlist

**Examples** **getplaylist.c**, and **playlists.c**.

Referenced by **LIBMTP\_Create\_New\_Playlist()**, **LIBMTP\_Get\_Playlist()**, **LIBMTP\_Get\_Playlist\_List()**, and **LIBMTP\_Update\_Playlist()**.

### uint32\_t LIBMTP\_playlist\_struct::parent\_id

ID of parent folder

**Examples** **playlists.c**.

Referenced by **LIBMTP\_Create\_New\_Playlist()**, **LIBMTP\_Get\_Playlist()**, and **LIBMTP\_Get\_Playlist\_List()**.

### uint32\_t LIBMTP\_playlist\_struct::playlist\_id

Unique playlist ID

**Examples** **playlists.c**.

Referenced by **LIBMTP\_Create\_New\_Playlist()**, **LIBMTP\_Get\_Playlist()**, **LIBMTP\_Get\_Playlist\_List()**, **LIBMTP\_new\_playlist\_t()**, **LIBMTP\_Set\_Playlist\_Name()**, and **LIBMTP\_Update\_Playlist()**.

### uint32\_t LIBMTP\_playlist\_struct::storage\_id

ID of storage holding this playlist

Referenced by **LIBMTP\_Create\_New\_Playlist()**, **LIBMTP\_Get\_Playlist()**, and **LIBMTP\_Get\_Playlist\_List()**.

### uint32\_t\* LIBMTP\_playlist\_struct::tracks

The tracks in this playlist

**Examples** **getplaylist.c**, and **playlists.c**.

Referenced by **LIBMTP\_Create\_New\_Playlist()**, **LIBMTP\_destroy\_playlist\_t()**, **LIBMTP\_Get\_Playlist()**, **LIBMTP\_Get\_Playlist\_List()**, and **LIBMTP\_Update\_Playlist()**.

## Author

Generated automatically by Doxygen for libmtp from the source code.
