render_thread.h
author Tero Marttila <terom@fixme.fi>
Wed, 27 Aug 2008 21:30:32 +0300
changeset 41 540737bf6bac
parent 24 8307d28329ae
permissions -rw-r--r--
sending requests, and partial support for receiving -- incomplete, not tested
#ifndef RENDER_THREAD_H
#define RENDER_THREAD_H

#include "render.h"

/*
 * Compared to render_threads, this just uses a single thread to render the image and the PNG, which is better for
 * rendering many small images
 */

struct render_thread;

typedef void (*render_thread_done_cb)(struct render_thread *ctx, int err, void *arg);

struct render_thread *render_thread_alloc (struct render *render, render_thread_done_cb cb_func, void *cb_arg);

void render_thread_free(struct render_thread *ctx);

#endif /* RENDER_THREAD_H */