Contact cannot be a null ptr, and it is accessed before anyway. Disscussed with kedge.
[kdenetwork.git] / kppp / runtests.h
blob72f59bb1f3051a0f17961c724392cea29228430f
1 /*
2 * kPPP: A pppd front end for the KDE project
4 * $Id$
6 * Copyright (C) 1997 Bernd Johannes Wuebben
7 * wuebben@math.cornell.edu
9 * This file was contributed by Mario Weilguni <mweilguni@sime.com>
10 * Thanks Mario !
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU Library General Public
14 * License as published by the Free Software Foundation; either
15 * version 2 of the License, or (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * Library General Public License for more details.
22 * You should have received a copy of the GNU Library General Public
23 * License along with this program; if not, write to the Free
24 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27 #ifndef __RUNTESTS__H__
28 #define __RUNTESTS__H__
30 #define SYSOPTIONS "/etc/ppp/options"
32 const int TEST_OK = 0;
33 const int TEST_WARNING = 1;
34 const int TEST_NOCONNECT = 2;
35 const int TEST_CRITICAL = 3;
37 // Various tests to be run at starttime
38 int runTests();
39 const char* getHomeDir();
40 void pppdVersion(int *version, int *modification, int *patch);
42 #ifdef __linux__
43 bool ppp_available(void);
44 #endif
46 #endif