FreeRDP
|
#include <winpr/config.h>
#include <winpr/crt.h>
#include <winpr/assert.h>
#include <winpr/cmdline.h>
#include "../log.h"
Macros | |
#define | TAG WINPR_TAG("commandline") |
#define TAG WINPR_TAG("commandline") |
WinPR: Windows Portable Runtime Command-Line Utils
Copyright 2012 Marc-Andre Moreau marca ndre .more au@g mail. 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.
int CommandLineClearArgumentsA | ( | COMMAND_LINE_ARGUMENT_A * | options | ) |
int CommandLineClearArgumentsW | ( | COMMAND_LINE_ARGUMENT_W * | options | ) |
const COMMAND_LINE_ARGUMENT_A* CommandLineFindArgumentA | ( | const COMMAND_LINE_ARGUMENT_A * | options, |
LPCSTR | Name | ||
) |
const COMMAND_LINE_ARGUMENT_W* CommandLineFindArgumentW | ( | const COMMAND_LINE_ARGUMENT_W * | options, |
LPCWSTR | Name | ||
) |
const COMMAND_LINE_ARGUMENT_A* CommandLineFindNextArgumentA | ( | const COMMAND_LINE_ARGUMENT_A * | argument | ) |
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 | ||
) |
char** CommandLineParseCommaSeparatedValues | ( | const char * | list, |
size_t * | count | ||
) |
char** CommandLineParseCommaSeparatedValuesEx | ( | const char * | name, |
const char * | list, | ||
size_t * | count | ||
) |
char* CommandLineToCommaSeparatedValues | ( | int | argc, |
char * | argv[] | ||
) |
char* CommandLineToCommaSeparatedValuesEx | ( | int | argc, |
char * | argv[], | ||
const char * | filters[], | ||
size_t | number | ||
) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
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