mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-20 03:51:18 +00:00
d500f1005a
Despite this is actually not much code and could stay inside linux.c as well, this makes sense as I want to combine smapi and ibm-acpi functionality. Virtually every user of a notebook made by IBM/Lenovo will want both, so this should be a feature not a bug. Besides making the ibm-acpi objects being built optionally, this should not change anything to the code flow.
18 lines
378 B
C
18 lines
378 B
C
#ifndef _IBM_H
|
|
#define _IBM_H
|
|
|
|
#include <sys/types.h>
|
|
|
|
struct ibm_acpi_struct {
|
|
int temps[8];
|
|
};
|
|
|
|
struct ibm_acpi_struct ibm_acpi;
|
|
|
|
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);
|
|
|
|
#endif /* _IBM_H */
|