channel data go go to the client

ulab-original
jsorg71 18 years ago
parent 4b3b83044a
commit 451f7a1c0f

@ -1325,6 +1325,22 @@ xrdp_wm_process_input_mouse(struct xrdp_wm* self, int device_flags,
return 0;
}
/******************************************************************************/
static int APP_CC
xrdp_wm_process_channel_data(struct xrdp_wm* self, int channel_id,
char* data, int data_len)
{
if (self->mod != 0)
{
if (self->mod->mod_event != 0)
{
self->mod->mod_event(self->mod, 0x5555, channel_id, (long)data,
data_len, 0);
}
}
return 0;
}
/******************************************************************************/
/* this is the callbacks comming from libxrdp.so */
int DEFAULT_CC
@ -1361,6 +1377,10 @@ callback(long id, int msg, long param1, long param2, long param3, long param4)
MAKERECT(rect, param1, param2, param3, param4);
rv = xrdp_bitmap_invalidate(wm->screen, &rect);
break;
case 0x5555: /* called from xrdp_channel.c, channel data has come in,
pass it to module if there is one */
rv = xrdp_wm_process_channel_data(wm, param1, (char*)param2, param3);
break;
}
return rv;
}

Loading…
Cancel
Save