FreeRDP
pf_config.c File Reference
#include <stdio.h>
#include <string.h>
#include <winpr/crt.h>
#include <winpr/collections.h>
#include "pf_log.h"
#include "pf_server.h"
#include "pf_config.h"

Macros

#define TAG   PROXY_TAG("config")
 
#define CONFIG_PRINT_SECTION(section)   WLog_INFO(TAG, "\t%s:", section)
 
#define CONFIG_PRINT_STR(config, key)   WLog_INFO(TAG, "\t\t%s: %s", #key, config->key)
 
#define CONFIG_PRINT_BOOL(config, key)   WLog_INFO(TAG, "\t\t%s: %s", #key, config->key ? "TRUE" : "FALSE")
 
#define CONFIG_PRINT_UINT16(config, key)   WLog_INFO(TAG, "\t\t%s: %"PRIu16"", #key, config->key);
 
#define CONFIG_GET_STR(ini, section, key)   IniFile_GetKeyValueString(ini, section, key)
 
#define CONFIG_GET_BOOL(ini, section, key)   IniFile_GetKeyValueInt(ini, section, key)
 

Functions

static BOOL pf_config_get_uint16 (wIniFile *ini, const char *section, const char *key, UINT16 *result)
 
static BOOL pf_config_load_server (wIniFile *ini, proxyConfig *config)
 
static BOOL pf_config_load_target (wIniFile *ini, proxyConfig *config)
 
static BOOL pf_config_load_channels (wIniFile *ini, proxyConfig *config)
 
static BOOL pf_config_load_input (wIniFile *ini, proxyConfig *config)
 
static BOOL pf_config_load_security (wIniFile *ini, proxyConfig *config)
 
static BOOL pf_config_load_filters (wIniFile *ini, proxyConfig *config)
 
BOOL pf_server_config_load (const char *path, proxyConfig *config)
 
void pf_server_config_print (proxyConfig *config)
 
void pf_server_config_free (proxyConfig *config)
 

Macro Definition Documentation

#define CONFIG_GET_BOOL (   ini,
  section,
  key 
)    IniFile_GetKeyValueInt(ini, section, key)
#define CONFIG_GET_STR (   ini,
  section,
  key 
)    IniFile_GetKeyValueString(ini, section, key)
#define CONFIG_PRINT_BOOL (   config,
  key 
)    WLog_INFO(TAG, "\t\t%s: %s", #key, config->key ? "TRUE" : "FALSE")
#define CONFIG_PRINT_SECTION (   section)    WLog_INFO(TAG, "\t%s:", section)
#define CONFIG_PRINT_STR (   config,
  key 
)    WLog_INFO(TAG, "\t\t%s: %s", #key, config->key)
#define CONFIG_PRINT_UINT16 (   config,
  key 
)    WLog_INFO(TAG, "\t\t%s: %"PRIu16"", #key, config->key);
#define TAG   PROXY_TAG("config")

FreeRDP: A Remote Desktop Protocol Implementation FreeRDP Proxy Server

Copyright 2019 Mati Shabtay matis.nosp@m.habt.nosp@m.ay@gm.nosp@m.ail..nosp@m.com Copyright 2019 Kobi Mizrachi kmizr.nosp@m.achi.nosp@m.18@gm.nosp@m.ail..nosp@m.com Copyright 2019 Idan Freiberg speid.nosp@m.y@gm.nosp@m.ail.c.nosp@m.om

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

static BOOL pf_config_get_uint16 ( wIniFile *  ini,
const char *  section,
const char *  key,
UINT16 result 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL pf_config_load_channels ( wIniFile *  ini,
proxyConfig *  config 
)
static

Here is the caller graph for this function:

static BOOL pf_config_load_filters ( wIniFile *  ini,
proxyConfig *  config 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL pf_config_load_input ( wIniFile *  ini,
proxyConfig *  config 
)
static

Here is the caller graph for this function:

static BOOL pf_config_load_security ( wIniFile *  ini,
proxyConfig *  config 
)
static

Here is the caller graph for this function:

static BOOL pf_config_load_server ( wIniFile *  ini,
proxyConfig *  config 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL pf_config_load_target ( wIniFile *  ini,
proxyConfig *  config 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

void pf_server_config_free ( proxyConfig *  config)

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL pf_server_config_load ( const char *  path,
proxyConfig *  config 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void pf_server_config_print ( proxyConfig *  config)

Here is the caller graph for this function: