Add unit tests that catch invalid 'screen' and 'widget' JSON data.

This commit is contained in:
Pim van Pelt
2017-11-26 16:01:08 +01:00
parent f9c4520b60
commit 83b0d346ae
6 changed files with 64 additions and 39 deletions

View File

@ -16,6 +16,7 @@ struct screen_t {
struct screen_t *screen_create(char *name, uint16_t x, uint16_t y, uint16_t w, uint16_t h);
struct screen_t *screen_create_from_file(char *fn);
struct screen_t *screen_create_from_json(char *json);
void screen_destroy(struct screen_t **s);
bool screen_widget_add(struct screen_t *s, struct widget_t *w);