FreeRDP
winpr/libwinpr/utils/cmdline.c File Reference
#include <winpr/crt.h>
#include <winpr/cmdline.h>
#include "../log.h"

Macros

#define TAG   WINPR_TAG("commandline")
 

Functions

static void log_error (DWORD flags, LPCSTR message, int index, LPCSTR argv)
 
int CommandLineParseArgumentsA (int argc, LPSTR *argv, COMMAND_LINE_ARGUMENT_A *options, DWORD flags, void *context, COMMAND_LINE_PRE_FILTER_FN_A preFilter, COMMAND_LINE_POST_FILTER_FN_A postFilter)
 
int CommandLineParseArgumentsW (int argc, LPWSTR *argv, COMMAND_LINE_ARGUMENT_W *options, DWORD flags, void *context, COMMAND_LINE_PRE_FILTER_FN_W preFilter, COMMAND_LINE_POST_FILTER_FN_W postFilter)
 
int CommandLineClearArgumentsA (COMMAND_LINE_ARGUMENT_A *options)
 
int CommandLineClearArgumentsW (COMMAND_LINE_ARGUMENT_W *options)
 
COMMAND_LINE_ARGUMENT_A * CommandLineFindArgumentA (COMMAND_LINE_ARGUMENT_A *options, LPCSTR Name)
 
COMMAND_LINE_ARGUMENT_W * CommandLineFindArgumentW (COMMAND_LINE_ARGUMENT_W *options, LPCWSTR Name)
 
COMMAND_LINE_ARGUMENT_A * CommandLineFindNextArgumentA (COMMAND_LINE_ARGUMENT_A *argument)
 

Macro Definition Documentation

#define TAG   WINPR_TAG("commandline")

WinPR: Windows Portable Runtime Command-Line Utils

Copyright 2012 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Function Documentation

int CommandLineClearArgumentsA ( COMMAND_LINE_ARGUMENT_A *  options)

Here is the caller graph for this function:

int CommandLineClearArgumentsW ( COMMAND_LINE_ARGUMENT_W *  options)
COMMAND_LINE_ARGUMENT_A* CommandLineFindArgumentA ( COMMAND_LINE_ARGUMENT_A *  options,
LPCSTR  Name 
)

Here is the caller graph for this function:

COMMAND_LINE_ARGUMENT_W* CommandLineFindArgumentW ( COMMAND_LINE_ARGUMENT_W *  options,
LPCWSTR  Name 
)

Here is the call graph for this function:

COMMAND_LINE_ARGUMENT_A* CommandLineFindNextArgumentA ( COMMAND_LINE_ARGUMENT_A *  argument)

Here is the caller graph for this function:

int CommandLineParseArgumentsA ( int  argc,
LPSTR *  argv,
COMMAND_LINE_ARGUMENT_A *  options,
DWORD  flags,
void context,
COMMAND_LINE_PRE_FILTER_FN_A  preFilter,
COMMAND_LINE_POST_FILTER_FN_A  postFilter 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int CommandLineParseArgumentsW ( int  argc,
LPWSTR *  argv,
COMMAND_LINE_ARGUMENT_W *  options,
DWORD  flags,
void context,
COMMAND_LINE_PRE_FILTER_FN_W  preFilter,
COMMAND_LINE_POST_FILTER_FN_W  postFilter 
)
static void log_error ( DWORD  flags,
LPCSTR  message,
int  index,
LPCSTR  argv 
)
static

Command-line syntax: some basic concepts: https://pythonconquerstheuniverse.wordpress.com/2010/07/25/command-line-syntax-some-basic-concepts/ Command-Line Syntax:

<sigil><keyword><separator>

<sigil>: '/' or '-' or ('+' | '-')

<keyword>: option, named argument, flag

<separator>: ':' or '='

: argument value

Here is the caller graph for this function: