~elementary-os/ubuntu-package-imports/desktop-file-utils-xenial

« back to all changes in this revision

Viewing changes to src/mimeutils.h

  • Committer: RabbitBot
  • Date: 2016-01-17 16:50:38 UTC
  • Revision ID: rabbitbot@elementary.io-20160117165038-3yu4qhcpf1rjfh01
Initial import, version 0.22-1ubuntu3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* mimeutils.h: useful functions related to mime types
 
2
 * vim: set ts=2 sw=2 et: */
 
3
 
 
4
/*
 
5
 * Copyright (C) 2008 Novell, Inc.
 
6
 *
 
7
 * Written by Vincent Untz <vuntz@gnome.org>.
 
8
 *
 
9
 * This program is free software; you can redistribute it and/or
 
10
 * modify it under the terms of the GNU General Public License
 
11
 * as published by the Free Software Foundation; either version 2
 
12
 * of the License, or (at your option) any later version.
 
13
 *
 
14
 * This program is distributed in the hope that it will be useful,
 
15
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
17
 * GNU General Public License for more details.
 
18
 *
 
19
 * You should have received a copy of the GNU General Public License
 
20
 * along with this program; if not, write to the Free Software
 
21
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
 
22
 * USA.
 
23
 */
 
24
 
 
25
#include <glib.h>
 
26
 
 
27
typedef enum {
 
28
  MU_VALID,
 
29
  MU_DISCOURAGED,
 
30
  MU_INVALID
 
31
} MimeUtilsValidity;
 
32
 
 
33
MimeUtilsValidity mu_mime_type_is_valid (const char  *mime_type,
 
34
                                         char       **error);