1 |
frodo |
58 |
/* |
2 |
|
|
magick-aux.c - Part of psiconv, a PSION 5 file formats converter |
3 |
|
|
Copyright (c) 2000 Frodo Looijaard <frodol@dds.nl> |
4 |
|
|
|
5 |
|
|
This program is free software; you can redistribute it and/or modify |
6 |
|
|
it under the terms of the GNU General Public License as published by |
7 |
|
|
the Free Software Foundation; either version 2 of the License, or |
8 |
|
|
(at your option) any later version. |
9 |
|
|
|
10 |
|
|
This program is distributed in the hope that it will be useful, |
11 |
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 |
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 |
|
|
GNU General Public License for more details. |
14 |
|
|
|
15 |
|
|
You should have received a copy of the GNU General Public License |
16 |
|
|
along with this program; if not, write to the Free Software |
17 |
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
18 |
|
|
*/ |
19 |
|
|
|
20 |
|
|
#include "config.h" |
21 |
|
|
|
22 |
frodo |
142 |
#ifdef IMAGEMAGICK |
23 |
frodo |
58 |
|
24 |
|
|
#include "magick-aux.h" |
25 |
|
|
#include <magick/magick.h> |
26 |
|
|
#include <magick/config.h> |
27 |
|
|
|
28 |
frodo |
142 |
#endif |
29 |
|
|
|
30 |
|
|
#ifdef DMALLOC |
31 |
|
|
#include "dmalloc.h" |
32 |
|
|
#endif |
33 |
|
|
|
34 |
|
|
#if IMAGEMAGICK |
35 |
|
|
|
36 |
frodo |
118 |
/* This used to be very ugly, but nowadays it is much better */ |
37 |
frodo |
58 |
|
38 |
frodo |
138 |
const MagickInfo * GetMagickFileList(void) |
39 |
frodo |
58 |
{ |
40 |
frodo |
118 |
ExceptionInfo exc; |
41 |
|
|
GetExceptionInfo(&exc); |
42 |
|
|
OpenModules(&exc); |
43 |
|
|
return GetMagickInfo(NULL,&exc); |
44 |
frodo |
58 |
} |
45 |
|
|
|
46 |
|
|
#endif /* IMAGEMAGICK */ |