dungeon_crawler

annotate prototype/imago2/ftype_module.h @ 67:2560a7ab0243

internalized libanim, libimago2, and libpsys
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 07 Oct 2012 02:04:00 +0300
parents
children
rev   line source
nuclear@67 1 /*
nuclear@67 2 libimago - a multi-format image file input/output library.
nuclear@67 3 Copyright (C) 2010 John Tsiombikas <nuclear@member.fsf.org>
nuclear@67 4
nuclear@67 5 This program is free software: you can redistribute it and/or modify
nuclear@67 6 it under the terms of the GNU Lesser General Public License as published
nuclear@67 7 by the Free Software Foundation, either version 3 of the License, or
nuclear@67 8 (at your option) any later version.
nuclear@67 9
nuclear@67 10 This program is distributed in the hope that it will be useful,
nuclear@67 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
nuclear@67 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
nuclear@67 13 GNU Lesser General Public License for more details.
nuclear@67 14
nuclear@67 15 You should have received a copy of the GNU Lesser General Public License
nuclear@67 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
nuclear@67 17 */
nuclear@67 18
nuclear@67 19 #ifndef FTYPE_MODULE_H_
nuclear@67 20 #define FTYPE_MODULE_H_
nuclear@67 21
nuclear@67 22 #include "imago2.h"
nuclear@67 23
nuclear@67 24 struct ftype_module {
nuclear@67 25 char *suffix; /* used for format autodetection during saving only */
nuclear@67 26
nuclear@67 27 int (*check)(struct img_io *io);
nuclear@67 28 int (*read)(struct img_pixmap *img, struct img_io *io);
nuclear@67 29 int (*write)(struct img_pixmap *img, struct img_io *io);
nuclear@67 30 };
nuclear@67 31
nuclear@67 32 int img_register_module(struct ftype_module *mod);
nuclear@67 33
nuclear@67 34 struct ftype_module *img_find_format_module(struct img_io *io);
nuclear@67 35 struct ftype_module *img_guess_format(const char *fname);
nuclear@67 36 struct ftype_module *img_get_module(int idx);
nuclear@67 37
nuclear@67 38
nuclear@67 39 #endif /* FTYPE_MODULE_H_ */