aboutsummaryrefslogtreecommitdiff
path: root/src/backend_libpng.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_libpng.c
parent1071a2368e1a5d194995178dfc6461d60673b745 (diff)
downloadimv-70939d5b136968839f2d7815a8416d23ce24b2e4.tar.gz
Reduce backend boilerplate
Diffstat (limited to 'src/backend_libpng.c')
-rw-r--r--src/backend_libpng.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/backend_libpng.c b/src/backend_libpng.c
index ecbe088..88a163e 100644
--- a/src/backend_libpng.c
+++ b/src/backend_libpng.c
@@ -1,4 +1,3 @@
-#include "backend_libpng.h"
#include "backend.h"
#include "source.h"
#include "log.h"
@@ -196,7 +195,7 @@ static enum backend_result open_path(const char *path, struct imv_source **src)
return BACKEND_SUCCESS;
}
-const struct imv_backend libpng_backend = {
+const struct imv_backend imv_backend_libpng = {
.name = "libpng",
.description = "The official PNG reference implementation",
.website = "http://www.libpng.org/pub/png/libpng.html",
@@ -204,7 +203,3 @@ const struct imv_backend libpng_backend = {
.open_path = &open_path,
};
-const struct imv_backend *imv_backend_libpng(void)
-{
- return &libpng_backend;
-}