summaryrefslogtreecommitdiff
path: root/src/rototiller.h
blob: d1578fb5a116858e89246baf35e37622813bf30f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef _ROTOTILLER_H
#define _ROTOTILLER_H

#include "fb.h"

/* Intentionally setting this larger than any anticipated number of CPUs */
#define ROTOTILLER_FRAME_MAX_FRAGMENTS	1024

typedef struct rototiller_frame_t {
	unsigned	n_fragments;
	fb_fragment_t	fragments[ROTOTILLER_FRAME_MAX_FRAGMENTS];
} rototiller_frame_t;

typedef struct rototiller_module_t {
	void	(*prepare_frame)(unsigned n_cpus, fb_fragment_t *fragment, rototiller_frame_t *res_frame);
	void	(*render_fragment)(fb_fragment_t *fragment);
	char	*name;
	char	*description;
	char	*author;
	char	*license;
} rototiller_module_t;

#endif
© All Rights Reserved