add: database functions and generalisation

This commit is contained in:
Tobias Reisinger 2020-08-15 13:10:17 +02:00
parent 7c6eed8dc2
commit 14c35a4227
8 changed files with 193 additions and 149 deletions
include/models

View file

@ -56,4 +56,7 @@ relay_get_all();
relay_t**
relay_get_by_controller_id(int controller_id);
int
relay_get_controller_id_for_relay(int relay_id);
#endif /* CORE_RELAY_H */