blob: 5c43f3a9a6f912126bdb255a7a90958e54f52b82 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include <assert.h>
#include "layout.h"
#include "effect.h"
#include "any_log.h"
void effect_init(effect_t *effect, const effect_info_t *info)
{
assert(effect != NULL);
effect->info = info;
effect->start = timespec_from_ms(0);
effect->next = NULL;
}
void effect_free(effect_t *effect)
{
assert(effect->info->finalize != NULL);
effect->info->finalize(effect);
}
|