summaryrefslogtreecommitdiffstats
path: root/src/eulogium.h
diff options
context:
space:
mode:
authorOlliver Schinagl <o.schinagl@ultimaker.com>2015-04-29 12:42:58 (GMT)
committerOlliver Schinagl <o.schinagl@ultimaker.com>2015-04-29 12:42:58 (GMT)
commit9bffca4717f967f1ad544ad66157e84d341ed99b (patch)
treed5e9936f9ecab7b60853d069b41f108750ed4eba /src/eulogium.h
parente7c9f14e6f6ee9edfe1d58872388bc7fcc7f6885 (diff)
downloadeulogium-9bffca4717f967f1ad544ad66157e84d341ed99b.zip
eulogium-9bffca4717f967f1ad544ad66157e84d341ed99b.tar.gz
eulogium-9bffca4717f967f1ad544ad66157e84d341ed99b.tar.bz2
add print status containers
Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
Diffstat (limited to 'src/eulogium.h')
-rw-r--r--src/eulogium.h19
1 files changed, 19 insertions, 0 deletions
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;