aboutsummaryrefslogtreecommitdiffstats
path: root/writers.h
diff options
context:
space:
mode:
Diffstat (limited to 'writers.h')
-rw-r--r--writers.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/writers.h b/writers.h
new file mode 100644
index 0000000..bd4a2b3
--- /dev/null
+++ b/writers.h
@@ -0,0 +1,14 @@
+#include "list.h"
+#include <X11/Intrinsic.h>
+
+/* save image files */
+struct ida_writer {
+ char *label;
+ char *ext[8];
+ int (*write)(FILE *fp, struct ida_image *img);
+ int (*conf)(Widget widget, struct ida_image *img);
+ struct list_head list;
+};
+
+extern struct list_head writers;
+void write_register(struct ida_writer *writer);