render_raw_struct.h
author Tero Marttila <terom@fixme.fi>
Thu, 28 Aug 2008 03:14:07 +0300
changeset 47 a5c09677ca6f
parent 17 8e8b56b0e0f5
permissions -rw-r--r--
add the coro_test.c file, and update .hgignore a bit
#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 */