19#define __STDBOOL_H__ 1
48 {
"text/plain",
"txt", NULL },
49 {
"text/html",
"htm",
"html" },
50 {
"text/css",
"css", NULL },
51 {
"image/gif",
"gif", NULL },
52 {
"image/jpeg",
"jpg",
"jpeg" },
53 {
"image/png",
"png", NULL },
54 {
"image/jng",
"jng", NULL },
76 BMessage extensions(
'exts');
81 err = m.SetFileExtensions(&extensions);
98 static char type[B_MIME_TYPE_LENGTH];
103 BString ext(unix_path);
104 ext.Remove(0, ext.FindLast(
'.') + 1);
112 BEntry entry(unix_path,
true);
114 err = node.InitCheck();
118 if (node.IsDirectory())
119 return "application/x-netsurf-directory";
121 BNodeInfo info(&node);
122 err = info.InitCheck();
126 err = info.GetType(
type);
129 err = update_mime_info(unix_path,
false,
true,
false);
132 err = info.GetType(
type);
void beos_fetch_filetype_fin(void)
const char * fetch_filetype(const char *unix_path)
filetype – determine the MIME type of a local file
static struct @31 default_types[]
void beos_fetch_filetype_init(void)
nserror beos_warn_user(const char *warning, const char *detail)
Display a warning for a serious problem (eg memory exhaustion).
Interface to Write-Once hash table for string to string mapping.
Interface to utility string handling.
Interface to a number of general purpose functionality.