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

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

Issue 10824186: Linux: update base/third_party/xdg_mime from upstream. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 4 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/compile.patch ('k') | base/third_party/xdg_mime/xdgmime.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* -*- mode: C; c-file-style: "gnu" -*- */ 1 /* -*- mode: C; c-file-style: "gnu" -*- */
2 /* xdgmime.h: XDG Mime Spec mime resolver. Based on version 0.11 of the spec. 2 /* xdgmime.h: XDG Mime Spec mime resolver. Based on version 0.11 of the spec.
3 * 3 *
4 * More info can be found at http://www.freedesktop.org/standards/ 4 * More info can be found at http://www.freedesktop.org/standards/
5 * 5 *
6 * Copyright (C) 2003 Red Hat, Inc. 6 * Copyright (C) 2003 Red Hat, Inc.
7 * Copyright (C) 2003 Jonathan Blandford <jrb@alum.mit.edu> 7 * Copyright (C) 2003 Jonathan Blandford <jrb@alum.mit.edu>
8 * 8 *
9 * Licensed under the Academic Free License version 2.0 9 * Licensed under the Academic Free License version 2.0
10 * Or under the following terms: 10 * Or under the following terms:
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 #define xdg_mime_mime_type_subclass XDG_ENTRY(mime_type_subclass) 61 #define xdg_mime_mime_type_subclass XDG_ENTRY(mime_type_subclass)
62 #define xdg_mime_get_mime_parents XDG_ENTRY(get_mime_parents) 62 #define xdg_mime_get_mime_parents XDG_ENTRY(get_mime_parents)
63 #define xdg_mime_list_mime_parents XDG_ENTRY(list_mime_parents) 63 #define xdg_mime_list_mime_parents XDG_ENTRY(list_mime_parents)
64 #define xdg_mime_unalias_mime_type XDG_ENTRY(unalias_mime_type) 64 #define xdg_mime_unalias_mime_type XDG_ENTRY(unalias_mime_type)
65 #define xdg_mime_get_max_buffer_extents XDG_ENTRY(get_max_buffer_extents) 65 #define xdg_mime_get_max_buffer_extents XDG_ENTRY(get_max_buffer_extents)
66 #define xdg_mime_shutdown XDG_ENTRY(shutdown) 66 #define xdg_mime_shutdown XDG_ENTRY(shutdown)
67 #define xdg_mime_dump XDG_ENTRY(dump) 67 #define xdg_mime_dump XDG_ENTRY(dump)
68 #define xdg_mime_register_reload_callback XDG_ENTRY(register_reload_callback ) 68 #define xdg_mime_register_reload_callback XDG_ENTRY(register_reload_callback )
69 #define xdg_mime_remove_callback XDG_ENTRY(remove_callback) 69 #define xdg_mime_remove_callback XDG_ENTRY(remove_callback)
70 #define xdg_mime_type_unknown XDG_ENTRY(type_unknown) 70 #define xdg_mime_type_unknown XDG_ENTRY(type_unknown)
71 #define xdg_mime_type_empty XDG_ENTRY(type_empty)
72 #define xdg_mime_type_textplain XDG_ENTRY(type_textplain)
71 #define xdg_mime_get_icon XDG_ENTRY(get_icon) 73 #define xdg_mime_get_icon XDG_ENTRY(get_icon)
72 #define xdg_mime_get_generic_icon XDG_ENTRY(get_generic_icon) 74 #define xdg_mime_get_generic_icon XDG_ENTRY(get_generic_icon)
73 75
74 #define _xdg_mime_mime_type_equal XDG_RESERVED_ENTRY(mime_type_equal ) 76 #define _xdg_mime_mime_type_equal XDG_RESERVED_ENTRY(mime_type_equal )
75 #define _xdg_mime_mime_type_subclass XDG_RESERVED_ENTRY(mime_type_subcl ass) 77 #define _xdg_mime_mime_type_subclass XDG_RESERVED_ENTRY(mime_type_subcl ass)
76 #define _xdg_mime_unalias_mime_type XDG_RESERVED_ENTRY(unalias_mime_ty pe) 78 #define _xdg_mime_unalias_mime_type XDG_RESERVED_ENTRY(unalias_mime_ty pe)
77 #endif 79 #endif
78 80
79 extern const char xdg_mime_type_unknown[]; 81 extern const char xdg_mime_type_unknown[];
82 extern const char xdg_mime_type_empty[];
83 extern const char xdg_mime_type_textplain[];
80 #define XDG_MIME_TYPE_UNKNOWN xdg_mime_type_unknown 84 #define XDG_MIME_TYPE_UNKNOWN xdg_mime_type_unknown
85 #define XDG_MIME_TYPE_EMPTY xdg_mime_type_empty
86 #define XDG_MIME_TYPE_TEXTPLAIN xdg_mime_type_textplain
81 87
82 const char *xdg_mime_get_mime_type_for_data (const void *data, 88 const char *xdg_mime_get_mime_type_for_data (const void *data,
83 size_t len, 89 size_t len,
84 int *result_prio); 90 int *result_prio);
85 const char *xdg_mime_get_mime_type_for_file (const char *file_name, 91 const char *xdg_mime_get_mime_type_for_file (const char *file_name,
86 struct stat *statbuf); 92 struct stat *statbuf);
87 const char *xdg_mime_get_mime_type_from_file_name (const char *file_name); 93 const char *xdg_mime_get_mime_type_from_file_name (const char *file_name);
88 int xdg_mime_get_mime_types_from_file_name(const char *file_name, 94 int xdg_mime_get_mime_types_from_file_name(const char *file_name,
89 const char *mime_types[], 95 const char *mime_types[],
90 int n_mime_types); 96 int n_mime_types);
(...skipping 27 matching lines...) Expand all
118 const char *mime_b); 124 const char *mime_b);
119 int _xdg_mime_mime_type_subclass (const char *mime, 125 int _xdg_mime_mime_type_subclass (const char *mime,
120 const char *base); 126 const char *base);
121 const char *_xdg_mime_unalias_mime_type (const char *mime); 127 const char *_xdg_mime_unalias_mime_type (const char *mime);
122 128
123 129
124 #ifdef __cplusplus 130 #ifdef __cplusplus
125 } 131 }
126 #endif /* __cplusplus */ 132 #endif /* __cplusplus */
127 #endif /* __XDG_MIME_H__ */ 133 #endif /* __XDG_MIME_H__ */
OLDNEW
« no previous file with comments | « base/third_party/xdg_mime/compile.patch ('k') | base/third_party/xdg_mime/xdgmime.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698