You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
734 B
C
28 lines
734 B
C
#ifndef CTRL_H
|
|
#define CTRL_H
|
|
|
|
#include "timer.h"
|
|
#include "splits.h"
|
|
#include "segment_renderer.h"
|
|
#include "timer_renderer.h"
|
|
#include <stdlib.h>
|
|
//controller binds the timer to the splits
|
|
//and to the input handler
|
|
//and to the autosplitter
|
|
|
|
typedef struct ctrl_binder {
|
|
ghost timer;
|
|
segment_list *rec_sl, *live_sl;
|
|
timer_renderer *tr;
|
|
segment_renderer *sr;
|
|
int current_segment;
|
|
} ctrl_binder;
|
|
|
|
ctrl_binder *create_ctrl_binder(ghost timer, segment_list *sl);
|
|
void ctrl_bind_timer_renderer(ctrl_binder *cb, timer_renderer *timer);
|
|
void ctrl_bind_segment_renderer(ctrl_binder *cb, segment_renderer *segmer);
|
|
void ctrl_start(ctrl_binder *cb);
|
|
void ctrl_pause(ghost timer);
|
|
void ctrl_pause_igt(ghost timer);
|
|
#endif
|