Functions | Variables

RecConfigParse.cc File Reference

Parse the records.config configuration file. More...

#include "TextBuffer.h"
#include "Tokenizer.h"
#include "ink_defs.h"
#include "ink_string.h"
#include "P_RecFile.h"
#include "P_RecUtils.h"
#include "P_RecMessage.h"
#include "P_RecCore.h"
#include "I_Layout.h"
Include dependency graph for RecConfigParse.cc:

Go to the source code of this file.

Functions

void RecConfigFileInit (void)
static int RecFileImport_Xmalloc (const char *file, char **file_buf, int *file_size)
const char * RecConfigOverrideFromEnvironment (const char *name, const char *value)
int RecConfigFileParse (const char *path, RecConfigEntryCallback handler, bool inc_version)

Variables

const char * g_rec_config_fpath = NULL
LLQg_rec_config_contents_llq = NULL
InkHashTableg_rec_config_contents_ht = NULL
ink_mutex g_rec_config_lock

Detailed Description

Parse the records.config configuration file.

License

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 RecConfigParse.cc.


Function Documentation

void RecConfigFileInit ( void   ) 
int RecConfigFileParse ( const char *  path,
RecConfigEntryCallback  handler,
bool  inc_version 
)
const char* RecConfigOverrideFromEnvironment ( const char *  name,
const char *  value 
)

Definition at line 86 of file RecConfigParse.cc.

References ats_strdup, and ParseRules::ink_toupper().

Referenced by RecConfigFileParse().

static int RecFileImport_Xmalloc ( const char *  file,
char **  file_buf,
int *  file_size 
) [static]

Variable Documentation

Definition at line 37 of file RecConfigParse.cc.

Referenced by RecConfigFileInit(), RecConfigFileParse(), and RecSyncConfigToTB().

Definition at line 36 of file RecConfigParse.cc.

Referenced by RecSyncConfigToTB().

const char* g_rec_config_fpath = NULL

Definition at line 35 of file RecConfigParse.cc.

Referenced by RecCoreInit(), RecReadConfigFile(), and RecWriteConfigFile().