Commit Graph

26 Commits

Author SHA1 Message Date
c6f5fc3b8f Fix use-after-free bug 2017-11-26 18:06:17 +01:00
fb7e2a650d Allow screen to be seen by other files (needed by widget_name.c) 2017-11-26 17:32:29 +01:00
5f07481d22 Do not destroy on TIMER/TOUCH_{UP,DOWN} 2017-11-26 17:32:00 +01:00
82c9999138 Add WIDGET_NAME_SCREEN; Fix null deref in WIDGET_NAME_SSID 2017-11-26 17:31:24 +01:00
ddb026217a Avoid calling widgets without handlers 2017-11-26 17:14:11 +01:00
58fe68c6e3 Reformat test_screen() output to show what we're doing 2017-11-26 16:57:45 +01:00
e027c4d65b Fix typo 2017-11-26 16:52:31 +01:00
6c4c1b3d95 Unit test for widget_set_timer() 2017-11-26 16:51:59 +01:00
63f1088e7a Call EV_WIDGET_CREATE upon first installing of set_handler() 2017-11-26 16:25:05 +01:00
64af496314 Factor out widget_set_{handler,timer}() from app 2017-11-26 16:10:51 +01:00
83b0d346ae Add unit tests that catch invalid 'screen' and 'widget' JSON data. 2017-11-26 16:01:08 +01:00
f9c4520b60 Add widget_{set,delete}_{handler,timer}() 2017-11-26 15:55:15 +01:00
fd68b1ec03 Refactor app to use 'screen with widgets' rather than 'widgets' 2017-11-26 15:01:59 +01:00
3e2e9d4e5b Add screen.[ch] and unit tests 2017-11-26 14:18:43 +01:00
79bb900def factor out application widgets from widget.h -- add new include/mongoose-touch.h instead 2017-11-26 11:32:47 +01:00
6985b30dc2 Add a simple unit test for widget_add_from_file() 2017-11-26 11:28:09 +01:00
b005dd8a26 Add in standard MGOS libraries 2017-11-26 10:59:42 +01:00
caed302f2f Refactor makefile to include SRCS 2017-11-26 10:57:49 +01:00
a42ba88db7 Fix 'make clean' to clean up frozen/frozen.o 2017-11-26 10:49:33 +01:00
e924a64950 Move frozen to its own subdir 2017-11-26 10:48:10 +01:00
a8282618a3 Fix ll_str length 2017-11-26 10:44:11 +01:00
705c65c6c9 Mostly empty unit tests -- added mgos_mock to be able to run unit tests on x86_64 2017-11-26 10:43:44 +01:00
efa9b1bf68 Allow widget_network() to be destroyed -- avoid allowing widget_network_recv()/send() if it's destroyed 2017-11-25 01:49:11 +01:00
3a8aeb5e0f Add widget_remove() 2017-11-25 01:48:23 +01:00
4f64ed554a Initial commit 2017-11-25 01:14:04 +01:00
d109bf9572 Initial commit 2017-11-25 01:06:56 +01:00