From 9bffca4717f967f1ad544ad66157e84d341ed99b Mon Sep 17 00:00:00 2001 From: Olliver Schinagl Date: Wed, 29 Apr 2015 14:42:58 +0200 Subject: add print status containers Signed-off-by: Olliver Schinagl --- src/eulogium.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/eulogium.h b/src/eulogium.h index 398c19c..6ba1515 100644 --- a/src/eulogium.h +++ b/src/eulogium.h @@ -22,6 +22,24 @@ enum file_type { AMF }; +enum printer_status { + DISCONNECTED = -3, + ERROR, + WAIT_FOR_REMOVAL, + IDLE, + PRINTING, + PAUSED, +}; + +struct printer_data { + enum printer_status status; + uint_fast8_t hotend_count; + float *hotend_temp; + float *hotend_target_temp; + float bed_temp; + float bed_target_temp; +}; + struct print_data { uint_fast32_t time; float progress; @@ -49,6 +67,7 @@ struct eulogium_data { Evas_Object *navi; Evas_Object *status; Evas_Object *progress; + struct printer_data printer; struct print_data print; struct dbus_data dbus; void *data; -- cgit v0.12