FreeRDP
common/settings.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <winpr/crt.h>
#include "../core/settings.h"
#include "../core/certificate.h"
#include <freerdp/settings.h>
#include <freerdp/freerdp.h>
#include <freerdp/log.h>

Macros

#define TAG   FREERDP_TAG("common")
 

Functions

BOOL freerdp_addin_argv_add_argument_ex (ADDIN_ARGV *args, const char *argument, size_t len)
 
BOOL freerdp_addin_argv_add_argument (ADDIN_ARGV *args, const char *argument)
 
BOOL freerdp_addin_argv_del_argument (ADDIN_ARGV *args, const char *argument)
 
int freerdp_addin_set_argument (ADDIN_ARGV *args, const char *argument)
 
int freerdp_addin_replace_argument (ADDIN_ARGV *args, const char *previous, const char *argument)
 
int freerdp_addin_set_argument_value (ADDIN_ARGV *args, const char *option, const char *value)
 
int freerdp_addin_replace_argument_value (ADDIN_ARGV *args, const char *previous, const char *option, const char *value)
 
BOOL freerdp_device_collection_add (rdpSettings *settings, RDPDR_DEVICE *device)
 
RDPDR_DEVICE * freerdp_device_collection_find (rdpSettings *settings, const char *name)
 
RDPDR_DEVICE * freerdp_device_collection_find_type (rdpSettings *settings, UINT32 type)
 
RDPDR_DEVICE * freerdp_device_clone (RDPDR_DEVICE *device)
 
void freerdp_device_collection_free (rdpSettings *settings)
 
BOOL freerdp_static_channel_collection_del (rdpSettings *settings, const char *name)
 
BOOL freerdp_static_channel_collection_add (rdpSettings *settings, ADDIN_ARGV *channel)
 
ADDIN_ARGV * freerdp_static_channel_collection_find (rdpSettings *settings, const char *name)
 
void freerdp_static_channel_collection_free (rdpSettings *settings)
 
BOOL freerdp_dynamic_channel_collection_del (rdpSettings *settings, const char *name)
 
BOOL freerdp_dynamic_channel_collection_add (rdpSettings *settings, ADDIN_ARGV *channel)
 
ADDIN_ARGV * freerdp_dynamic_channel_collection_find (const rdpSettings *settings, const char *name)
 
void freerdp_addin_argv_free (ADDIN_ARGV *args)
 
ADDIN_ARGV * freerdp_addin_argv_new (size_t argc, const char *argv[])
 
ADDIN_ARGV * freerdp_addin_argv_clone (const ADDIN_ARGV *args)
 
void freerdp_dynamic_channel_collection_free (rdpSettings *settings)
 
void freerdp_target_net_addresses_free (rdpSettings *settings)
 
void freerdp_performance_flags_make (rdpSettings *settings)
 
void freerdp_performance_flags_split (rdpSettings *settings)
 
BOOL freerdp_set_gateway_usage_method (rdpSettings *settings, UINT32 GatewayUsageMethod)
 
void freerdp_update_gateway_usage_method (rdpSettings *settings, UINT32 GatewayEnabled, UINT32 GatewayBypassLocal)
 
BOOL freerdp_get_param_bool (const rdpSettings *settings, int id)
 
int freerdp_set_param_bool (rdpSettings *settings, int id, BOOL param)
 
int freerdp_get_param_int (const rdpSettings *settings, int id)
 
int freerdp_set_param_int (rdpSettings *settings, int id, int param)
 
UINT32 freerdp_get_param_uint32 (const rdpSettings *settings, int id)
 
int freerdp_set_param_uint32 (rdpSettings *settings, int id, UINT32 param)
 
UINT64 freerdp_get_param_uint64 (const rdpSettings *settings, int id)
 
int freerdp_set_param_uint64 (rdpSettings *settings, int id, UINT64 param)
 
char * freerdp_get_param_string (const rdpSettings *settings, int id)
 
int freerdp_set_param_string (rdpSettings *settings, int id, const char *param)
 
static BOOL value_to_uint (const char *value, ULONGLONG *result, ULONGLONG min, ULONGLONG max)
 
static BOOL value_to_int (const char *value, LONGLONG *result, LONGLONG min, LONGLONG max)
 
static BOOL parsing_fail (const char *key, const char *type, const char *value)
 
BOOL freerdp_settings_set_value_for_name (rdpSettings *settings, const char *name, const char *value)
 
static BOOL freerdp_settings_set_pointer_len_ (rdpSettings *settings, size_t id, SSIZE_T lenId, const void *data, size_t len, size_t size)
 
const void * freerdp_settings_get_pointer (const rdpSettings *settings, size_t id)
 
BOOL freerdp_settings_set_pointer_len (rdpSettings *settings, size_t id, const void *data, size_t len)
 
void * freerdp_settings_get_pointer_array_writable (const rdpSettings *settings, size_t id, size_t offset)
 
BOOL freerdp_settings_set_pointer_array (rdpSettings *settings, size_t id, size_t offset, const void *data)
 
const void * freerdp_settings_get_pointer_array (const rdpSettings *settings, size_t id, size_t offset)
 
UINT32 freerdp_settings_get_codecs_flags (const rdpSettings *settings)
 
ADDIN_ARGV * freerdp_static_channel_clone (ADDIN_ARGV *channel)
 
ADDIN_ARGV * freerdp_dynamic_channel_clone (ADDIN_ARGV *channel)
 

Macro Definition Documentation

◆ TAG

#define TAG   FREERDP_TAG("common")

FreeRDP: A Remote Desktop Protocol Implementation Settings Management

Copyright 2012 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com Copyright 2016 Armin Novak armin.nosp@m..nov.nosp@m.ak@gm.nosp@m.ail..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

◆ freerdp_addin_argv_add_argument()

BOOL freerdp_addin_argv_add_argument ( ADDIN_ARGV *  args,
const char *  argument 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_addin_argv_add_argument_ex()

BOOL freerdp_addin_argv_add_argument_ex ( ADDIN_ARGV *  args,
const char *  argument,
size_t  len 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_addin_argv_clone()

ADDIN_ARGV* freerdp_addin_argv_clone ( const ADDIN_ARGV *  args)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_addin_argv_del_argument()

BOOL freerdp_addin_argv_del_argument ( ADDIN_ARGV *  args,
const char *  argument 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_addin_argv_free()

void freerdp_addin_argv_free ( ADDIN_ARGV *  args)
Here is the caller graph for this function:

◆ freerdp_addin_argv_new()

ADDIN_ARGV* freerdp_addin_argv_new ( size_t  argc,
const char *  argv[] 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_addin_replace_argument()

int freerdp_addin_replace_argument ( ADDIN_ARGV *  args,
const char *  previous,
const char *  argument 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_addin_replace_argument_value()

int freerdp_addin_replace_argument_value ( ADDIN_ARGV *  args,
const char *  previous,
const char *  option,
const char *  value 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_addin_set_argument()

int freerdp_addin_set_argument ( ADDIN_ARGV *  args,
const char *  argument 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_addin_set_argument_value()

int freerdp_addin_set_argument_value ( ADDIN_ARGV *  args,
const char *  option,
const char *  value 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_device_clone()

RDPDR_DEVICE* freerdp_device_clone ( RDPDR_DEVICE *  device)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_device_collection_add()

BOOL freerdp_device_collection_add ( rdpSettings *  settings,
RDPDR_DEVICE *  device 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_device_collection_find()

RDPDR_DEVICE* freerdp_device_collection_find ( rdpSettings *  settings,
const char *  name 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_device_collection_find_type()

RDPDR_DEVICE* freerdp_device_collection_find_type ( rdpSettings *  settings,
UINT32  type 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_device_collection_free()

void freerdp_device_collection_free ( rdpSettings *  settings)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_dynamic_channel_clone()

ADDIN_ARGV* freerdp_dynamic_channel_clone ( ADDIN_ARGV *  channel)
Here is the call graph for this function:

◆ freerdp_dynamic_channel_collection_add()

BOOL freerdp_dynamic_channel_collection_add ( rdpSettings *  settings,
ADDIN_ARGV *  channel 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_dynamic_channel_collection_del()

BOOL freerdp_dynamic_channel_collection_del ( rdpSettings *  settings,
const char *  name 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_dynamic_channel_collection_find()

ADDIN_ARGV* freerdp_dynamic_channel_collection_find ( const rdpSettings *  settings,
const char *  name 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_dynamic_channel_collection_free()

void freerdp_dynamic_channel_collection_free ( rdpSettings *  settings)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_get_param_bool()

BOOL freerdp_get_param_bool ( const rdpSettings *  settings,
int  id 
)
Here is the call graph for this function:

◆ freerdp_get_param_int()

int freerdp_get_param_int ( const rdpSettings *  settings,
int  id 
)
Here is the call graph for this function:

◆ freerdp_get_param_string()

char* freerdp_get_param_string ( const rdpSettings *  settings,
int  id 
)
Here is the call graph for this function:

◆ freerdp_get_param_uint32()

UINT32 freerdp_get_param_uint32 ( const rdpSettings *  settings,
int  id 
)
Here is the call graph for this function:

◆ freerdp_get_param_uint64()

UINT64 freerdp_get_param_uint64 ( const rdpSettings *  settings,
int  id 
)
Here is the call graph for this function:

◆ freerdp_performance_flags_make()

void freerdp_performance_flags_make ( rdpSettings *  settings)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_performance_flags_split()

void freerdp_performance_flags_split ( rdpSettings *  settings)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_set_gateway_usage_method()

BOOL freerdp_set_gateway_usage_method ( rdpSettings *  settings,
UINT32  GatewayUsageMethod 
)

This corresponds to "Automatically detect RD Gateway server settings", which means the client attempts to use gateway group policy settings http://technet.microsoft.com/en-us/library/cc770601.aspx

Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_set_param_bool()

int freerdp_set_param_bool ( rdpSettings *  settings,
int  id,
BOOL  param 
)
Here is the call graph for this function:

◆ freerdp_set_param_int()

int freerdp_set_param_int ( rdpSettings *  settings,
int  id,
int  param 
)
Here is the call graph for this function:

◆ freerdp_set_param_string()

int freerdp_set_param_string ( rdpSettings *  settings,
int  id,
const char *  param 
)
Here is the call graph for this function:

◆ freerdp_set_param_uint32()

int freerdp_set_param_uint32 ( rdpSettings *  settings,
int  id,
UINT32  param 
)
Here is the call graph for this function:

◆ freerdp_set_param_uint64()

int freerdp_set_param_uint64 ( rdpSettings *  settings,
int  id,
UINT64  param 
)
Here is the call graph for this function:

◆ freerdp_settings_get_codecs_flags()

UINT32 freerdp_settings_get_codecs_flags ( const rdpSettings *  settings)
Here is the caller graph for this function:

◆ freerdp_settings_get_pointer()

const void* freerdp_settings_get_pointer ( const rdpSettings *  settings,
size_t  id 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_settings_get_pointer_array()

const void* freerdp_settings_get_pointer_array ( const rdpSettings *  settings,
size_t  id,
size_t  offset 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_settings_get_pointer_array_writable()

void* freerdp_settings_get_pointer_array_writable ( const rdpSettings *  settings,
size_t  id,
size_t  offset 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_settings_set_pointer_array()

BOOL freerdp_settings_set_pointer_array ( rdpSettings *  settings,
size_t  id,
size_t  offset,
const void *  data 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_settings_set_pointer_len()

BOOL freerdp_settings_set_pointer_len ( rdpSettings *  settings,
size_t  id,
const void *  data,
size_t  len 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_settings_set_pointer_len_()

static BOOL freerdp_settings_set_pointer_len_ ( rdpSettings *  settings,
size_t  id,
SSIZE_T  lenId,
const void *  data,
size_t  len,
size_t  size 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_settings_set_value_for_name()

BOOL freerdp_settings_set_value_for_name ( rdpSettings *  settings,
const char *  name,
const char *  value 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_static_channel_clone()

ADDIN_ARGV* freerdp_static_channel_clone ( ADDIN_ARGV *  channel)
Here is the call graph for this function:

◆ freerdp_static_channel_collection_add()

BOOL freerdp_static_channel_collection_add ( rdpSettings *  settings,
ADDIN_ARGV *  channel 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_static_channel_collection_del()

BOOL freerdp_static_channel_collection_del ( rdpSettings *  settings,
const char *  name 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_static_channel_collection_find()

ADDIN_ARGV* freerdp_static_channel_collection_find ( rdpSettings *  settings,
const char *  name 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_static_channel_collection_free()

void freerdp_static_channel_collection_free ( rdpSettings *  settings)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_target_net_addresses_free()

void freerdp_target_net_addresses_free ( rdpSettings *  settings)
Here is the caller graph for this function:

◆ freerdp_update_gateway_usage_method()

void freerdp_update_gateway_usage_method ( rdpSettings *  settings,
UINT32  GatewayEnabled,
UINT32  GatewayBypassLocal 
)
Here is the call graph for this function:

◆ parsing_fail()

static BOOL parsing_fail ( const char *  key,
const char *  type,
const char *  value 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ value_to_int()

static BOOL value_to_int ( const char *  value,
LONGLONG *  result,
LONGLONG  min,
LONGLONG  max 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ value_to_uint()

static BOOL value_to_uint ( const char *  value,
ULONGLONG *  result,
ULONGLONG  min,
ULONGLONG  max 
)
static
Here is the call graph for this function:
Here is the caller graph for this function: