summaryrefslogtreecommitdiffstats
path: root/src/settings_data.h
blob: 16cbb5f7a920970ff9d71b70a3695dbc03540721 (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
/*
 * function and data types for settings information
 *
 * Copyright (c) 2015 Ultimaker B.V.
 * Author: Olliver Schinagl <o.schinagl@ultimaker.com>
 *
 * SPDX-License-Identifier:	AGPL-3.0+
 */

#ifndef _SETTINGS_DATA_H
#define _SETTINGS_DATA_H

#include <Eldbus.h>

#include "procedures.h"

struct settings_dial_data {
	const char *label;
	double step;
	double min;
	double max;
	double value;
	double value_end;
	char *(*indicator_func)(double value);
	void (*free_func)(char *str);
	const char *format;
	const char *format_end;
	const char *unit;
	Eldbus_Pending *(*method_set)(enum procedure_key proc_key);
	Eldbus_Pending *(*method_get)(enum procedure_key proc_key);
	enum procedure_key proc_key;
};

#endif /* _SETTINGS_DATA_H */