render_raw_struct.h
author Tero Marttila <terom@fixme.fi>
Thu, 28 Aug 2008 00:29:39 +0300
changeset 43 e5b714190dee
parent 17 8e8b56b0e0f5
permissions -rw-r--r--
the request/reply code should be complete now, but still needs testing
#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 */