Good deal of hackery to get update_mime_info() to work on the host

platform to the extend we need it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16129 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2006-01-28 22:00:16 +00:00
parent 58b53fd940
commit 15285cb04d
9 changed files with 121 additions and 191 deletions
+5
View File
@@ -109,6 +109,11 @@ public:
/* Deprecated Use SetTo instead. */
status_t SetType(const char *mimeType);
static status_t GuessMimeType(const entry_ref *file, BMimeType *type);
static status_t GuessMimeType(const void *buffer, int32 length,
BMimeType *type);
static status_t GuessMimeType(const char *filename, BMimeType *type);
private:
BMimeType(const char *mimeType, const char *mimePath);
// if mimePath is NULL, defaults to "/boot/home/config/settings/beos_mime/"