summaryrefslogtreecommitdiff
path: root/src/rototiller.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2017-04-22 08:00:22 -0700
committerVito Caputo <vcaputo@pengaru.com>2017-04-22 08:00:22 -0700
commit5ba408fd9ce88a3635f745930cf09cb47a1400a2 (patch)
tree5d954cbc263a31c969211779361c82d61a255c02 /src/rototiller.h
parent4c6e8e280ba8f540bf1691ec1b427ad1d52401aa (diff)
rototiller: add prepare_frame & rototiller_frame_t
Undecided on wether rototiller_frame_t should be fb_frame_t or not, may change later.
Diffstat (limited to 'src/rototiller.h')
-rw-r--r--src/rototiller.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/rototiller.h b/src/rototiller.h
index 77113de..d1578fb 100644
--- a/src/rototiller.h
+++ b/src/rototiller.h
@@ -1,8 +1,19 @@
#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 (*render_fragment)(fb_fragment_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;
© All Rights Reserved