summaryrefslogtreecommitdiff
path: root/cro.h
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-02 11:00:08 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-02 11:00:08 -0300
commit8745b40e3eb216fc5cfa7373fea3b4ae991f1c3e (patch)
treeeab2aa7ec1941bd3da99f1dbcf64eab04d34667a /cro.h
downloadeeshow-8745b40e3eb216fc5cfa7373fea3b4ae991f1c3e.tar.gz
eeshow-8745b40e3eb216fc5cfa7373fea3b4ae991f1c3e.tar.bz2
eeshow-8745b40e3eb216fc5cfa7373fea3b4ae991f1c3e.zip
rename sch2fig to eeshow
Diffstat (limited to 'cro.h')
-rw-r--r--cro.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/cro.h b/cro.h
new file mode 100644
index 0000000..3595da8
--- /dev/null
+++ b/cro.h
@@ -0,0 +1,31 @@
+/*
+ * cro.h - Cairo graphics back-end
+ *
+ * Written 2016 by Werner Almesberger
+ * Copyright 2016 by Werner Almesberger
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ */
+
+
+#ifndef CRO_H
+#define CRO_H
+
+#include <stdint.h>
+
+#include "gfx.h"
+
+
+extern const struct gfx_ops cro_png_ops;
+extern const struct gfx_ops cro_pdf_ops;
+
+#define cro_img_ops cro_png_ops /* just don't call cro_img_ops.end */
+
+
+uint32_t *cro_img_end(void *ctx, int *w, int *h, int *stride);
+void cro_img_write(void *ctx, const char *name);
+
+#endif /* !CRO_H */