LIBMTP_folder_struct(3)
πΈ NAME πΈ
libmtp β yeah bestie that's literally it, the name section is just the library name and a dash, no cap π
β¨ SYNOPSIS β¨
#include <libmtp.h>
π Data Fields π
uint32_t folder_iduint32_t parent_iduint32_t storage_idchar * nameLIBMTP_folder_t * siblingLIBMTP_folder_t * child
π Detailed Description π
It's the MTP Folder structure, periodt. This is the lil struct that holds one folder on your device, and every folder knows its own ID, who its parent is, which storage it lives on, its name, and which folders are next to it and inside it. It's giving family tree but make it MTP π§
π Field Documentation π
π« LIBMTP_folder_t* LIBMTP_folder_struct::child π«
Child folder, or NULL if there are no children. So if this is NULL bestie, that folder is a leaf and it's thriving with zero responsibilities β¨
Examples: folders.c.
Referenced by LIBMTP_destroy_folder_t(), LIBMTP_Find_Folder(), and LIBMTP_Get_Folder_List_For_Storage().
π₯ uint32_t LIBMTP_folder_struct::folder_id π₯
The unique folder ID. Every folder has one and it's their whole identity, main character energy fr fr π
Examples: folders.c.
Referenced by LIBMTP_Find_Folder(), LIBMTP_Get_Folder_List_For_Storage(), and LIBMTP_Set_Folder_Name().
π¦ char* LIBMTP_folder_struct::name π¦
Name of the folder. Yes it's just the folder's name, we love a straightforward icon π
Examples: folders.c.
Referenced by LIBMTP_destroy_folder_t(), LIBMTP_Get_Folder_List_For_Storage(), and LIBMTP_Set_Folder_Name().
π uint32_t LIBMTP_folder_struct::parent_id π
ID of the parent folder β the folder that contains this one. Found family? No, literally found family, and here's the receipt π«Ά
Referenced by LIBMTP_Get_Folder_List_For_Storage().
π§ LIBMTP_folder_t* LIBMTP_folder_struct::sibling π§
Next folder at the same level, or NULL if there are no more. It's the linked-list bestie situation, iykyk πΈ
Examples: folders.c.
Referenced by LIBMTP_destroy_folder_t(), LIBMTP_Find_Folder(), and LIBMTP_Get_Folder_List_For_Storage().
π uint32_t LIBMTP_folder_struct::storage_id π
ID of the storage holding this folder. Like, which storage does this folder actually live on, bestie, don't guess π
Referenced by LIBMTP_Get_Folder_List_For_Storage().
π Author π
Generated automatically by Doxygen for libmtp from the source code. Doxygen wrote it, not a human, and honestly? It ate π
okay that's the whole page, ily, go read folders.c for the examples and slay π
this page is from libmtp, Version 1.1.23, living in section LIBMTP_folder_struct(3) of the manual β mwah, take care of her, she's iconic β
π¦ where this page comes from
- ubuntu stonking: libmtp-doc 1.1.23-1 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms