|
NAMEmetalink_file_t - The structure that holds information of a single file.SYNOPSIS#include <metalink/metalink_types.h>DESCRIPTIONmetalink_file_t is a structure that holds information of a single file. It contains array of URLs(metalink_resource_t(3)), checksums and metadata for a file.STRUCTURE MEMBERSchar *name;long long int size; char *version; char *language; char *os; metalink_resource_t **resources; int maxconnections; metalink_checksum_t **checksums; metalink_chunk_checksum_t *chunk_checksum; nameNull terminated file name of the resource which corresponds to name element in Metalink XML file.sizeLength of the resource in bytes.versionNull terminated version string which corresponds to version element in Metalink XML file.languageNull terminated language string which corresponds to language element in Metalink XML file.osNull terminated os string which corresponds to os element in Metalink XML file.resourcesNull terminated array of pointer of metalink_resource_t(3) structure. This corresponds to resources element in Metalink XML file. Each metalink_resource_t(3) structure corresponds to url element in Metalink XML file.maxconnectionsThis is a value of maxconnections attribute of file element. This value is usually used for upper limit of concurrent connections for the resource.checksumsNull terminated array of pointer of metalink_checksum_t(3) structure. This field is an array because in Metalink specification, verification element can contain multiple hash elements. Each metalink_checksum_t(3) structure corresponds to hash element in Metalink XML file.chunk_checksumThe chunk checksum(aka piece hash) for the resource. This corresponds to pieces element under verification element in Metalink XML file.SEE ALSOmetalink_checksum_t(3), metalink_chunk_checksum_t(3), metalink_resource_t(3), metalink_parse_file(3)
Visit the GSP FreeBSD Man Page Interface. |