00001 /* 00002 KSysGuard, the KDE System Guard 00003 00004 Copyright (c) 1999-2001 Chris Schlaeger <cs@kde.org> 00005 00006 This program is free software; you can redistribute it and/or 00007 modify it under the terms of version 2 of the GNU General Public 00008 License as published by the Free Software Foundation. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with this program; if not, write to the Free Software 00017 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00018 00019 */ 00020 00021 #ifndef KSG_KSYSGUARDD_H 00022 #define KSG_KSYSGUARDD_H 00023 00024 #include <stdio.h> 00025 #include <time.h> 00026 00027 /* This is the official ksysguardd port assigned by IANA. */ 00028 #define PORT_NUMBER 3112 00029 00030 /* Timer interval for checking modules */ 00031 #define TIMERINTERVAL 1 00032 00033 /* Timer interval for update modules */ 00034 #define UPDATEINTERVAL 1 00035 00036 extern int RunAsDaemon; 00037 extern int QuitApp; 00038 00039 /* This pointer give you access to the client which made the request */ 00040 extern FILE* CurrentClient; 00041 00042 struct SensorModul { 00043 const char *configName; 00044 void (*initCommand)( struct SensorModul* ); 00045 void (*exitCommand)( void ); 00046 int (*updateCommand)( void ); 00047 void (*checkCommand)( void ); 00048 int available; 00049 time_t time; 00050 }; 00051 00052 #endif
1.6.1