File: interface.h

package info (click to toggle)
gkrellongrun 2.2.0-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 132 kB
  • ctags: 140
  • sloc: ansic: 975; makefile: 51
file content (62 lines) | stat: -rw-r--r-- 1,256 bytes parent folder | download | duplicates (2)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#ifndef INTERFACE_H
#define INTERFACE_H

#define LongRunDataTypeNum 4
typedef enum {
	LongRunData,
	FrequencyData,
	VoltageData,
	PercentageData,
} LongRunDataType;


#define GKrelLongRunPartsTypeNum 5
typedef enum {
        Mode,
        Frequency,
        Voltage,
        Meter,
	Slider,
} GKrelLongRunPartsType;

typedef struct {
        gint enable;
        GkrellmPanel *panel;
        GkrellmDecal *decal;
        gchar *label;
        GkrellmKrell *krell;
        GtkWidget *enable_button;
} GKrelLongRunParts;

typedef struct {
        gint enable;
	GkrellmChart *chart;
	GkrellmChartconfig *chart_config;
	gboolean draw_extra_info;
        GtkWidget *enable_button;
	gchar *text_format;
	GtkWidget *text_format_combo;
} GKrelLongRunChart;

struct _longrun_t {
	GkrellmMonitor *monitor;
        GKrelLongRunParts parts[GKrelLongRunPartsTypeNum];
	GKrelLongRunChart gkchart;
	gint data[LongRunDataTypeNum];
};
typedef struct _longrun_t longrun_t;

extern gchar *longrun_mode_label[];
extern GtkItemFactoryEntry gkrellongrun_factory_entry[];

extern longrun_t longrun;

extern int get_gkrellonrun_factory_size();

/* from if_*.c */
extern void set_longrun_label();
extern int check_cpu();
extern void read_longrun_data();

#endif /* INTERFACE_H */