diff options
Diffstat (limited to 'src/klokdisplay.c')
-rw-r--r-- | src/klokdisplay.c | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/klokdisplay.c b/src/klokdisplay.c new file mode 100644 index 0000000..ed0b757 --- /dev/null +++ b/src/klokdisplay.c @@ -0,0 +1,43 @@ +/* + * klokdisplay + * + * Copyright (C) 2009-2015 Christian Pointner <equinox@spreadspace.org> + * + * This file is part of klokdisplay. + * + * klokdisplay is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * klokdisplay is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with klokdisplay. If not, see <http://www.gnu.org/licenses/>. + */ + +#include <stdio.h> + +#include <wand/MagickWand.h> + +int main(int argc, char **argv) +{ + ExceptionInfo *exception; + ImageInfo *image_info; + MagickBooleanType status; + + MagickCoreGenesis(*argv, MagickTrue); + + exception = AcquireExceptionInfo(); + image_info = AcquireImageInfo(); + status = MagickCommandGenesis(image_info, DisplayImageCommand, argc, argv, (char **)NULL, exception); + + image_info = DestroyImageInfo(image_info); + exception = DestroyExceptionInfo(exception); + MagickCoreTerminus(); + + return(status != MagickFalse ? 0 : 1); +} |