2014-11-26 23:23:26 +00:00
|
|
|
/*
|
2016-03-25 19:59:40 +00:00
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
|
|
* or more contributor license agreements. See the NOTICE file
|
|
|
|
* distributed with this work for additional information
|
|
|
|
* regarding copyright ownership. The ASF licenses this file
|
|
|
|
* to you under the Apache License, Version 2.0 (the
|
|
|
|
* "License"); you may not use this file except in compliance
|
|
|
|
* with the License. You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing,
|
|
|
|
* software distributed under the License is distributed on an
|
|
|
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
|
* KIND, either express or implied. See the License for the
|
|
|
|
* specific language governing permissions and limitations
|
|
|
|
* under the License.
|
2014-11-26 23:23:26 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GUAC_RDP_RESOLUTION_H
|
|
|
|
#define GUAC_RDP_RESOLUTION_H
|
|
|
|
|
2016-03-01 05:50:00 +00:00
|
|
|
#include <guacamole/user.h>
|
2014-11-26 23:23:26 +00:00
|
|
|
|
|
|
|
/**
|
2016-03-01 05:50:00 +00:00
|
|
|
* Returns whether the given resolution is reasonable for the given user,
|
2014-11-26 23:23:26 +00:00
|
|
|
* based on arbitrary criteria for reasonability.
|
|
|
|
*
|
2016-03-07 23:05:31 +00:00
|
|
|
* @param user
|
|
|
|
* The guac_user to test the given resolution against.
|
|
|
|
*
|
|
|
|
* @param resolution
|
|
|
|
* The resolution to test, in DPI.
|
|
|
|
*
|
|
|
|
* @return
|
|
|
|
* Non-zero if the resolution is reasonable, zero otherwise.
|
2014-11-26 23:23:26 +00:00
|
|
|
*/
|
2016-03-01 05:50:00 +00:00
|
|
|
int guac_rdp_resolution_reasonable(guac_user* user, int resolution);
|
2014-11-26 23:23:26 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns a reasonable resolution for the remote display, given the size and
|
2016-03-01 05:50:00 +00:00
|
|
|
* resolution of a guac_user.
|
2014-11-26 23:23:26 +00:00
|
|
|
*
|
2016-03-07 23:05:31 +00:00
|
|
|
* @param user
|
|
|
|
* The guac_user whose size and resolution shall be used to determine an
|
|
|
|
* appropriate remote display resolution.
|
|
|
|
*
|
|
|
|
* @return
|
|
|
|
* A reasonable resolution for the remote display, in DPI.
|
2014-11-26 23:23:26 +00:00
|
|
|
*/
|
2016-03-01 05:50:00 +00:00
|
|
|
int guac_rdp_suggest_resolution(guac_user* user);
|
2014-11-26 23:23:26 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|