00001 // muxcli.h 00002 // 00003 // $Id: muxcli.h,v 1.4 2004/06/10 15:23:32 sdennis Exp $ 00004 // 00005 // MUX 2.4 00006 // Copyright (C) 1998 through 2004 Solid Vertical Domains, Ltd. All 00007 // rights not explicitly given are reserved. 00008 // 00009 #define CLI_USER 0 00010 00011 // The following control whether an option is allowed/required. 00012 // 00013 #define CLI_NONE 0 00014 #define CLI_OPTIONAL 1 00015 #define CLI_REQUIRED 2 00016 00017 typedef struct 00018 { 00019 char *m_Flag; 00020 int m_ArgControl; 00021 int m_Unique; 00022 } CLI_OptionEntry; 00023 00024 typedef void CLI_CALLBACKFUNC(CLI_OptionEntry *pOption, char *Value); 00025 00026 void CLI_Process 00027 ( 00028 int argc, 00029 char *argv[], 00030 CLI_OptionEntry *aOptionTable, 00031 int nOptionTable, 00032 CLI_CALLBACKFUNC *pFunc 00033 );