add: functions to insert list (for junctions)

This commit is contained in:
Tobias Reisinger 2020-08-18 13:35:15 +02:00
parent 9fb525530f
commit d23655eb61
7 changed files with 155 additions and 26 deletions

View file

@ -7,4 +7,7 @@ junction_relay_schedule_insert(uint8_t weekday, int relay_id, int schedule_id);
int
junction_relay_schedule_remove_for_relay(int relay_id);
int
junction_relay_schedule_insert_weekdays(int relay_id, int *schedule_ids);
#endif /* CORE_MODELS_JUNCTION_RELAY_SCHEDULE_H */

View file

@ -16,6 +16,9 @@ junction_tag_get_tags_for_schedule_id(int schedule_id);
int
junction_tag_insert(int tag_id, int relay_id, int schedule_id);
int
junction_tag_insert_list(int *tag_ids, int relay_id, int schedule_id, int count);
int
junction_tag_remove(int tag_id, int relay_id, int schedule_id);