From fc71dcadb00fe892400ed8ea0290aad88102f6f8 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Tue, 15 Mar 2016 22:07:38 -0700 Subject: [PATCH] GUAC-1164: Do not include disply update channel functionsn unless display update channel support is present. --- src/protocols/rdp/rdp_disp.c | 2 ++ src/protocols/rdp/rdp_disp.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/protocols/rdp/rdp_disp.c b/src/protocols/rdp/rdp_disp.c index ee2d627a..cd18cb39 100644 --- a/src/protocols/rdp/rdp_disp.c +++ b/src/protocols/rdp/rdp_disp.c @@ -72,9 +72,11 @@ void guac_rdp_disp_load_plugin(rdpContext* context) { } +#ifdef HAVE_FREERDP_DISPLAY_UPDATE_SUPPORT void guac_rdp_disp_connect(guac_rdp_disp* guac_disp, DispClientContext* disp) { guac_disp->disp = disp; } +#endif /** * Fits a given dimension within the allowed bounds for Display Update diff --git a/src/protocols/rdp/rdp_disp.h b/src/protocols/rdp/rdp_disp.h index b2516b55..d2462714 100644 --- a/src/protocols/rdp/rdp_disp.h +++ b/src/protocols/rdp/rdp_disp.h @@ -107,6 +107,7 @@ void guac_rdp_disp_free(guac_rdp_disp* disp); */ void guac_rdp_disp_load_plugin(rdpContext* context); +#ifdef HAVE_FREERDP_DISPLAY_UPDATE_SUPPORT /** * Stores the given DispClientContext within the given guac_rdp_disp, such that * display updates can be properly sent. Until this is called, changes to the @@ -118,6 +119,7 @@ void guac_rdp_disp_load_plugin(rdpContext* context); * display update channel. */ void guac_rdp_disp_connect(guac_rdp_disp* guac_disp, DispClientContext* disp); +#endif /** * Requests a display size update, which may then be sent immediately to the