mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-16 10:05:22 +00:00
9a85812e06
Some statics are now defined by configure.ac.in, conky.h got a lot smaller, which I see as a positive sign. This patch should not change any functionality, just change what's defined where. Some features I did/could not test are probably broken, also compiling for any other OS surely won't complete now. Though I think fixing these problems is as easy as including some missing headers. I've done compile checks with the following configure options: ./configure --enable-eve --enable-rss --enable-smapi --enable-wlan --enable-debug --enable-testing So what needs to be tested is: - audacious - BMPx - xmms2 - nvidia
42 lines
907 B
C
42 lines
907 B
C
#ifndef _LINUX_H
|
|
#define _LINUX_H
|
|
|
|
#include "common.h"
|
|
|
|
void get_ibm_acpi_fan(char *buf, size_t client_buffer_size);
|
|
void get_ibm_acpi_temps(void);
|
|
void get_ibm_acpi_volume(char *buf, size_t client_buffer_size);
|
|
void get_ibm_acpi_brightness(char *buf, size_t client_buffer_size);
|
|
const char *get_disk_protect_queue(const char *);
|
|
|
|
struct i8k_struct {
|
|
char *version;
|
|
char *bios;
|
|
char *serial;
|
|
char *cpu_temp;
|
|
char *left_fan_status;
|
|
char *right_fan_status;
|
|
char *left_fan_rpm;
|
|
char *right_fan_rpm;
|
|
char *ac_status;
|
|
char *buttons_status;
|
|
};
|
|
|
|
struct i8k_struct i8k;
|
|
|
|
struct ibm_acpi_struct {
|
|
int temps[8];
|
|
};
|
|
|
|
struct ibm_acpi_struct ibm_acpi;
|
|
|
|
int interface_up(const char *dev);
|
|
char *get_ioscheduler(char *);
|
|
int get_laptop_mode(void);
|
|
void update_gateway_info(void);
|
|
|
|
enum { PB_BATT_STATUS, PB_BATT_PERCENT, PB_BATT_TIME };
|
|
void get_powerbook_batt_info(char *, size_t, int);
|
|
|
|
#endif /* _LINUX_H */
|