2018-05-12 16:03:00 +00:00
|
|
|
/*
|
2010-01-07 03:45:19 +00:00
|
|
|
*
|
|
|
|
* Conky, a system monitor, based on torsmo
|
|
|
|
*
|
|
|
|
* Please see COPYING for details
|
|
|
|
*
|
2018-05-12 16:03:00 +00:00
|
|
|
* Copyright (c) 2005-2018 Brenden Matthews, Philip Kovacs, et. al.
|
2010-01-07 03:45:19 +00:00
|
|
|
* (see AUTHORS)
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* 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 3 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, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
*/
|
2009-07-28 21:44:22 +00:00
|
|
|
|
2008-12-15 21:40:24 +00:00
|
|
|
#ifndef _LINUX_H
|
|
|
|
#define _LINUX_H
|
2008-06-14 18:41:12 +00:00
|
|
|
|
|
|
|
#include "common.h"
|
|
|
|
|
2018-08-07 23:22:23 +00:00
|
|
|
void print_disk_protect_queue(struct text_object *, char *, unsigned int);
|
2008-06-14 18:41:12 +00:00
|
|
|
|
2018-08-07 23:22:23 +00:00
|
|
|
void print_ioscheduler(struct text_object *, char *, unsigned int);
|
|
|
|
void print_laptop_mode(struct text_object *, char *, unsigned int);
|
2009-10-13 20:44:56 +00:00
|
|
|
|
2010-05-05 16:46:04 +00:00
|
|
|
int update_gateway_info(void);
|
2018-08-13 12:09:24 +00:00
|
|
|
int update_gateway_info2(void);
|
2009-11-29 19:52:36 +00:00
|
|
|
void free_gateway_info(struct text_object *obj);
|
2009-11-16 22:20:58 +00:00
|
|
|
int gateway_exists(struct text_object *);
|
2018-08-07 23:22:23 +00:00
|
|
|
void print_gateway_iface(struct text_object *, char *, unsigned int);
|
2018-08-13 12:09:24 +00:00
|
|
|
void print_gateway_iface2(struct text_object *, char *, unsigned int);
|
2018-08-07 23:22:23 +00:00
|
|
|
void print_gateway_ip(struct text_object *, char *, unsigned int);
|
2018-08-19 18:04:28 +00:00
|
|
|
void print_battery_status(struct text_object *, char *, unsigned int);
|
2008-06-14 18:41:12 +00:00
|
|
|
|
|
|
|
enum { PB_BATT_STATUS, PB_BATT_PERCENT, PB_BATT_TIME };
|
2018-08-07 23:22:23 +00:00
|
|
|
void get_powerbook_batt_info(struct text_object *, char *, unsigned int);
|
2008-06-14 18:41:12 +00:00
|
|
|
|
2009-10-04 16:05:47 +00:00
|
|
|
void parse_i2c_sensor(struct text_object *, const char *);
|
|
|
|
void parse_hwmon_sensor(struct text_object *, const char *);
|
|
|
|
void parse_platform_sensor(struct text_object *, const char *);
|
2018-08-07 23:22:23 +00:00
|
|
|
void print_sysfs_sensor(struct text_object *, char *, unsigned int);
|
2009-10-04 16:22:08 +00:00
|
|
|
void free_sysfs_sensor(struct text_object *);
|
2009-03-28 19:46:20 +00:00
|
|
|
|
2009-11-12 22:50:17 +00:00
|
|
|
int get_entropy_avail(unsigned int *);
|
|
|
|
int get_entropy_poolsize(unsigned int *);
|
|
|
|
|
2010-05-05 16:46:04 +00:00
|
|
|
int update_stat(void);
|
2009-11-15 16:42:59 +00:00
|
|
|
|
2018-08-07 23:22:23 +00:00
|
|
|
void print_distribution(struct text_object *, char *, unsigned int);
|
2010-04-15 14:05:42 +00:00
|
|
|
|
2010-11-23 17:50:40 +00:00
|
|
|
void determine_longstat_file(void);
|
2018-08-06 21:48:07 +00:00
|
|
|
|
|
|
|
extern char e_iface[50];
|
2018-08-13 18:40:30 +00:00
|
|
|
extern char interfaces_arr[64][64];
|
|
|
|
|
2008-12-15 21:40:24 +00:00
|
|
|
#endif /* _LINUX_H */
|