#include #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_info_free(effect_info_t *info) { free(info->state); free(info); } void effect_free(effect_t *effect) { assert(effect->info->finalize != NULL); effect->info->finalize(effect); }