2006-01-28 22:41:07 +03:00
|
|
|
/*
|
|
|
|
* Copyright 2004-2006, Haiku Inc. All Rights Reserved.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
|
2002-07-09 16:24:59 +04:00
|
|
|
/*!
|
|
|
|
\file Mime.h
|
|
|
|
Mime type C functions interface declarations.
|
|
|
|
*/
|
2002-08-12 11:24:02 +04:00
|
|
|
#ifndef _MIME_H
|
|
|
|
#define _MIME_H
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2002-10-23 17:45:47 +04:00
|
|
|
#ifndef _BE_BUILD_H
|
|
|
|
#include <BeBuild.h>
|
|
|
|
#endif
|
|
|
|
#include <sys/types.h>
|
2002-07-09 16:24:59 +04:00
|
|
|
#include <SupportDefs.h>
|
|
|
|
#include <StorageDefs.h>
|
|
|
|
|
|
|
|
// C functions
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
int update_mime_info(const char *path, int recursive, int synchronous,
|
|
|
|
int force);
|
|
|
|
|
|
|
|
status_t create_app_meta_mime(const char *path, int recursive, int synchronous,
|
|
|
|
int force);
|
|
|
|
|
|
|
|
status_t get_device_icon(const char *dev, void *icon, int32 size);
|
|
|
|
|
|
|
|
static const uint32 B_MIME_STRING_TYPE = 'MIMS';
|
|
|
|
|
|
|
|
enum icon_size {
|
|
|
|
B_LARGE_ICON = 32,
|
|
|
|
B_MINI_ICON = 16
|
|
|
|
};
|
|
|
|
|
2006-01-28 22:41:07 +03:00
|
|
|
// values for the "force" parameter of update_mime_info() (Haiku only)
|
|
|
|
enum {
|
|
|
|
B_UPDATE_MIME_INFO_NO_FORCE = 0,
|
|
|
|
B_UPDATE_MIME_INFO_FORCE_KEEP_TYPE = 1,
|
|
|
|
B_UPDATE_MIME_INFO_FORCE_UPDATE_ALL = 2,
|
|
|
|
};
|
|
|
|
|
2002-07-09 16:24:59 +04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2006-01-28 22:41:07 +03:00
|
|
|
// Haiku only!
|
2003-02-08 03:38:15 +03:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
|
|
|
class BBitmap;
|
|
|
|
|
|
|
|
status_t get_device_icon(const char *dev, BBitmap *icon, icon_size which);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2002-07-09 16:24:59 +04:00
|
|
|
// include the C++ API
|
|
|
|
#ifdef __cplusplus
|
|
|
|
#include <MimeType.h>
|
|
|
|
#endif
|
|
|
|
|
2002-08-12 11:24:02 +04:00
|
|
|
#endif // _MIME_H
|