OLD | NEW |
1 /* -*- mode: C; c-file-style: "gnu" -*- */ | 1 /* -*- mode: C; c-file-style: "gnu" -*- */ |
2 /* xdgmimealias.c: Private file. Datastructure for storing the aliases. | 2 /* xdgmimealias.c: Private file. Datastructure for storing the aliases. |
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) 2004 Red Hat, Inc. | 6 * Copyright (C) 2004 Red Hat, Inc. |
7 * Copyright (C) 2004 Matthias Clasen <mclasen@redhat.com> | 7 * Copyright (C) 2004 Matthias Clasen <mclasen@redhat.com> |
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: |
11 * | 11 * |
12 * This library is free software; you can redistribute it and/or | 12 * This library is free software; you can redistribute it and/or |
13 * modify it under the terms of the GNU Lesser General Public | 13 * modify it under the terms of the GNU Lesser General Public |
14 * License as published by the Free Software Foundation; either | 14 * License as published by the Free Software Foundation; either |
15 * version 2 of the License, or (at your option) any later version. | 15 * version 2 of the License, or (at your option) any later version. |
16 * | 16 * |
17 * This library is distributed in the hope that it will be useful, | 17 * This library is distributed in the hope that it will be useful, |
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 18 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
20 * Lesser General Public License for more details. | 20 * Lesser General Public License for more details. |
21 * | 21 * |
22 * You should have received a copy of the GNU Lesser General Public | 22 * You should have received a copy of the GNU Lesser General Public |
23 * License along with this library; if not, write to the | 23 * License along with this library; if not, write to the |
24 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 24 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
25 * Boston, MA 02111-1307, USA. | 25 * Boston, MA 02111-1307, USA. |
26 */ | 26 */ |
27 | 27 |
28 #ifdef HAVE_CONFIG_H | 28 #ifdef HAVE_CONFIG_H |
29 #include "config.h" | 29 #include <config.h> |
30 #endif | 30 #endif |
31 | 31 |
32 #include "xdgmimealias.h" | 32 #include "xdgmimealias.h" |
33 #include "xdgmimeint.h" | 33 #include "xdgmimeint.h" |
34 #include <stdlib.h> | 34 #include <stdlib.h> |
35 #include <stdio.h> | 35 #include <stdio.h> |
36 #include <assert.h> | 36 #include <assert.h> |
37 #include <string.h> | 37 #include <string.h> |
38 #include <fnmatch.h> | 38 #include <fnmatch.h> |
39 | 39 |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 for (i = 0; i < list->n_aliases; i++) | 175 for (i = 0; i < list->n_aliases; i++) |
176 { | 176 { |
177 printf ("%s %s\n", | 177 printf ("%s %s\n", |
178 list->aliases[i].alias, | 178 list->aliases[i].alias, |
179 list->aliases[i].mime_type); | 179 list->aliases[i].mime_type); |
180 } | 180 } |
181 } | 181 } |
182 } | 182 } |
183 | 183 |
184 | 184 |
OLD | NEW |