]> git.saurik.com Git - apple/configd.git/blob - scutil.tproj/commands.h
configd-53.1.tar.gz
[apple/configd.git] / scutil.tproj / commands.h
1 /*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
11 *
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
18 * under the License.
19 *
20 * @APPLE_LICENSE_HEADER_END@
21 */
22
23 /*
24 * Modification History
25 *
26 * June 1, 2001 Allan Nathanson <ajn@apple.com>
27 * - public API conversion
28 *
29 * November 9, 2000 Allan Nathanson <ajn@apple.com>
30 * - initial revision
31 */
32
33 #ifndef _COMMANDS_H
34 #define _COMMANDS_H
35
36 #include <sys/cdefs.h>
37
38 typedef struct {
39 char *cmd;
40 int minArgs;
41 int maxArgs;
42 void (*func)();
43 int group;
44 int ctype; /* 0==normal, 1==limited, 2==private */
45 char *usage;
46 } cmdInfo;
47
48 extern const cmdInfo commands[];
49 extern const int nCommands;
50 extern Boolean enablePrivateAPI;
51
52 __BEGIN_DECLS
53
54 void do_command (int argc, char **argv);
55 void do_help (int argc, char **argv);
56 void do_readFile (int argc, char **argv);
57
58 __END_DECLS
59
60 #endif /* !_COMMANDS_H */