annotate libs/dsys2/dsys_impl.h @ 12:1abbed71e9c9
cleanup, copyright statements and notices, readme files
author |
John Tsiombikas <nuclear@member.fsf.org> |
date |
Wed, 20 Feb 2013 05:45:27 +0200 |
parents |
7056437a361b |
children |
|
rev |
line source |
nuclear@12
|
1 /*
|
nuclear@12
|
2 New demosystem by Nuclear / Mindlapse
|
nuclear@12
|
3 Copyright (C) 2011-2013 John Tsiombikas <nuclear@member.fsf.org>
|
nuclear@12
|
4
|
nuclear@12
|
5 This program is free software: you can redistribute it and/or modify
|
nuclear@12
|
6 it under the terms of the GNU General Public License as published by
|
nuclear@12
|
7 the Free Software Foundation, either version 3 of the License, or
|
nuclear@12
|
8 (at your option) any later version.
|
nuclear@12
|
9
|
nuclear@12
|
10 This program is distributed in the hope that it will be useful,
|
nuclear@12
|
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
|
nuclear@12
|
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
nuclear@12
|
13 GNU General Public License for more details.
|
nuclear@12
|
14
|
nuclear@12
|
15 You should have received a copy of the GNU General Public License
|
nuclear@12
|
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
|
nuclear@12
|
17 */
|
nuclear@9
|
18 #ifndef DSYS_IMPL_H_
|
nuclear@9
|
19 #define DSYS_IMPL_H_
|
nuclear@9
|
20
|
nuclear@9
|
21 #include "dsys.h"
|
nuclear@9
|
22
|
nuclear@9
|
23 struct dsys_demo {
|
nuclear@9
|
24 demotime_t tm, src_tm, start_tm, stop_tm, duration;
|
nuclear@9
|
25 demotime_t stoppage_tm;
|
nuclear@9
|
26
|
nuclear@9
|
27 struct dsys_event *evlist;
|
nuclear@9
|
28 int num_ev;
|
nuclear@9
|
29
|
nuclear@9
|
30 struct dsys_event *nextev, *active;
|
nuclear@9
|
31
|
nuclear@9
|
32 int running;
|
nuclear@9
|
33 };
|
nuclear@9
|
34
|
nuclear@9
|
35 struct callback {
|
nuclear@9
|
36 void (*func)(struct dsys_event*, void*);
|
nuclear@9
|
37 void *cls;
|
nuclear@9
|
38
|
nuclear@9
|
39 struct callback *next;
|
nuclear@9
|
40 };
|
nuclear@9
|
41
|
nuclear@9
|
42
|
nuclear@9
|
43 struct dsys_event {
|
nuclear@9
|
44 enum dsys_evtype type;
|
nuclear@9
|
45
|
nuclear@9
|
46 char *name;
|
nuclear@9
|
47 demotime_t t0, t1;
|
nuclear@9
|
48 float val;
|
nuclear@9
|
49
|
nuclear@9
|
50 float (*eval)(struct dsys_event*, demotime_t);
|
nuclear@9
|
51
|
nuclear@9
|
52 struct callback *cblist;
|
nuclear@9
|
53
|
nuclear@9
|
54 struct dsys_event *next, *prev;
|
nuclear@9
|
55 };
|
nuclear@9
|
56
|
nuclear@9
|
57 #endif /* DSYS_IMPL_H_ */
|