summaryrefslogtreecommitdiffstats
path: root/src/print_data.h
blob: adebb20877b7cbace587323562ca75a950ca62e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
 * 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+
 */

#ifndef _PRINT_DATA_H
#define _PRINT_DATA_H

#include <Eina.h>
#include <stdint.h>

struct print_data {
	uint_fast32_t time;
	double progress;
	char *url;
	char *name;
	Eina_Bool name_changed;
	char *flags;
	double material;
	Eina_Bool block;
	Eina_Bool block_active;
};

enum printer_status {
	UNKNOWN,
	DISCONNECTED,
	ERROR,
	FIRST_RUN_WIZZARD,
	IDLE,
	SLICING,
	HEATING,
	PRINTING,
	COOLING,
	WAIT_FOR_REMOVAL,
	PAUSED,
};

#endif /* _PRINT_DATA_H */