neutrinordp: minor changes, coding style, log level
Conflicts: neutrinordp/xrdp-neutrinordp.c neutrinordp/xrdp-neutrinordp.h
This commit is contained in:
parent
05a281a3f8
commit
89cbe76f57
@ -27,7 +27,7 @@
|
|||||||
#ifdef XRDP_DEBUG
|
#ifdef XRDP_DEBUG
|
||||||
#define LOG_LEVEL 99
|
#define LOG_LEVEL 99
|
||||||
#else
|
#else
|
||||||
#define LOG_LEVEL 11
|
#define LOG_LEVEL 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define LLOG(_level, _args) \
|
#define LLOG(_level, _args) \
|
||||||
@ -280,8 +280,7 @@ lxrdp_event(struct mod *mod, int msg, long param1, long param2,
|
|||||||
data = (char *)param3;
|
data = (char *)param3;
|
||||||
total_size = (int)param4;
|
total_size = (int)param4;
|
||||||
|
|
||||||
LLOGLN(10, ("lxrdp_event: client to server ,chanid= %d flags= %d", chanid, flags));
|
LLOGLN(12, ("lxrdp_event: client to server ,chanid= %d flags= %d", chanid, flags));
|
||||||
g_hexdump(data, size); // for debugging
|
|
||||||
if ((chanid < 0) || (chanid >= mod->inst->settings->num_channels))
|
if ((chanid < 0) || (chanid >= mod->inst->settings->num_channels))
|
||||||
{
|
{
|
||||||
LLOGLN(0, ("lxrdp_event: error chanid %d", chanid));
|
LLOGLN(0, ("lxrdp_event: error chanid %d", chanid));
|
||||||
@ -1473,7 +1472,6 @@ lfreerdp_pre_connect(freerdp *instance)
|
|||||||
instance->update->pointer->PointerNew = lfreerdp_pointer_new;
|
instance->update->pointer->PointerNew = lfreerdp_pointer_new;
|
||||||
instance->update->pointer->PointerCached = lfreerdp_pointer_cached;
|
instance->update->pointer->PointerCached = lfreerdp_pointer_cached;
|
||||||
|
|
||||||
|
|
||||||
if ((mod->username[0] != 0) && (mod->password[0] != 0))
|
if ((mod->username[0] != 0) && (mod->password[0] != 0))
|
||||||
{
|
{
|
||||||
/* since we have username and password, we can try nla */
|
/* since we have username and password, we can try nla */
|
||||||
@ -1761,7 +1759,6 @@ lfreerdp_post_connect(freerdp *instance)
|
|||||||
mod = ((struct mod_context *)(instance->context))->modi;
|
mod = ((struct mod_context *)(instance->context))->modi;
|
||||||
g_memset(mod->password, 0, sizeof(mod->password));
|
g_memset(mod->password, 0, sizeof(mod->password));
|
||||||
|
|
||||||
|
|
||||||
mod->inst->update->window->WindowCreate = lrail_WindowCreate;
|
mod->inst->update->window->WindowCreate = lrail_WindowCreate;
|
||||||
mod->inst->update->window->WindowUpdate = lrail_WindowUpdate;
|
mod->inst->update->window->WindowUpdate = lrail_WindowUpdate;
|
||||||
mod->inst->update->window->WindowDelete = lrail_WindowDelete;
|
mod->inst->update->window->WindowDelete = lrail_WindowDelete;
|
||||||
@ -1773,7 +1770,6 @@ lfreerdp_post_connect(freerdp *instance)
|
|||||||
mod->inst->update->window->MonitoredDesktop = lrail_MonitoredDesktop;
|
mod->inst->update->window->MonitoredDesktop = lrail_MonitoredDesktop;
|
||||||
mod->inst->update->window->NonMonitoredDesktop = lrail_NonMonitoredDesktop;
|
mod->inst->update->window->NonMonitoredDesktop = lrail_NonMonitoredDesktop;
|
||||||
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1816,7 +1812,6 @@ lfreerdp_receive_channel_data(freerdp *instance, int channelId, uint8 *data,
|
|||||||
if (lchid >= 0)
|
if (lchid >= 0)
|
||||||
{
|
{
|
||||||
LLOGLN(10, ("lfreerdp_receive_channel_data: server to client, chanid: %d", lchid));
|
LLOGLN(10, ("lfreerdp_receive_channel_data: server to client, chanid: %d", lchid));
|
||||||
g_hexdump(data, size); // for debugging
|
|
||||||
error = mod->server_send_to_channel(mod, lchid, (char *)data, size,
|
error = mod->server_send_to_channel(mod, lchid, (char *)data, size,
|
||||||
total_size, flags);
|
total_size, flags);
|
||||||
|
|
||||||
|
@ -172,6 +172,8 @@ struct mod
|
|||||||
int vrev;
|
int vrev;
|
||||||
char username[256];
|
char username[256];
|
||||||
char password[256];
|
char password[256];
|
||||||
|
int bool_keyBoardSynced ; /* Numlock can be out of sync, we hold state here to resolve */
|
||||||
|
int keyBoardLockInfo ; /* Holds initial numlock capslock state */
|
||||||
|
|
||||||
struct xrdp_client_info client_info;
|
struct xrdp_client_info client_info;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user