render_raw_struct.h
changeset 17 8e8b56b0e0f5
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/render_raw_struct.h	Mon Jun 09 03:15:34 2008 +0300
@@ -0,0 +1,25 @@
+#ifndef RENDER_RAW_STRUCT_H
+#define RENDER_RAW_STRUCT_H
+
+#include <stdio.h>
+
+#include "render_raw.h"
+
+struct render_raw {
+    // do I have to free it?
+    int owned_by_me;
+
+    // some info that we need to keep from the struct render
+    u_int32_t img_w;
+
+    // cb or stream?
+    FILE *io_stream;
+    render_ctx_write_cb io_write_fn;
+    render_ctx_flush_cb io_flush_fn;
+    void *cb_arg;
+};
+
+int render_raw_init (struct render_raw *ctx, struct render *render);
+int render_raw_deinit (struct render_raw *ctx);
+
+#endif /* RENDER_RAW_STRUCT_H */