Cleanup setting of 'sysroot' in common.gypi
[chromium-blink-merge.git] / base / third_party / xdg_mime / xdgmimealias.h
blob3c28012dc34e14318491ba73cbda6921d76aeb34
1 /* -*- mode: C; c-file-style: "gnu" -*- */
2 /* xdgmimealias.h: Private file. Datastructure for storing the aliases.
4 * More info can be found at http://www.freedesktop.org/standards/
6 * Copyright (C) 2004 Red Hat, Inc.
7 * Copyright (C) 200 Matthias Clasen <mclasen@redhat.com>
9 * Licensed under the Academic Free License version 2.0
10 * Or under the following terms:
12 * This library is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU Lesser General Public
14 * License as published by the Free Software Foundation; either
15 * version 2 of the License, or (at your option) any later version.
17 * This library is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * Lesser General Public License for more details.
22 * You should have received a copy of the GNU Lesser General Public
23 * License along with this library; if not, write to the
24 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
25 * Boston, MA 02111-1307, USA.
28 #ifndef __XDG_MIME_ALIAS_H__
29 #define __XDG_MIME_ALIAS_H__
31 #include "xdgmime.h"
33 typedef struct XdgAliasList XdgAliasList;
35 #ifdef XDG_PREFIX
36 #define _xdg_mime_alias_read_from_file XDG_RESERVED_ENTRY(alias_read_from_file)
37 #define _xdg_mime_alias_list_new XDG_RESERVED_ENTRY(alias_list_new)
38 #define _xdg_mime_alias_list_free XDG_RESERVED_ENTRY(alias_list_free)
39 #define _xdg_mime_alias_list_lookup XDG_RESERVED_ENTRY(alias_list_lookup)
40 #define _xdg_mime_alias_list_dump XDG_RESERVED_ENTRY(alias_list_dump)
41 #endif
43 void _xdg_mime_alias_read_from_file (XdgAliasList *list,
44 const char *file_name);
45 XdgAliasList *_xdg_mime_alias_list_new (void);
46 void _xdg_mime_alias_list_free (XdgAliasList *list);
47 const char *_xdg_mime_alias_list_lookup (XdgAliasList *list,
48 const char *alias);
49 void _xdg_mime_alias_list_dump (XdgAliasList *list);
51 #endif /* __XDG_MIME_ALIAS_H__ */