27#include "bu/mime_types.h"
59BU_EXPORT
extern int bu_file_mime(
const char *ext, bu_mime_context_t context);
Header file for the BRL-CAD common definitions.
int bu_file_mime(const char *ext, bu_mime_context_t context)
Use the file extension to attempt to determine the media type of the file within the specified contex...
const char * bu_file_mime_ext(int t, bu_mime_context_t context)
Given a mime type and a context, return the file extension(s) associated with that type.
int bu_file_mime_int(const char *str)
Given a string produced by bu_file_mime_str, convert it back into integer form.
const char * bu_file_mime_str(int t, bu_mime_context_t context)
Given a mime type and a context, return a human readable string spelling out the type (corresponding ...