00001 /* 00002 * kPPP: A pppd front end for the KDE project 00003 * 00004 * $Id: runtests.h,v 1.2 2003/08/09 17:14:56 kergoth Exp $ 00005 * 00006 * Copyright (C) 1997 Bernd Johannes Wuebben 00007 * wuebben@math.cornell.edu 00008 * 00009 * This file was contributed by Mario Weilguni <mweilguni@sime.com> 00010 * Thanks Mario ! 00011 * 00012 * This program is free software; you can redistribute it and/or 00013 * modify it under the terms of the GNU Library General Public 00014 * License as published by the Free Software Foundation; either 00015 * version 2 of the License, or (at your option) any later version. 00016 * 00017 * This program is distributed in the hope that it will be useful, 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00020 * Library General Public License for more details. 00021 * 00022 * You should have received a copy of the GNU Library General Public 00023 * License along with this program; if not, write to the Free 00024 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00025 */ 00026 00027 #ifndef __RUNTESTS__H__ 00028 #define __RUNTESTS__H__ 00029 00030 #define SYSOPTIONS "/etc/ppp/options" 00031 00032 const int TEST_OK = 0; 00033 const int TEST_WARNING = 1; 00034 const int TEST_NOCONNECT = 2; 00035 const int TEST_CRITICAL = 3; 00036 00037 // Various tests to be run at starttime 00038 int runTests(); 00039 const char* getHomeDir(); 00040 void pppdVersion(int *version, int *modification, int *patch); 00041 00042 #ifdef __linux__ 00043 bool ppp_available(void); 00044 #endif 00045 00046 #endif 00047
1.4.2