Back to index

libcitadel  8.12
xdgmimealias.h
Go to the documentation of this file.
00001 /* -*- mode: C; c-file-style: "gnu" -*- */
00002 /* xdgmimealias.h: Private file.  Datastructure for storing the aliases.
00003  *
00004  * More info can be found at http://www.freedesktop.org/standards/
00005  *
00006  * Copyright (C) 2004  Red Hat, Inc.
00007  * Copyright (C) 200  Matthias Clasen <mclasen@redhat.com>
00008  *
00009  * Licensed under the Academic Free License version 2.0
00010  * Or under the following terms:
00011  *
00012  * This library is free software; you can redistribute it and/or
00013  * modify it under the terms of the GNU Lesser General Public
00014  * License as published by the Free Software Foundation; either
00015  * version 2 of the License, or (at your option) any later version.
00016  *
00017  * This library is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00020  * Lesser General Public License for more details.
00021  *
00022  * You should have received a copy of the GNU Lesser General Public
00023  * License along with this library; if not, write to the
00024  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00025  * Boston, MA 02111-1307, USA.
00026  */
00027 
00028 #ifndef __XDG_MIME_ALIAS_H__
00029 #define __XDG_MIME_ALIAS_H__
00030 
00031 #include "xdgmime.h"
00032 
00033 typedef struct XdgAliasList XdgAliasList;
00034 
00035 #ifdef XDG_PREFIX
00036 #define _xdg_mime_alias_read_from_file        XDG_RESERVED_ENTRY(mime_alias_read_from_file)
00037 #define _xdg_mime_alias_list_new              XDG_RESERVED_ENTRY(mime_alias_list_new)
00038 #define _xdg_mime_alias_list_free             XDG_RESERVED_ENTRY(mime_alias_list_free)
00039 #define _xdg_mime_alias_list_lookup           XDG_RESERVED_ENTRY(mime_alias_list_lookup)
00040 #define _xdg_mime_alias_list_dump             XDG_RESERVED_ENTRY(mime_alias_list_dump)
00041 #endif
00042 
00043 void          _xdg_mime_alias_read_from_file (XdgAliasList *list,
00044                                          const char   *file_name);
00045 XdgAliasList *_xdg_mime_alias_list_new       (void);
00046 void          _xdg_mime_alias_list_free      (XdgAliasList *list);
00047 const char   *_xdg_mime_alias_list_lookup    (XdgAliasList *list,
00048                                          const char  *alias);
00049 void          _xdg_mime_alias_list_dump      (XdgAliasList *list);
00050 
00051 #endif /* __XDG_MIME_ALIAS_H__ */