FreeRDP
|
This is the FreeRDP settings module. More...
Data Structures | |
struct | TARGET_NET_ADDRESS |
struct | ARC_CS_PRIVATE_PACKET |
struct | ARC_SC_PRIVATE_PACKET |
struct | ADDIN_ARGV |
struct | rdp_ext_set |
struct | BITMAP_CACHE_CELL_INFO |
struct | BITMAP_CACHE_V2_CELL_INFO |
struct | GLYPH_CACHE_DEFINITION |
struct | MONITOR_DEF |
struct | MONITOR_ATTRIBUTES |
struct | rdpMonitor |
struct | RDPDR_DEVICE |
struct | RDPDR_DRIVE |
struct | RDPDR_PRINTER |
struct | RDPDR_SMARTCARD |
struct | RDPDR_SERIAL |
struct | RDPDR_PARALLEL |
struct | rdpSettings |
Macros | |
#define | FREERDP_SETTINGS_SERVER_MODE 0x00000001 |
#define | FREERDP_SETTINGS_REMOTE_MODE 0x00000002 |
#define | SURFCMDS_SET_SURFACE_BITS 0x00000002 /** @since version 3.7.0 */ |
#define | SURFCMDS_FRAME_MARKER 0x00000010 /** @since version 3.7.0 */ |
#define | SURFCMDS_STREAM_SURFACE_BITS 0x00000040 /** @since version 3.7.0 */ |
#define | RAIL_LEVEL_SUPPORTED 0x00000001 |
#define | RAIL_LEVEL_DOCKED_LANGBAR_SUPPORTED 0x00000002 |
#define | RAIL_LEVEL_SHELL_INTEGRATION_SUPPORTED 0x00000004 |
#define | RAIL_LEVEL_LANGUAGE_IME_SYNC_SUPPORTED 0x00000008 |
#define | RAIL_LEVEL_SERVER_TO_CLIENT_IME_SYNC_SUPPORTED 0x00000010 |
#define | RAIL_LEVEL_HIDE_MINIMIZED_APPS_SUPPORTED 0x00000020 |
#define | RAIL_LEVEL_WINDOW_CLOAKING_SUPPORTED 0x00000040 |
#define | RAIL_LEVEL_HANDSHAKE_EX_SUPPORTED 0x00000080 |
#define | PERF_FLAG_NONE 0x00000000 |
#define | PERF_DISABLE_WALLPAPER 0x00000001 |
#define | PERF_DISABLE_FULLWINDOWDRAG 0x00000002 |
#define | PERF_DISABLE_MENUANIMATIONS 0x00000004 |
#define | PERF_DISABLE_THEMING 0x00000008 |
#define | PERF_DISABLE_CURSOR_SHADOW 0x00000020 |
#define | PERF_DISABLE_CURSORSETTINGS 0x00000040 |
#define | PERF_ENABLE_FONT_SMOOTHING 0x00000080 |
#define | PERF_ENABLE_DESKTOP_COMPOSITION 0x00000100 |
#define | CONNECTION_TYPE_INVALID |
#define | CONNECTION_TYPE_MODEM 0x01 |
#define | CONNECTION_TYPE_BROADBAND_LOW 0x02 |
#define | CONNECTION_TYPE_SATELLITE 0x03 |
#define | CONNECTION_TYPE_BROADBAND_HIGH 0x04 |
#define | CONNECTION_TYPE_WAN 0x05 |
#define | CONNECTION_TYPE_LAN 0x06 |
#define | CONNECTION_TYPE_AUTODETECT 0x07 |
#define | CS_CORE 0xC001 |
#define | CS_SECURITY 0xC002 |
#define | CS_NET 0xC003 |
#define | CS_CLUSTER 0xC004 |
#define | CS_MONITOR 0xC005 |
#define | CS_MCS_MSGCHANNEL 0xC006 |
#define | CS_MONITOR_EX 0xC008 |
#define | CS_UNUSED1 0xC00C |
#define | CS_MULTITRANSPORT 0xC00A |
#define | SC_CORE 0x0C01 |
#define | SC_SECURITY 0x0C02 |
#define | SC_NET 0x0C03 |
#define | SC_MCS_MSGCHANNEL 0x0C04 |
#define | SC_MULTITRANSPORT 0x0C08 |
#define | RNS_UD_COLOR_4BPP 0xCA00 |
#define | RNS_UD_COLOR_8BPP 0xCA01 |
#define | RNS_UD_COLOR_16BPP_555 0xCA02 |
#define | RNS_UD_COLOR_16BPP_565 0xCA03 |
#define | RNS_UD_COLOR_24BPP 0xCA04 |
#define | RNS_UD_SAS_DEL 0xAA03 |
#define | RNS_UD_24BPP_SUPPORT 0x0001 |
#define | RNS_UD_16BPP_SUPPORT 0x0002 |
#define | RNS_UD_15BPP_SUPPORT 0x0004 |
#define | RNS_UD_32BPP_SUPPORT 0x0008 |
#define | AUDIO_MODE_REDIRECT 0 /* Bring to this computer */ |
#define | AUDIO_MODE_PLAY_ON_SERVER 1 /* Leave at remote computer */ |
#define | AUDIO_MODE_NONE 2 /* Do not play */ |
#define | RNS_UD_CS_SUPPORT_ERRINFO_PDU 0x0001 |
#define | RNS_UD_CS_WANT_32BPP_SESSION 0x0002 |
#define | RNS_UD_CS_SUPPORT_STATUSINFO_PDU 0x0004 |
#define | RNS_UD_CS_STRONG_ASYMMETRIC_KEYS 0x0008 |
#define | RNS_UD_CS_RELATIVE_MOUSE_INPUT 0x0010 |
#define | RNS_UD_CS_VALID_CONNECTION_TYPE 0x0020 |
#define | RNS_UD_CS_SUPPORT_MONITOR_LAYOUT_PDU 0x0040 |
#define | RNS_UD_CS_SUPPORT_NETCHAR_AUTODETECT 0x0080 |
#define | RNS_UD_CS_SUPPORT_DYNVC_GFX_PROTOCOL 0x0100 |
#define | RNS_UD_CS_SUPPORT_DYNAMIC_TIME_ZONE 0x0200 |
#define | RNS_UD_CS_SUPPORT_HEARTBEAT_PDU 0x0400 |
#define | RNS_UD_CS_SUPPORT_SKIP_CHANNELJOIN 0x0800 |
#define | RNS_UD_SC_EDGE_ACTIONS_SUPPORTED_V1 0x00000001 |
#define | RNS_UD_SC_DYNAMIC_DST_SUPPORTED 0x00000002 |
#define | RNS_UD_SC_EDGE_ACTIONS_SUPPORTED_V2 0x00000004 |
#define | RNS_UD_SC_SKIP_CHANNELJOIN_SUPPORTED 0x00000008 |
#define | REDIRECTION_SUPPORTED 0x00000001 |
#define | REDIRECTED_SESSIONID_FIELD_VALID 0x00000002 |
#define | REDIRECTED_SMARTCARD 0x00000040 |
#define | ServerSessionRedirectionVersionMask 0x0000003c |
#define | REDIRECTION_VERSION1 0x00 |
#define | REDIRECTION_VERSION2 0x01 |
#define | REDIRECTION_VERSION3 0x02 |
#define | REDIRECTION_VERSION4 0x03 |
#define | REDIRECTION_VERSION5 0x04 |
#define | REDIRECTION_VERSION6 0x05 |
#define | MONITOR_PRIMARY 0x00000001 |
#define | ENCRYPTION_METHOD_NONE 0x00000000 |
#define | ENCRYPTION_METHOD_40BIT 0x00000001 |
#define | ENCRYPTION_METHOD_128BIT 0x00000002 |
#define | ENCRYPTION_METHOD_56BIT 0x00000008 |
#define | ENCRYPTION_METHOD_FIPS 0x00000010 |
#define | ENCRYPTION_LEVEL_NONE 0x00000000 |
#define | ENCRYPTION_LEVEL_LOW 0x00000001 |
#define | ENCRYPTION_LEVEL_CLIENT_COMPATIBLE 0x00000002 |
#define | ENCRYPTION_LEVEL_HIGH 0x00000003 |
#define | ENCRYPTION_LEVEL_FIPS 0x00000004 |
#define | TRANSPORT_TYPE_UDP_FECR 0x00000001 |
#define | TRANSPORT_TYPE_UDP_FECL 0x00000004 |
#define | TRANSPORT_TYPE_UDP_PREFERRED 0x00000100 |
#define | SOFTSYNC_TCP_TO_UDP 0x00000200 |
#define | CHANNEL_OPTION_INITIALIZED 0x80000000 |
#define | CHANNEL_OPTION_ENCRYPT_RDP 0x40000000 |
#define | CHANNEL_OPTION_ENCRYPT_SC 0x20000000 |
#define | CHANNEL_OPTION_ENCRYPT_CS 0x10000000 |
#define | CHANNEL_OPTION_PRI_HIGH 0x08000000 |
#define | CHANNEL_OPTION_PRI_MED 0x04000000 |
#define | CHANNEL_OPTION_PRI_LOW 0x02000000 |
#define | CHANNEL_OPTION_COMPRESS_RDP 0x00800000 |
#define | CHANNEL_OPTION_COMPRESS 0x00400000 |
#define | CHANNEL_OPTION_SHOW_PROTOCOL 0x00200000 |
#define | CHANNEL_REMOTE_CONTROL_PERSISTENT 0x00100000 |
#define | VCCAPS_NO_COMPR 0x00000000 |
#define | VCCAPS_COMPR_SC 0x00000001 |
#define | VCCAPS_COMPR_CS_8K 0x00000002 |
#define | LARGE_POINTER_FLAG_96x96 0x00000001 |
#define | LARGE_POINTER_FLAG_384x384 0x00000002 |
#define | AUTO_RECONNECT_VERSION_1 0x00000001 |
#define | MSTSC_COOKIE_MAX_LENGTH 9 |
#define | DEFAULT_COOKIE_MAX_LENGTH 0xFF |
#define | TS_CAPS_PROTOCOLVERSION 0x200 /** @since version 3.6.0 */ |
#define | NEG_DSTBLT_INDEX 0x00 |
#define | NEG_PATBLT_INDEX 0x01 |
#define | NEG_SCRBLT_INDEX 0x02 |
#define | NEG_MEMBLT_INDEX 0x03 |
#define | NEG_MEM3BLT_INDEX 0x04 |
#define | NEG_ATEXTOUT_INDEX 0x05 |
#define | NEG_AEXTTEXTOUT_INDEX 0x06 /* Must be ignored */ |
#define | NEG_DRAWNINEGRID_INDEX 0x07 /* Must be ignored */ |
#define | NEG_LINETO_INDEX 0x08 |
#define | NEG_MULTI_DRAWNINEGRID_INDEX 0x09 |
#define | NEG_OPAQUE_RECT_INDEX 0x0A /* Must be ignored */ |
#define | NEG_SAVEBITMAP_INDEX 0x0B |
#define | NEG_WTEXTOUT_INDEX 0x0C /* Must be ignored */ |
#define | NEG_MEMBLT_V2_INDEX 0x0D /* Must be ignored */ |
#define | NEG_MEM3BLT_V2_INDEX 0x0E /* Must be ignored */ |
#define | NEG_MULTIDSTBLT_INDEX 0x0F |
#define | NEG_MULTIPATBLT_INDEX 0x10 |
#define | NEG_MULTISCRBLT_INDEX 0x11 |
#define | NEG_MULTIOPAQUERECT_INDEX 0x12 |
#define | NEG_FAST_INDEX_INDEX 0x13 |
#define | NEG_POLYGON_SC_INDEX 0x14 |
#define | NEG_POLYGON_CB_INDEX 0x15 |
#define | NEG_POLYLINE_INDEX 0x16 |
#define | NEG_UNUSED23_INDEX 0x17 /* Must be ignored */ |
#define | NEG_FAST_GLYPH_INDEX 0x18 |
#define | NEG_ELLIPSE_SC_INDEX 0x19 |
#define | NEG_ELLIPSE_CB_INDEX 0x1A |
#define | NEG_GLYPH_INDEX_INDEX 0x1B |
#define | NEG_GLYPH_WEXTTEXTOUT_INDEX 0x1C /* Must be ignored */ |
#define | NEG_GLYPH_WLONGTEXTOUT_INDEX 0x1D /* Must be ignored */ |
#define | NEG_GLYPH_WLONGEXTTEXTOUT_INDEX 0x1E /* Must be ignored */ |
#define | NEG_UNUSED31_INDEX 0x1F /* Must be ignored */ |
#define | GLYPH_SUPPORT_NONE 0x0000 |
#define | GLYPH_SUPPORT_PARTIAL 0x0001 |
#define | GLYPH_SUPPORT_FULL 0x0002 |
#define | GLYPH_SUPPORT_ENCODE 0x0003 |
#define | TSC_PROXY_MODE_NONE_DIRECT 0x0 |
#define | TSC_PROXY_MODE_DIRECT 0x1 |
#define | TSC_PROXY_MODE_DETECT 0x2 |
#define | TSC_PROXY_MODE_DEFAULT 0x3 |
#define | TSC_PROXY_MODE_NONE_DETECT 0x4 |
#define | TSC_PROXY_CREDS_MODE_USERPASS 0x0 |
#define | TSC_PROXY_CREDS_MODE_SMARTCARD 0x1 |
#define | TSC_PROXY_CREDS_MODE_ANY 0x2 |
#define | KEYBOARD_HOOK_LOCAL 0 |
#define | KEYBOARD_HOOK_REMOTE 1 |
#define | KEYBOARD_HOOK_FULLSCREEN_ONLY 2 |
#define | LOGON_MSG_DISCONNECT_REFUSED 0xFFFFFFF9 |
#define | LOGON_MSG_NO_PERMISSION 0xFFFFFFFA |
#define | LOGON_MSG_BUMP_OPTIONS 0xFFFFFFFB |
#define | LOGON_MSG_RECONNECT_OPTIONS 0xFFFFFFFC |
#define | LOGON_MSG_SESSION_TERMINATE 0xFFFFFFFD |
#define | LOGON_MSG_SESSION_CONTINUE 0xFFFFFFFE |
#define | LOGON_FAILED_BAD_PASSWORD 0x00000000 |
#define | LOGON_FAILED_UPDATE_PASSWORD 0x00000001 |
#define | LOGON_FAILED_OTHER 0x00000002 |
#define | LOGON_WARNING 0x00000003 |
#define | STATUS_FINDING_DESTINATION 0x00000401 |
#define | STATUS_LOADING_DESTINATION 0x00000402 |
#define | STATUS_BRINGING_SESSION_ONLINE 0x00000403 |
#define | STATUS_REDIRECTING_TO_DESTINATION 0x00000404 |
#define | STATUS_VM_LOADING 0x00000501 |
#define | STATUS_VM_WAKING 0x00000502 |
#define | STATUS_VM_BOOTING 0x00000503 |
#define | PACKET_COMPR_TYPE_8K 0x00 |
#define | PACKET_COMPR_TYPE_64K 0x01 |
#define | PACKET_COMPR_TYPE_RDP6 0x02 |
#define | PACKET_COMPR_TYPE_RDP61 0x03 |
#define | PACKET_COMPR_TYPE_RDP8 0x04 |
#define | ORIENTATION_LANDSCAPE 0 |
#define | ORIENTATION_PORTRAIT 90 |
#define | ORIENTATION_LANDSCAPE_FLIPPED 180 |
#define | ORIENTATION_PORTRAIT_FLIPPED 270 |
#define | CLIPRDR_FLAG_LOCAL_TO_REMOTE 0x01 |
#define | CLIPRDR_FLAG_LOCAL_TO_REMOTE_FILES 0x02 |
#define | CLIPRDR_FLAG_REMOTE_TO_LOCAL 0x10 |
#define | CLIPRDR_FLAG_REMOTE_TO_LOCAL_FILES 0x20 |
#define | CLIPRDR_FLAG_DEFAULT_MASK |
#define | RDPDR_DTYP_SERIAL 0x00000001 |
#define | RDPDR_DTYP_PARALLEL 0x00000002 |
#define | RDPDR_DTYP_PRINT 0x00000004 |
#define | RDPDR_DTYP_FILESYSTEM 0x00000008 |
#define | RDPDR_DTYP_SMARTCARD 0x00000020 |
#define | PROXY_TYPE_NONE 0 |
#define | PROXY_TYPE_HTTP 1 |
#define | PROXY_TYPE_SOCKS 2 |
#define | PROXY_TYPE_IGNORE 0xFFFF |
#define | THREADING_FLAGS_DISABLE_THREADS 0x00000001 |
#define | FREERDP_SETTINGS_SERVER_MODE 0x00000001 |
#define | SETTINGS_DEPRECATED(x) WINPR_DEPRECATED(x) |
Functions | |
FREERDP_API void | freerdp_settings_free (rdpSettings *settings) |
Free a settings struct with all data in it. More... | |
FREERDP_API rdpSettings * | freerdp_settings_new (DWORD flags) |
creates a new setting struct More... | |
FREERDP_API rdpSettings * | freerdp_settings_clone (const rdpSettings *settings) |
Creates a deep copy of settings. More... | |
FREERDP_API BOOL | freerdp_settings_copy (rdpSettings *dst, const rdpSettings *src) |
Deep copies settings from src to dst. More... | |
FREERDP_API BOOL | freerdp_settings_copy_item (rdpSettings *dst, const rdpSettings *src, SSIZE_T id) |
copies one setting identified by id from src to dst More... | |
FREERDP_API void | freerdp_settings_dump (wLog *log, DWORD level, const rdpSettings *settings) |
Dumps the contents of a settings struct to a WLog logger. More... | |
FREERDP_API BOOL | freerdp_settings_print_diff (wLog *log, DWORD level, const rdpSettings *src, const rdpSettings *other) |
Dumps the difference between two settings structs to a WLog. More... | |
FREERDP_API void | freerdp_addin_argv_free (ADDIN_ARGV *args) |
FREERDP_API ADDIN_ARGV * | freerdp_addin_argv_new (size_t argc, const char *const argv[]) |
FREERDP_API ADDIN_ARGV * | freerdp_addin_argv_clone (const ADDIN_ARGV *args) |
FREERDP_API BOOL | freerdp_addin_argv_add_argument (ADDIN_ARGV *args, const char *argument) |
FREERDP_API BOOL | freerdp_addin_argv_add_argument_ex (ADDIN_ARGV *args, const char *argument, size_t len) |
FREERDP_API BOOL | freerdp_addin_argv_del_argument (ADDIN_ARGV *args, const char *argument) |
FREERDP_API int | freerdp_addin_set_argument (ADDIN_ARGV *args, const char *argument) |
FREERDP_API int | freerdp_addin_replace_argument (ADDIN_ARGV *args, const char *previous, const char *argument) |
FREERDP_API int | freerdp_addin_set_argument_value (ADDIN_ARGV *args, const char *option, const char *value) |
FREERDP_API int | freerdp_addin_replace_argument_value (ADDIN_ARGV *args, const char *previous, const char *option, const char *value) |
FREERDP_API BOOL | freerdp_device_collection_add (rdpSettings *settings, RDPDR_DEVICE *device) |
FREERDP_API BOOL | freerdp_device_collection_del (rdpSettings *settings, const RDPDR_DEVICE *device) |
Removed a device from the settings, returns ownership of the allocated device to caller. More... | |
FREERDP_API RDPDR_DEVICE * | freerdp_device_collection_find (rdpSettings *settings, const char *name) |
FREERDP_API RDPDR_DEVICE * | freerdp_device_collection_find_type (rdpSettings *settings, UINT32 type) |
FREERDP_API void | freerdp_device_free (RDPDR_DEVICE *device) |
FREERDP_API RDPDR_DEVICE * | freerdp_device_new (UINT32 Type, size_t count, const char *const args[]) |
FREERDP_API RDPDR_DEVICE * | freerdp_device_clone (const RDPDR_DEVICE *device) |
FREERDP_API BOOL | freerdp_device_equal (const RDPDR_DEVICE *one, const RDPDR_DEVICE *other) |
FREERDP_API void | freerdp_device_collection_free (rdpSettings *settings) |
FREERDP_API BOOL | freerdp_static_channel_collection_add (rdpSettings *settings, ADDIN_ARGV *channel) |
FREERDP_API BOOL | freerdp_static_channel_collection_del (rdpSettings *settings, const char *name) |
FREERDP_API ADDIN_ARGV * | freerdp_static_channel_collection_find (rdpSettings *settings, const char *name) |
FREERDP_API void | freerdp_static_channel_collection_free (rdpSettings *settings) |
FREERDP_API BOOL | freerdp_dynamic_channel_collection_add (rdpSettings *settings, ADDIN_ARGV *channel) |
FREERDP_API BOOL | freerdp_dynamic_channel_collection_del (rdpSettings *settings, const char *name) |
FREERDP_API ADDIN_ARGV * | freerdp_dynamic_channel_collection_find (const rdpSettings *settings, const char *name) |
FREERDP_API void | freerdp_dynamic_channel_collection_free (rdpSettings *settings) |
FREERDP_API void | freerdp_capability_buffer_free (rdpSettings *settings) |
FREERDP_API BOOL | freerdp_capability_buffer_copy (rdpSettings *settings, const rdpSettings *src) |
FREERDP_API void | freerdp_server_license_issuers_free (rdpSettings *settings) |
FREERDP_API BOOL | freerdp_server_license_issuers_copy (rdpSettings *settings, char **addresses, UINT32 count) |
FREERDP_API void | freerdp_target_net_addresses_free (rdpSettings *settings) |
FREERDP_API BOOL | freerdp_target_net_addresses_copy (rdpSettings *settings, char **addresses, UINT32 count) |
FREERDP_API void | freerdp_performance_flags_make (rdpSettings *settings) |
FREERDP_API void | freerdp_performance_flags_split (rdpSettings *settings) |
FREERDP_API BOOL | freerdp_set_gateway_usage_method (rdpSettings *settings, UINT32 GatewayUsageMethod) |
FREERDP_API void | freerdp_update_gateway_usage_method (rdpSettings *settings, UINT32 GatewayEnabled, UINT32 GatewayBypassLocal) |
FREERDP_API BOOL | freerdp_settings_are_valid (const rdpSettings *settings) |
Returns TRUE if settings are in a valid state, FALSE otherwise. More... | |
FREERDP_API BOOL | freerdp_settings_get_bool (const rdpSettings *settings, FreeRDP_Settings_Keys_Bool id) |
Returns a boolean settings value. More... | |
FREERDP_API BOOL | freerdp_settings_set_bool (rdpSettings *settings, FreeRDP_Settings_Keys_Bool id, BOOL param) |
Sets a BOOL settings value. More... | |
FREERDP_API INT16 | freerdp_settings_get_int16 (const rdpSettings *settings, FreeRDP_Settings_Keys_Int16 id) |
Returns a INT16 settings value. More... | |
FREERDP_API BOOL | freerdp_settings_set_int16 (rdpSettings *settings, FreeRDP_Settings_Keys_Int16 id, INT16 param) |
Sets a INT16 settings value. More... | |
FREERDP_API UINT16 | freerdp_settings_get_uint16 (const rdpSettings *settings, FreeRDP_Settings_Keys_UInt16 id) |
Returns a UINT16 settings value. More... | |
FREERDP_API BOOL | freerdp_settings_set_uint16 (rdpSettings *settings, FreeRDP_Settings_Keys_UInt16 id, UINT16 param) |
Sets a UINT16 settings value. More... | |
FREERDP_API INT32 | freerdp_settings_get_int32 (const rdpSettings *settings, FreeRDP_Settings_Keys_Int32 id) |
Returns a INT32 settings value. More... | |
FREERDP_API BOOL | freerdp_settings_set_int32 (rdpSettings *settings, FreeRDP_Settings_Keys_Int32 id, INT32 param) |
Sets a INT32 settings value. More... | |
FREERDP_API UINT32 | freerdp_settings_get_uint32 (const rdpSettings *settings, FreeRDP_Settings_Keys_UInt32 id) |
Returns a UINT32 settings value. More... | |
FREERDP_API BOOL | freerdp_settings_set_uint32 (rdpSettings *settings, FreeRDP_Settings_Keys_UInt32 id, UINT32 param) |
Sets a UINT32 settings value. More... | |
FREERDP_API INT64 | freerdp_settings_get_int64 (const rdpSettings *settings, FreeRDP_Settings_Keys_Int64 id) |
Returns a INT64 settings value. More... | |
FREERDP_API BOOL | freerdp_settings_set_int64 (rdpSettings *settings, FreeRDP_Settings_Keys_Int64 id, INT64 param) |
Sets a INT64 settings value. More... | |
FREERDP_API UINT64 | freerdp_settings_get_uint64 (const rdpSettings *settings, FreeRDP_Settings_Keys_UInt64 id) |
Returns a UINT64 settings value. More... | |
FREERDP_API BOOL | freerdp_settings_set_uint64 (rdpSettings *settings, FreeRDP_Settings_Keys_UInt64 id, UINT64 param) |
Sets a UINT64 settings value. More... | |
FREERDP_API const char * | freerdp_settings_get_string (const rdpSettings *settings, FreeRDP_Settings_Keys_String id) |
Returns a immutable string settings value. More... | |
FREERDP_API char * | freerdp_settings_get_string_writable (rdpSettings *settings, FreeRDP_Settings_Keys_String id) |
Returns a string settings value. More... | |
FREERDP_API BOOL | freerdp_settings_set_string_len (rdpSettings *settings, FreeRDP_Settings_Keys_String id, const char *param, size_t len) |
Sets a string settings value. The param is copied. More... | |
FREERDP_API BOOL | freerdp_settings_set_string (rdpSettings *settings, FreeRDP_Settings_Keys_String id, const char *param) |
Sets a string settings value. The param is copied. More... | |
FREERDP_API BOOL | freerdp_settings_append_string (rdpSettings *settings, FreeRDP_Settings_Keys_String id, const char *separator, const char *param) |
appends a string to a settings value. The param is copied. If the initial value of the setting was not empty, More... | |
FREERDP_API BOOL | freerdp_settings_set_string_from_utf16 (rdpSettings *settings, FreeRDP_Settings_Keys_String id, const WCHAR *param) |
Sets a string settings value. The param is converted to UTF-8 and the copy stored. More... | |
FREERDP_API BOOL | freerdp_settings_set_string_from_utf16N (rdpSettings *settings, FreeRDP_Settings_Keys_String id, const WCHAR *param, size_t length) |
Sets a string settings value. The param is converted to UTF-8 and the copy stored. More... | |
FREERDP_API WCHAR * | freerdp_settings_get_string_as_utf16 (const rdpSettings *settings, FreeRDP_Settings_Keys_String id, size_t *pCharLen) |
Return an allocated UTF16 string. More... | |
FREERDP_API const void * | freerdp_settings_get_pointer (const rdpSettings *settings, FreeRDP_Settings_Keys_Pointer id) |
Returns a immutable pointer settings value. More... | |
FREERDP_API void * | freerdp_settings_get_pointer_writable (rdpSettings *settings, FreeRDP_Settings_Keys_Pointer id) |
Returns a mutable pointer settings value. More... | |
FREERDP_API BOOL | freerdp_settings_set_pointer (rdpSettings *settings, FreeRDP_Settings_Keys_Pointer id, const void *data) |
Set a pointer to value data. More... | |
FREERDP_API BOOL | freerdp_settings_set_pointer_len (rdpSettings *settings, FreeRDP_Settings_Keys_Pointer id, const void *data, size_t len) |
Set a pointer to value data. More... | |
FREERDP_API const void * | freerdp_settings_get_pointer_array (const rdpSettings *settings, FreeRDP_Settings_Keys_Pointer id, size_t offset) |
FREERDP_API void * | freerdp_settings_get_pointer_array_writable (const rdpSettings *settings, FreeRDP_Settings_Keys_Pointer id, size_t offset) |
FREERDP_API BOOL | freerdp_settings_set_pointer_array (rdpSettings *settings, FreeRDP_Settings_Keys_Pointer id, size_t offset, const void *data) |
FREERDP_API BOOL | freerdp_settings_set_value_for_name (rdpSettings *settings, const char *name, const char *value) |
FREERDP_API SSIZE_T | freerdp_settings_get_key_for_name (const char *value) |
Get a key index for the name string of that key. More... | |
FREERDP_API SSIZE_T | freerdp_settings_get_type_for_name (const char *value) |
Get a key type for the name string of that key. More... | |
FREERDP_API SSIZE_T | freerdp_settings_get_type_for_key (SSIZE_T key) |
Get a key type for the key index. More... | |
FREERDP_API const char * | freerdp_settings_get_type_name_for_key (SSIZE_T key) |
Returns the type name for a key. More... | |
FREERDP_API const char * | freerdp_settings_get_type_name_for_type (SSIZE_T type) |
Returns the type name for a type. More... | |
FREERDP_API const char * | freerdp_settings_get_name_for_key (SSIZE_T key) |
Returns the type name for a key. More... | |
FREERDP_API UINT32 | freerdp_settings_get_codecs_flags (const rdpSettings *settings) |
helper function to get a mask of supported codec flags. More... | |
FREERDP_API BOOL | freerdp_settings_update_from_caps (rdpSettings *settings, const BYTE *capsFlags, const BYTE **capsData, const UINT32 *capsSizes, UINT32 capsCount, BOOL serverReceivedCaps) |
Parse capability data and apply to settings. More... | |
FREERDP_API const char * | freerdp_settings_get_server_name (const rdpSettings *settings) |
A helper function to return the correct server name. More... | |
FREERDP_API const char * | freerdp_rail_support_flags_to_string (UINT32 flags, char *buffer, size_t length) |
Returns a stringified representation of RAIL support flags. More... | |
FREERDP_API const char * | freerdp_rdp_version_string (UINT32 version) |
Returns a stringified representation of the RDP protocol version. More... | |
FREERDP_API const char * | freerdp_rdpdr_dtyp_string (UINT32 type) |
Returns a string representation of RDPDR_DTYP_*. More... | |
FREERDP_API const char * | freerdp_encryption_level_string (UINT32 EncryptionLevel) |
FREERDP_API const char * | freerdp_encryption_methods_string (UINT32 EncryptionLevel, char *buffer, size_t size) |
FREERDP_API const char * | freerdp_supported_color_depths_string (UINT16 mask, char *buffer, size_t size) |
returns a string representation of RNS_UD_XXBPP_SUPPORT values More... | |
FREERDP_API char * | freerdp_settings_get_config_path (void) |
return the configuration directory for the library More... | |
This is the FreeRDP settings module.
FreeRDP: A Remote Desktop Protocol Implementation RDP Settings
Copyright 2009-2011 Jay Sorg Copyright 2010-2012 Marc-Andre Moreau marca Copyright 2016 Armin Novak ndre .more au@g mail. comarmin Copyright 2023 Armin Novak .nov ak@gm ail. comanova Copyright 2023 Thincast Technologies GmbH k@th incas t.co m
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.
Settings are used to store configuration data for an RDP connection. There are 3 different settings for each client and server:
The lifetime of the settings is as follows:
So, when accessing the settings always ensure to know which one you are operating on! (this is especially important for the proxy where you have a RDP client and RDP server in the same application context)
FreeRDP: A Remote Desktop Protocol Implementation RDP Settings
Copyright 2009-2011 Jay Sorg Copyright 2010-2012 Marc-Andre Moreau marca Copyright 2016 Armin Novak ndre .more au@g mail. comarmin Copyright 2023 Armin Novak .nov ak@gm ail. comanova Copyright 2023 Thincast Technologies GmbH k@th incas t.co m
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.
FreeRDP: A Remote Desktop Protocol Implementation Internal settings header for functions not exported
Copyright 2018 Armin Novak armin Copyright 2018 Thincast Technologies GmbH .nov ak@th inca st.co m
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.
struct TARGET_NET_ADDRESS |
Definition at line 290 of file settings_types.h.
Data Fields | ||
---|---|---|
LPWSTR | Address | |
UINT32 | Length |
struct ARC_CS_PRIVATE_PACKET |
Definition at line 342 of file settings_types.h.
Data Fields | ||
---|---|---|
UINT32 | cbLen | |
UINT32 | logonId | |
BYTE | securityVerifier[16] | |
UINT32 | version |
struct ARC_SC_PRIVATE_PACKET |
Definition at line 351 of file settings_types.h.
Data Fields | ||
---|---|---|
BYTE | arcRandomBits[16] | |
UINT32 | cbLen | |
UINT32 | logonId | |
UINT32 | version |
struct ADDIN_ARGV |
Definition at line 361 of file settings_types.h.
Data Fields | ||
---|---|---|
int | argc | |
char ** | argv |
struct rdp_ext_set |
Definition at line 369 of file settings_types.h.
Data Fields | ||
---|---|---|
void * | data | |
char | name[256] |
struct BITMAP_CACHE_CELL_INFO |
Definition at line 377 of file settings_types.h.
Data Fields | ||
---|---|---|
UINT16 | maxSize | |
UINT16 | numEntries |
struct BITMAP_CACHE_V2_CELL_INFO |
Definition at line 383 of file settings_types.h.
Data Fields | ||
---|---|---|
UINT32 | numEntries | |
BOOL | persistent |
struct GLYPH_CACHE_DEFINITION |
Definition at line 391 of file settings_types.h.
Data Fields | ||
---|---|---|
UINT16 | cacheEntries | |
UINT16 | cacheMaximumCellSize |
struct MONITOR_DEF |
Definition at line 399 of file settings_types.h.
Data Fields | ||
---|---|---|
INT32 | bottom | |
UINT32 | flags | |
INT32 | left | |
INT32 | right | |
INT32 | top |
struct MONITOR_ATTRIBUTES |
Definition at line 408 of file settings_types.h.
Data Fields | ||
---|---|---|
UINT32 | desktopScaleFactor | |
UINT32 | deviceScaleFactor | |
UINT32 | orientation | |
UINT32 | physicalHeight | |
UINT32 | physicalWidth |
struct rdpMonitor |
Definition at line 417 of file settings_types.h.
Data Fields | ||
---|---|---|
MONITOR_ATTRIBUTES | attributes | |
INT32 | height | |
UINT32 | is_primary | |
UINT32 | orig_screen | |
INT32 | width | |
INT32 | x | |
INT32 | y |
struct RDPDR_DEVICE |
Definition at line 435 of file settings_types.h.
Data Fields | ||
---|---|---|
UINT32 | Id | |
char * | Name | |
UINT32 | Type |
struct RDPDR_DRIVE |
Definition at line 442 of file settings_types.h.
Data Fields | ||
---|---|---|
BOOL | automount | |
RDPDR_DEVICE | device | |
char * | Path |
struct RDPDR_PRINTER |
Definition at line 449 of file settings_types.h.
Data Fields | ||
---|---|---|
RDPDR_DEVICE | device | |
char * | DriverName | |
BOOL | IsDefault |
struct RDPDR_SMARTCARD |
Definition at line 456 of file settings_types.h.
Data Fields | ||
---|---|---|
RDPDR_DEVICE | device |
struct RDPDR_SERIAL |
Definition at line 461 of file settings_types.h.
Data Fields | ||
---|---|---|
RDPDR_DEVICE | device | |
char * | Driver | |
char * | Path | |
char * | Permissive |
struct RDPDR_PARALLEL |
Definition at line 469 of file settings_types.h.
Data Fields | ||
---|---|---|
RDPDR_DEVICE | device | |
char * | Path |
#define CLIPRDR_FLAG_DEFAULT_MASK |
Definition at line 337 of file settings_types.h.
#define CONNECTION_TYPE_INVALID |
Definition at line 74 of file settings_types.h.
#define FREERDP_SETTINGS_SERVER_MODE 0x00000001 |
rdpSettings creation flags
Definition at line 80 of file include/freerdp/settings.h.
#define FREERDP_SETTINGS_SERVER_MODE 0x00000001 |
rdpSettings creation flags
Definition at line 499 of file settings_types.h.
FREERDP_API BOOL freerdp_device_collection_del | ( | rdpSettings * | settings, |
const RDPDR_DEVICE * | device | ||
) |
Removed a device from the settings, returns ownership of the allocated device to caller.
settings | the settings to remove the device from |
device | the device to remove |
Definition at line 240 of file common/settings.c.
FREERDP_API const char* freerdp_rail_support_flags_to_string | ( | UINT32 | flags, |
char * | buffer, | ||
size_t | length | ||
) |
Returns a stringified representation of RAIL support flags.
flags | The flags to stringify |
buffer | A pointer to the string buffer to write to |
length | The size of the string buffer |
Definition at line 1983 of file common/settings.c.
FREERDP_API const char* freerdp_rdp_version_string | ( | UINT32 | version | ) |
Returns a stringified representation of the RDP protocol version.
version | The RDP protocol version number. |
Definition at line 2043 of file common/settings.c.
FREERDP_API const char* freerdp_rdpdr_dtyp_string | ( | UINT32 | type | ) |
Returns a string representation of RDPDR_DTYP_*.
type | The integer of the RDPDR_DTYP_* to stringify |
Definition at line 2133 of file common/settings.c.
FREERDP_API 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
Definition at line 1018 of file common/settings.c.
References freerdp_settings_set_uint32().
FREERDP_API BOOL freerdp_settings_append_string | ( | rdpSettings * | settings, |
FreeRDP_Settings_Keys_String | id, | ||
const char * | separator, | ||
const char * | param | ||
) |
appends a string to a settings value. The param is copied. If the initial value of the setting was not empty,
is created
settings | A pointer to the settings to query, must not be NULL. |
id | The key to query |
separator | The separator string to use. May be NULL (no separator) |
param | The value to append |
Definition at line 2224 of file common/settings.c.
References freerdp_settings_get_string(), and freerdp_settings_set_string_len().
FREERDP_API BOOL freerdp_settings_are_valid | ( | const rdpSettings * | settings | ) |
Returns TRUE if settings are in a valid state, FALSE otherwise.
This function is meant to replace tideous return checks for freerdp_settings_set_* with a single check after these calls.
settings | the settings instance to check |
Definition at line 2244 of file common/settings.c.
FREERDP_API rdpSettings* freerdp_settings_clone | ( | const rdpSettings * | settings | ) |
Creates a deep copy of settings.
settings | A pointer to a settings struct to copy. May be NULL (returns NULL) |
Definition at line 1542 of file core/settings.c.
References freerdp_settings_copy(), and freerdp_settings_free().
FREERDP_API BOOL freerdp_settings_copy | ( | rdpSettings * | dst, |
const rdpSettings * | src | ||
) |
Deep copies settings from src to dst.
The function frees up all allocated data in dst before copying the data from src
dst | A pointer for the settings to copy data to. May be NULL (fails copy) |
src | A pointer to the settings to copy. May be NULL (fails copy) |
Definition at line 1487 of file core/settings.c.
Referenced by freerdp_settings_clone().
FREERDP_API BOOL freerdp_settings_copy_item | ( | rdpSettings * | dst, |
const rdpSettings * | src, | ||
SSIZE_T | id | ||
) |
copies one setting identified by id from src to dst
The function frees up all allocated data in dst before copying the data from src
dst | A pointer for the settings to copy data to. May be NULL (fails copy) |
src | A pointer to the settings to copy. May be NULL (fails copy) |
id | The settings identifier to copy |
Definition at line 429 of file settings_str.c.
References freerdp_settings_get_bool(), freerdp_settings_get_int16(), freerdp_settings_get_int32(), freerdp_settings_get_int64(), freerdp_settings_get_pointer(), freerdp_settings_get_string(), freerdp_settings_get_type_for_key(), freerdp_settings_get_uint16(), freerdp_settings_get_uint32(), freerdp_settings_get_uint64(), freerdp_settings_set_bool(), freerdp_settings_set_int16(), freerdp_settings_set_int32(), freerdp_settings_set_int64(), freerdp_settings_set_pointer(), freerdp_settings_set_string(), freerdp_settings_set_uint16(), freerdp_settings_set_uint32(), and freerdp_settings_set_uint64().
FREERDP_API void freerdp_settings_dump | ( | wLog * | log, |
DWORD | level, | ||
const rdpSettings * | settings | ||
) |
Dumps the contents of a settings struct to a WLog logger.
log | The logger to write to, must not be NULL |
level | The WLog level to use for the log entries |
settings | A pointer to the settings to dump. May be NULL. |
Definition at line 246 of file settings_str.c.
References freerdp_settings_get_bool(), freerdp_settings_get_int16(), freerdp_settings_get_int32(), freerdp_settings_get_int64(), freerdp_settings_get_pointer(), freerdp_settings_get_string(), freerdp_settings_get_uint16(), freerdp_settings_get_uint32(), and freerdp_settings_get_uint64().
FREERDP_API void freerdp_settings_free | ( | rdpSettings * | settings | ) |
Free a settings struct with all data in it.
settings | A pointer to the settings to free, May be NULL |
Definition at line 1238 of file core/settings.c.
Referenced by freerdp_settings_clone().
FREERDP_API BOOL freerdp_settings_get_bool | ( | const rdpSettings * | settings, |
FreeRDP_Settings_Keys_Bool | id | ||
) |
Returns a boolean settings value.
settings | A pointer to the settings to query, must not be NULL. |
id | The key to query |
Definition at line 54 of file settings_getters.c.
References freerdp_settings_get_name_for_key(), and freerdp_settings_get_type_name_for_key().
Referenced by freerdp_settings_copy_item(), freerdp_settings_dump(), freerdp_settings_print_diff(), and AppDelegate::rdpConnectError:.
FREERDP_API UINT32 freerdp_settings_get_codecs_flags | ( | const rdpSettings * | settings | ) |
helper function to get a mask of supported codec flags.
This function checks various settings to create a mask of supported codecs FreeRDP_CodecFlags defines the codecs
settings | the settings to check |
Definition at line 1837 of file common/settings.c.
FREERDP_API char* freerdp_settings_get_config_path | ( | void | ) |
return the configuration directory for the library
Definition at line 730 of file core/settings.c.
FREERDP_API INT16 freerdp_settings_get_int16 | ( | const rdpSettings * | settings, |
FreeRDP_Settings_Keys_Int16 | id | ||
) |
Returns a INT16 settings value.
settings | A pointer to the settings to query, must not be NULL. |
id | The key to query |
Definition at line 1574 of file settings_getters.c.
References freerdp_settings_get_name_for_key(), and freerdp_settings_get_type_name_for_key().
Referenced by freerdp_settings_copy_item(), freerdp_settings_dump(), and freerdp_settings_print_diff().
FREERDP_API INT32 freerdp_settings_get_int32 | ( | const rdpSettings * | settings, |
FreeRDP_Settings_Keys_Int32 | id | ||
) |
Returns a INT32 settings value.
settings | A pointer to the settings to query, must not be NULL. |
id | The key to query |
Definition at line 2534 of file settings_getters.c.
References freerdp_settings_get_name_for_key(), and freerdp_settings_get_type_name_for_key().
Referenced by freerdp_settings_copy_item(), freerdp_settings_dump(), and freerdp_settings_print_diff().
FREERDP_API INT64 freerdp_settings_get_int64 | ( | const rdpSettings * | settings, |
FreeRDP_Settings_Keys_Int64 | id | ||
) |
Returns a INT64 settings value.
settings | A pointer to the settings to query, must not be NULL. |
id | The key to query |
Definition at line 2633 of file settings_getters.c.
References freerdp_settings_get_name_for_key(), and freerdp_settings_get_type_name_for_key().
Referenced by freerdp_settings_copy_item(), freerdp_settings_dump(), and freerdp_settings_print_diff().
FREERDP_API SSIZE_T freerdp_settings_get_key_for_name | ( | const char * | value | ) |
Get a key index for the name string of that key.
value | A key name string like FreeRDP_ServerMode |
Definition at line 348 of file settings_str.c.
FREERDP_API const char* freerdp_settings_get_name_for_key | ( | SSIZE_T | key | ) |
Returns the type name for a key.
key | the key number to stringify |
Definition at line 418 of file settings_str.c.
Referenced by freerdp_settings_get_bool(), freerdp_settings_get_int16(), freerdp_settings_get_int32(), freerdp_settings_get_int64(), freerdp_settings_get_pointer_writable(), freerdp_settings_get_string(), freerdp_settings_get_string_writable(), freerdp_settings_get_uint16(), freerdp_settings_get_uint32(), freerdp_settings_get_uint64(), freerdp_settings_set_bool(), freerdp_settings_set_int16(), freerdp_settings_set_int32(), freerdp_settings_set_int64(), freerdp_settings_set_pointer(), freerdp_settings_set_uint16(), freerdp_settings_set_uint32(), and freerdp_settings_set_uint64().
FREERDP_API const void* freerdp_settings_get_pointer | ( | const rdpSettings * | settings, |
FreeRDP_Settings_Keys_Pointer | id | ||
) |
Returns a immutable pointer settings value.
settings | A pointer to the settings to query, must not be NULL. |
id | The key to query |
Definition at line 1321 of file common/settings.c.
References freerdp_settings_get_pointer_writable().
Referenced by freerdp_settings_copy_item(), freerdp_settings_dump(), and freerdp_settings_print_diff().
FREERDP_API void* freerdp_settings_get_pointer_writable | ( | rdpSettings * | settings, |
FreeRDP_Settings_Keys_Pointer | id | ||
) |
Returns a mutable pointer settings value.
settings | A pointer to the settings to query, must not be NULL. |
id | The key to query |
Definition at line 3949 of file settings_getters.c.
References freerdp_settings_get_name_for_key(), and freerdp_settings_get_type_name_for_key().
Referenced by freerdp_settings_get_pointer().
FREERDP_API const char* freerdp_settings_get_server_name | ( | const rdpSettings * | settings | ) |
A helper function to return the correct server name.
The server name might be in key FreeRDP_ServerHostname or if used in FreeRDP_UserSpecifiedServerName. This function returns the correct name to use.
settings | The settings to query, must not be NULL. |
Definition at line 1852 of file common/settings.c.
FREERDP_API const char* freerdp_settings_get_string | ( | const rdpSettings * | settings, |
FreeRDP_Settings_Keys_String | id | ||
) |
Returns a immutable string settings value.
settings | A pointer to the settings to query, must not be NULL. |
id | The key to query |
Definition at line 2672 of file settings_getters.c.
References freerdp_settings_get_name_for_key(), and freerdp_settings_get_type_name_for_key().
Referenced by freerdp_settings_append_string(), freerdp_settings_copy_item(), freerdp_settings_dump(), freerdp_settings_get_string_as_utf16(), and freerdp_settings_print_diff().
FREERDP_API WCHAR* freerdp_settings_get_string_as_utf16 | ( | const rdpSettings * | settings, |
FreeRDP_Settings_Keys_String | id, | ||
size_t * | pCharLen | ||
) |
Return an allocated UTF16 string.
settings | A pointer to the settings struct to use |
id | The settings identifier |
Definition at line 2122 of file common/settings.c.
References freerdp_settings_get_string().
FREERDP_API char* freerdp_settings_get_string_writable | ( | rdpSettings * | settings, |
FreeRDP_Settings_Keys_String | id | ||
) |
Returns a string settings value.
settings | A pointer to the settings to query, must not be NULL. |
id | The key to query |
Definition at line 2982 of file settings_getters.c.
References freerdp_settings_get_name_for_key(), and freerdp_settings_get_type_name_for_key().
FREERDP_API SSIZE_T freerdp_settings_get_type_for_key | ( | SSIZE_T | key | ) |
Get a key type for the key index.
key | The key index like FreeRDP_ServerMode |
Definition at line 407 of file settings_str.c.
Referenced by freerdp_settings_copy_item(), and freerdp_settings_get_type_name_for_key().
FREERDP_API SSIZE_T freerdp_settings_get_type_for_name | ( | const char * | value | ) |
Get a key type for the name string of that key.
value | A key name string like FreeRDP_ServerMode |
Definition at line 361 of file settings_str.c.
FREERDP_API const char* freerdp_settings_get_type_name_for_key | ( | SSIZE_T | key | ) |
Returns the type name for a key.
key | the key number to stringify |
Definition at line 374 of file settings_str.c.
References freerdp_settings_get_type_for_key(), and freerdp_settings_get_type_name_for_type().
Referenced by freerdp_settings_get_bool(), freerdp_settings_get_int16(), freerdp_settings_get_int32(), freerdp_settings_get_int64(), freerdp_settings_get_pointer_writable(), freerdp_settings_get_string(), freerdp_settings_get_string_writable(), freerdp_settings_get_uint16(), freerdp_settings_get_uint32(), freerdp_settings_get_uint64(), freerdp_settings_set_bool(), freerdp_settings_set_int16(), freerdp_settings_set_int32(), freerdp_settings_set_int64(), freerdp_settings_set_pointer(), freerdp_settings_set_uint16(), freerdp_settings_set_uint32(), and freerdp_settings_set_uint64().
FREERDP_API const char* freerdp_settings_get_type_name_for_type | ( | SSIZE_T | type | ) |
Returns the type name for a type.
type | the type to stringify |
Definition at line 380 of file settings_str.c.
Referenced by freerdp_settings_get_type_name_for_key().
FREERDP_API UINT16 freerdp_settings_get_uint16 | ( | const rdpSettings * | settings, |
FreeRDP_Settings_Keys_UInt16 | id | ||
) |
Returns a UINT16 settings value.
settings | A pointer to the settings to query, must not be NULL. |
id | The key to query |
Definition at line 1444 of file settings_getters.c.
References freerdp_settings_get_name_for_key(), and freerdp_settings_get_type_name_for_key().
Referenced by freerdp_settings_copy_item(), freerdp_settings_dump(), and freerdp_settings_print_diff().
FREERDP_API UINT32 freerdp_settings_get_uint32 | ( | const rdpSettings * | settings, |
FreeRDP_Settings_Keys_UInt32 | id | ||
) |
Returns a UINT32 settings value.
settings | A pointer to the settings to query, must not be NULL. |
id | The key to query |
Definition at line 1613 of file settings_getters.c.
References freerdp_settings_get_name_for_key(), and freerdp_settings_get_type_name_for_key().
Referenced by freerdp_settings_copy_item(), freerdp_settings_dump(), freerdp_settings_print_diff(), and AppDelegate::rdpConnectError:.
FREERDP_API UINT64 freerdp_settings_get_uint64 | ( | const rdpSettings * | settings, |
FreeRDP_Settings_Keys_UInt64 | id | ||
) |
Returns a UINT64 settings value.
settings | A pointer to the settings to query, must not be NULL. |
id | The key to query |
Definition at line 2587 of file settings_getters.c.
References freerdp_settings_get_name_for_key(), and freerdp_settings_get_type_name_for_key().
Referenced by freerdp_settings_copy_item(), freerdp_settings_dump(), and freerdp_settings_print_diff().
FREERDP_API rdpSettings* freerdp_settings_new | ( | DWORD | flags | ) |
creates a new setting struct
flags | Flags for creation, use FREERDP_SETTINGS_SERVER_MODE for server settings, 0 for client. |
Definition at line 749 of file core/settings.c.
References FREERDP_SETTINGS_SERVER_MODE.
FREERDP_API BOOL freerdp_settings_print_diff | ( | wLog * | log, |
DWORD | level, | ||
const rdpSettings * | src, | ||
const rdpSettings * | other | ||
) |
Dumps the difference between two settings structs to a WLog.
log | The logger to write to, must not be NULL. |
level | The WLog level to use for the log entries. |
src | A pointer to the settings to dump. May be NULL. |
other | A pointer to the settings to dump. May be NULL. |
Definition at line 96 of file settings_str.c.
References freerdp_settings_get_bool(), freerdp_settings_get_int16(), freerdp_settings_get_int32(), freerdp_settings_get_int64(), freerdp_settings_get_pointer(), freerdp_settings_get_string(), freerdp_settings_get_uint16(), freerdp_settings_get_uint32(), and freerdp_settings_get_uint64().
FREERDP_API BOOL freerdp_settings_set_bool | ( | rdpSettings * | settings, |
FreeRDP_Settings_Keys_Bool | id, | ||
BOOL | param | ||
) |
Sets a BOOL settings value.
settings | A pointer to the settings to query, must not be NULL. |
id | The key to query |
param | The value to set. |
Definition at line 648 of file settings_getters.c.
References freerdp_settings_get_name_for_key(), and freerdp_settings_get_type_name_for_key().
Referenced by freerdp_settings_copy_item().
FREERDP_API BOOL freerdp_settings_set_int16 | ( | rdpSettings * | settings, |
FreeRDP_Settings_Keys_Int16 | id, | ||
INT16 | param | ||
) |
Sets a INT16 settings value.
settings | A pointer to the settings to query, must not be NULL. |
id | The key to query |
param | The value to set. |
Definition at line 1589 of file settings_getters.c.
References freerdp_settings_get_name_for_key(), and freerdp_settings_get_type_name_for_key().
Referenced by freerdp_settings_copy_item().
FREERDP_API BOOL freerdp_settings_set_int32 | ( | rdpSettings * | settings, |
FreeRDP_Settings_Keys_Int32 | id, | ||
INT32 | param | ||
) |
Sets a INT32 settings value.
settings | A pointer to the settings to query, must not be NULL. |
id | The key to query |
param | The value to set. |
Definition at line 2555 of file settings_getters.c.
References freerdp_settings_get_name_for_key(), and freerdp_settings_get_type_name_for_key().
Referenced by freerdp_settings_copy_item().
FREERDP_API BOOL freerdp_settings_set_int64 | ( | rdpSettings * | settings, |
FreeRDP_Settings_Keys_Int64 | id, | ||
INT64 | param | ||
) |
Sets a INT64 settings value.
settings | A pointer to the settings to query, must not be NULL. |
id | The key to query |
param | The value to set. |
Definition at line 2648 of file settings_getters.c.
References freerdp_settings_get_name_for_key(), and freerdp_settings_get_type_name_for_key().
Referenced by freerdp_settings_copy_item().
FREERDP_API BOOL freerdp_settings_set_pointer | ( | rdpSettings * | settings, |
FreeRDP_Settings_Keys_Pointer | id, | ||
const void * | data | ||
) |
Set a pointer to value data.
settings | A pointer to the settings to query, must not be NULL. |
id | The key to update |
data | The data to set (direct update, no copy created, previous value overwritten) |
Definition at line 4057 of file settings_getters.c.
References freerdp_settings_get_name_for_key(), and freerdp_settings_get_type_name_for_key().
Referenced by freerdp_settings_copy_item().
FREERDP_API BOOL freerdp_settings_set_pointer_len | ( | rdpSettings * | settings, |
FreeRDP_Settings_Keys_Pointer | id, | ||
const void * | data, | ||
size_t | len | ||
) |
Set a pointer to value data.
settings | A pointer to the settings to query, must not be NULL. |
id | The key to update |
data | The data to set (copy created, previous value freed) |
Definition at line 1333 of file common/settings.c.
FREERDP_API BOOL freerdp_settings_set_string | ( | rdpSettings * | settings, |
FreeRDP_Settings_Keys_String | id, | ||
const char * | param | ||
) |
Sets a string settings value. The param is copied.
settings | A pointer to the settings to query, must not be NULL. |
id | The key to query |
param | The value to set. If NULL removes the old entry, otherwise a copy is created. |
Definition at line 3616 of file settings_getters.c.
Referenced by freerdp_settings_copy_item().
FREERDP_API BOOL freerdp_settings_set_string_from_utf16 | ( | rdpSettings * | settings, |
FreeRDP_Settings_Keys_String | id, | ||
const WCHAR * | param | ||
) |
Sets a string settings value. The param is converted to UTF-8 and the copy stored.
settings | A pointer to the settings to query, must not be NULL. |
id | The key to query |
param | The value to set. If NULL removes the old entry, otherwise a copy is created. |
Definition at line 2082 of file common/settings.c.
FREERDP_API BOOL freerdp_settings_set_string_from_utf16N | ( | rdpSettings * | settings, |
FreeRDP_Settings_Keys_String | id, | ||
const WCHAR * | param, | ||
size_t | length | ||
) |
Sets a string settings value. The param is converted to UTF-8 and the copy stored.
settings | A pointer to the settings to query, must not be NULL. |
id | The key to query |
param | The value to set. If NULL removes the old entry, otherwise a copy is created. |
length | The length of the WCHAR string in number of WCHAR characters |
Definition at line 2099 of file common/settings.c.
FREERDP_API BOOL freerdp_settings_set_string_len | ( | rdpSettings * | settings, |
FreeRDP_Settings_Keys_String | id, | ||
const char * | param, | ||
size_t | len | ||
) |
Sets a string settings value. The param is copied.
settings | A pointer to the settings to query, must not be NULL. |
id | The key to query |
param | The value to set. If NULL allocates an empty string buffer of len size, otherwise a copy is created. |
len | The length of param, 0 to remove the old entry. |
Definition at line 3610 of file settings_getters.c.
Referenced by freerdp_settings_append_string().
FREERDP_API BOOL freerdp_settings_set_uint16 | ( | rdpSettings * | settings, |
FreeRDP_Settings_Keys_UInt16 | id, | ||
UINT16 | param | ||
) |
Sets a UINT16 settings value.
settings | A pointer to the settings to query, must not be NULL. |
id | The key to query |
param | The value to set. |
Definition at line 1498 of file settings_getters.c.
References freerdp_settings_get_name_for_key(), and freerdp_settings_get_type_name_for_key().
Referenced by freerdp_settings_copy_item().
FREERDP_API BOOL freerdp_settings_set_uint32 | ( | rdpSettings * | settings, |
FreeRDP_Settings_Keys_UInt32 | id, | ||
UINT32 | param | ||
) |
Sets a UINT32 settings value.
settings | A pointer to the settings to query, must not be NULL. |
id | The key to query |
param | The value to set. |
Definition at line 2006 of file settings_getters.c.
References freerdp_settings_get_name_for_key(), and freerdp_settings_get_type_name_for_key().
Referenced by freerdp_set_gateway_usage_method(), and freerdp_settings_copy_item().
FREERDP_API BOOL freerdp_settings_set_uint64 | ( | rdpSettings * | settings, |
FreeRDP_Settings_Keys_UInt64 | id, | ||
UINT64 | param | ||
) |
Sets a UINT64 settings value.
settings | A pointer to the settings to query, must not be NULL. |
id | The key to query |
param | The value to set. |
Definition at line 2605 of file settings_getters.c.
References freerdp_settings_get_name_for_key(), and freerdp_settings_get_type_name_for_key().
Referenced by freerdp_settings_copy_item().
FREERDP_API BOOL freerdp_settings_update_from_caps | ( | rdpSettings * | settings, |
const BYTE * | capsFlags, | ||
const BYTE ** | capsData, | ||
const UINT32 * | capsSizes, | ||
UINT32 | capsCount, | ||
BOOL | serverReceivedCaps | ||
) |
Parse capability data and apply to settings.
The capability message is stored in raw form in the settings, the data parsed and applied to the settings.
settings | A pointer to the settings to use |
capsFlags | A pointer to the capablity flags, must have capsCount fields |
capsData | A pointer array to the RAW capability data, must have capsCount fields |
capsSizes | A pointer to an array of RAW capability sizes, must have capsCount fields |
capsCount | The number of capabilities contained in the RAW data |
serverReceivedCaps | Indicates if the parser should assume to be a server or client instance |
Definition at line 2018 of file common/settings.c.
FREERDP_API const char* freerdp_supported_color_depths_string | ( | UINT16 | mask, |
char * | buffer, | ||
size_t | size | ||
) |
returns a string representation of RNS_UD_XXBPP_SUPPORT values
return A string reprenentation of the bitmask.
Definition at line 2199 of file common/settings.c.