File: gui.h

package info (click to toggle)
xsensors 0.46-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 628 kB
  • ctags: 103
  • sloc: sh: 3,317; ansic: 2,132; makefile: 85
file content (38 lines) | stat: -rw-r--r-- 1,325 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
/*
    gui.h - Part of xsensors

    Copyright (c) 2002 Kris Kersey <augustus@linuxhardware.org>

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

#include <sys/stat.h>
#include <math.h>
#include <gdk/gdk.h>

enum { VOLT, TEMP, FAN, EEPROM };

#define NA "Not Available!"

/* Prototypes */
gint round( double );
gint destroy_gui( GtkWidget *, gpointer );
void get_pm_location( int, int * );
gboolean expose_event_callback( GtkWidget *, GdkEventExpose *, gpointer );
gint free_llist( updates * );
gint update_sensor_data( gpointer );
gint start_timer( GtkWidget *, gpointer );
updates *add_sensor_tab( GtkWidget *, sensors_chip_name );
int start_gui( int, char ** );