summaryrefslogtreecommitdiff
path: root/src/modules/rkt/rkt.h
blob: 861aa6b1b9c46bd8fd76e4a3ced32b29e4f2645f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef _RKT_H
#define _RKT_H

#include "til.h"
#include "til_module_context.h"

typedef struct rkt_scene_t {
	const til_module_t	*module;
	til_module_context_t	*module_ctxt;
} rkt_scene_t;

typedef struct rkt_context_t {
	til_module_context_t	til_module_context;

	struct sync_device	*sync_device;
	const struct sync_track	*scene_track;
	double			rows_per_ms;
	double			rocket_row;
	unsigned		last_ticks;
	unsigned		paused:1;
	size_t			n_scenes;
	rkt_scene_t		*scenes;
} rkt_context_t;

typedef struct rkt_setup_scene_t {
	char			*module_name;
	til_setup_t		*setup;
} rkt_setup_scene_t;

typedef struct rkt_setup_t {
	til_setup_t		til_setup;
	const char		*base;
	double			rows_per_ms;
	unsigned		connect:1;
	const char		*host;
	unsigned short		port;
	size_t			n_scenes;
	rkt_setup_scene_t	scenes[];
} rkt_setup_t;

#endif
© All Rights Reserved