L4Re Operating System Framework
Interface and Usage Documentation
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
parse_cmd.h
Go to the documentation of this file.
1
9/*
10 * (c) 2003-2009 Author(s)
11 * economic rights: Technische Universität Dresden (Germany)
12 * License: see LICENSE.spdx (in this directory or the directories above)
13 */
14
15#ifndef __PARSE_CMD_H
16#define __PARSE_CMD_H
17
18#include <stdarg.h>
19#include <l4/sys/compiler.h>
20
31 PARSE_CMD_INT,
32 PARSE_CMD_SWITCH,
33 PARSE_CMD_STRING,
34 PARSE_CMD_FN,
35 PARSE_CMD_FN_ARG,
36 PARSE_CMD_INC,
37 PARSE_CMD_DEC,
38};
39
43typedef L4_CV void (*parse_cmd_fn_t)(int);
44
48typedef L4_CV void (*parse_cmd_fn_arg_t)(int, const char*, int);
49
51
138L4_CV int parse_cmdline(int *argc, const char***argv, int arg0, ...);
139L4_CV int parse_cmdlinev(int *argc, const char***argv, int arg0, va_list va);
140L4_CV int parse_cmdline_extra(const char*argv0, const char*line, char delim,
141 int arg0,...);
142
146#endif
147
L4 compiler related defines.
#define __END_DECLS
End section with C types and functions.
Definition compiler.h:167
#define L4_CV
Define calling convention.
Definition linkage.h:33
#define __BEGIN_DECLS
Start section with C types and functions.
Definition compiler.h:164
void(* parse_cmd_fn_arg_t)(int, const char *, int)
Function type for PARSE_CMD_FN_ARG.
Definition parse_cmd.h:48
int parse_cmdline(int *argc, const char ***argv, int arg0,...)
Parse the command-line for specified arguments and store the values into variables.
void(* parse_cmd_fn_t)(int)
Function type for PARSE_CMD_FN.
Definition parse_cmd.h:43
parse_cmd_type
Types for parsing.
Definition parse_cmd.h:30