| 1 | /* $Id: kShell.h 44 2003-03-28 11:22:18Z bird $ | 
|---|
| 2 | * | 
|---|
| 3 | * kShell - Public interface. | 
|---|
| 4 | * | 
|---|
| 5 | * Copyright (c) 2002 knut st. osmundsen <bird@anduin.net> | 
|---|
| 6 | * | 
|---|
| 7 | * | 
|---|
| 8 | * This file is part of kBuild. | 
|---|
| 9 | * | 
|---|
| 10 | * kBuild is free software; you can redistribute it and/or modify | 
|---|
| 11 | * it under the terms of the GNU Lesser General Public License as published | 
|---|
| 12 | * by the Free Software Foundation; either version 2 of the License, or | 
|---|
| 13 | * (at your option) any later version. | 
|---|
| 14 | * | 
|---|
| 15 | * kBuild is distributed in the hope that it will be useful, | 
|---|
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
|---|
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
|---|
| 18 | * GNU Lesser General Public License for more details. | 
|---|
| 19 | * | 
|---|
| 20 | * You should have received a copy of the GNU Lesser General Public License | 
|---|
| 21 | * along with kBuild; if not, write to the Free Software | 
|---|
| 22 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA | 
|---|
| 23 | * | 
|---|
| 24 | */ | 
|---|
| 25 |  | 
|---|
| 26 | #ifndef __kShell_h__ | 
|---|
| 27 | #define __kShell_h__ | 
|---|
| 28 |  | 
|---|
| 29 | /* | 
|---|
| 30 | * Return codes. | 
|---|
| 31 | */ | 
|---|
| 32 | #define KSHELL_ERROR_SYNTAX_ERROR           1700 | 
|---|
| 33 | #define KSHELL_ERROR_NOT_ENOUGH_MEMORY      1708 | 
|---|
| 34 | #define KSHELL_ERROR_PROGRAM_NOT_FOUND      1742 | 
|---|
| 35 | #define KSHELL_ERROR_COMMAND_TOO_LONG       1743 | 
|---|
| 36 |  | 
|---|
| 37 | /* | 
|---|
| 38 | * Functions. | 
|---|
| 39 | */ | 
|---|
| 40 | int     kshellInit(int fVerbose); | 
|---|
| 41 | void    kshellTerm(void); | 
|---|
| 42 | int     kshellExecute(const char *pszCmd); | 
|---|
| 43 | int     kshellInteractive(void); | 
|---|
| 44 |  | 
|---|
| 45 |  | 
|---|
| 46 | #endif | 
|---|