Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(250)

Side by Side Diff: base/third_party/xdg_mime/xdgmimemagic.h

Issue 113168: Add xdg mime support on Linux. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/third_party/xdg_mime/xdgmimeint.c ('k') | base/third_party/xdg_mime/xdgmimemagic.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /* -*- mode: C; c-file-style: "gnu" -*- */
2 /* xdgmimemagic.h: Private file. Datastructure for storing the magic files.
3 *
4 * More info can be found at http://www.freedesktop.org/standards/
5 *
6 * Copyright (C) 2003 Red Hat, Inc.
7 * Copyright (C) 2003 Jonathan Blandford <jrb@alum.mit.edu>
8 *
9 * Licensed under the Academic Free License version 2.0
10 * Or under the following terms:
11 *
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.
16 *
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.
21 *
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.
26 */
27
28 #ifndef __XDG_MIME_MAGIC_H__
29 #define __XDG_MIME_MAGIC_H__
30
31 #include <unistd.h>
32 #include "xdgmime.h"
33 typedef struct XdgMimeMagic XdgMimeMagic;
34
35 #ifdef XDG_PREFIX
36 #define _xdg_mime_glob_read_from_file XDG_RESERVED_ENTRY(glob_read_f rom_file)
37 #define _xdg_mime_magic_new XDG_RESERVED_ENTRY(magic_new)
38 #define _xdg_mime_magic_read_from_file XDG_RESERVED_ENTRY(magic_read_ from_file)
39 #define _xdg_mime_magic_free XDG_RESERVED_ENTRY(magic_free)
40 #define _xdg_mime_magic_get_buffer_extents XDG_RESERVED_ENTRY(magic_get_b uffer_extents)
41 #define _xdg_mime_magic_lookup_data XDG_RESERVED_ENTRY(magic_looku p_data)
42 #endif
43
44
45 XdgMimeMagic *_xdg_mime_magic_new (void);
46 void _xdg_mime_magic_read_from_file (XdgMimeMagic *mime_magic,
47 const char *file_name);
48 void _xdg_mime_magic_free (XdgMimeMagic *mime_magic);
49 int _xdg_mime_magic_get_buffer_extents (XdgMimeMagic *mime_magic);
50 const char *_xdg_mime_magic_lookup_data (XdgMimeMagic *mime_magic,
51 const void *data,
52 size_t len,
53 int *result_prio,
54 const char *mime_types[],
55 int n_mime_types);
56
57 #endif /* __XDG_MIME_MAGIC_H__ */
OLDNEW
« no previous file with comments | « base/third_party/xdg_mime/xdgmimeint.c ('k') | base/third_party/xdg_mime/xdgmimemagic.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698