add: more debugging

add: more options for testing
This commit is contained in:
Tobias Reisinger 2020-08-14 23:18:22 +02:00
parent 0efbd2a22f
commit e84d54f562
23 changed files with 130 additions and 63 deletions

View file

@ -4,6 +4,8 @@
#include <uuid/uuid.h>
#include <sqlite3.h>
#include <cJSON.h>
#include <constants.h>
#include <helpers.h>
#include <models/relay.h>
@ -31,7 +33,7 @@ controller_save(controller_t* contoller);
int
controller_remove(controller_t* contoller);
char*
cJSON*
controller_to_json(controller_t* contoller);
controller_t*

View file

@ -4,6 +4,8 @@
#include <string.h>
#include <uuid/uuid.h>
#include <cJSON.h>
#include <constants.h>
#include <helpers.h>
#include <database.h>
@ -27,10 +29,10 @@ relay_save();
void
relay_reload_active_schedule(relay_t *relay);
char*
cJSON*
relay_to_json(relay_t *relay);
char*
cJSON*
relay_list_to_json(relay_t **relays);
void

View file

@ -3,6 +3,8 @@
#include <uuid/uuid.h>
#include <cJSON.h>
#include <constants.h>
#include <models/period.h>
@ -30,7 +32,7 @@ schedule_free(schedule_t *schedule);
void
schedule_free_list(schedule_t **schedule);
char*
cJSON*
schedule_to_json(schedule_t *schedule);
void