[14] | 1 | /**CHeaderFile***************************************************************** |
---|
| 2 | |
---|
| 3 | FileName [cmd.h] |
---|
| 4 | |
---|
| 5 | PackageName [cmd] |
---|
| 6 | |
---|
| 7 | Synopsis [Implements command line interface, and miscellaneous commands.] |
---|
| 8 | |
---|
| 9 | Author [Originated from SIS] |
---|
| 10 | |
---|
| 11 | Copyright [Copyright (c) 1994-1996 The Regents of the Univ. of California. |
---|
| 12 | All rights reserved. |
---|
| 13 | |
---|
| 14 | Permission is hereby granted, without written agreement and without license |
---|
| 15 | or royalty fees, to use, copy, modify, and distribute this software and its |
---|
| 16 | documentation for any purpose, provided that the above copyright notice and |
---|
| 17 | the following two paragraphs appear in all copies of this software. |
---|
| 18 | |
---|
| 19 | IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR |
---|
| 20 | DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT |
---|
| 21 | OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF |
---|
| 22 | CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
---|
| 23 | |
---|
| 24 | THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES, |
---|
| 25 | INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND |
---|
| 26 | FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN |
---|
| 27 | "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO PROVIDE |
---|
| 28 | MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.] |
---|
| 29 | |
---|
| 30 | Revision [$Id: cmd.h,v 1.11 2002/09/08 22:06:21 fabio Exp $] |
---|
| 31 | |
---|
| 32 | ******************************************************************************/ |
---|
| 33 | |
---|
| 34 | #ifndef _CMD |
---|
| 35 | #define _CMD |
---|
| 36 | |
---|
| 37 | /*---------------------------------------------------------------------------*/ |
---|
| 38 | /* Nested includes */ |
---|
| 39 | /*---------------------------------------------------------------------------*/ |
---|
| 40 | #include <setjmp.h> |
---|
| 41 | #include <signal.h> |
---|
| 42 | |
---|
| 43 | #include "hrc.h" |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | /*---------------------------------------------------------------------------*/ |
---|
| 47 | /* Type declarations */ |
---|
| 48 | /*---------------------------------------------------------------------------*/ |
---|
| 49 | typedef int (*PFI)(Hrc_Manager_t **, int, char **); |
---|
| 50 | |
---|
| 51 | |
---|
| 52 | /**AutomaticStart*************************************************************/ |
---|
| 53 | |
---|
| 54 | /*---------------------------------------------------------------------------*/ |
---|
| 55 | /* Function prototypes */ |
---|
| 56 | /*---------------------------------------------------------------------------*/ |
---|
| 57 | |
---|
| 58 | EXTERN void Cmd_CommandAdd(char * name, PFI funcFp, int changes); |
---|
| 59 | EXTERN int Cmd_CommandExecute(Hrc_Manager_t ** hmgr, char * command); |
---|
| 60 | EXTERN FILE * Cmd_FileOpen(char * fileName, char * mode, char ** realFileName_p, int silent); |
---|
| 61 | EXTERN char * Cmd_FlagReadByName(char * flag); |
---|
| 62 | EXTERN void Cmd_FlagUpdateValue(char * key, char * value); |
---|
| 63 | EXTERN void Cmd_FlagDeleteByName(char * key); |
---|
| 64 | EXTERN void Cmd_Init(void); |
---|
| 65 | EXTERN void Cmd_End(void); |
---|
| 66 | EXTERN int Cmd_StringCheckIsInteger(char *string, int *value); |
---|
| 67 | |
---|
| 68 | /**AutomaticEnd***************************************************************/ |
---|
| 69 | |
---|
| 70 | #endif /* _CMD */ |
---|
| 71 | |
---|
| 72 | |
---|
| 73 | |
---|
| 74 | |
---|
| 75 | |
---|
| 76 | |
---|
| 77 | |
---|
| 78 | |
---|
| 79 | |
---|
| 80 | |
---|
| 81 | |
---|
| 82 | |
---|
| 83 | |
---|
| 84 | |
---|
| 85 | |
---|