summaryrefslogtreecommitdiff
path: root/gfx/fig.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-09-03 15:18:40 -0300
committerWerner Almesberger <werner@almesberger.net>2016-09-03 19:18:29 -0300
commitb987ddd5026d6e96f96475d2f380e121c40cad29 (patch)
treefd3d41cf340c4b34989b9c35d9ff65fdc0db3659 /gfx/fig.c
parent8fe67338b3f797208623c88893f56d1c1a9d1b30 (diff)
downloadeeshow-b987ddd5026d6e96f96475d2f380e121c40cad29.tar.gz
eeshow-b987ddd5026d6e96f96475d2f380e121c40cad29.tar.bz2
eeshow-b987ddd5026d6e96f96475d2f380e121c40cad29.zip
select driver by filename extension instead of driver spec
Diffstat (limited to 'gfx/fig.c')
-rw-r--r--gfx/fig.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gfx/fig.c b/gfx/fig.c
index a60e41b..c0fa470 100644
--- a/gfx/fig.c
+++ b/gfx/fig.c
@@ -372,8 +372,11 @@ static int fig_end(void *ctx)
/* ----- Operations -------------------------------------------------------- */
+static const char *const fig_ext[] = { "fig" };
+
const struct gfx_ops fig_ops = {
- .name = "fig",
+ .ext = fig_ext,
+ .n_ext = ARRAY_ELEMENTS(fig_ext),
.line = fig_line,
.rect = fig_rect,
.poly = fig_poly,