File indexing completed on 2025-01-18 09:59:54
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023 #ifndef __G_CONTENT_TYPE_H__
0024 #define __G_CONTENT_TYPE_H__
0025
0026 #if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
0027 #error "Only <gio/gio.h> can be included directly."
0028 #endif
0029
0030 #include <gio/giotypes.h>
0031
0032 G_BEGIN_DECLS
0033
0034 GIO_AVAILABLE_IN_ALL
0035 gboolean g_content_type_equals (const gchar *type1,
0036 const gchar *type2);
0037 GIO_AVAILABLE_IN_ALL
0038 gboolean g_content_type_is_a (const gchar *type,
0039 const gchar *supertype);
0040 GIO_AVAILABLE_IN_2_52
0041 gboolean g_content_type_is_mime_type (const gchar *type,
0042 const gchar *mime_type);
0043 GIO_AVAILABLE_IN_ALL
0044 gboolean g_content_type_is_unknown (const gchar *type);
0045 GIO_AVAILABLE_IN_ALL
0046 gchar * g_content_type_get_description (const gchar *type);
0047 GIO_AVAILABLE_IN_ALL
0048 gchar * g_content_type_get_mime_type (const gchar *type);
0049 GIO_AVAILABLE_IN_ALL
0050 GIcon * g_content_type_get_icon (const gchar *type);
0051 GIO_AVAILABLE_IN_2_34
0052 GIcon * g_content_type_get_symbolic_icon (const gchar *type);
0053 GIO_AVAILABLE_IN_2_34
0054 gchar * g_content_type_get_generic_icon_name (const gchar *type);
0055
0056 GIO_AVAILABLE_IN_ALL
0057 gboolean g_content_type_can_be_executable (const gchar *type);
0058
0059 GIO_AVAILABLE_IN_ALL
0060 gchar * g_content_type_from_mime_type (const gchar *mime_type);
0061
0062 GIO_AVAILABLE_IN_ALL
0063 gchar * g_content_type_guess (const gchar *filename,
0064 const guchar *data,
0065 gsize data_size,
0066 gboolean *result_uncertain);
0067
0068 GIO_AVAILABLE_IN_ALL
0069 gchar ** g_content_type_guess_for_tree (GFile *root);
0070
0071 GIO_AVAILABLE_IN_ALL
0072 GList * g_content_types_get_registered (void);
0073
0074
0075 #ifndef __GTK_DOC_IGNORE__
0076 GIO_AVAILABLE_IN_2_60
0077 const gchar * const *g_content_type_get_mime_dirs (void);
0078 GIO_AVAILABLE_IN_2_60
0079 void g_content_type_set_mime_dirs (const gchar * const *dirs);
0080 #endif
0081
0082 G_END_DECLS
0083
0084 #endif