render_raw_struct.h
author Tero Marttila <terom@fixme.fi>
Wed, 27 Aug 2008 21:30:32 +0300
changeset 41 540737bf6bac
parent 17 8e8b56b0e0f5
permissions -rw-r--r--
sending requests, and partial support for receiving -- incomplete, not tested
#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 */