aboutsummaryrefslogtreecommitdiff
path: root/src/backend_libtiff.c
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2019-08-21 20:46:58 +0100
committerHarry Jeffery <harry@exec64.co.uk>2019-08-21 20:46:58 +0100
commit70939d5b136968839f2d7815a8416d23ce24b2e4 (patch)
treebfcd9f2bc9c9bd488bd4e8be1576ff50313f8c06 /src/backend_libtiff.c
parent1071a2368e1a5d194995178dfc6461d60673b745 (diff)
downloadimv-70939d5b136968839f2d7815a8416d23ce24b2e4.tar.gz
Reduce backend boilerplate
Diffstat (limited to 'src/backend_libtiff.c')
-rw-r--r--src/backend_libtiff.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/backend_libtiff.c b/src/backend_libtiff.c
index a3cbb7c..de7fc70 100644
--- a/src/backend_libtiff.c
+++ b/src/backend_libtiff.c
@@ -1,4 +1,3 @@
-#include "backend_libtiff.h"
#include "backend.h"
#include "source.h"
@@ -218,7 +217,7 @@ static enum backend_result open_memory(void *data, size_t len, struct imv_source
return BACKEND_SUCCESS;
}
-const struct imv_backend libtiff_backend = {
+const struct imv_backend imv_backend_libtiff = {
.name = "libtiff",
.description = "The de-facto tiff library",
.website = "http://www.libtiff.org/",
@@ -226,8 +225,3 @@ const struct imv_backend libtiff_backend = {
.open_path = &open_path,
.open_memory = &open_memory,
};
-
-const struct imv_backend *imv_backend_libtiff(void)
-{
- return &libtiff_backend;
-}