2007-06-30 22:10:14 -07:00
|
|
|
/* vim: set sw=4 ts=4 sts=4 et: */
|
|
|
|
#ifndef EFREET_MIME_H
|
|
|
|
#define EFREET_MIME_H
|
|
|
|
|
|
|
|
/**
|
2007-09-06 09:15:10 -07:00
|
|
|
* @file Efreet_Mime.h
|
2007-06-30 22:10:14 -07:00
|
|
|
* @brief The file that must be included by any project wishing to use
|
2008-08-02 14:48:44 -07:00
|
|
|
* @addtogroup Efreet_Mime Efreet_Mime: The XDG Shared Mime Info standard
|
2007-09-06 09:15:10 -07:00
|
|
|
* Efreet Mime is a library designed to help apps work with the
|
2007-06-30 22:10:14 -07:00
|
|
|
* Freedesktop.org Shared Mime Info standard.
|
2008-08-02 14:48:44 -07:00
|
|
|
* Efreet_Mime.h provides all of the necessary headers and
|
|
|
|
* includes to work with Efreet_Mime.
|
|
|
|
* @{
|
2007-06-30 22:10:14 -07:00
|
|
|
*/
|
|
|
|
|
2008-08-02 14:48:44 -07:00
|
|
|
|
2007-11-04 03:19:55 -08:00
|
|
|
#ifdef EAPI
|
|
|
|
#undef EAPI
|
|
|
|
#endif
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
# ifdef BUILDING_DLL
|
|
|
|
# define EAPI __declspec(dllexport)
|
|
|
|
# else
|
|
|
|
# define EAPI __declspec(dllimport)
|
|
|
|
# endif
|
|
|
|
#else
|
|
|
|
# ifdef __GNUC__
|
|
|
|
# if __GNUC__ >= 4
|
|
|
|
# define EAPI __attribute__ ((visibility("default")))
|
|
|
|
# else
|
|
|
|
# define EAPI
|
|
|
|
# endif
|
|
|
|
# else
|
|
|
|
# define EAPI
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
2007-06-30 22:10:14 -07:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2007-07-01 09:32:34 -07:00
|
|
|
|
2007-11-04 01:32:35 -08:00
|
|
|
EAPI int efreet_mime_init(void);
|
|
|
|
EAPI void efreet_mime_shutdown(void);
|
2007-07-01 09:32:34 -07:00
|
|
|
|
2007-11-04 01:32:35 -08:00
|
|
|
EAPI const char *efreet_mime_type_get(const char *file);
|
|
|
|
EAPI const char *efreet_mime_magic_type_get(const char *file);
|
|
|
|
EAPI const char *efreet_mime_globs_type_get(const char *file);
|
|
|
|
EAPI const char *efreet_mime_special_type_get(const char *file);
|
|
|
|
EAPI const char *efreet_mime_fallback_type_get(const char *file);
|
2007-09-06 09:15:10 -07:00
|
|
|
|
2007-11-04 01:32:35 -08:00
|
|
|
EAPI char *efreet_mime_type_icon_get(const char *mime, const char *theme,
|
2008-08-14 13:48:41 -07:00
|
|
|
unsigned int size);
|
2007-06-30 22:10:14 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|