1
/*********************************************************
2
* Copyright (C) 2008 VMware, Inc. All rights reserved.
4
* This program is free software; you can redistribute it and/or modify it
5
* under the terms of the GNU Lesser General Public License as published
6
* by the Free Software Foundation version 2.1 and no later version.
8
* This program is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10
* or FITNESS FOR A PARTICULAR PURPOSE. See the Lesser GNU General Public
11
* License for more details.
13
* You should have received a copy of the GNU Lesser General Public License
14
* along with this program; if not, write to the Free Software Foundation, Inc.,
15
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
17
*********************************************************/
22
* Internal header file for lib/resolution.
25
#ifndef _LIB_RESOLUTIONINT_H_
26
#define _LIB_RESOLUTIONINT_H_
28
#define INCLUDE_ALLOW_USERLEVEL
29
#define INCLUDE_ALLOW_DISTRIBUTE
30
#include "includeCheck.h"
32
#include "resolution.h"
42
* Describes internal state of the resolution library. I.e., tracks whether
43
* a capability is supported, enabled, etc.
46
Bool initialized; // TRUE if successfully initialized.
47
Bool canSetResolution; // TRUE if back-end supports Resolution_Set.
48
Bool canSetTopology; // TRUE if back-end supports DisplayTopology_Set.
49
Bool cbResolutionRegistered; // TRUE if Resolution_Set CB registered.
50
Bool cbTopologyRegistered; // TRUE if DisplayTopology_Set CB registered.
51
RpcIn *rpcIn; // Points to RpcIn channel.
53
char tcloChannel[MAX(sizeof TOOLS_DAEMON_NAME,
54
sizeof TOOLS_DND_NAME)];
55
// Names the TCLO channel which the library will
56
// use for registering capabilities.
61
* Describes the size and offset of a display. An array of these
62
* structures describes the entire topology of the guest desktop
64
* NB: Cribbed from Win32 resolution code. Refactor this.
71
} DisplayTopologyInfo;
78
extern ResolutionInfoType resolutionInfo;
85
/* Defined per back-end. */
86
Bool ResolutionBackendInit(InitHandle handle);
87
void ResolutionBackendCleanup(void);
88
Bool ResolutionSetResolution(uint32 width, uint32 height);
89
Bool ResolutionSetTopology(unsigned int ndisplays, DisplayTopologyInfo displays[]);
92
#endif // ifndef _LIB_RESOLUTIONINT_H_