controller-legacy/include/models/schedule.h

28 lines
488 B
C

#ifndef CONTROLLER_SCHEDULE_H
#define CONTROLLER_SCHEDULE_H
#include <stdint.h>
#include <uuid/uuid.h>
#include <models/period.h>
typedef struct
{
uuid_t id;
uint16_t length;
period_t **periods;
} schedule_t;
schedule_t*
schedule_create(uuid_t id, uint16_t length, uint16_t *periods_blob);
uint16_t*
schedule_periods_to_blob(schedule_t *schedule);
void
schedule_free(schedule_t *schedule);
void
schedule_debug(schedule_t *schedule);
#endif /* CONTROLLER_SCHEDULE_H */