icfp12/ovm/task.h

26 lines
530 B
C
Raw Normal View History

2009-06-26 21:13:17 +00:00
#ifndef OVM_TASK_H
#define OVM_TASK_H
#include "base.h"
typedef struct {
2009-06-27 00:21:49 +00:00
guint scenario;
guint64 timestamp;
2009-06-26 21:13:17 +00:00
guint in_size, out_size;
2009-06-27 00:21:49 +00:00
gdouble *in, *out, *in_old;
int tracefd;
gboolean finished;
2009-06-26 21:13:17 +00:00
} task_t;
2009-06-27 00:21:49 +00:00
task_t* task_new(guint scenario);
2009-06-26 21:13:17 +00:00
void task_free(task_t *task);
2009-06-27 00:21:49 +00:00
void task_trace_start(task_t *task, const gchar *tracefile);
void task_trace_end(task_t *task);
void task_trace_step(task_t *task);
2009-06-26 21:13:17 +00:00
2009-06-27 00:21:49 +00:00
void ovm_init();
void ovm_step(guint scenario, gdouble *in, gdouble *out);
extern const guint ovm_outs, ovm_ins;
2009-06-26 21:13:17 +00:00
#endif