METALINK_T(3)

πŸ“¦ version 0.1.3, in epel 9, opensuse-leap 16.0

okay bestie, welcome to the libmetalink manual page for metalink_t β€” yes, the Metalink top level structure, and yes, she is lowkey iconic πŸ’…


πŸ’– NAME πŸ’–

metalink_t β€” Metalink top level structure, periodt ✨

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <metalink/metalink_types.h>

πŸŽ€ DESCRIPTION πŸŽ€

So metalink_t is the top level structure that holds metadata for a Metalink file and the list of metalink_file_t(3) structures. It’s giving main character energy in the Metalink type family πŸ‘‘

Typically, metalink_t gets created by a parser function such as metalink_parse_file(3) β€” like, that’s the usual glow-up route ✨

🌈 STRUCTURE MEMBERS 🌈

Here’s the whole squad, fr fr:

metalink_file_t **files;
char *identity;
char *tags;

πŸ“ files

files is a Null terminated array of pointer to metalink_file_t(3) structures. It corresponds to the files tag in the Metalink XML file β€” iykyk πŸ’«

Each metalink_file_t(3) structure corresponds to a file element in the Metalink XML file. Every single one matters, no skipping πŸ™ˆ

🧚 identity

identity is a Null terminated string that corresponds to the identity element in the Metalink XML file. Cute, clean, and matched up exactly πŸ’–

πŸ”₯ tags

tags is a Null terminated string that corresponds to the tags element in the Metalink XML file. Yes bestie, it’s right there matching the XML tag 🏷️✨

πŸ‘‘ SEE ALSO πŸ‘‘


πŸ’– brought to you by libmetalink 0.0.3, dated 10/25/2008 β€” mwah, slay 🫢✨