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_id
  • uint32_t parent_id
  • uint32_t storage_id
  • char * name
  • LIBMTP_folder_t * sibling
  • LIBMTP_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