A brief file description. More...
#include "libts.h"
Go to the source code of this file.
Functions | |
static void | process_arg (const ArgumentDescription *argument_descriptions, unsigned n_argument_descriptions, int i, char ***argv, const char *usage_string) |
void | show_argument_configuration (const ArgumentDescription *argument_descriptions, unsigned n_argument_descriptions) |
void | process_args (const ArgumentDescription *argument_descriptions, unsigned n_argument_descriptions, char **argv, const char *usage_string) |
void | usage (const ArgumentDescription *argument_descriptions, unsigned n_argument_descriptions, const char *usage_string) |
Variables | |
const char * | file_arguments [MAX_FILE_ARGUMENTS] = { 0 } |
const char * | program_name = "Traffic Server" |
unsigned | n_file_arguments = 0 |
static const char * | argument_types_keys = "ISDfFTL" |
static const char * | argument_types_descriptions [] |
A brief file description.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you 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.
Definition in file ink_args.cc.
static void process_arg | ( | const ArgumentDescription * | argument_descriptions, | |
unsigned | n_argument_descriptions, | |||
int | i, | |||
char *** | argv, | |||
const char * | usage_string | |||
) | [static] |
Definition at line 60 of file ink_args.cc.
References ats_strdup, ink_atoi64(), ink_fatal(), ink_strlcpy(), ArgumentDescription::location, ArgumentDescription::pfn, ArgumentDescription::type, and usage().
Referenced by process_args().
void process_args | ( | const ArgumentDescription * | argument_descriptions, | |
unsigned | n_argument_descriptions, | |||
char ** | argv, | |||
const char * | usage_string | |||
) |
Definition at line 139 of file ink_args.cc.
References countof, file_arguments, ink_fatal(), ink_strlcpy(), n_file_arguments, process_arg(), program_name, ArgumentDescription::type, and usage().
Referenced by main(), and CommandLineArgs::parse_arguments().
void show_argument_configuration | ( | const ArgumentDescription * | argument_descriptions, | |
unsigned | n_argument_descriptions | |||
) |
Definition at line 105 of file ink_args.cc.
References ink_fatal().
void usage | ( | const ArgumentDescription * | argument_descriptions, | |
unsigned | n_argument_descriptions, | |||
const char * | usage_string | |||
) |
Definition at line 204 of file ink_args.cc.
References argument_types_descriptions, argument_types_keys, and program_name.
Referenced by main(), CommandLineArgs::parse_arguments(), process_arg(), and process_args().
const char* argument_types_descriptions[] [static] |
{ (char *) "int ", (char *) "str ", (char *) "dbl ", (char *) "off ", (char *) "on ", (char *) "tog ", (char *) "i64 ", (char *) " " }
Definition at line 44 of file ink_args.cc.
Referenced by usage().
const char* argument_types_keys = "ISDfFTL" [static] |
Definition at line 43 of file ink_args.cc.
Referenced by usage().
const char* file_arguments[MAX_FILE_ARGUMENTS] = { 0 } |
Definition at line 35 of file ink_args.cc.
Referenced by main(), and process_args().
unsigned n_file_arguments = 0 |
Definition at line 37 of file ink_args.cc.
Referenced by main(), and process_args().
const char* program_name = "Traffic Server" |
Definition at line 36 of file ink_args.cc.
Referenced by ink_stack_trace_dump(), process_args(), and usage().