VuoFileType implementation.
Definition in file VuoFileType.c.
Go to the source code of this file.
Functions | |
VuoFileType | VuoFileType_makeFromJson (json_object *js) |
Decodes the JSON object js to create a new value. More... | |
json_object * | VuoFileType_getJson (const VuoFileType value) |
Encodes value as a JSON object. More... | |
VuoList_VuoFileType | VuoFileType_getAllowedValues (void) |
Returns a list of values that instances of this type can have. More... | |
char * | VuoFileType_getSummary (const VuoFileType value) |
Returns a compact string representation of value. More... | |
static void | VuoFileType_initExtensions (void) |
Parses the list of file type extensions. More... | |
bool | VuoFileType_isFileOfType (const VuoText path, VuoFileType fileType) |
Returns true if path is of type fileType , based on the file extension. More... | |
json_object * | VuoFileType_getExtensions (VuoFileType fileType) |
Returns a JSON array of file extensions for the specified fileType . More... | |
Variables | |
static const char * | VuoFileType_extensionsJSON |
A map of the extensions for each file type. More... | |
static json_object * | VuoFileType_extensions = NULL |
VuoFileType_extensionsJSON parsed. More... | |
static dispatch_once_t | VuoFileType_extensionsInitialized = 0 |
Whether VuoFileType_extensions has been initialized. More... | |
|
static |
Parses the list of file type extensions.
Definition at line 190 of file VuoFileType.c.
|
static |
VuoFileType_extensionsJSON parsed.
Definition at line 49 of file VuoFileType.c.
|
static |
Whether VuoFileType_extensions has been initialized.
Definition at line 50 of file VuoFileType.c.
|
static |
A map of the extensions for each file type.
Definition at line 32 of file VuoFileType.c.