add session_info
Conflicts: libxrdp/libxrdp.h
This commit is contained in:
parent
9f5656933b
commit
6f74efa70a
@ -1487,6 +1487,17 @@ libxrdp_fastpath_send_frame_marker(struct xrdp_session *session,
|
|||||||
}
|
}
|
||||||
free_stream(s);
|
free_stream(s);
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
int EXPORT_CC
|
||||||
|
libxrdp_send_session_info(struct xrdp_session *session, const char *data,
|
||||||
|
int data_bytes)
|
||||||
|
{
|
||||||
|
struct xrdp_rdp *rdp;
|
||||||
|
|
||||||
|
LLOGLN(10, ("libxrdp_send_session_info:"));
|
||||||
|
rdp = (struct xrdp_rdp *) (session->rdp);
|
||||||
|
return xrdp_rdp_send_session_info(rdp, data, data_bytes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -402,6 +402,9 @@ int APP_CC
|
|||||||
xrdp_rdp_disconnect(struct xrdp_rdp *self);
|
xrdp_rdp_disconnect(struct xrdp_rdp *self);
|
||||||
int APP_CC
|
int APP_CC
|
||||||
xrdp_rdp_send_deactivate(struct xrdp_rdp *self);
|
xrdp_rdp_send_deactivate(struct xrdp_rdp *self);
|
||||||
|
int APP_CC
|
||||||
|
xrdp_rdp_send_session_info(struct xrdp_rdp *self, const char *data,
|
||||||
|
int data_bytes);
|
||||||
|
|
||||||
/* xrdp_orders.c */
|
/* xrdp_orders.c */
|
||||||
struct xrdp_orders * APP_CC
|
struct xrdp_orders * APP_CC
|
||||||
|
@ -247,5 +247,8 @@ libxrdp_fastpath_send_surface(struct xrdp_session *session,
|
|||||||
int EXPORT_CC
|
int EXPORT_CC
|
||||||
libxrdp_fastpath_send_frame_marker(struct xrdp_session *session,
|
libxrdp_fastpath_send_frame_marker(struct xrdp_session *session,
|
||||||
int frame_action, int frame_id);
|
int frame_action, int frame_id);
|
||||||
|
int EXPORT_CC
|
||||||
|
libxrdp_send_session_info(struct xrdp_session *session, const char *data,
|
||||||
|
int data_bytes);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -1252,3 +1252,44 @@ xrdp_rdp_send_deactivate(struct xrdp_rdp *self)
|
|||||||
DEBUG(("out xrdp_rdp_send_deactivate"));
|
DEBUG(("out xrdp_rdp_send_deactivate"));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
int APP_CC
|
||||||
|
xrdp_rdp_send_session_info(struct xrdp_rdp *self, const char *data,
|
||||||
|
int data_bytes)
|
||||||
|
{
|
||||||
|
struct stream *s;
|
||||||
|
|
||||||
|
LLOGLN(0, ("xrdp_rdp_send_session_info: data_bytes %d", data_bytes));
|
||||||
|
make_stream(s);
|
||||||
|
init_stream(s, 8192);
|
||||||
|
|
||||||
|
if (xrdp_rdp_init_data(self, s) != 0)
|
||||||
|
{
|
||||||
|
free_stream(s);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (s_check_rem_out(s, data_bytes))
|
||||||
|
{
|
||||||
|
out_uint8a(s, data, data_bytes);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
free_stream(s);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
s_mark_end(s);
|
||||||
|
|
||||||
|
/* SAVE_SESSION_INFO 0x26 */
|
||||||
|
if (xrdp_rdp_send_data(self, s, 0x26) != 0)
|
||||||
|
{
|
||||||
|
free_stream(s);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
free_stream(s);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -514,3 +514,6 @@ int DEFAULT_CC
|
|||||||
server_add_char_alpha(struct xrdp_mod* mod, int font, int character,
|
server_add_char_alpha(struct xrdp_mod* mod, int font, int character,
|
||||||
int offset, int baseline,
|
int offset, int baseline,
|
||||||
int width, int height, char* data);
|
int width, int height, char* data);
|
||||||
|
int DEFAULT_CC
|
||||||
|
server_session_info(struct xrdp_mod *mod, const char *data, int data_bytes);
|
||||||
|
|
||||||
|
@ -472,6 +472,7 @@ xrdp_mm_setup_mod1(struct xrdp_mm *self)
|
|||||||
self->mod->server_paint_rect_bpp = server_paint_rect_bpp;
|
self->mod->server_paint_rect_bpp = server_paint_rect_bpp;
|
||||||
self->mod->server_composite = server_composite;
|
self->mod->server_composite = server_composite;
|
||||||
self->mod->server_paint_rects = server_paint_rects;
|
self->mod->server_paint_rects = server_paint_rects;
|
||||||
|
self->mod->server_session_info = server_session_info;
|
||||||
self->mod->si = (tintptr) &(self->wm->session->si);
|
self->mod->si = (tintptr) &(self->wm->session->si);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2599,6 +2600,17 @@ server_paint_rects(struct xrdp_mod* mod, int num_drects, short *drects,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
int DEFAULT_CC
|
||||||
|
server_session_info(struct xrdp_mod *mod, const char *data, int data_bytes)
|
||||||
|
{
|
||||||
|
struct xrdp_wm *wm;
|
||||||
|
|
||||||
|
LLOGLN(10, ("server_session_info:"));
|
||||||
|
wm = (struct xrdp_wm *)(mod->wm);
|
||||||
|
return libxrdp_send_session_info(wm->session, data, data_bytes);
|
||||||
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
int DEFAULT_CC
|
int DEFAULT_CC
|
||||||
server_set_pointer(struct xrdp_mod *mod, int x, int y,
|
server_set_pointer(struct xrdp_mod *mod, int x, int y,
|
||||||
|
@ -146,7 +146,9 @@ struct xrdp_mod
|
|||||||
int num_crects, short *crects,
|
int num_crects, short *crects,
|
||||||
char *data, int width, int height,
|
char *data, int width, int height,
|
||||||
int flags, int frame_id);
|
int flags, int frame_id);
|
||||||
tintptr server_dumby[100 - 43]; /* align, 100 minus the number of server
|
int (*server_session_info)(struct xrdp_mod* v, const char *data,
|
||||||
|
int data_bytes);
|
||||||
|
tintptr server_dumby[100 - 44]; /* align, 100 minus the number of server
|
||||||
functions above */
|
functions above */
|
||||||
/* common */
|
/* common */
|
||||||
tintptr handle; /* pointer to self as int */
|
tintptr handle; /* pointer to self as int */
|
||||||
|
Loading…
Reference in New Issue
Block a user