X-Git-Url: https://git.saurik.com/apple/configd.git/blobdiff_plain/4c5e92e2493bdfbbce40e998f3b607c72c47af2c..af243a0d9bf37c3818926f82705eec9b22b50a4d:/scutil.tproj/commands.h diff --git a/scutil.tproj/commands.h b/scutil.tproj/commands.h index a0a0821..4eb0cf0 100644 --- a/scutil.tproj/commands.h +++ b/scutil.tproj/commands.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000 Apple Computer, Inc. All rights reserved. + * Copyright (c) 2000, 2001, 2004-2006 Apple Computer, Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * @@ -40,20 +40,31 @@ typedef struct { char *cmd; int minArgs; int maxArgs; - void (*func)(); + void (*func)(int argc, char **argv); int group; - int ctype; /* 0==normal, 1==limited, 2==private */ + int ctype; /* -1==normal/hidden, 0==normal, 1==limited, 2==private */ char *usage; } cmdInfo; -extern const cmdInfo commands[]; -extern const int nCommands; +extern const cmdInfo commands_store[]; +extern const int nCommands_store; + +extern const cmdInfo commands_net[]; +extern const int nCommands_net; + +extern const cmdInfo commands_prefs[]; +extern const int nCommands_prefs; + +extern cmdInfo *commands; +extern int nCommands; extern Boolean enablePrivateAPI; +extern Boolean termRequested; __BEGIN_DECLS void do_command (int argc, char **argv); void do_help (int argc, char **argv); +void do_quit (int argc, char **argv); void do_readFile (int argc, char **argv); __END_DECLS