xref: /haiku/headers/os/storage/Mime.h (revision ae17e5046d20aabb5a019905b528f462ecb7d64e)
1 //----------------------------------------------------------------------
2 //  This software is part of the OpenBeOS distribution and is covered
3 //  by the OpenBeOS license.
4 //---------------------------------------------------------------------
5 /*!
6 	\file Mime.h
7 	Mime type C functions interface declarations.
8 */
9 #ifndef _MIME_H
10 #define _MIME_H
11 
12 #ifndef _BE_BUILD_H
13 #include <BeBuild.h>
14 #endif
15 #include <sys/types.h>
16 #include <SupportDefs.h>
17 #include <StorageDefs.h>
18 
19 // C functions
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 int update_mime_info(const char *path, int recursive, int synchronous,
26 					 int force);
27 
28 status_t create_app_meta_mime(const char *path, int recursive, int synchronous,
29 							  int force);
30 
31 status_t get_device_icon(const char *dev, void *icon, int32 size);
32 
33 static const uint32 B_MIME_STRING_TYPE	= 'MIMS';
34 
35 enum icon_size {
36 	B_LARGE_ICON	= 32,
37 	B_MINI_ICON		= 16
38 };
39 
40 #ifdef __cplusplus
41 }
42 #endif
43 
44 // OpenBeOS only!
45 #ifdef __cplusplus
46 
47 class BBitmap;
48 
49 status_t get_device_icon(const char *dev, BBitmap *icon, icon_size which);
50 
51 #endif
52 
53 // include the C++ API
54 #ifdef __cplusplus
55 #include <MimeType.h>
56 #endif
57 
58 #endif	// _MIME_H
59 
60 
61