summaryrefslogtreecommitdiffstats
path: root/src/print_data.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/print_data.c')
-rw-r--r--src/print_data.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/print_data.c b/src/print_data.c
new file mode 100644
index 0000000..3416995
--- /dev/null
+++ b/src/print_data.c
@@ -0,0 +1,23 @@
+/*
+ * function and data types for print information
+ *
+ * Copyright (c) 2015 Ultimaker B.V.
+ * Author: Olliver Schinagl <o.schinagl@ultimaker.com>
+ *
+ * SPDX-License-Identifier: AGPL-3.0+
+ */
+
+#include <Eina.h>
+
+#include "print_data.h"
+
+void print_clear(struct print_data *print)
+{
+ print->jobname_changed = EINA_FALSE;
+ free(print->jobname);
+ print->jobname = NULL;
+
+ print->time = 0;
+ print->total_time = 0;
+ print->progress = 0.0;
+}