Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:59:54

0001 /* GIO - GLib Input, Output and Streaming Library
0002  *
0003  * Copyright (C) 2006-2007 Red Hat, Inc.
0004  *
0005  * SPDX-License-Identifier: LGPL-2.1-or-later
0006  *
0007  * This library is free software; you can redistribute it and/or
0008  * modify it under the terms of the GNU Lesser General Public
0009  * License as published by the Free Software Foundation; either
0010  * version 2.1 of the License, or (at your option) any later version.
0011  *
0012  * This library is distributed in the hope that it will be useful,
0013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0015  * Lesser General Public License for more details.
0016  *
0017  * You should have received a copy of the GNU Lesser General
0018  * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
0019  *
0020  * Author: Alexander Larsson <alexl@redhat.com>
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 /*< private >*/
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 /* __GTK_DOC_IGNORE__ */
0081 
0082 G_END_DECLS
0083 
0084 #endif /* __G_CONTENT_TYPE_H__ */