GUAC-1164: Do not include disply update channel functionsn unless display update channel support is present.

This commit is contained in:
Michael Jumper 2016-03-15 22:07:38 -07:00
parent 81ebfbb5ca
commit fc71dcadb0
2 changed files with 4 additions and 0 deletions

View File

@ -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) { void guac_rdp_disp_connect(guac_rdp_disp* guac_disp, DispClientContext* disp) {
guac_disp->disp = disp; guac_disp->disp = disp;
} }
#endif
/** /**
* Fits a given dimension within the allowed bounds for Display Update * Fits a given dimension within the allowed bounds for Display Update

View File

@ -107,6 +107,7 @@ void guac_rdp_disp_free(guac_rdp_disp* disp);
*/ */
void guac_rdp_disp_load_plugin(rdpContext* context); 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 * 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 * 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. * display update channel.
*/ */
void guac_rdp_disp_connect(guac_rdp_disp* guac_disp, DispClientContext* disp); 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 * Requests a display size update, which may then be sent immediately to the