[gnome-remote-desktop] session-rdp: Add API to notify a GFX protocol reset
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-remote-desktop] session-rdp: Add API to notify a GFX protocol reset
- Date: Fri, 3 Sep 2021 09:34:42 +0000 (UTC)
commit 8344d5f92e292d872483024cdb7d81986006805f
Author: Pascal Nowack <Pascal Nowack gmx de>
Date: Mon Mar 22 18:28:43 2021 +0100
session-rdp: Add API to notify a GFX protocol reset
The graphics pipeline will use this API later to indicate a protocol
reset.
This will happen, when the RDP client resets the protocol by using the
CapsAdvertise PDU.
src/grd-session-rdp.c | 9 +++++++++
src/grd-session-rdp.h | 2 ++
2 files changed, 11 insertions(+)
---
diff --git a/src/grd-session-rdp.c b/src/grd-session-rdp.c
index 44bedb5..a4396f8 100644
--- a/src/grd-session-rdp.c
+++ b/src/grd-session-rdp.c
@@ -210,6 +210,15 @@ unset_rdp_peer_flag (RdpPeerContext *rdp_peer_context,
g_mutex_unlock (&rdp_peer_context->flags_mutex);
}
+void
+grd_session_rdp_notify_graphics_pipeline_reset (GrdSessionRdp *session_rdp)
+{
+ freerdp_peer *peer = session_rdp->peer;
+ RdpPeerContext *rdp_peer_context = (RdpPeerContext *) peer->context;
+
+ set_rdp_peer_flag (rdp_peer_context, RDP_PEER_PENDING_GFX_INIT);
+}
+
void
grd_session_rdp_notify_graphics_pipeline_ready (GrdSessionRdp *session_rdp)
{
diff --git a/src/grd-session-rdp.h b/src/grd-session-rdp.h
index 465bccf..61dc806 100644
--- a/src/grd-session-rdp.h
+++ b/src/grd-session-rdp.h
@@ -38,6 +38,8 @@ GrdSessionRdp *grd_session_rdp_new (GrdRdpServer *rdp_server,
void grd_session_rdp_notify_error (GrdSessionRdp *session_rdp,
uint32_t error_info);
+void grd_session_rdp_notify_graphics_pipeline_reset (GrdSessionRdp *session_rdp);
+
void grd_session_rdp_notify_graphics_pipeline_ready (GrdSessionRdp *session_rdp);
int grd_session_rdp_get_stride_for_width (GrdSessionRdp *session_rdp,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]