mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2024-11-26 19:33:34 +08:00
spell check with codespell
This commit is contained in:
parent
c4559c39c3
commit
4f2afa8c47
@ -243,7 +243,7 @@ endmacro(add_channel_server_library)
|
|||||||
set(FILENAME "ChannelOptions.cmake")
|
set(FILENAME "ChannelOptions.cmake")
|
||||||
file(GLOB FILEPATHS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*/${FILENAME}")
|
file(GLOB FILEPATHS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*/${FILENAME}")
|
||||||
|
|
||||||
# We need special treatement for drdynvc:
|
# We need special treatment for drdynvc:
|
||||||
# It needs to be the first entry so that every
|
# It needs to be the first entry so that every
|
||||||
# dynamic channel has the dependent options available.
|
# dynamic channel has the dependent options available.
|
||||||
set(DRDYNVC_MATCH "")
|
set(DRDYNVC_MATCH "")
|
||||||
|
@ -576,7 +576,7 @@ UINT ainput_server_context_poll_int(ainput_server_context* context)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
WLog_ERR(TAG, "AINPUT chanel is in invalid state %d", ainput->state);
|
WLog_ERR(TAG, "AINPUT channel is in invalid state %d", ainput->state);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -197,7 +197,7 @@ static DWORD WINAPI audin_oss_thread_func(LPVOID arg)
|
|||||||
|
|
||||||
if (ioctl(pcm_handle, SNDCTL_DSP_GETCAPS, &tmp) == -1)
|
if (ioctl(pcm_handle, SNDCTL_DSP_GETCAPS, &tmp) == -1)
|
||||||
{
|
{
|
||||||
OSS_LOG_ERR("SNDCTL_DSP_GETCAPS failed, try ignory", errno);
|
OSS_LOG_ERR("SNDCTL_DSP_GETCAPS failed, try ignored", errno);
|
||||||
}
|
}
|
||||||
else if ((tmp & PCM_CAP_INPUT) == 0)
|
else if ((tmp & PCM_CAP_INPUT) == 0)
|
||||||
{
|
{
|
||||||
@ -262,7 +262,7 @@ static DWORD WINAPI audin_oss_thread_func(LPVOID arg)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((size_t)stmp < buffer_size) /* Not enouth data. */
|
if ((size_t)stmp < buffer_size) /* Not enough data. */
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if ((error = oss->receive(&oss->format, buffer, buffer_size, oss->user_data)))
|
if ((error = oss->receive(&oss->format, buffer, buffer_size, oss->user_data)))
|
||||||
|
@ -435,7 +435,7 @@ UINT cliprdr_read_format_list(wStream* s, CLIPRDR_FORMAT_LIST* formatList, BOOL
|
|||||||
* or 16 Unicode characters)"
|
* or 16 Unicode characters)"
|
||||||
* However, both Windows RDSH and mstsc violate this specs as seen in the following
|
* However, both Windows RDSH and mstsc violate this specs as seen in the following
|
||||||
* example of a transferred short format name string: [R.i.c.h. .T.e.x.t. .F.o.r.m.a.t.]
|
* example of a transferred short format name string: [R.i.c.h. .T.e.x.t. .F.o.r.m.a.t.]
|
||||||
* These are 16 unicode charaters - *without* terminating null !
|
* These are 16 unicode characters - *without* terminating null !
|
||||||
*/
|
*/
|
||||||
|
|
||||||
szFormatName = Stream_ConstPointer(sub1);
|
szFormatName = Stream_ConstPointer(sub1);
|
||||||
|
@ -221,12 +221,12 @@ static UINT location_send_base_location3d(IWTSVirtualChannel* channel,
|
|||||||
|
|
||||||
if (pdu->source)
|
if (pdu->source)
|
||||||
WLog_DBG(TAG,
|
WLog_DBG(TAG,
|
||||||
"latitude=%lf, logitude=%lf, altitude=%" PRId32
|
"latitude=%lf, longitude=%lf, altitude=%" PRId32
|
||||||
", speed=%lf, heading=%lf, haccuracy=%lf, source=%" PRIu8,
|
", speed=%lf, heading=%lf, haccuracy=%lf, source=%" PRIu8,
|
||||||
pdu->latitude, pdu->longitude, pdu->altitude, pdu->speed, pdu->heading,
|
pdu->latitude, pdu->longitude, pdu->altitude, pdu->speed, pdu->heading,
|
||||||
pdu->horizontalAccuracy, *pdu->source);
|
pdu->horizontalAccuracy, *pdu->source);
|
||||||
else
|
else
|
||||||
WLog_DBG(TAG, "latitude=%lf, logitude=%lf, altitude=%" PRId32, pdu->latitude,
|
WLog_DBG(TAG, "latitude=%lf, longitude=%lf, altitude=%" PRId32, pdu->latitude,
|
||||||
pdu->longitude, pdu->altitude);
|
pdu->longitude, pdu->altitude);
|
||||||
|
|
||||||
if (!location_write_header(s, PDUTYPE_BASE_LOCATION3D, pdu->source ? 25 : 12))
|
if (!location_write_header(s, PDUTYPE_BASE_LOCATION3D, pdu->source ? 25 : 12))
|
||||||
@ -264,10 +264,10 @@ static UINT location_send_location2d_delta(IWTSVirtualChannel* channel,
|
|||||||
const BOOL ext = pdu->speedDelta && pdu->headingDelta;
|
const BOOL ext = pdu->speedDelta && pdu->headingDelta;
|
||||||
|
|
||||||
if (ext)
|
if (ext)
|
||||||
WLog_DBG(TAG, "latitude=%lf, logitude=%lf, speed=%lf, heading=%lf", pdu->latitudeDelta,
|
WLog_DBG(TAG, "latitude=%lf, longitude=%lf, speed=%lf, heading=%lf", pdu->latitudeDelta,
|
||||||
pdu->longitudeDelta, pdu->speedDelta, pdu->headingDelta);
|
pdu->longitudeDelta, pdu->speedDelta, pdu->headingDelta);
|
||||||
else
|
else
|
||||||
WLog_DBG(TAG, "latitude=%lf, logitude=%lf", pdu->latitudeDelta, pdu->longitudeDelta);
|
WLog_DBG(TAG, "latitude=%lf, longitude=%lf", pdu->latitudeDelta, pdu->longitudeDelta);
|
||||||
|
|
||||||
if (!location_write_header(s, PDUTYPE_LOCATION2D_DELTA, ext ? 16 : 8))
|
if (!location_write_header(s, PDUTYPE_LOCATION2D_DELTA, ext ? 16 : 8))
|
||||||
return ERROR_OUTOFMEMORY;
|
return ERROR_OUTOFMEMORY;
|
||||||
@ -300,11 +300,11 @@ static UINT location_send_location3d_delta(IWTSVirtualChannel* channel,
|
|||||||
const BOOL ext = pdu->speedDelta && pdu->headingDelta;
|
const BOOL ext = pdu->speedDelta && pdu->headingDelta;
|
||||||
|
|
||||||
if (ext)
|
if (ext)
|
||||||
WLog_DBG(TAG, "latitude=%lf, logitude=%lf, altitude=%" PRId32 ", speed=%lf, heading=%lf",
|
WLog_DBG(TAG, "latitude=%lf, longitude=%lf, altitude=%" PRId32 ", speed=%lf, heading=%lf",
|
||||||
pdu->latitudeDelta, pdu->longitudeDelta, pdu->altitudeDelta, pdu->speedDelta,
|
pdu->latitudeDelta, pdu->longitudeDelta, pdu->altitudeDelta, pdu->speedDelta,
|
||||||
pdu->headingDelta);
|
pdu->headingDelta);
|
||||||
else
|
else
|
||||||
WLog_DBG(TAG, "latitude=%lf, logitude=%lf, altitude=%" PRId32, pdu->latitudeDelta,
|
WLog_DBG(TAG, "latitude=%lf, longitude=%lf, altitude=%" PRId32, pdu->latitudeDelta,
|
||||||
pdu->longitudeDelta, pdu->altitudeDelta);
|
pdu->longitudeDelta, pdu->altitudeDelta);
|
||||||
|
|
||||||
if (!location_write_header(s, PDUTYPE_LOCATION3D_DELTA, ext ? 20 : 12))
|
if (!location_write_header(s, PDUTYPE_LOCATION3D_DELTA, ext ? 20 : 12))
|
||||||
|
@ -583,7 +583,7 @@ static UINT handle_hotplug(rdpdrPlugin* rdpdr)
|
|||||||
if (!path)
|
if (!path)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* not plugable device */
|
/* not pluggable device */
|
||||||
if (strstr(path, "/Volumes/") == NULL)
|
if (strstr(path, "/Volumes/") == NULL)
|
||||||
{
|
{
|
||||||
free(path);
|
free(path);
|
||||||
@ -950,7 +950,7 @@ static BOOL hotplug_delete_foreach(ULONG_PTR key, void* element, void* data)
|
|||||||
if (!path)
|
if (!path)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
/* not plugable device */
|
/* not pluggable device */
|
||||||
if (isAutomountLocation(path))
|
if (isAutomountLocation(path))
|
||||||
{
|
{
|
||||||
for (size_t i = 0; i < arg->dev_array_size; i++)
|
for (size_t i = 0; i < arg->dev_array_size; i++)
|
||||||
|
@ -232,7 +232,7 @@ static BOOL rdpsnd_oss_open(rdpsndDevicePlugin* device, const AUDIO_FORMAT* form
|
|||||||
|
|
||||||
if (ioctl(oss->pcm_handle, SNDCTL_DSP_GETCAPS, &mask) == -1)
|
if (ioctl(oss->pcm_handle, SNDCTL_DSP_GETCAPS, &mask) == -1)
|
||||||
{
|
{
|
||||||
OSS_LOG_ERR("SNDCTL_DSP_GETCAPS failed, try ignory", errno);
|
OSS_LOG_ERR("SNDCTL_DSP_GETCAPS failed, try ignored", errno);
|
||||||
}
|
}
|
||||||
else if ((mask & PCM_CAP_OUTPUT) == 0)
|
else if ((mask & PCM_CAP_OUTPUT) == 0)
|
||||||
{
|
{
|
||||||
|
@ -555,7 +555,7 @@ static void close_terminated_irp_thread(wListDictionary* list, wLog* log, ULONG_
|
|||||||
|
|
||||||
HANDLE cirpThread = ListDictionary_GetItemValue(list, (void*)id);
|
HANDLE cirpThread = ListDictionary_GetItemValue(list, (void*)id);
|
||||||
/* FIXME: not quite sure a zero timeout is a good thing to check whether a thread is
|
/* FIXME: not quite sure a zero timeout is a good thing to check whether a thread is
|
||||||
* stil alived or not */
|
* still alive or not */
|
||||||
const DWORD waitResult = WaitForSingleObject(cirpThread, 0);
|
const DWORD waitResult = WaitForSingleObject(cirpThread, 0);
|
||||||
|
|
||||||
if (waitResult == WAIT_OBJECT_0)
|
if (waitResult == WAIT_OBJECT_0)
|
||||||
|
@ -766,8 +766,8 @@ static BOOL tsmf_gstreamer_decodeEx(ITSMFDecoder* decoder, const BYTE* data, UIN
|
|||||||
|
|
||||||
mdecoder->seeking = TRUE;
|
mdecoder->seeking = TRUE;
|
||||||
|
|
||||||
/* since we cant make the gstreamer pipeline jump to the new start time after a seek -
|
/* since we can't make the gstreamer pipeline jump to the new start time after a seek -
|
||||||
* we just maintain a offset between realtime and gstreamer time
|
* we just maintain an offset between realtime and gstreamer time
|
||||||
*/
|
*/
|
||||||
mdecoder->seek_offset = start_time;
|
mdecoder->seek_offset = start_time;
|
||||||
}
|
}
|
||||||
|
@ -96,7 +96,7 @@ static BOOL tsmf_oss_open(ITSMFAudioDevice* audio, const char* device)
|
|||||||
#if 0 /* FreeBSD OSS implementation at this moment (2015.03) does not set PCM_CAP_OUTPUT flag. */
|
#if 0 /* FreeBSD OSS implementation at this moment (2015.03) does not set PCM_CAP_OUTPUT flag. */
|
||||||
if (ioctl(oss->pcm_handle, SNDCTL_DSP_GETCAPS, &mask) == -1)
|
if (ioctl(oss->pcm_handle, SNDCTL_DSP_GETCAPS, &mask) == -1)
|
||||||
{
|
{
|
||||||
OSS_LOG_ERR("SNDCTL_DSP_GETCAPS failed, try ignory", errno);
|
OSS_LOG_ERR("SNDCTL_DSP_GETCAPS failed, try ignored", errno);
|
||||||
}
|
}
|
||||||
else if ((mask & PCM_CAP_OUTPUT) == 0)
|
else if ((mask & PCM_CAP_OUTPUT) == 0)
|
||||||
{
|
{
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
#define STREAM_ID_PROXY 0x40000000
|
#define STREAM_ID_PROXY 0x40000000
|
||||||
#define STREAM_ID_NONE 0x00000000
|
#define STREAM_ID_NONE 0x00000000
|
||||||
|
|
||||||
/* Functon ID */
|
/* Function ID */
|
||||||
/* Common IDs for all interfaces are as follows. */
|
/* Common IDs for all interfaces are as follows. */
|
||||||
#define RIMCALL_RELEASE 0x00000001
|
#define RIMCALL_RELEASE 0x00000001
|
||||||
#define RIMCALL_QUERYINTERFACE 0x00000002
|
#define RIMCALL_QUERYINTERFACE 0x00000002
|
||||||
|
@ -47,7 +47,7 @@ struct s_ITSMFDecoder
|
|||||||
BOOL (*GetDecodedDimension)(ITSMFDecoder* decoder, UINT32* width, UINT32* height);
|
BOOL (*GetDecodedDimension)(ITSMFDecoder* decoder, UINT32* width, UINT32* height);
|
||||||
/* Free the decoder */
|
/* Free the decoder */
|
||||||
void (*Free)(ITSMFDecoder* decoder);
|
void (*Free)(ITSMFDecoder* decoder);
|
||||||
/* Optional Contol function */
|
/* Optional Control function */
|
||||||
BOOL (*Control)(ITSMFDecoder* decoder, ITSMFControlMsg control_msg, UINT32* arg);
|
BOOL (*Control)(ITSMFDecoder* decoder, ITSMFControlMsg control_msg, UINT32* arg);
|
||||||
/* Decode a sample with extended interface. */
|
/* Decode a sample with extended interface. */
|
||||||
BOOL(*DecodeEx)
|
BOOL(*DecodeEx)
|
||||||
|
@ -1644,7 +1644,7 @@ static int udev_get_hub_handle(URBDRC_PLUGIN* urbdrc, libusb_context* ctx, UDEVI
|
|||||||
LIBUSB_DEVICE* dev = libusb_list[i];
|
LIBUSB_DEVICE* dev = libusb_list[i];
|
||||||
|
|
||||||
if ((bus_number != libusb_get_bus_number(dev)) ||
|
if ((bus_number != libusb_get_bus_number(dev)) ||
|
||||||
(1 != libusb_get_device_address(dev))) /* Root hub allways first on bus. */
|
(1 != libusb_get_device_address(dev))) /* Root hub always first on bus. */
|
||||||
libusb_unref_device(dev);
|
libusb_unref_device(dev);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -49,7 +49,7 @@ BOOL msusb_mspipes_replace(MSUSB_INTERFACE_DESCRIPTOR* MsInterface,
|
|||||||
if (!MsInterface || !NewMsPipes)
|
if (!MsInterface || !NewMsPipes)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
/* free orignal MsPipes */
|
/* free original MsPipes */
|
||||||
msusb_mspipes_free(MsInterface->MsPipes, MsInterface->NumberOfPipes);
|
msusb_mspipes_free(MsInterface->MsPipes, MsInterface->NumberOfPipes);
|
||||||
/* And replace it */
|
/* And replace it */
|
||||||
MsInterface->MsPipes = NewMsPipes;
|
MsInterface->MsPipes = NewMsPipes;
|
||||||
|
@ -293,7 +293,7 @@ Original SSLeay License
|
|||||||
|
|
||||||
* This library is free for commercial and non-commercial use as long as
|
* This library is free for commercial and non-commercial use as long as
|
||||||
|
|
||||||
* the following conditions are aheared to. The following conditions
|
* the following conditions are adhered to. The following conditions
|
||||||
|
|
||||||
* apply to all code found in this distribution, be it the RC4, RSA,
|
* apply to all code found in this distribution, be it the RC4, RSA,
|
||||||
|
|
||||||
@ -343,7 +343,7 @@ Original SSLeay License
|
|||||||
|
|
||||||
* Eric Young (eay@cryptsoft.com)"
|
* Eric Young (eay@cryptsoft.com)"
|
||||||
|
|
||||||
* The word 'cryptographic' can be left out if the rouines from the library
|
* The word 'cryptographic' can be left out if the routines from the library
|
||||||
|
|
||||||
* being used are not cryptographic related :-).
|
* being used are not cryptographic related :-).
|
||||||
|
|
||||||
@ -379,7 +379,7 @@ Original SSLeay License
|
|||||||
|
|
||||||
*
|
*
|
||||||
|
|
||||||
* The licence and distribution terms for any publically available version or
|
* The licence and distribution terms for any publicly available version or
|
||||||
|
|
||||||
* derivative of this code cannot be changed. i.e. this code cannot simply be
|
* derivative of this code cannot be changed. i.e. this code cannot simply be
|
||||||
|
|
||||||
|
@ -293,7 +293,7 @@ Original SSLeay License
|
|||||||
|
|
||||||
* This library is free for commercial and non-commercial use as long as
|
* This library is free for commercial and non-commercial use as long as
|
||||||
|
|
||||||
* the following conditions are aheared to. The following conditions
|
* the following conditions are adhered to. The following conditions
|
||||||
|
|
||||||
* apply to all code found in this distribution, be it the RC4, RSA,
|
* apply to all code found in this distribution, be it the RC4, RSA,
|
||||||
|
|
||||||
@ -343,7 +343,7 @@ Original SSLeay License
|
|||||||
|
|
||||||
* Eric Young (eay@cryptsoft.com)"
|
* Eric Young (eay@cryptsoft.com)"
|
||||||
|
|
||||||
* The word 'cryptographic' can be left out if the rouines from the library
|
* The word 'cryptographic' can be left out if the routines from the library
|
||||||
|
|
||||||
* being used are not cryptographic related :-).
|
* being used are not cryptographic related :-).
|
||||||
|
|
||||||
@ -379,7 +379,7 @@ Original SSLeay License
|
|||||||
|
|
||||||
*
|
*
|
||||||
|
|
||||||
* The licence and distribution terms for any publically available version or
|
* The licence and distribution terms for any publicly available version or
|
||||||
|
|
||||||
* derivative of this code cannot be changed. i.e. this code cannot simply be
|
* derivative of this code cannot be changed. i.e. this code cannot simply be
|
||||||
|
|
||||||
|
@ -394,7 +394,7 @@ Original SSLeay License
|
|||||||
|
|
||||||
*
|
*
|
||||||
|
|
||||||
* The licence and distribution terms for any publically available version or
|
* The licence and distribution terms for any publicly available version or
|
||||||
|
|
||||||
* derivative of this code cannot be changed. i.e. this code cannot simply be
|
* derivative of this code cannot be changed. i.e. this code cannot simply be
|
||||||
|
|
||||||
|
@ -500,7 +500,7 @@ static DWORD WINAPI android_thread_func(LPVOID param)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
status = android_freerdp_run(instance);
|
status = android_freerdp_run(instance);
|
||||||
WLog_DBG(TAG, "Disonnect...");
|
WLog_DBG(TAG, "Disconnect...");
|
||||||
|
|
||||||
if (!freerdp_disconnect(instance))
|
if (!freerdp_disconnect(instance))
|
||||||
status = GetLastError();
|
status = GetLastError();
|
||||||
@ -650,7 +650,7 @@ JNIEXPORT jlong JNICALL Java_com_freerdp_freerdpcore_services_LibFreeRDP_freerdp
|
|||||||
if (setenv("HOME", _strdup(envStr), 1) != 0)
|
if (setenv("HOME", _strdup(envStr), 1) != 0)
|
||||||
{
|
{
|
||||||
char ebuffer[256] = { 0 };
|
char ebuffer[256] = { 0 };
|
||||||
WLog_FATAL(TAG, "Failed to set environemnt HOME=%s %s [%d]", env,
|
WLog_FATAL(TAG, "Failed to set environment HOME=%s %s [%d]", env,
|
||||||
winpr_strerror(errno, ebuffer, sizeof(ebuffer)), errno);
|
winpr_strerror(errno, ebuffer, sizeof(ebuffer)), errno);
|
||||||
return (jlong)NULL;
|
return (jlong)NULL;
|
||||||
}
|
}
|
||||||
@ -996,7 +996,7 @@ jint JNI_OnLoad(JavaVM* vm, void* reserved)
|
|||||||
{
|
{
|
||||||
JNIEnv* env;
|
JNIEnv* env;
|
||||||
setlocale(LC_ALL, "");
|
setlocale(LC_ALL, "");
|
||||||
WLog_DBG(TAG, "Setting up JNI environement...");
|
WLog_DBG(TAG, "Setting up JNI environment...");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
if (freerdp_handle_signals() != 0)
|
if (freerdp_handle_signals() != 0)
|
||||||
@ -1029,7 +1029,7 @@ jint JNI_OnLoad(JavaVM* vm, void* reserved)
|
|||||||
void JNICALL JNI_OnUnload(JavaVM* vm, void* reserved)
|
void JNICALL JNI_OnUnload(JavaVM* vm, void* reserved)
|
||||||
{
|
{
|
||||||
JNIEnv* env;
|
JNIEnv* env;
|
||||||
WLog_DBG(TAG, "Tearing down JNI environement...");
|
WLog_DBG(TAG, "Tearing down JNI environment...");
|
||||||
|
|
||||||
if ((*vm)->GetEnv(vm, (void**)&env, JNI_VERSION_1_6) != JNI_OK)
|
if ((*vm)->GetEnv(vm, (void**)&env, JNI_VERSION_1_6) != JNI_OK)
|
||||||
{
|
{
|
||||||
|
@ -204,9 +204,9 @@ public class SessionView extends View
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setTouchPointerPadding(int widht, int height)
|
public void setTouchPointerPadding(int width, int height)
|
||||||
{
|
{
|
||||||
touchPointerPaddingWidth = widht;
|
touchPointerPaddingWidth = width;
|
||||||
touchPointerPaddingHeight = height;
|
touchPointerPaddingHeight = height;
|
||||||
requestLayout();
|
requestLayout();
|
||||||
}
|
}
|
||||||
|
@ -145,7 +145,7 @@ public class DoubleGestureDetector
|
|||||||
mCurrentDoubleDownEvent.recycle();
|
mCurrentDoubleDownEvent.recycle();
|
||||||
mCurrentDoubleDownEvent = MotionEvent.obtain(ev);
|
mCurrentDoubleDownEvent = MotionEvent.obtain(ev);
|
||||||
|
|
||||||
// set detection mode to unkown and send a TOUCH timeout event to detect single taps
|
// set detection mode to unknown and send a TOUCH timeout event to detect single taps
|
||||||
mCurrentMode = MODE_UNKNOWN;
|
mCurrentMode = MODE_UNKNOWN;
|
||||||
mHandler.sendEmptyMessageDelayed(TAP, SINGLE_DOUBLE_TOUCH_TIMEOUT);
|
mHandler.sendEmptyMessageDelayed(TAP, SINGLE_DOUBLE_TOUCH_TIMEOUT);
|
||||||
|
|
||||||
|
@ -474,7 +474,7 @@ public class GestureDetector
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Notified when a long press occurs with the initial on down {@link MotionEvent}
|
* Notified when a long press occurs with the initial on down {@link MotionEvent}
|
||||||
* that trigged it.
|
* that triggered it.
|
||||||
*
|
*
|
||||||
* @param e The initial on down motion event that started the longpress.
|
* @param e The initial on down motion event that started the longpress.
|
||||||
*/
|
*/
|
||||||
|
@ -433,7 +433,7 @@ public class KeyboardMapper
|
|||||||
boolean modifierActive = isModifierPressed();
|
boolean modifierActive = isModifierPressed();
|
||||||
// if a modifier is pressed we will send a VK event (if possible) so that key
|
// if a modifier is pressed we will send a VK event (if possible) so that key
|
||||||
// combinations will be recognized correctly. Otherwise we will send the unicode
|
// combinations will be recognized correctly. Otherwise we will send the unicode
|
||||||
// key. At the end we will reset all modifiers and notifiy our listener.
|
// key. At the end we will reset all modifiers and notify our listener.
|
||||||
int vkcode = getVirtualKeyCode(event.getKeyCode());
|
int vkcode = getVirtualKeyCode(event.getKeyCode());
|
||||||
if ((vkcode & KEY_FLAG_UNICODE) != 0)
|
if ((vkcode & KEY_FLAG_UNICODE) != 0)
|
||||||
listener.processUnicodeKey(vkcode & (~KEY_FLAG_UNICODE));
|
listener.processUnicodeKey(vkcode & (~KEY_FLAG_UNICODE));
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent">
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
<!-- childs are specified bottom-up so that we have a correct z-order in our final layout -->
|
<!-- children are specified bottom-up so that we have a correct z-order in our final layout -->
|
||||||
<android.inputmethodservice.KeyboardView xmlns:android="http://schemas.android.com/apk/res/android"
|
<android.inputmethodservice.KeyboardView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:id="@+id/extended_keyboard"
|
android:id="@+id/extended_keyboard"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
2
client/Android/Studio/gradlew.bat
vendored
2
client/Android/Studio/gradlew.bat
vendored
@ -46,7 +46,7 @@ echo location of your Java installation.
|
|||||||
goto fail
|
goto fail
|
||||||
|
|
||||||
:init
|
:init
|
||||||
@rem Get command-line arguments, handling Windowz variants
|
@rem Get command-line arguments, handling Windows variants
|
||||||
|
|
||||||
if not "%OS%" == "Windows_NT" goto win9xME_args
|
if not "%OS%" == "Windows_NT" goto win9xME_args
|
||||||
if "%@eval[2+2]" == "4" goto 4NT_args
|
if "%@eval[2+2]" == "4" goto 4NT_args
|
||||||
|
@ -588,7 +588,7 @@ static BOOL sdl_pre_connect(freerdp* instance)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
/* OrderSupport is initialized at this point.
|
/* OrderSupport is initialized at this point.
|
||||||
* Only override it if you plan to implement custom order
|
* Only override it if you plan to implement custom order
|
||||||
* callbacks or deactiveate certain features. */
|
* callbacks or deactivate certain features. */
|
||||||
/* Register the channel listeners.
|
/* Register the channel listeners.
|
||||||
* They are required to set up / tear down channels if they are loaded. */
|
* They are required to set up / tear down channels if they are loaded. */
|
||||||
PubSub_SubscribeChannelConnected(instance->context->pubSub, sdl_OnChannelConnectedEventHandler);
|
PubSub_SubscribeChannelConnected(instance->context->pubSub, sdl_OnChannelConnectedEventHandler);
|
||||||
@ -1080,7 +1080,7 @@ static int sdl_run(SdlContext* sdl)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Called after a RDP connection was successfully established.
|
/* Called after a RDP connection was successfully established.
|
||||||
* Settings might have changed during negociation of client / server feature
|
* Settings might have changed during negotiation of client / server feature
|
||||||
* support.
|
* support.
|
||||||
*
|
*
|
||||||
* Set up local framebuffers and paing callbacks.
|
* Set up local framebuffers and paing callbacks.
|
||||||
|
@ -586,7 +586,7 @@ static BOOL sdl_pre_connect(freerdp* instance)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
/* OrderSupport is initialized at this point.
|
/* OrderSupport is initialized at this point.
|
||||||
* Only override it if you plan to implement custom order
|
* Only override it if you plan to implement custom order
|
||||||
* callbacks or deactiveate certain features. */
|
* callbacks or deactivate certain features. */
|
||||||
/* Register the channel listeners.
|
/* Register the channel listeners.
|
||||||
* They are required to set up / tear down channels if they are loaded. */
|
* They are required to set up / tear down channels if they are loaded. */
|
||||||
PubSub_SubscribeChannelConnected(instance->context->pubSub, sdl_OnChannelConnectedEventHandler);
|
PubSub_SubscribeChannelConnected(instance->context->pubSub, sdl_OnChannelConnectedEventHandler);
|
||||||
@ -1066,7 +1066,7 @@ static int sdl_run(SdlContext* sdl)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Called after a RDP connection was successfully established.
|
/* Called after a RDP connection was successfully established.
|
||||||
* Settings might have changed during negociation of client / server feature
|
* Settings might have changed during negotiation of client / server feature
|
||||||
* support.
|
* support.
|
||||||
*
|
*
|
||||||
* Set up local framebuffers and paing callbacks.
|
* Set up local framebuffers and paing callbacks.
|
||||||
|
@ -159,7 +159,7 @@ static BOOL tf_pre_connect(freerdp* instance)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
/* OrderSupport is initialized at this point.
|
/* OrderSupport is initialized at this point.
|
||||||
* Only override it if you plan to implement custom order
|
* Only override it if you plan to implement custom order
|
||||||
* callbacks or deactiveate certain features. */
|
* callbacks or deactivate certain features. */
|
||||||
/* Register the channel listeners.
|
/* Register the channel listeners.
|
||||||
* They are required to set up / tear down channels if they are loaded. */
|
* They are required to set up / tear down channels if they are loaded. */
|
||||||
PubSub_SubscribeChannelConnected(instance->context->pubSub, tf_OnChannelConnectedEventHandler);
|
PubSub_SubscribeChannelConnected(instance->context->pubSub, tf_OnChannelConnectedEventHandler);
|
||||||
@ -171,7 +171,7 @@ static BOOL tf_pre_connect(freerdp* instance)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Called after a RDP connection was successfully established.
|
/* Called after a RDP connection was successfully established.
|
||||||
* Settings might have changed during negociation of client / server feature
|
* Settings might have changed during negotiation of client / server feature
|
||||||
* support.
|
* support.
|
||||||
*
|
*
|
||||||
* Set up local framebuffers and paing callbacks.
|
* Set up local framebuffers and paing callbacks.
|
||||||
|
@ -795,7 +795,7 @@ LRESULT CALLBACK wf_event_proc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam
|
|||||||
|
|
||||||
if (g_focus_hWnd == hWnd && wfc && !wfc->fullscreen)
|
if (g_focus_hWnd == hWnd && wfc && !wfc->fullscreen)
|
||||||
{
|
{
|
||||||
DEBUG_KBD("loosing focus %X", hWnd);
|
DEBUG_KBD("losing focus %X", hWnd);
|
||||||
|
|
||||||
if (alt_ctrl_down())
|
if (alt_ctrl_down())
|
||||||
g_flipping_out = TRUE;
|
g_flipping_out = TRUE;
|
||||||
|
@ -439,7 +439,7 @@ void wf_toggle_fullscreen(wfContext* wfc)
|
|||||||
|
|
||||||
if (!wfc->fullscreen)
|
if (!wfc->fullscreen)
|
||||||
{
|
{
|
||||||
// Reenable window tracking AFTER resizing it back, otherwise it can lean to repositioning
|
// Re-enable window tracking AFTER resizing it back, otherwise it can lean to repositioning
|
||||||
// errors.
|
// errors.
|
||||||
wfc->disablewindowtracking = FALSE;
|
wfc->disablewindowtracking = FALSE;
|
||||||
}
|
}
|
||||||
|
@ -130,7 +130,7 @@ if (WITH_XEXT)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
option(WITH_XCURSOR "[X11] enalbe Xcursor" ON)
|
option(WITH_XCURSOR "[X11] enable Xcursor" ON)
|
||||||
if (WITH_XCURSOR)
|
if (WITH_XCURSOR)
|
||||||
find_package(X11 REQUIRED)
|
find_package(X11 REQUIRED)
|
||||||
if(X11_Xcursor_FOUND)
|
if(X11_Xcursor_FOUND)
|
||||||
@ -154,7 +154,7 @@ if (WITH_XV)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
option(WITH_XI "[X11] enalbe Xi" ON)
|
option(WITH_XI "[X11] enable Xi" ON)
|
||||||
if (WITH_XI)
|
if (WITH_XI)
|
||||||
find_package(X11 REQUIRED)
|
find_package(X11 REQUIRED)
|
||||||
if(X11_Xi_FOUND)
|
if(X11_Xi_FOUND)
|
||||||
|
@ -1116,7 +1116,7 @@ static void xf_button_map_init(xfContext* xfc)
|
|||||||
* connection.
|
* connection.
|
||||||
*
|
*
|
||||||
* @param instance - pointer to the rdp_freerdp structure that contains the connection's parameters,
|
* @param instance - pointer to the rdp_freerdp structure that contains the connection's parameters,
|
||||||
* and will be filled with the appropriate informations.
|
* and will be filled with the appropriate information.
|
||||||
*
|
*
|
||||||
* @return TRUE if successful. FALSE otherwise.
|
* @return TRUE if successful. FALSE otherwise.
|
||||||
* Can exit with error code XF_EXIT_PARSE_ARGUMENTS if there is an error in the parameters.
|
* Can exit with error code XF_EXIT_PARSE_ARGUMENTS if there is an error in the parameters.
|
||||||
|
@ -249,7 +249,7 @@ static UINT32 x11_pad_scanline(UINT32 scanline, UINT32 inPad)
|
|||||||
scanline += pad;
|
scanline += pad;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 16 byte alingment is required for ASM optimized code */
|
/* 16 byte alignment is required for ASM optimized code */
|
||||||
if (scanline % 16)
|
if (scanline % 16)
|
||||||
scanline += 16 - scanline % 16;
|
scanline += 16 - scanline % 16;
|
||||||
|
|
||||||
|
@ -337,7 +337,7 @@ void xf_SetWindowFullscreen(xfContext* xfc, xfWindow* window, BOOL fullscreen)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
It is safe to proceed with simply toogling _NET_WM_STATE_FULLSCREEN window state on the
|
It is safe to proceed with simply toggling _NET_WM_STATE_FULLSCREEN window state on the
|
||||||
following conditions:
|
following conditions:
|
||||||
- The window manager supports multiple monitor full screen
|
- The window manager supports multiple monitor full screen
|
||||||
- The user requested to use a single monitor to render the remote desktop
|
- The user requested to use a single monitor to render the remote desktop
|
||||||
|
@ -1986,7 +1986,7 @@ static BOOL freerdp_client_register_pen(rdpClientContext* cctx, UINT32 flags, IN
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
WLog_WARN(TAG, "No free slots for an additiona pen device, skipping");
|
WLog_WARN(TAG, "No free slot for an additional pen device, skipping");
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2864,7 +2864,7 @@ static int parse_kbd_options(rdpSettings* settings, const COMMAND_LINE_ARGUMENT_
|
|||||||
|
|
||||||
if (option_starts_with("remap:", val))
|
if (option_starts_with("remap:", val))
|
||||||
{
|
{
|
||||||
/* Append this new occurance to the already existing list */
|
/* Append this new occurence to the already existing list */
|
||||||
char* now = _strdup(&val[6]);
|
char* now = _strdup(&val[6]);
|
||||||
const char* old =
|
const char* old =
|
||||||
freerdp_settings_get_string(settings, FreeRDP_KeyboardRemappingList);
|
freerdp_settings_get_string(settings, FreeRDP_KeyboardRemappingList);
|
||||||
@ -5818,7 +5818,7 @@ BOOL freerdp_client_load_addins(rdpChannels* channels, rdpSettings* settings)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* step 2: do various adjustements in the settings, to handle channels and settings dependencies
|
* step 2: do various adjustments in the settings to handle channels and settings dependencies
|
||||||
*/
|
*/
|
||||||
if ((freerdp_static_channel_collection_find(settings, RDPSND_CHANNEL_NAME)) ||
|
if ((freerdp_static_channel_collection_find(settings, RDPSND_CHANNEL_NAME)) ||
|
||||||
(freerdp_dynamic_channel_collection_find(settings, RDPSND_CHANNEL_NAME))
|
(freerdp_dynamic_channel_collection_find(settings, RDPSND_CHANNEL_NAME))
|
||||||
@ -5875,7 +5875,7 @@ BOOL freerdp_client_load_addins(rdpChannels* channels, rdpSettings* settings)
|
|||||||
|
|
||||||
while (tok)
|
while (tok)
|
||||||
{
|
{
|
||||||
/* Syntax: Comma seperated list of the following entries:
|
/* Syntax: Comma separated list of the following entries:
|
||||||
* '*' ... Redirect all drives, including hotplug
|
* '*' ... Redirect all drives, including hotplug
|
||||||
* 'DynamicDrives' ... hotplug
|
* 'DynamicDrives' ... hotplug
|
||||||
* '%' ... user home directory
|
* '%' ... user home directory
|
||||||
|
@ -316,7 +316,7 @@ static const COMMAND_LINE_ARGUMENT_A global_cmd_args[] = {
|
|||||||
"mic", "Audio input (microphone)" },
|
"mic", "Audio input (microphone)" },
|
||||||
#if defined(WITH_FREERDP_DEPRECATED_COMMANDLINE)
|
#if defined(WITH_FREERDP_DEPRECATED_COMMANDLINE)
|
||||||
{ "smartcard-list", COMMAND_LINE_VALUE_FLAG | COMMAND_LINE_PRINT, NULL, NULL, NULL, -1, NULL,
|
{ "smartcard-list", COMMAND_LINE_VALUE_FLAG | COMMAND_LINE_PRINT, NULL, NULL, NULL, -1, NULL,
|
||||||
"[DEPRECATED, use /list:smartcard] List smartcard informations" },
|
"[DEPRECATED, use /list:smartcard] List smartcard information" },
|
||||||
{ "monitor-list", COMMAND_LINE_VALUE_FLAG | COMMAND_LINE_PRINT, NULL, NULL, NULL, -1, NULL,
|
{ "monitor-list", COMMAND_LINE_VALUE_FLAG | COMMAND_LINE_PRINT, NULL, NULL, NULL, -1, NULL,
|
||||||
"[DEPRECATED, use /list:monitor] List detected monitors" },
|
"[DEPRECATED, use /list:monitor] List detected monitors" },
|
||||||
#endif
|
#endif
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
.PP
|
.PP
|
||||||
wlog environment variable
|
wlog environment variable
|
||||||
.RS 4
|
.RS 4
|
||||||
@MANPAGE_NAME@ uses wLog as its log facility, you can refer to the corresponding man page (wlog(7)) for more informations\&. Arguments passed via the
|
@MANPAGE_NAME@ uses wLog as its log facility, you can refer to the corresponding man page (wlog(7)) for more information\&. Arguments passed via the
|
||||||
\fI/log\-level\fR
|
\fI/log\-level\fR
|
||||||
or
|
or
|
||||||
\fI/log\-filters\fR
|
\fI/log\-filters\fR
|
||||||
|
@ -126,7 +126,7 @@
|
|||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
#pragma mark Mutable deep copy for dicionary, array and set
|
#pragma mark Mutable deep copy for dictionary, array and set
|
||||||
|
|
||||||
@implementation NSDictionary (TSXAdditions)
|
@implementation NSDictionary (TSXAdditions)
|
||||||
|
|
||||||
|
@ -234,7 +234,7 @@
|
|||||||
EditSelectionTableViewCell *selCell = (EditSelectionTableViewCell *)cell;
|
EditSelectionTableViewCell *selCell = (EditSelectionTableViewCell *)cell;
|
||||||
[[selCell label]
|
[[selCell label]
|
||||||
setText:NSLocalizedString(@"Security",
|
setText:NSLocalizedString(@"Security",
|
||||||
@"'Security': Bookmark protocl security settings")];
|
@"'Security': Bookmark protocol security settings")];
|
||||||
[[selCell selection]
|
[[selCell selection]
|
||||||
setText:ProtocolSecurityDescription([_params intForKey:@"security"])];
|
setText:ProtocolSecurityDescription([_params intForKey:@"security"])];
|
||||||
break;
|
break;
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
@implementation AppSettingsController
|
@implementation AppSettingsController
|
||||||
|
|
||||||
// keep this up-to-date for correct section display/hidding
|
// keep this up-to-date for correct section display/hiding
|
||||||
#define SECTION_UI_SETTINGS 0
|
#define SECTION_UI_SETTINGS 0
|
||||||
#define SECTION_CERTIFICATE_HANDLING_SETTINGS 1
|
#define SECTION_CERTIFICATE_HANDLING_SETTINGS 1
|
||||||
#define SECTION_NUM_SECTIONS 2
|
#define SECTION_NUM_SECTIONS 2
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
@class ConnectionParams;
|
@class ConnectionParams;
|
||||||
|
|
||||||
@protocol BookmarkEditorDelegate <NSObject>
|
@protocol BookmarkEditorDelegate <NSObject>
|
||||||
// bookmark editing finsihed
|
// bookmark editing finished
|
||||||
- (void)commitBookmark:(ComputerBookmark *)bookmark;
|
- (void)commitBookmark:(ComputerBookmark *)bookmark;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
@ -419,7 +419,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// prevent that an item is moved befoer the Add Bookmark item
|
// prevent that an item is moved before the Add Bookmark item
|
||||||
- (NSIndexPath *)tableView:(UITableView *)tableView
|
- (NSIndexPath *)tableView:(UITableView *)tableView
|
||||||
targetIndexPathForMoveFromRowAtIndexPath:(NSIndexPath *)sourceIndexPath
|
targetIndexPathForMoveFromRowAtIndexPath:(NSIndexPath *)sourceIndexPath
|
||||||
toProposedIndexPath:(NSIndexPath *)proposedDestinationIndexPath
|
toProposedIndexPath:(NSIndexPath *)proposedDestinationIndexPath
|
||||||
@ -796,7 +796,7 @@
|
|||||||
|
|
||||||
- (UIButton *)disclosureButtonWithImage:(UIImage *)image
|
- (UIButton *)disclosureButtonWithImage:(UIImage *)image
|
||||||
{
|
{
|
||||||
// we make the button a little bit bigger (image widht * 2, height + 10) so that the user
|
// we make the button a little bit bigger (image width * 2, height + 10) so that the user
|
||||||
// doesn't accidentally connect to the bookmark ...
|
// doesn't accidentally connect to the bookmark ...
|
||||||
UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
|
UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
|
||||||
[button setFrame:CGRectMake(0, 0, [image size].width * 2, [image size].height + 10)];
|
[button setFrame:CGRectMake(0, 0, [image size].width * 2, [image size].height + 10)];
|
||||||
|
@ -38,7 +38,7 @@ extern NSString *TableCellIdentifierButton;
|
|||||||
// returns one of the requested table view cells
|
// returns one of the requested table view cells
|
||||||
- (UITableViewCell *)tableViewCellFromIdentifier:(NSString *)identifier;
|
- (UITableViewCell *)tableViewCellFromIdentifier:(NSString *)identifier;
|
||||||
|
|
||||||
// Adjust text input cells label/textfield widht according to the label's text size
|
// Adjust text input cells label/textfield width according to the label's text size
|
||||||
- (void)adjustEditTextTableViewCell:(EditTextTableViewCell *)cell;
|
- (void)adjustEditTextTableViewCell:(EditTextTableViewCell *)cell;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
@ -68,7 +68,7 @@ static EncryptionController *_shared_encryption_controller = nil;
|
|||||||
return _shared_encryptor;
|
return _shared_encryptor;
|
||||||
}
|
}
|
||||||
|
|
||||||
// For the current implementation, decryptors and encryptors are equivilant.
|
// For the current implementation, decryptors and encryptors are equivalent.
|
||||||
- (Encryptor *)decryptor
|
- (Encryptor *)decryptor
|
||||||
{
|
{
|
||||||
return [self encryptor];
|
return [self encryptor];
|
||||||
|
@ -139,7 +139,7 @@
|
|||||||
}
|
}
|
||||||
[[self navigationController] setNavigationBarHidden:YES animated:animated];
|
[[self navigationController] setNavigationBarHidden:YES animated:animated];
|
||||||
|
|
||||||
// if sesssion is suspended - notify that we got a new bitmap context
|
// if session is suspended - notify that we got a new bitmap context
|
||||||
if ([_session isSuspended])
|
if ([_session isSuspended])
|
||||||
[self sessionBitmapContextWillChange:_session];
|
[self sessionBitmapContextWillChange:_session];
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
NSString *_keyPath;
|
NSString *_keyPath;
|
||||||
ConnectionParams *_params;
|
ConnectionParams *_params;
|
||||||
|
|
||||||
// avaiable options
|
// available options
|
||||||
OrderedDictionary *_color_options;
|
OrderedDictionary *_color_options;
|
||||||
NSArray *_resolution_modes;
|
NSArray *_resolution_modes;
|
||||||
|
|
||||||
|
@ -158,7 +158,7 @@
|
|||||||
|
|
||||||
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
|
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
|
||||||
{
|
{
|
||||||
// custom widht/height cells are not selectable
|
// custom width/height cells are not selectable
|
||||||
if ([indexPath section] == 1 && [indexPath row] >= [_resolution_modes count])
|
if ([indexPath section] == 1 && [indexPath row] >= [_resolution_modes count])
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -423,7 +423,7 @@ void ios_uninit_freerdp()
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
/* compatibilty functions */
|
/* compatibility functions */
|
||||||
size_t fwrite$UNIX2003(const void *ptr, size_t size, size_t nmemb, FILE *stream)
|
size_t fwrite$UNIX2003(const void *ptr, size_t size, size_t nmemb, FILE *stream)
|
||||||
{
|
{
|
||||||
return fwrite(ptr, size, nmemb, stream);
|
return fwrite(ptr, size, nmemb, stream);
|
||||||
|
@ -86,7 +86,7 @@ static void ReachabilityCallback(SCNetworkReachabilityRef target, SCNetworkReach
|
|||||||
@"info was wrong class in ReachabilityCallback");
|
@"info was wrong class in ReachabilityCallback");
|
||||||
|
|
||||||
// We're on the main RunLoop, so an NSAutoreleasePool is not necessary, but is added defensively
|
// We're on the main RunLoop, so an NSAutoreleasePool is not necessary, but is added defensively
|
||||||
// in case someon uses the Reachablity object in a different thread.
|
// in case someone uses the Reachablity object in a different thread.
|
||||||
NSAutoreleasePool *myPool = [[NSAutoreleasePool alloc] init];
|
NSAutoreleasePool *myPool = [[NSAutoreleasePool alloc] init];
|
||||||
|
|
||||||
Reachability *noteObject = (Reachability *)info;
|
Reachability *noteObject = (Reachability *)info;
|
||||||
|
@ -130,7 +130,7 @@ NSArray *ResolutionModes()
|
|||||||
|
|
||||||
NSString *LocalizedAutomaticSecurity()
|
NSString *LocalizedAutomaticSecurity()
|
||||||
{
|
{
|
||||||
return NSLocalizedString(@"Automatic", @"Automatic protocl security selection");
|
return NSLocalizedString(@"Automatic", @"Automatic protocol security selection");
|
||||||
}
|
}
|
||||||
|
|
||||||
NSString *ProtocolSecurityDescription(TSXProtocolSecurityOptions type)
|
NSString *ProtocolSecurityDescription(TSXProtocolSecurityOptions type)
|
||||||
|
@ -235,7 +235,7 @@
|
|||||||
|
|
||||||
- (void)handleAlphaNumChar:(int)character
|
- (void)handleAlphaNumChar:(int)character
|
||||||
{
|
{
|
||||||
// if we recive an uppercase letter - make it lower and send an shift down event to server
|
// if we receive an uppercase letter - make it lower and send an shift down event to server
|
||||||
BOOL shift_was_sent = NO;
|
BOOL shift_was_sent = NO;
|
||||||
if (isupper(character) && _shift_pressed == NO)
|
if (isupper(character) && _shift_pressed == NO)
|
||||||
{
|
{
|
||||||
|
@ -100,7 +100,7 @@ extern NSString *TSXSessionDidFailToConnectNotification;
|
|||||||
// get a small session screenshot
|
// get a small session screenshot
|
||||||
- (UIImage *)getScreenshotWithSize:(CGSize)size;
|
- (UIImage *)getScreenshotWithSize:(CGSize)size;
|
||||||
|
|
||||||
// returns the session's current paramters
|
// returns the session's current parameters
|
||||||
- (rdpSettings *)getSessionParams;
|
- (rdpSettings *)getSessionParams;
|
||||||
|
|
||||||
// returns the session's name (usually the label of the bookmark the session was created with)
|
// returns the session's name (usually the label of the bookmark the session was created with)
|
||||||
|
@ -294,7 +294,7 @@ out_free:
|
|||||||
|
|
||||||
- (void)connect
|
- (void)connect
|
||||||
{
|
{
|
||||||
// Set Screen Size to automatic if widht or height are still 0
|
// Set Screen Size to automatic if width or height are still 0
|
||||||
rdpSettings *settings = _freerdp->context->settings;
|
rdpSettings *settings = _freerdp->context->settings;
|
||||||
|
|
||||||
if (freerdp_settings_get_uint32(settings, FreeRDP_DesktopWidth) == 0 ||
|
if (freerdp_settings_get_uint32(settings, FreeRDP_DesktopWidth) == 0 ||
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
/* Advanced Settings title */
|
/* Advanced Settings title */
|
||||||
"Advanced Settings" = "Advanced Settings";
|
"Advanced Settings" = "Advanced Settings";
|
||||||
|
|
||||||
/* Automatic protocl security selection
|
/* Automatic protocol security selection
|
||||||
Screen resolution selector: Automatic resolution (full screen on iPad, reasonable size on iPhone) */
|
Screen resolution selector: Automatic resolution (full screen on iPad, reasonable size on iPhone) */
|
||||||
"Automatic" = "Automatic";
|
"Automatic" = "Automatic";
|
||||||
|
|
||||||
@ -205,7 +205,7 @@
|
|||||||
/* 'Screen': Bookmark Screen settings */
|
/* 'Screen': Bookmark Screen settings */
|
||||||
"Screen" = "Screen";
|
"Screen" = "Screen";
|
||||||
|
|
||||||
/* 'Security': Bookmark protocl security settings */
|
/* 'Security': Bookmark protocol security settings */
|
||||||
"Security" = "Security";
|
"Security" = "Security";
|
||||||
|
|
||||||
/* Server Certificate Handling section title */
|
/* Server Certificate Handling section title */
|
||||||
|
@ -279,7 +279,7 @@ static UIFont *buttonFont = nil;
|
|||||||
}
|
}
|
||||||
else if (_blocks.count == 1)
|
else if (_blocks.count == 1)
|
||||||
{
|
{
|
||||||
// In this case this is the ony button. We'll size according to the text
|
// In this case this is the only button. We'll size according to the text
|
||||||
CGSize size = [title sizeWithFont:buttonFont
|
CGSize size = [title sizeWithFont:buttonFont
|
||||||
minFontSize:10
|
minFontSize:10
|
||||||
actualFontSize:nil
|
actualFontSize:nil
|
||||||
|
@ -23,7 +23,7 @@ function (clang_detect_tool VAR NAME OPTS)
|
|||||||
)
|
)
|
||||||
|
|
||||||
if (_CLANG_TOOL_VERSION_FAILED)
|
if (_CLANG_TOOL_VERSION_FAILED)
|
||||||
message(WARNING "A problem was encounterd with ${${VAR}}")
|
message(WARNING "A problem was encountered with ${${VAR}}")
|
||||||
message(WARNING "${_CLANG_TOOL_VERSION_FAILED}")
|
message(WARNING "${_CLANG_TOOL_VERSION_FAILED}")
|
||||||
unset(${VAR})
|
unset(${VAR})
|
||||||
return()
|
return()
|
||||||
|
@ -57,7 +57,7 @@ IF(NOT PKGCONFIG_FOUND AND WIN32 AND NOT CYGWIN)
|
|||||||
# MINGW should go here too
|
# MINGW should go here too
|
||||||
IF(MSVC)
|
IF(MSVC)
|
||||||
# Implementation details:
|
# Implementation details:
|
||||||
# We are using the libraries located in the VC subdir instead of the parent directory eventhough :
|
# We are using the libraries located in the VC subdir instead of the parent directory even though :
|
||||||
FIND_LIBRARY(CAIRO_DEBUG
|
FIND_LIBRARY(CAIRO_DEBUG
|
||||||
NAMES
|
NAMES
|
||||||
cairod
|
cairod
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
# KRB5_LDFLAGS - Additional linker flags
|
# KRB5_LDFLAGS - Additional linker flags
|
||||||
# KRB5_CFLAGS - Additional compiler flags
|
# KRB5_CFLAGS - Additional compiler flags
|
||||||
# KRB5_VERSION - This is set to version advertised by pkg-config or read from manifest.
|
# KRB5_VERSION - This is set to version advertised by pkg-config or read from manifest.
|
||||||
# In case the library is found but no version info availabe it'll be set to "unknown"
|
# In case the library is found but no version info available it'll be set to "unknown"
|
||||||
|
|
||||||
include(CheckIncludeFile)
|
include(CheckIncludeFile)
|
||||||
include(CheckIncludeFiles)
|
include(CheckIncludeFiles)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Get all propreties that cmake supports
|
# Get all properties that cmake supports
|
||||||
if(NOT CMAKE_PROPERTY_LIST)
|
if(NOT CMAKE_PROPERTY_LIST)
|
||||||
execute_process(COMMAND cmake --help-property-list OUTPUT_VARIABLE CMAKE_PROPERTY_LIST)
|
execute_process(COMMAND cmake --help-property-list OUTPUT_VARIABLE CMAKE_PROPERTY_LIST)
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ function(merge_static_libs output_library)
|
|||||||
|
|
||||||
# Now the easy part for MSVC and for MAC
|
# Now the easy part for MSVC and for MAC
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
# lib.exe does the merging of libraries just need to conver the list into string
|
# lib.exe does the merging of libraries just need to convert the list into string
|
||||||
foreach(CONFIG_TYPE ${CMAKE_CONFIGURATION_TYPES})
|
foreach(CONFIG_TYPE ${CMAKE_CONFIGURATION_TYPES})
|
||||||
set(flags "")
|
set(flags "")
|
||||||
foreach(lib ${libfiles_${CONFIG_TYPE}})
|
foreach(lib ${libfiles_${CONFIG_TYPE}})
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# This option allows deactivating FreeRDP supplied platform defauts to replace these with
|
# This option allows deactivating FreeRDP supplied platform defaults to replace these with
|
||||||
# user supplied values.
|
# user supplied values.
|
||||||
#
|
#
|
||||||
# Compilation will fail without a replacement defining the symbols, but that can be
|
# Compilation will fail without a replacement defining the symbols, but that can be
|
||||||
@ -25,7 +25,7 @@ if (USE_PLATFORM_DEFAULT)
|
|||||||
# is implemented, so ignore _POSIX_VERSION from unistd.h
|
# is implemented, so ignore _POSIX_VERSION from unistd.h
|
||||||
add_definitions("-D_POSIX_C_SOURCE=200809L")
|
add_definitions("-D_POSIX_C_SOURCE=200809L")
|
||||||
# TODO: FreeBSD allows mixing POSIX and BSD API calls if we do not set
|
# TODO: FreeBSD allows mixing POSIX and BSD API calls if we do not set
|
||||||
# _POSIX_C_SOURCE but lack a macro to reenable the BSD calls...
|
# _POSIX_C_SOURCE but lack a macro to re-enable the BSD calls...
|
||||||
add_definitions("-D__BSD_VISIBLE")
|
add_definitions("-D__BSD_VISIBLE")
|
||||||
|
|
||||||
# There are some symbols only visible for XOpen standard
|
# There are some symbols only visible for XOpen standard
|
||||||
@ -48,7 +48,7 @@ if (USE_PLATFORM_DEFAULT)
|
|||||||
# is implemented, so ignore _POSIX_VERSION from unistd.h
|
# is implemented, so ignore _POSIX_VERSION from unistd.h
|
||||||
add_definitions("-D_POSIX_C_SOURCE=200809L")
|
add_definitions("-D_POSIX_C_SOURCE=200809L")
|
||||||
|
|
||||||
# as _POSIX_C_SOURCE sets a fully POSIX confirmant environment reenable
|
# as _POSIX_C_SOURCE sets a fully POSIX confirmant environment re-enable
|
||||||
# MacOS API visibility by defining the following feature test macro
|
# MacOS API visibility by defining the following feature test macro
|
||||||
add_definitions("-D_DARWIN_C_SOURCE")
|
add_definitions("-D_DARWIN_C_SOURCE")
|
||||||
endif()
|
endif()
|
||||||
@ -73,7 +73,7 @@ if (USE_PLATFORM_DEFAULT)
|
|||||||
# is implemented, so ignore _POSIX_VERSION from unistd.h
|
# is implemented, so ignore _POSIX_VERSION from unistd.h
|
||||||
add_definitions("-D_POSIX_C_SOURCE=200809L")
|
add_definitions("-D_POSIX_C_SOURCE=200809L")
|
||||||
# TODO: FreeBSD allows mixing POSIX and BSD API calls if we do not set
|
# TODO: FreeBSD allows mixing POSIX and BSD API calls if we do not set
|
||||||
# _POSIX_C_SOURCE but lack a macro to reenable the BSD calls...
|
# _POSIX_C_SOURCE but lack a macro to re-enable the BSD calls...
|
||||||
add_definitions("-D__BSD_VISIBLE")
|
add_definitions("-D__BSD_VISIBLE")
|
||||||
|
|
||||||
# There are some symbols only visible for XOpen standard
|
# There are some symbols only visible for XOpen standard
|
||||||
|
@ -85,7 +85,7 @@ CREATE_SUBDIRS = NO
|
|||||||
# level increment doubles the number of directories, resulting in 4096
|
# level increment doubles the number of directories, resulting in 4096
|
||||||
# directories at level 8 which is the default and also the maximum value. The
|
# directories at level 8 which is the default and also the maximum value. The
|
||||||
# sub-directories are organized in 2 levels, the first level always has a fixed
|
# sub-directories are organized in 2 levels, the first level always has a fixed
|
||||||
# numer of 16 directories.
|
# number of 16 directories.
|
||||||
# Minimum value: 0, maximum value: 8, default value: 8.
|
# Minimum value: 0, maximum value: 8, default value: 8.
|
||||||
# This tag requires that the tag CREATE_SUBDIRS is set to YES.
|
# This tag requires that the tag CREATE_SUBDIRS is set to YES.
|
||||||
|
|
||||||
|
@ -112,7 +112,7 @@ We support
|
|||||||
* FUSE for file clipboard support (linux/mac os, disable with -DWITH_FUSE=OFF)
|
* FUSE for file clipboard support (linux/mac os, disable with -DWITH_FUSE=OFF)
|
||||||
* Wayland for wlfreerdp (disable with -DWITH_WAYLAND=OFF)
|
* Wayland for wlfreerdp (disable with -DWITH_WAYLAND=OFF)
|
||||||
* X11 development headers for X11 client (disable with -DWITH_X11=OFF)
|
* X11 development headers for X11 client (disable with -DWITH_X11=OFF)
|
||||||
* ALSA development headers/libraris (disable with -DWITH_ALSA=OFF)
|
* ALSA development headers/libraries (disable with -DWITH_ALSA=OFF)
|
||||||
* PULSE development headers/libraries (disable with -DWITH_PULSE=OFF)
|
* PULSE development headers/libraries (disable with -DWITH_PULSE=OFF)
|
||||||
* OSS development headers/libraries (disable with -DWITH_OSS=OFF)
|
* OSS development headers/libraries (disable with -DWITH_OSS=OFF)
|
||||||
|
|
||||||
@ -137,7 +137,7 @@ disable with -DWITH_WINPR_TOOLS=OFF
|
|||||||
* Use Ninja to speed up your builds
|
* Use Ninja to speed up your builds
|
||||||
* For release builds add -DCMAKE_BUILD_TYPE=Release (or RelWithDebInfo for less optimized but with debug symbols)
|
* For release builds add -DCMAKE_BUILD_TYPE=Release (or RelWithDebInfo for less optimized but with debug symbols)
|
||||||
* -DWITH_VERBOSE_WINPR_ASSERT=OFF reduces the size of the build considerably but removes lots
|
* -DWITH_VERBOSE_WINPR_ASSERT=OFF reduces the size of the build considerably but removes lots
|
||||||
of santity checks in code. Recommended for stable builds, for builds not from stable releases
|
of sanity checks in code. Recommended for stable builds, for builds not from stable releases
|
||||||
it is recommended to keep -DWITH_VERBOSE_WINPR_ASSERT=ON to have useful information on crashes.
|
it is recommended to keep -DWITH_VERBOSE_WINPR_ASSERT=ON to have useful information on crashes.
|
||||||
|
|
||||||
15. Example build instructions:
|
15. Example build instructions:
|
||||||
|
@ -100,7 +100,7 @@ CMAKE_IOS_SDK_ROOT (used by toolchain file)
|
|||||||
* absolute path to the iOS SDK (i.e. /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk) the toolchain file will usually auto-detect the correct SDK, depending on IOS_PLATFORM
|
* absolute path to the iOS SDK (i.e. /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk) the toolchain file will usually auto-detect the correct SDK, depending on IOS_PLATFORM
|
||||||
|
|
||||||
FREERDP_IOS_EXTERNAL_SSL_PATH (used by FindOpenSSL)
|
FREERDP_IOS_EXTERNAL_SSL_PATH (used by FindOpenSSL)
|
||||||
* absolut root path to the pre-built static OpenSSL libraries
|
* absolute root path to the pre-built static OpenSSL libraries
|
||||||
|
|
||||||
CODE_SIGN_IDENTITY
|
CODE_SIGN_IDENTITY
|
||||||
* specify the identity to sign the code with
|
* specify the identity to sign the code with
|
||||||
|
@ -4,7 +4,7 @@ More documentation might be found at https://github.com/FreeRDP/FreeRDP/wiki/Com
|
|||||||
Starting with "El Capitan" Apple removed the openssl headers. Therefore it's
|
Starting with "El Capitan" Apple removed the openssl headers. Therefore it's
|
||||||
required to build openssl manually upfront. For example by using MacPorts or Homebrew.
|
required to build openssl manually upfront. For example by using MacPorts or Homebrew.
|
||||||
To build FreeRDP against this library it's required to set the PKG_CONFIG_PATH
|
To build FreeRDP against this library it's required to set the PKG_CONFIG_PATH
|
||||||
pointing to the openssl root directory befor building.
|
pointing to the openssl root directory before building.
|
||||||
For example with brew it would look like this:
|
For example with brew it would look like this:
|
||||||
|
|
||||||
export PKG_CONFIG_PATH=$(brew --prefix)/opt/openssl/lib/pkgconfig
|
export PKG_CONFIG_PATH=$(brew --prefix)/opt/openssl/lib/pkgconfig
|
||||||
|
@ -6,7 +6,7 @@ When doing a `xfreerdp /version` for example the following is shown
|
|||||||
|
|
||||||
`This is FreeRDP version 3.0.0-dev (c99c4cecddee4e5b914b122bc1531d47a668bb8e)`
|
`This is FreeRDP version 3.0.0-dev (c99c4cecddee4e5b914b122bc1531d47a668bb8e)`
|
||||||
|
|
||||||
The first part ist the Version as defined in `RAW_VERSION_STRING` and the second part, in braces,
|
The first part is the Version as defined in `RAW_VERSION_STRING` and the second part, in braces,
|
||||||
the `GIT_REVISON` of this version.
|
the `GIT_REVISON` of this version.
|
||||||
|
|
||||||
`RAW_VERSION_STRING` is very vital as it determines the version used for libraries as well also for
|
`RAW_VERSION_STRING` is very vital as it determines the version used for libraries as well also for
|
||||||
|
@ -38,7 +38,7 @@ The level list below is top down. Top the highest level.
|
|||||||
|
|
||||||
* WLOG_TRACE - print everything including package dumps
|
* WLOG_TRACE - print everything including package dumps
|
||||||
* WLOG_DEBUG - debug messages
|
* WLOG_DEBUG - debug messages
|
||||||
* WLOG_INFO - general informations
|
* WLOG_INFO - general information
|
||||||
* WLOG_WARN - warnings
|
* WLOG_WARN - warnings
|
||||||
* WLOG_ERROR - errors
|
* WLOG_ERROR - errors
|
||||||
* WLOG_FATAL - fatal problems
|
* WLOG_FATAL - fatal problems
|
||||||
|
@ -110,7 +110,7 @@ typedef enum
|
|||||||
} FreeRDP_Settings_Keys_Pointer;
|
} FreeRDP_Settings_Keys_Pointer;
|
||||||
|
|
||||||
|
|
||||||
/** Highest indes in the rdpSettings stable API
|
/** Highest index in the rdpSettings stable API
|
||||||
*
|
*
|
||||||
* \since version 3.0.0
|
* \since version 3.0.0
|
||||||
*/
|
*/
|
||||||
|
@ -113,7 +113,7 @@ typedef struct
|
|||||||
{
|
{
|
||||||
UINT64 poolId;
|
UINT64 poolId;
|
||||||
UINT64 poolSize;
|
UINT64 poolSize;
|
||||||
UINT32 sectionNameLength; // number of charactor, must include null terminated char.
|
UINT32 sectionNameLength; // number of characters, must include null terminated char.
|
||||||
const unsigned short* sectionName; // Windows-style 2 bytes wchar_t with null-terminated.
|
const unsigned short* sectionName; // Windows-style 2 bytes wchar_t with null-terminated.
|
||||||
} GFXREDIR_OPEN_POOL_PDU;
|
} GFXREDIR_OPEN_POOL_PDU;
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ extern "C"
|
|||||||
/*** Design considerations
|
/*** Design considerations
|
||||||
*
|
*
|
||||||
* The format naming scheme is based on byte position in memory.
|
* The format naming scheme is based on byte position in memory.
|
||||||
* RGBA for example names a byte array with red on positon 0, green on 1 etc.
|
* RGBA for example names a byte array with red on position 0, green on 1 etc.
|
||||||
*
|
*
|
||||||
* To read and write the appropriate format from / to memory use FreeRDPReadColor and
|
* To read and write the appropriate format from / to memory use FreeRDPReadColor and
|
||||||
* FreeRDPWriteColor.
|
* FreeRDPWriteColor.
|
||||||
@ -145,7 +145,7 @@ typedef struct gdi_palette gdiPalette;
|
|||||||
* @param _g green color value
|
* @param _g green color value
|
||||||
* @param _b blue color value
|
* @param _b blue color value
|
||||||
* @param _a alpha color value
|
* @param _a alpha color value
|
||||||
* @param palette pallete to use (only used for 8 bit color!)
|
* @param palette palette to use (only used for 8 bit color!)
|
||||||
*/
|
*/
|
||||||
#if defined(WITH_FREERDP_DEPRECATED)
|
#if defined(WITH_FREERDP_DEPRECATED)
|
||||||
#define SplitColor(...) FreeRDPSplitColor(__VA_ARGS__)
|
#define SplitColor(...) FreeRDPSplitColor(__VA_ARGS__)
|
||||||
@ -245,7 +245,7 @@ typedef struct gdi_palette gdiPalette;
|
|||||||
* @param color The pixel color in srcFormat representation
|
* @param color The pixel color in srcFormat representation
|
||||||
* @param srcFormat The PIXEL_FORMAT_* of color
|
* @param srcFormat The PIXEL_FORMAT_* of color
|
||||||
* @param dstFormat The PIXEL_FORMAT_* of the return.
|
* @param dstFormat The PIXEL_FORMAT_* of the return.
|
||||||
* @param palette pallete to use (only used for 8 bit color!)
|
* @param palette palette to use (only used for 8 bit color!)
|
||||||
*
|
*
|
||||||
* @return The converted pixel color in dstFormat representation
|
* @return The converted pixel color in dstFormat representation
|
||||||
*/
|
*/
|
||||||
@ -434,9 +434,9 @@ typedef struct gdi_palette gdiPalette;
|
|||||||
|
|
||||||
/***
|
/***
|
||||||
*
|
*
|
||||||
* @param pDstData destionation buffer
|
* @param pDstData destination buffer
|
||||||
* @param DstFormat destionation buffer format
|
* @param DstFormat destination buffer format
|
||||||
* @param nDstStep destionation buffer stride (line in bytes) 0 for default
|
* @param nDstStep destination buffer stride (line in bytes) 0 for default
|
||||||
* @param nXDst destination buffer offset x
|
* @param nXDst destination buffer offset x
|
||||||
* @param nYDst destination buffer offset y
|
* @param nYDst destination buffer offset y
|
||||||
* @param nWidth width to copy in pixels
|
* @param nWidth width to copy in pixels
|
||||||
|
@ -43,7 +43,7 @@ extern "C"
|
|||||||
/** BASE64 encode data
|
/** BASE64 encode data
|
||||||
*
|
*
|
||||||
* @param data The data to encode
|
* @param data The data to encode
|
||||||
* @param length The lenght of the data in bytes
|
* @param length The length of the data in bytes
|
||||||
* @param withCrLf Option to split the encoded data with CRLF linebreaks
|
* @param withCrLf Option to split the encoded data with CRLF linebreaks
|
||||||
*
|
*
|
||||||
* @since version 3.0.0
|
* @since version 3.0.0
|
||||||
|
@ -417,7 +417,7 @@ owned by rdpRdp */
|
|||||||
size to allocate the context buffer. freerdp_new() sets it to
|
size to allocate the context buffer. freerdp_new() sets it to
|
||||||
sizeof(rdpContext). If modifying it, there should always be a minimum of
|
sizeof(rdpContext). If modifying it, there should always be a minimum of
|
||||||
sizeof(rdpContext), as the freerdp library will assume it can use the 'context'
|
sizeof(rdpContext), as the freerdp library will assume it can use the 'context'
|
||||||
field to set the required informations in it. Clients will typically make it
|
field to set the required information in it. Clients will typically make it
|
||||||
bigger, and use a context structure embedding the rdpContext, and adding
|
bigger, and use a context structure embedding the rdpContext, and adding
|
||||||
additional information after that.
|
additional information after that.
|
||||||
*/
|
*/
|
||||||
|
@ -50,7 +50,7 @@ extern "C"
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief pf_server_add_module Allows registering proxy modules that are
|
* @brief pf_server_add_module Allows registering proxy modules that are
|
||||||
* build-in instead of shipped as separate
|
* built-in instead of shipped as separate
|
||||||
* module loaded at runtime.
|
* module loaded at runtime.
|
||||||
*
|
*
|
||||||
* @param server A proxy instance to add the module to. Must NOT be NULL
|
* @param server A proxy instance to add the module to. Must NOT be NULL
|
||||||
|
@ -661,7 +661,7 @@ extern "C"
|
|||||||
* the settings.
|
* the settings.
|
||||||
*
|
*
|
||||||
* \param settings A pointer to the settings to use
|
* \param settings A pointer to the settings to use
|
||||||
* \param capsFlags A pointer to the capablity flags, must have capsCount fields
|
* \param capsFlags A pointer to the capability flags, must have capsCount fields
|
||||||
* \param capsData A pointer array to the RAW capability data, must have capsCount fields
|
* \param capsData A pointer array to the RAW capability data, must have capsCount fields
|
||||||
* \param capsSizes A pointer to an array of RAW capability sizes, must have capsCount fields
|
* \param capsSizes A pointer to an array of RAW capability sizes, must have capsCount fields
|
||||||
* \param capsCount The number of capabilities contained in the RAW data
|
* \param capsCount The number of capabilities contained in the RAW data
|
||||||
|
@ -79,7 +79,7 @@ extern "C"
|
|||||||
typedef BOOL (*pTransportGetPublicKey)(rdpTransport* transport, const BYTE** data,
|
typedef BOOL (*pTransportGetPublicKey)(rdpTransport* transport, const BYTE** data,
|
||||||
DWORD* length);
|
DWORD* length);
|
||||||
/**
|
/**
|
||||||
* @brief Mofify transport behaviour between bocking and non blocking operation
|
* @brief Modify transport behaviour between blocking and non blocking operation
|
||||||
*
|
*
|
||||||
* @param transport The transport to manipulate
|
* @param transport The transport to manipulate
|
||||||
* @param blocking Boolean to set the transport \b TRUE blocking and \b FALSE non-blocking
|
* @param blocking Boolean to set the transport \b TRUE blocking and \b FALSE non-blocking
|
||||||
@ -133,7 +133,7 @@ extern "C"
|
|||||||
* incomplete: FALSE if the whole PDU is available, TRUE otherwise
|
* incomplete: FALSE if the whole PDU is available, TRUE otherwise
|
||||||
* Return: 0 -> PDU header incomplete
|
* Return: 0 -> PDU header incomplete
|
||||||
* >0 -> PDU header complete, length of PDU.
|
* >0 -> PDU header complete, length of PDU.
|
||||||
* <0 -> Abort, an error occured
|
* <0 -> Abort, an error occurred
|
||||||
*/
|
*/
|
||||||
FREERDP_API SSIZE_T transport_parse_pdu(rdpTransport* transport, wStream* s, BOOL* incomplete);
|
FREERDP_API SSIZE_T transport_parse_pdu(rdpTransport* transport, wStream* s, BOOL* incomplete);
|
||||||
FREERDP_API rdpContext* transport_get_context(rdpTransport* transport);
|
FREERDP_API rdpContext* transport_get_context(rdpTransport* transport);
|
||||||
|
@ -55,7 +55,7 @@
|
|||||||
#define WINDOW_ORDER_FIELD_APPBAR_STATE 0x00000040
|
#define WINDOW_ORDER_FIELD_APPBAR_STATE 0x00000040
|
||||||
#define WINDOW_ORDER_FIELD_APPBAR_EDGE 0x00000001
|
#define WINDOW_ORDER_FIELD_APPBAR_EDGE 0x00000001
|
||||||
|
|
||||||
/* Window (chached) Icon */
|
/* Window (cached) Icon */
|
||||||
#define WINDOW_ORDER_ICON 0x40000000
|
#define WINDOW_ORDER_ICON 0x40000000
|
||||||
#define WINDOW_ORDER_CACHED_ICON 0x80000000
|
#define WINDOW_ORDER_CACHED_ICON 0x80000000
|
||||||
#define WINDOW_ORDER_FIELD_ICON_BIG 0x00002000
|
#define WINDOW_ORDER_FIELD_ICON_BIG 0x00002000
|
||||||
|
@ -737,7 +737,7 @@ static BOOL freerdp_dsp_channel_mix(FREERDP_DSP_CONTEXT* WINPR_RESTRICT context,
|
|||||||
|
|
||||||
case 2: /* We only support stereo, so we can not handle this case. */
|
case 2: /* We only support stereo, so we can not handle this case. */
|
||||||
default: /* Unsupported number of channels */
|
default: /* Unsupported number of channels */
|
||||||
WLog_WARN(TAG, "[%s] unsuported source channel count %" PRIu16, __func__,
|
WLog_WARN(TAG, "[%s] unsupported source channel count %" PRIu16, __func__,
|
||||||
srcFormat->nChannels);
|
srcFormat->nChannels);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
@ -766,7 +766,7 @@ static BOOL freerdp_dsp_channel_mix(FREERDP_DSP_CONTEXT* WINPR_RESTRICT context,
|
|||||||
|
|
||||||
case 1: /* Invalid, do we want to use a 0 channel sound? */
|
case 1: /* Invalid, do we want to use a 0 channel sound? */
|
||||||
default: /* Unsupported number of channels */
|
default: /* Unsupported number of channels */
|
||||||
WLog_WARN(TAG, "[%s] unsuported channel count %" PRIu16, __func__,
|
WLog_WARN(TAG, "[%s] unsupported channel count %" PRIu16, __func__,
|
||||||
srcFormat->nChannels);
|
srcFormat->nChannels);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
@ -282,7 +282,7 @@ static void region16_copy_band_with_union(RECTANGLE_16* dst, const RECTANGLE_16*
|
|||||||
*
|
*
|
||||||
* We first copy as-is items that are before Item2, the first overlapping
|
* We first copy as-is items that are before Item2, the first overlapping
|
||||||
* item.
|
* item.
|
||||||
* Then we find the last one that overlap unionRect to agregate Item2, Item3
|
* Then we find the last one that overlap unionRect to aggregate Item2, Item3
|
||||||
* and Item4 to create Item2.
|
* and Item4 to create Item2.
|
||||||
* Finally Item5 is copied as Item3.
|
* Finally Item5 is copied as Item3.
|
||||||
*
|
*
|
||||||
@ -589,13 +589,13 @@ BOOL region16_union_rect(REGION16* dst, const REGION16* src, const RECTANGLE_16*
|
|||||||
| | | |
|
| | | |
|
||||||
|
|
||||||
possible cases:
|
possible cases:
|
||||||
1) no top split, merge zone then a bottom split. The band will be splitted
|
1) no top split, merge zone then a bottom split. The band will be split
|
||||||
in two
|
in two
|
||||||
2) not band split, only the merge zone, band merged with rect but not splitted
|
2) not band split, only the merge zone, band merged with rect but not split
|
||||||
3) a top split, the merge zone and no bottom split. The band will be split
|
3) a top split, the merge zone and no bottom split. The band will be split
|
||||||
in two
|
in two
|
||||||
4) a top split, the merge zone and also a bottom split. The band will be
|
4) a top split, the merge zone and also a bottom split. The band will be
|
||||||
splitted in 3, but the coalesce algorithm may merge the created bands
|
split in 3, but the coalesce algorithm may merge the created bands
|
||||||
*/
|
*/
|
||||||
UINT16 mergeTop = currentBand->top;
|
UINT16 mergeTop = currentBand->top;
|
||||||
UINT16 mergeBottom = currentBand->bottom;
|
UINT16 mergeBottom = currentBand->bottom;
|
||||||
|
@ -60,7 +60,7 @@
|
|||||||
* and lower quality.
|
* and lower quality.
|
||||||
*
|
*
|
||||||
* This is the default values being use by the MS RDP server, and we will also
|
* This is the default values being use by the MS RDP server, and we will also
|
||||||
* use it as our default values for the encoder. It can be overrided by setting
|
* use it as our default values for the encoder. It can be overridden by setting
|
||||||
* the context->num_quants and context->quants member.
|
* the context->num_quants and context->quants member.
|
||||||
*
|
*
|
||||||
* The order of the values are:
|
* The order of the values are:
|
||||||
@ -257,7 +257,7 @@ RFX_CONTEXT* rfx_context_new_ex(BOOL encoder, UINT32 ThreadingFlags)
|
|||||||
* that are actually in front/beyond the buffer. Offset calculations are
|
* that are actually in front/beyond the buffer. Offset calculations are
|
||||||
* performed at the BufferPool_Take function calls in rfx_encode/decode.c.
|
* performed at the BufferPool_Take function calls in rfx_encode/decode.c.
|
||||||
*
|
*
|
||||||
* We then multiply by 3 to use a single, partioned buffer for all 3 channels.
|
* We then multiply by 3 to use a single, partionned buffer for all 3 channels.
|
||||||
*/
|
*/
|
||||||
priv->BufferPool = BufferPool_New(TRUE, (8192ULL + 32ULL) * 3ULL, 16);
|
priv->BufferPool = BufferPool_New(TRUE, (8192ULL + 32ULL) * 3ULL, 16);
|
||||||
|
|
||||||
|
@ -5432,7 +5432,7 @@ static BOOL CompareBitmap(const BYTE* srcA, UINT32 srcAFormat, const BYTE* srcB,
|
|||||||
if ((srcABits < 15) || (srcBBits < 15))
|
if ((srcABits < 15) || (srcBBits < 15))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
/* Compare with folliwing granularity:
|
/* Compare with following granularity:
|
||||||
* 32 --> 24 bpp: Each color channel has 8bpp, no difference expected
|
* 32 --> 24 bpp: Each color channel has 8bpp, no difference expected
|
||||||
* 24/32 --> 15/16 bpp: 8bit per channel against 5/6bit per channel, +/- 3bit
|
* 24/32 --> 15/16 bpp: 8bit per channel against 5/6bit per channel, +/- 3bit
|
||||||
* 16 --> 15bpp: 5/6bit per channel against 5 bit per channel, +/- 1bit
|
* 16 --> 15bpp: 5/6bit per channel against 5 bit per channel, +/- 1bit
|
||||||
|
@ -769,7 +769,7 @@ static INLINE size_t xcrush_copy_bytes_no_overlap(BYTE* WINPR_RESTRICT dst,
|
|||||||
const BYTE* WINPR_RESTRICT src, size_t num)
|
const BYTE* WINPR_RESTRICT src, size_t num)
|
||||||
{
|
{
|
||||||
// src and dst overlaps
|
// src and dst overlaps
|
||||||
// we should copy the area that doesn't overlap repeatly
|
// we should copy the area that doesn't overlap repeatedly
|
||||||
const size_t diff = (dst > src) ? dst - src : src - dst;
|
const size_t diff = (dst > src) ? dst - src : src - dst;
|
||||||
const size_t rest = num % diff;
|
const size_t rest = num % diff;
|
||||||
const size_t end = num - rest;
|
const size_t end = num - rest;
|
||||||
|
@ -1099,7 +1099,7 @@ static BOOL rdp_read_pointer_capability_set(wStream* s, rdpSettings* settings)
|
|||||||
{
|
{
|
||||||
WLog_WARN(TAG, "[MS-RDPBCGR] 2.2.7.1.5 Pointer Capability Set "
|
WLog_WARN(TAG, "[MS-RDPBCGR] 2.2.7.1.5 Pointer Capability Set "
|
||||||
"(TS_POINTER_CAPABILITYSET)::colorPointerFlag received is %" PRIu16
|
"(TS_POINTER_CAPABILITYSET)::colorPointerFlag received is %" PRIu16
|
||||||
". Vaue is ignored and always assumed to be TRUE");
|
". Value is ignored and always assumed to be TRUE");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* pointerCacheSize is optional */
|
/* pointerCacheSize is optional */
|
||||||
@ -2705,7 +2705,7 @@ static BOOL rdp_apply_multifragment_update_capability_set(rdpSettings* settings,
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* In client mode we keep up with the server's capabilites.
|
* In client mode we keep up with the server's capabilities.
|
||||||
* In RemoteFX mode we MUST do this but it might also be useful to
|
* In RemoteFX mode we MUST do this but it might also be useful to
|
||||||
* receive larger related bitmap updates.
|
* receive larger related bitmap updates.
|
||||||
*/
|
*/
|
||||||
|
@ -198,7 +198,7 @@ BOOL freerdp_connect(freerdp* instance)
|
|||||||
if (rc == 0)
|
if (rc == 0)
|
||||||
goto freerdp_connect_finally;
|
goto freerdp_connect_finally;
|
||||||
|
|
||||||
/* Pointers might have changed inbetween */
|
/* Pointers might have changed in between */
|
||||||
{
|
{
|
||||||
rdp_update_internal* up = update_cast(rdp->update);
|
rdp_update_internal* up = update_cast(rdp->update);
|
||||||
|
|
||||||
|
@ -1307,7 +1307,7 @@ static SSIZE_T http_response_recv_line(rdpTls* tls, HttpResponse* response)
|
|||||||
goto out_error;
|
goto out_error;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Always check at most the lase 8 bytes for occurance of the desired
|
/* Always check at most the lase 8 bytes for occurrence of the desired
|
||||||
* sequence of \r\n\r\n */
|
* sequence of \r\n\r\n */
|
||||||
s = (position > 8) ? 8 : position;
|
s = (position > 8) ? 8 : position;
|
||||||
end = (char*)Stream_Pointer(response->data) - s;
|
end = (char*)Stream_Pointer(response->data) - s;
|
||||||
|
@ -728,7 +728,7 @@ wStream* license_send_stream_init(rdpLicense* license)
|
|||||||
* layer is used. If the peer has not indicated that it is capable of
|
* layer is used. If the peer has not indicated that it is capable of
|
||||||
* processing encrypted licensing packets (rdp->do_crypt_license) we turn
|
* processing encrypted licensing packets (rdp->do_crypt_license) we turn
|
||||||
* off encryption (via rdp->do_crypt) before initializing the rdp stream
|
* off encryption (via rdp->do_crypt) before initializing the rdp stream
|
||||||
* and reenable it afterwards.
|
* and re-enable it afterwards.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (do_crypt)
|
if (do_crypt)
|
||||||
|
@ -102,7 +102,7 @@
|
|||||||
* subInterval INTEGER (0..MAX)
|
* subInterval INTEGER (0..MAX)
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* AttachUserRequest ::= [APPPLICATION 10] IMPLICIT SEQUENCE
|
* AttachUserRequest ::= [APPLICATION 10] IMPLICIT SEQUENCE
|
||||||
* {
|
* {
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
|
@ -1509,7 +1509,7 @@ BOOL nego_send_negotiation_response(rdpNego* nego)
|
|||||||
ENCRYPTION_LEVEL_NONE)
|
ENCRYPTION_LEVEL_NONE)
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* If the server implementation did not explicitely set a
|
* If the server implementation did not explicitly set a
|
||||||
* encryption level we default to client compatible
|
* encryption level we default to client compatible
|
||||||
*/
|
*/
|
||||||
if (!freerdp_settings_set_uint32(settings, FreeRDP_EncryptionLevel,
|
if (!freerdp_settings_set_uint32(settings, FreeRDP_EncryptionLevel,
|
||||||
@ -1817,7 +1817,7 @@ void nego_enable_aad(rdpNego* nego, BOOL enable_aad)
|
|||||||
* Set routing token.
|
* Set routing token.
|
||||||
* @param nego A pointer to the NEGO struct
|
* @param nego A pointer to the NEGO struct
|
||||||
* @param RoutingToken A pointer to the routing token
|
* @param RoutingToken A pointer to the routing token
|
||||||
* @param RoutingTokenLength The lenght of the routing token
|
* @param RoutingTokenLength The length of the routing token
|
||||||
*
|
*
|
||||||
* @return \b TRUE for success, \b FALSE otherwise
|
* @return \b TRUE for success, \b FALSE otherwise
|
||||||
*/
|
*/
|
||||||
|
@ -2968,7 +2968,7 @@ static void log_build_warn_cipher(rdpRdp* rdp, log_line_t* firstLine, WINPR_CIPH
|
|||||||
char key[WINPR_CIPHER_MAX_KEY_LENGTH] = { 0 };
|
char key[WINPR_CIPHER_MAX_KEY_LENGTH] = { 0 };
|
||||||
char iv[WINPR_CIPHER_MAX_IV_LENGTH] = { 0 };
|
char iv[WINPR_CIPHER_MAX_IV_LENGTH] = { 0 };
|
||||||
|
|
||||||
/* RC4 only exists in the compatiblity functions winpr_RC4_*
|
/* RC4 only exists in the compatibility functions winpr_RC4_*
|
||||||
* winpr_Cipher_* does not support that. */
|
* winpr_Cipher_* does not support that. */
|
||||||
if (md == WINPR_CIPHER_ARC4_128)
|
if (md == WINPR_CIPHER_ARC4_128)
|
||||||
{
|
{
|
||||||
@ -3079,7 +3079,7 @@ void rdp_log_build_warnings(rdpRdp* rdp)
|
|||||||
|
|
||||||
WINPR_ASSERT(rdp);
|
WINPR_ASSERT(rdp);
|
||||||
/* Since this function is called in context creation routines stop logging
|
/* Since this function is called in context creation routines stop logging
|
||||||
* this issue repetedly. This is required for proxy, which would otherwise
|
* this issue repeatedly. This is required for proxy, which would otherwise
|
||||||
* spam the log with these. */
|
* spam the log with these. */
|
||||||
if (count > 0)
|
if (count > 0)
|
||||||
return;
|
return;
|
||||||
|
@ -1012,7 +1012,7 @@ BOOL rdp_write_enhanced_security_redirection_packet(wStream* s, const rdpRedirec
|
|||||||
|
|
||||||
if (redirection->flags & LB_PASSWORD)
|
if (redirection->flags & LB_PASSWORD)
|
||||||
{
|
{
|
||||||
/* Password is eighter UNICODE or opaque data */
|
/* Password is either UNICODE or opaque data */
|
||||||
if (!redir_write_data(LB_PASSWORD, s, redirection->PasswordLength, redirection->Password))
|
if (!redir_write_data(LB_PASSWORD, s, redirection->PasswordLength, redirection->Password))
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
@ -354,7 +354,7 @@ static BOOL monitor_operlaps(const rdpSettings* settings, UINT32 start, UINT32 c
|
|||||||
WLog_ERR(
|
WLog_ERR(
|
||||||
TAG,
|
TAG,
|
||||||
"Mulitimonitor mode requested, but local layout has gaps or overlapping areas!");
|
"Mulitimonitor mode requested, but local layout has gaps or overlapping areas!");
|
||||||
WLog_ERR(TAG, "Please reconfigure your local monitor setup so that thre are no gaps or "
|
WLog_ERR(TAG, "Please reconfigure your local monitor setup so that there are no gaps or "
|
||||||
"overlapping areas!");
|
"overlapping areas!");
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
@ -931,7 +931,7 @@ static SSIZE_T parse_nla_mode_pdu(rdpTransport* transport, wStream* stream)
|
|||||||
}
|
}
|
||||||
else if ((lengthEncoding & ~(0x80)) == 2)
|
else if ((lengthEncoding & ~(0x80)) == 2)
|
||||||
{
|
{
|
||||||
/* check for header bytes already was readed in previous calls */
|
/* check for header bytes already read in previous calls */
|
||||||
UINT16 length = 0;
|
UINT16 length = 0;
|
||||||
if (Stream_GetRemainingLength(s) < 2)
|
if (Stream_GetRemainingLength(s) < 2)
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* FreeRDP: A Remote Desktop Protocol Implementation
|
* FreeRDP: A Remote Desktop Protocol Implementation
|
||||||
* Certificate and private key heplers
|
* Certificate and private key helpers
|
||||||
*
|
*
|
||||||
* Copyright 2023 Armin Novak <anovak@thincast.com>
|
* Copyright 2023 Armin Novak <anovak@thincast.com>
|
||||||
* Copyright 2023 Thincast Technologies GmbH
|
* Copyright 2023 Thincast Technologies GmbH
|
||||||
|
@ -746,7 +746,7 @@ static void tls_reset(rdpTls* tls)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* tls->underlying is a stacked BIO under tls->bio.
|
/* tls->underlying is a stacked BIO under tls->bio.
|
||||||
* BIO_free_all will free recursivly. */
|
* BIO_free_all will free recursively. */
|
||||||
if (tls->bio)
|
if (tls->bio)
|
||||||
BIO_free_all(tls->bio);
|
BIO_free_all(tls->bio);
|
||||||
else if (tls->underlying)
|
else if (tls->underlying)
|
||||||
|
@ -48,7 +48,7 @@ BYTE* x509_utils_get_hash(const X509* xcert, const char* hash, size_t* length)
|
|||||||
}
|
}
|
||||||
if (!xcert || !length)
|
if (!xcert || !length)
|
||||||
{
|
{
|
||||||
WLog_ERR(TAG, "Invalid arugments: xcert=%p, length=%p", xcert, length);
|
WLog_ERR(TAG, "Invalid arguments: xcert=%p, length=%p", xcert, length);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -425,7 +425,7 @@ static BOOL vgids_prepare_fstable(const vgidsFilesysTableEntry* fstable, DWORD n
|
|||||||
BYTE** outData, DWORD* outDataSize)
|
BYTE** outData, DWORD* outDataSize)
|
||||||
{
|
{
|
||||||
/* Filesystem table:
|
/* Filesystem table:
|
||||||
BYTE unkonwn: 0x01
|
BYTE unknown: 0x01
|
||||||
Array of vgidsFilesysTableEntry
|
Array of vgidsFilesysTableEntry
|
||||||
*/
|
*/
|
||||||
BYTE* data = malloc(sizeof(vgidsFilesysTableEntry) * numEntries + 1);
|
BYTE* data = malloc(sizeof(vgidsFilesysTableEntry) * numEntries + 1);
|
||||||
@ -536,7 +536,7 @@ static BYTE vgids_get_algid(vgidsContext* p_Ctx)
|
|||||||
static BOOL vgids_prepare_keymap(vgidsContext* context, BYTE** outData, DWORD* outDataSize)
|
static BOOL vgids_prepare_keymap(vgidsContext* context, BYTE** outData, DWORD* outDataSize)
|
||||||
{
|
{
|
||||||
/* Key map record table:
|
/* Key map record table:
|
||||||
BYTE unkonwn (count?): 0x01
|
BYTE unknown (count?): 0x01
|
||||||
Array of vgidsKeymapRecord
|
Array of vgidsKeymapRecord
|
||||||
*/
|
*/
|
||||||
BYTE* data = NULL;
|
BYTE* data = NULL;
|
||||||
@ -1032,7 +1032,7 @@ static BOOL vgids_ins_manage_security_environment(vgidsContext* context, wStream
|
|||||||
Stream_Read_UINT8(s, context->currentSE.keyRef);
|
Stream_Read_UINT8(s, context->currentSE.keyRef);
|
||||||
|
|
||||||
create_response:
|
create_response:
|
||||||
/* If an error occured reset SE */
|
/* If an error occurred reset SE */
|
||||||
if (status != ISO_STATUS_SUCCESS)
|
if (status != ISO_STATUS_SUCCESS)
|
||||||
memset(&context->currentSE, 0, sizeof(context->currentSE));
|
memset(&context->currentSE, 0, sizeof(context->currentSE));
|
||||||
return vgids_create_response(status, resultData, resultDataSize, response, responseSize);
|
return vgids_create_response(status, resultData, resultDataSize, response, responseSize);
|
||||||
|
@ -93,7 +93,7 @@ static const SYSTEM_LOCALE SYSTEM_LOCALE_TABLE[] = {
|
|||||||
{ "en", "AU", ENGLISH_AUSTRALIAN }, /* English (Australia) */
|
{ "en", "AU", ENGLISH_AUSTRALIAN }, /* English (Australia) */
|
||||||
{ "en", "BZ", ENGLISH_BELIZE }, /* English (Belize) */
|
{ "en", "BZ", ENGLISH_BELIZE }, /* English (Belize) */
|
||||||
{ "en", "CA", ENGLISH_CANADIAN }, /* English (Canada) */
|
{ "en", "CA", ENGLISH_CANADIAN }, /* English (Canada) */
|
||||||
{ "en", "CB", ENGLISH_CARIBBEAN }, /* English (Carribean) */
|
{ "en", "CB", ENGLISH_CARIBBEAN }, /* English (Carribbean) */
|
||||||
{ "en", "IN", ENGLISH_INDIA }, /* Windows Vista and later: English (India) */
|
{ "en", "IN", ENGLISH_INDIA }, /* Windows Vista and later: English (India) */
|
||||||
{ "en", "IE", ENGLISH_IRELAND }, /* English (Ireland) */
|
{ "en", "IE", ENGLISH_IRELAND }, /* English (Ireland) */
|
||||||
{ "en", "JM", ENGLISH_JAMAICA }, /* English (Jamaica) */
|
{ "en", "JM", ENGLISH_JAMAICA }, /* English (Jamaica) */
|
||||||
|
@ -547,7 +547,7 @@ static pstatus_t neon_ChromaV1ToYUV444(const BYTE* WINPR_RESTRICT pSrcRaw[3],
|
|||||||
const UINT32 oddY = 1;
|
const UINT32 oddY = 1;
|
||||||
const UINT32 evenY = 0;
|
const UINT32 evenY = 0;
|
||||||
const UINT32 oddX = 1;
|
const UINT32 oddX = 1;
|
||||||
/* The auxilary frame is aligned to multiples of 16x16.
|
/* The auxiliary frame is aligned to multiples of 16x16.
|
||||||
* We need the padded height for B4 and B5 conversion. */
|
* We need the padded height for B4 and B5 conversion. */
|
||||||
const UINT32 padHeigth = nHeight + 16 - nHeight % 16;
|
const UINT32 padHeigth = nHeight + 16 - nHeight % 16;
|
||||||
const UINT32 halfPad = halfWidth % 16;
|
const UINT32 halfPad = halfWidth % 16;
|
||||||
|
@ -62,7 +62,7 @@ neon_yCbCrToRGB_16s16s_P3P3(const INT16* WINPR_RESTRICT pSrc[3], INT32 srcStep,
|
|||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
In order to use NEON signed 16-bit integer multiplication we need to convert
|
In order to use NEON signed 16-bit integer multiplication we need to convert
|
||||||
the floating point factors to signed int without loosing information.
|
the floating point factors to signed int without losing information.
|
||||||
The result of this multiplication is 32 bit and we have a NEON instruction
|
The result of this multiplication is 32 bit and we have a NEON instruction
|
||||||
that returns the hi word of the saturated double.
|
that returns the hi word of the saturated double.
|
||||||
Thus we will multiply the factors by the highest possible 2^n, take the
|
Thus we will multiply the factors by the highest possible 2^n, take the
|
||||||
|
@ -154,7 +154,7 @@ static pstatus_t general_ChromaV1ToYUV444(const BYTE* WINPR_RESTRICT pSrcRaw[3],
|
|||||||
const UINT32 oddY = 1;
|
const UINT32 oddY = 1;
|
||||||
const UINT32 evenY = 0;
|
const UINT32 evenY = 0;
|
||||||
const UINT32 oddX = 1;
|
const UINT32 oddX = 1;
|
||||||
/* The auxilary frame is aligned to multiples of 16x16.
|
/* The auxiliary frame is aligned to multiples of 16x16.
|
||||||
* We need the padded height for B4 and B5 conversion. */
|
* We need the padded height for B4 and B5 conversion. */
|
||||||
const UINT32 padHeigth = nHeight + 16 - nHeight % 16;
|
const UINT32 padHeigth = nHeight + 16 - nHeight % 16;
|
||||||
const BYTE* pSrc[3] = { pSrcRaw[0] + 1ULL * roi->top * srcStep[0] + roi->left,
|
const BYTE* pSrc[3] = { pSrcRaw[0] + 1ULL * roi->top * srcStep[0] + roi->left,
|
||||||
@ -307,7 +307,7 @@ general_YUV444SplitToYUV420(const BYTE* WINPR_RESTRICT pSrc[3], const UINT32 src
|
|||||||
UINT32 vY = 0;
|
UINT32 vY = 0;
|
||||||
UINT32 halfWidth = 0;
|
UINT32 halfWidth = 0;
|
||||||
UINT32 halfHeight = 0;
|
UINT32 halfHeight = 0;
|
||||||
/* The auxilary frame is aligned to multiples of 16x16.
|
/* The auxiliary frame is aligned to multiples of 16x16.
|
||||||
* We need the padded height for B4 and B5 conversion. */
|
* We need the padded height for B4 and B5 conversion. */
|
||||||
const UINT32 padHeigth = roi->height + 16 - roi->height % 16;
|
const UINT32 padHeigth = roi->height + 16 - roi->height % 16;
|
||||||
halfWidth = (roi->width + 1) / 2;
|
halfWidth = (roi->width + 1) / 2;
|
||||||
@ -1345,7 +1345,7 @@ static INLINE pstatus_t general_RGBToAVC444YUV_ANY(
|
|||||||
* B2: From U444 all pixels in even rows with even columns
|
* B2: From U444 all pixels in even rows with even columns
|
||||||
* B3: From V444 all pixels in even rows with even columns
|
* B3: From V444 all pixels in even rows with even columns
|
||||||
*
|
*
|
||||||
* Chroma420 frame (auxillary view):
|
* Chroma420 frame (auxiliary view):
|
||||||
* B45: From U444 and V444 all pixels from all odd rows
|
* B45: From U444 and V444 all pixels from all odd rows
|
||||||
* (The odd U444 and V444 rows must be interleaved in 8-line blocks in B45 !!!)
|
* (The odd U444 and V444 rows must be interleaved in 8-line blocks in B45 !!!)
|
||||||
* B6: From U444 all pixels in even rows with odd columns
|
* B6: From U444 all pixels in even rows with odd columns
|
||||||
@ -1618,7 +1618,7 @@ static INLINE pstatus_t general_RGBToAVC444YUVv2_ANY(
|
|||||||
* B2: From U444 all pixels in even rows with even rows and columns
|
* B2: From U444 all pixels in even rows with even rows and columns
|
||||||
* B3: From V444 all pixels in even rows with even rows and columns
|
* B3: From V444 all pixels in even rows with even rows and columns
|
||||||
*
|
*
|
||||||
* Chroma420 frame (auxillary view):
|
* Chroma420 frame (auxiliary view):
|
||||||
* B45: From U444 and V444 all pixels from all odd columns
|
* B45: From U444 and V444 all pixels from all odd columns
|
||||||
* B67: From U444 and V444 every 4th pixel in odd rows
|
* B67: From U444 and V444 every 4th pixel in odd rows
|
||||||
* B89: From U444 and V444 every 4th pixel (initial offset of 2) in odd rows
|
* B89: From U444 and V444 every 4th pixel (initial offset of 2) in odd rows
|
||||||
|
@ -1265,7 +1265,7 @@ static pstatus_t ssse3_ChromaV1ToYUV444(const BYTE* WINPR_RESTRICT pSrcRaw[3],
|
|||||||
const UINT32 oddY = 1;
|
const UINT32 oddY = 1;
|
||||||
const UINT32 evenY = 0;
|
const UINT32 evenY = 0;
|
||||||
const UINT32 oddX = 1;
|
const UINT32 oddX = 1;
|
||||||
/* The auxilary frame is aligned to multiples of 16x16.
|
/* The auxiliary frame is aligned to multiples of 16x16.
|
||||||
* We need the padded height for B4 and B5 conversion. */
|
* We need the padded height for B4 and B5 conversion. */
|
||||||
const UINT32 padHeigth = nHeight + 16 - nHeight % 16;
|
const UINT32 padHeigth = nHeight + 16 - nHeight % 16;
|
||||||
const BYTE* pSrc[3] = { pSrcRaw[0] + 1ULL * roi->top * srcStep[0] + roi->left,
|
const BYTE* pSrc[3] = { pSrcRaw[0] + 1ULL * roi->top * srcStep[0] + roi->left,
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user