Loading...
Searching...
No Matches
parse_cmd.h
Go to the documentation of this file.
/*
* (c) 2003-2009 Author(s)
* economic rights: Technische Universität Dresden (Germany)
* License: see LICENSE.spdx (in this directory or the directories above)
*/
#ifndef __PARSE_CMD_H
#define __PARSE_CMD_H
#include <stdarg.h>
#include <l4/sys/compiler.h>
enum parse_cmd_type {
PARSE_CMD_INT,
PARSE_CMD_SWITCH,
PARSE_CMD_STRING,
PARSE_CMD_FN,
PARSE_CMD_FN_ARG,
PARSE_CMD_INC,
PARSE_CMD_DEC,
};
typedef L4_CV void (*parse_cmd_fn_t)(int);
typedef L4_CV void (*parse_cmd_fn_arg_t)(int, const char*, int);
L4_BEGIN_DECLS
L4_CV int parse_cmdline(int *argc, const char***argv, int arg0, ...);
L4_CV int parse_cmdlinev(int *argc, const char***argv, int arg0, va_list va);
L4_CV int parse_cmdline_extra(const char*argv0, const char*line, char delim,
int arg0,...);
L4_END_DECLS
#endif
compiler.h
L4 compiler related defines.
L4_CV
#define L4_CV
Define calling convention.
Definition linkage.h:33
L4_BEGIN_DECLS
#define L4_BEGIN_DECLS
Start section with C types and functions.
Definition compiler.h:165
L4_END_DECLS
#define L4_END_DECLS
End section with C types and functions.
Definition compiler.h:166
parse_cmdline
L4_BEGIN_DECLS int parse_cmdline(int *argc, const char ***argv, int arg0,...)
Parse the command-line for specified arguments and store the values into variables.
parse_cmd_fn_arg_t
void(* parse_cmd_fn_arg_t)(int, const char *, int)
Function type for PARSE_CMD_FN_ARG.
Definition parse_cmd.h:48
parse_cmd_fn_t
void(* parse_cmd_fn_t)(int)
Function type for PARSE_CMD_FN.
Definition parse_cmd.h:43
parse_cmd_type
parse_cmd_type
Types for parsing.
Definition parse_cmd.h:30