28 lines
527 B
C
28 lines
527 B
C
|
#ifndef CORE_MODELS_MACRO_ACTION_H
|
||
|
#define CORE_MODELS_MACRO_ACTION_H
|
||
|
|
||
|
typedef struct
|
||
|
{
|
||
|
int macro_id;
|
||
|
int relay_id;
|
||
|
int schedule_id;
|
||
|
uint8_t weekday;
|
||
|
} macro_action_t;
|
||
|
|
||
|
int
|
||
|
macro_action_insert(macro_action_t *macro_action);
|
||
|
|
||
|
macro_action_t**
|
||
|
macro_action_get_for_macro(int macro_id);
|
||
|
|
||
|
void
|
||
|
macro_action_free_list(macro_action_t **macro_actions);
|
||
|
|
||
|
int*
|
||
|
macro_action_get_macro_ids_with_schedule(int schedule_id);
|
||
|
|
||
|
int*
|
||
|
macro_action_get_macro_ids_with_relay(int relay_id);
|
||
|
|
||
|
#endif /* CORE_MODELS_MACRO_ACTION_H */
|