~ubuntu-branches/debian/sid/conky/sid

« back to all changes in this revision

Viewing changes to src/linux.h

  • Committer: Bazaar Package Importer
  • Author(s): Cesare Tirabassi
  • Date: 2010-03-28 21:19:51 UTC
  • mfrom: (1.3.1 upstream) (16.1.17 lucid)
  • Revision ID: james.westby@ubuntu.com-20100328211951-ejq536k2r858srli
Tags: 1.8.0-1
* New upstream release:
  - add AF_UNIX socket support
  - fix sigsegv if config file is deleted (LP: #525926)
  - the following debian bugs are closed by this upload:
    + change automake1.10 to automake1.11 (Closes: #550929)
    + hwmon made compatible with kernels >= 2.6.31 (Closes: #556926)
    + text_buffer_size change is well documented (Closes: #519401)
    + fix diskio for not existing devices (Closes: #536557)
    + fix wrong mixer values on some systems (Closes: #540282)
    + fix minor memory leak (Closes: #566524)
    + fix some documentation error re. graphs (Closes: #564518)
    + add -p/--pause startup option (Closes: #513440)
    + fix documentation about mixer values (Closes: #538760)
* This release is based on the Ubuntu package with the following changes
  necessary for Debian (Closes: #536320):
  - change control and rules to build correctly on non-Linux arches
    (Closes: #536326)
  - updated NEWS, descriptions in control and changelog
  - change archive area to contrib
* Change priority of metapackage to extra
* My utmost thanks go to Kapil Hari Paranjape for his packaging work and to
  Luca Falavigna for being so kind to review and sponsor this release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- mode: c; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*- */
 
2
 
1
3
#ifndef _LINUX_H
2
4
#define _LINUX_H
3
5
 
5
7
 
6
8
const char *get_disk_protect_queue(const char *);
7
9
 
8
 
struct i8k_struct {
9
 
        char *version;
10
 
        char *bios;
11
 
        char *serial;
12
 
        char *cpu_temp;
13
 
        char *left_fan_status;
14
 
        char *right_fan_status;
15
 
        char *left_fan_rpm;
16
 
        char *right_fan_rpm;
17
 
        char *ac_status;
18
 
        char *buttons_status;
19
 
};
20
 
 
21
 
struct i8k_struct i8k;
22
 
 
23
10
char *get_ioscheduler(char *);
24
11
int get_laptop_mode(void);
 
12
 
25
13
void update_gateway_info(void);
 
14
void free_gateway_info(void);
 
15
int gateway_exists(void);
 
16
void print_gateway_iface(char *, int);
 
17
void print_gateway_ip(char *, int);
26
18
 
27
19
enum { PB_BATT_STATUS, PB_BATT_PERCENT, PB_BATT_TIME };
28
20
void get_powerbook_batt_info(char *, size_t, int);
29
21
 
30
 
int open_sysfs_sensor(const char *dir, const char *dev, const char *type, int n,
31
 
        int *divisor, char *devtype);
32
 
 
33
 
#define open_i2c_sensor(dev, type, n, divisor, devtype) \
34
 
        open_sysfs_sensor("/sys/bus/i2c/devices/", dev, type, n, divisor, devtype)
35
 
#define open_platform_sensor(dev, type, n, divisor, devtype) \
36
 
        open_sysfs_sensor("/sys/bus/platform/devices/", dev, type, n, divisor, devtype)
37
 
#define open_hwmon_sensor(dev, type, n, divisor, devtype) \
38
 
        open_sysfs_sensor("/sys/class/hwmon/", dev, type, n, divisor, devtype)
39
 
 
40
 
double get_sysfs_info(int *fd, int arg, char *devtype, char *type);
 
22
void parse_i2c_sensor(struct text_object *, const char *);
 
23
void parse_hwmon_sensor(struct text_object *, const char *);
 
24
void parse_platform_sensor(struct text_object *, const char *);
 
25
void print_sysfs_sensor(struct text_object *, char *, int );
 
26
void free_sysfs_sensor(struct text_object *);
 
27
 
 
28
int get_entropy_avail(unsigned int *);
 
29
int get_entropy_poolsize(unsigned int *);
 
30
 
 
31
void update_stat(void);
41
32
 
42
33
#endif /* _LINUX_H */