/* KSysGuard, the KDE System Guard Copyright (c) 2005 Corentin Chary This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef KSG_SCRIPT_H #define KSG_SCRIPT_H struct script { char * path; time_t m_time; }; struct scriptMonitor { int sid; int mid; char * name; char * kname; char * type; char * unit; double output; double min; double max; }; void initScript(struct SensorModul *sm); void exitScript(void); int updateScript(void); int createScriptMonitors(const char * filename, const char *file, struct SensorModul *sm); int parseScriptLine(char *line, char **name, char **type, double *output, char ** unit, double *min, double *max); void printScript(const char *cmd); void printScriptInfo(const char *cmd); struct scriptMonitor * getMonPtr(int sid, int mid); int getScriptId(char * filename); void cleanScriptName(char *name); #endif