Main Page   File List  

parse_cmd.h

Go to the documentation of this file.
00001 
00009 /* (c) 2003 Technische Universitaet Dresden
00010  * This file is part of DROPS, which is distributed under the terms of the
00011  * GNU General Public License 2. Please see the COPYING file for details. */
00012 
00013 #ifndef __PARSE_CMD_H
00014 #define __PARSE_CMD_H
00015 
00016 #include <stdarg.h>
00017 #include <l4/sys/compiler.h>
00018 
00023 enum parse_cmd_type {
00024     PARSE_CMD_INT,
00025     PARSE_CMD_SWITCH,
00026     PARSE_CMD_STRING,
00027     PARSE_CMD_FN,
00028     PARSE_CMD_FN_ARG,
00029     PARSE_CMD_INC,
00030     PARSE_CMD_DEC,
00031 };
00032 
00035 typedef L4_CV void (*parse_cmd_fn_t)(int);
00036 
00039 typedef L4_CV void (*parse_cmd_fn_arg_t)(int, const char*, int);
00040 
00041 EXTERN_C_BEGIN
00042 
00130 L4_CV int parse_cmdline(int *argc, const char***argv, char arg0, ...);
00131 L4_CV int parse_cmdlinev(int *argc, const char***argv, char arg0, va_list va);
00132 L4_CV int parse_cmdline_extra(const char*argv0, const char*line, char delim,
00133                               char arg0,...);
00134 
00135 EXTERN_C_END
00136 
00137 #endif
00138 

L4 Utilities, part of DROPS  © 2000-2003