brakeconf/src/main.c

31 lines
664 B
C

#include <stdio.h>
#include <string.h>
#include "webui.h"
#include "html.h"
#include "ui.h"
#include "device.h"
struct sp_port *serial_port;
int main(int argc, char const *argv[]) {
int app_window = webui_new_window();
html_document[html_document_len] = '\0';
if (argc > 1 && strcmp(argv[1], "icanthink") == 0) {
}
else {
webui_set_kiosk(app_window, true);
}
webui_bind(app_window, "close_app", close_app);
webui_bind(app_window, "webui_refresh_ports", refresh_devices);
webui_bind(app_window, "webui_connect_device", connect_device);
webui_show(app_window, html_document);
webui_wait();
return 0;
}