From a0a563dfa1d8ce6407b303a40b0947f43bc19418 Mon Sep 17 00:00:00 2001 From: tth Date: Wed, 19 Feb 2020 22:36:58 +0100 Subject: [PATCH] making "fimg_type_is_valid" public --- floatimg.h | 4 +++- lib/fimg-core.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/floatimg.h b/floatimg.h index 5ee3a33..811b79b 100644 --- a/floatimg.h +++ b/floatimg.h @@ -2,7 +2,7 @@ * floatimg.h */ -#define FIMG_VERSION 92 +#define FIMG_VERSION 93 /* * in memory descriptor @@ -53,6 +53,8 @@ int fimg_create(FloatImg *fimg, int w, int h, int t); int fimg_destroy(FloatImg *fimg); int fimg_clone(FloatImg *fimg, FloatImg *newpic, int flags); int fimg_copy_data(FloatImg *from, FloatImg *to); +int fimg_type_is_valid(int type); + int fimg_print_version(int k); void fimg_printhead(FloatImg *h); diff --git a/lib/fimg-core.c b/lib/fimg-core.c index 909e7bb..6a51bbc 100644 --- a/lib/fimg-core.c +++ b/lib/fimg-core.c @@ -14,7 +14,7 @@ extern int verbosity; /* must be declared around main() */ /* ---------------------------------------------------------------- */ -static int fimg_type_is_valid(int type) +int fimg_type_is_valid(int type) { switch (type) { case FIMG_TYPE_GRAY: