wiki.icculus.org
[ front page | index | search | recent changes | git repo | offline html ]

PHYSFS_supportedArchiveTypes

Get a list of supported archive types.

Header File

Defined in <physfs.h>

Syntax

const PHYSFS_ArchiveInfo ** PHYSFS_supportedArchiveTypes(void);

Return Value

(const PHYSFS_ArchiveInfo **) Returns READ ONLY Null-terminated array of READ ONLY structures.

Remarks

Get a list of archive types supported by this implementation of PhysicFS. These are the file formats usable for search path entries. This is for informational purposes only. Note that the extension listed is merely convention: if we list "ZIP", you can open a PkZip-compatible archive with an extension of "XYZ", if you like.

The returned value is an array of pointers to PHYSFS_ArchiveInfo structures, with a NULL entry to signify the end of the list:

for (PHYSFS_ArchiveInfo **i = PHYSFS_supportedArchiveTypes(); *i; i++) {
    printf("Supported archive: [%s], which is [%s].\n",
             (*i)->extension, (*i)->description);
}

The return values are pointers to internal memory, and should be considered READ ONLY, and never freed. The returned values are valid until the next call to PHYSFS_deinit(), PHYSFS_registerArchiver(), or PHYSFS_deregisterArchiver().

Thread Safety

It is safe to call this function from any thread.

Version

This function is available since PhysicsFS 1.0.0.

See Also


CategoryAPI, CategoryAPIFunction, CategoryPhysicsFS


[ edit | delete | history | feedback | raw ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.