From 167b640188a4ade1ef4a7c087541cbf63da0de57 Mon Sep 17 00:00:00 2001 From: Harry Jeffery Date: Mon, 21 Jan 2019 22:43:56 +0000 Subject: Make backends self-describing --- src/backend.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/backend.h') diff --git a/src/backend.h b/src/backend.h index 0da2244..714efde 100644 --- a/src/backend.h +++ b/src/backend.h @@ -18,13 +18,19 @@ struct imv_backend { /* Name of the backend, for debug and user informational purposes */ const char *name; + /* Information about the backend, displayed by help dialog */ + const char *description; + + /* Official website address */ + const char *website; + + /* License the backend is used under */ + const char *license; + /* Input: path to open * Output: initialises the imv_source instance passed in */ enum backend_result (*open_path)(const char *path, struct imv_source **src); - - /* Clean up this backend */ - void (*free)(struct imv_backend *backend); }; #endif -- cgit v1.2.3